![启动时没有 nomodeset 就会黑屏](https://linux22.com/image/1181072/%E5%90%AF%E5%8A%A8%E6%97%B6%E6%B2%A1%E6%9C%89%20nomodeset%20%E5%B0%B1%E4%BC%9A%E9%BB%91%E5%B1%8F.png)
我刚刚在具有以下硬件的新版本上安装了 Ubuntu 20.04:
- 中央处理器:Intel i5-10400
- 集成显卡:英特尔 UHD 630
- 主板:华擎 h510m-ITX/ac
- 内存:Corsair LPX Vengeance 16GB 2666MHz
- 固态硬盘:Crucial P2 500GB
除非我添加到我的内核参数,否则我无法使任何图形输出工作nomodeset
- 每当它启动时,屏幕就会在 ASRock 徽标后关闭,并且不响应任何键盘输入(我甚至无法切换到 tty)。
这包括 Live USB 安装程序,我必须在“安全图形”模式下运行才能安装。我还尝试了 20.10 Live USB,甚至 Manjaro (GNOME 20.2.1),两者都有同样的问题。
如果我使用nomodeset
,Ubuntu 可以正常启动,但我相信这会禁用任何硬件加速,并且我无法更改显示分辨率,所以我正在寻找适当的修复方法。
检查日志(我可以通过 SSH 登录)我发现 GDM 无法启动:
Mar 21 15:20:32 colin-desktop gnome-shell[901]: Failed to create backend: No GPUs with outputs found
Mar 21 15:20:32 colin-desktop gnome-session[830]: gnome-session-binary[830]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 21 15:20:32 colin-desktop gnome-session-binary[830]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 21 15:20:32 colin-desktop gnome-session-binary[830]: Unrecoverable failure in required component org.gnome.Shell.desktop
Mar 21 15:20:32 colin-desktop gdm-launch-environment][803]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Mar 21 15:20:32 colin-desktop gdm3[781]: GdmDisplay: Session never registered, failing
Xorg 服务器退出,并显示以下错误消息/var/lib/gdm3/.local/share/xorg/Xorg.0.log
:
[ 9.404] (EE) modeset(0): No modes.
[ 9.406] (EE) Screen(s) found, but none have a usable configuration.
[ 9.406] (EE)
[ 9.406] (EE) no screens found(EE)
[ 9.406] (EE)
[ 9.406] (EE) Please also check the log file at "/var/lib/gdm3/.local/share/xorg/Xorg.0.log" for additional information.
[ 9.406] (EE)
[ 9.407] (EE) Server terminated with error (1). Closing log file.
如果我intel
通过配置文件强制执行驱动程序,/usr/share/X11/xorg.conf.d
那么 Xorg 会报告分段错误,但总体效果是一样的 - 没有屏幕!
我尝试过各种修复方法,但都没有起作用(不过,如果我遇到问题,我很乐意再次尝试这些方法!):
- 将 i915 和 intel_agp 添加到 initramfs(Arch Wiki 建议)
- /usr/share/X11/xorg.conf.d 中的各种配置选项
- 从 ppa:oibaf/graphics-drivers 和 ppa:kisak/kisak-mesa 更新驱动程序
- 安装较新的内核(5.11)
对于任何人提供的帮助我都会非常感激。
谢谢!
答案1
我通过安装最新的 oem 内核(linux-image-5.10.0-1019-oem
)解决了这个问题,该内核包含针对此问题的修复,如该问题的答案所建议的那样:新华硕 Z590 主板上显示空白(无信号)
答案2
我也是。我已经在使用最新的 Ubuntu
Linux G7-7588 5.19.0-35-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 3 18:36:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
所有 GPU 状态均无人认领
*-display UNCLAIMED
description: 3D controller
product: GP107M [GeForce GTX 1050 Ti Mobile]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff
*-display UNCLAIMED
description: VGA compatible controller
product: CoffeeLake-H GT2 [UHD Graphics 630]
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: memory:eb000000-ebffffff memory:80000000-8fffffff ioport:4000(size=64) memory:c0000-dffff
*-graphics
product: EFI VGA
physical id: 2
logical name: /dev/fb0
capabilities: fb
configuration: depth=32 resolution=1920,1080