![Ubuntu 18.04 无法在没有 nomodeset 的情况下启动,最后一条消息是“从 efi vga 切换到 inteldrmfb”](https://linux22.com/image/1186445/Ubuntu%2018.04%20%E6%97%A0%E6%B3%95%E5%9C%A8%E6%B2%A1%E6%9C%89%20nomodeset%20%E7%9A%84%E6%83%85%E5%86%B5%E4%B8%8B%E5%90%AF%E5%8A%A8%EF%BC%8C%E6%9C%80%E5%90%8E%E4%B8%80%E6%9D%A1%E6%B6%88%E6%81%AF%E6%98%AF%E2%80%9C%E4%BB%8E%20efi%20vga%20%E5%88%87%E6%8D%A2%E5%88%B0%20inteldrmfb%E2%80%9D.png)
在发生过热事故或不幸的更新后,我的 Ubuntu 18.04 安装仅使用nomodeset
内核参数启动。这不行,因为radeon
驱动程序不想使用nomodeset
:
$ sudo modprobe -f radeon
modprobe: ERROR: could not insert 'radeon': Exec format error
$ dmesg |tail -2
[ 168.641843] [drm] VGACON disable radeon kernel modesetting.
[ 168.641865] [drm:radeon_init [radeon]] *ERROR* No UMS support in radeon module!
如果我不启用nomodeset
,启动过程会在switching to inteldrmfb from efi vga
出现消息后冻结。我真的很想在没有 的情况下正常启动我的系统nomodeset
。
我使用的是linux-generic-hwe-18.04
内核。之前启动成功但现在失败的是Linux version 5.4.0-90-generic (buildd@lcy01-amd64-026) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #101~18.04.1-Ubuntu SMP Fri Oct 22 09:25:04 UTC 2021 (Ubuntu 5.4.0-90.101~18.04.1-generic 5.4.148)
我尝试了几种不同的内核https://kernel.ubuntu.com/~kernel-ppa/mainline/(5.4.189, 5.4.70) 但这没有帮助:启动在同一点冻结。我还尝试了在这种情况下建议的其他内核参数:amdgpu.dc=0
但这intel_iommu=on
没有帮助。
也许除了内核之外还有其他因素导致启动中断?
我的显卡:
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Samsung Electronics Co Ltd 3rd Gen Core processor Graphics Controller [144d:c0d8]
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at bfc00000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel modules: i915
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] [1002:6840] (prog-if 00 [VGA controller])
Subsystem: Samsung Electronics Co Ltd Thames [Radeon HD 7500M/7600M Series] [144d:c0d8]
Flags: fast devsel, IRQ 11
Memory at e0000000 (64-bit, prefetchable) [disabled] [size=256M]
Memory at c0220000 (64-bit, non-prefetchable) [disabled] [size=128K]
I/O ports at 3000 [disabled] [size=256]
Expansion ROM at c0200000 [disabled] [size=128K]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Kernel modules: radeon
答案1
使用module_blacklist=radeon
内核参数启动没有任何问题,我甚至能够使用双显示器,我担心我再也无法使用了。我猜我的 Radeon 卡不再起作用了,当驱动程序尝试启用它时,系统会冻结。