更改为控制台时屏幕变为空白

更改为控制台时屏幕变为空白

最近我意识到,每当我想更改为任何控制台窗口(Ctrl+Alt+F2 - Ctrl+Alt+F6)时,由于图形适配器缺少输入,我的屏幕就会变黑并进入待机状态。这个问题在 Fedora 31 上绝对不存在,但我不能说它是从 Fedora 32 开始还是稍后才出现。该系统是全新安装而非升级。

虽然我可以通过按 Ctrl+Alt+F1(GDM 问候语屏幕)或 Ctrl+Alt+F7(登录后的图形环境)重新获得对计算机的控制,但对纯文本控制台窗口的更改不再起作用。

使用提升的权限运行journalctl -f我得到以下输出(我对切换进行了计时,以便更容易在日志中发现,这就是时间戳全部为零秒的原因):

Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "54"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event2  - Power Button: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "33"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event8  - Video Bus: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "52"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event1  - Power Button: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "92"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event0  - Sleep Button: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "53"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event13 - Corsair CORSAIR HS70 Pro Wireless Gaming Headset Consumer Control: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "51"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event12 - HID 0557:2419: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "59"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event16 - HID 0557:2419: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "48"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "57"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "55"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "48"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event11 - Logitech MX Ergo: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "57"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event3  - ckb1: Corsair Gaming K95 RGB PLATINUM Keyboard vKB: device removed
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (**) Option "fd" "55"
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) event4  - ckb1: Corsair Gaming K95 RGB PLATINUM Keyboard vM: device removed
Sep 24 12:24:00 computer_name_here kernel: rfkill: input handler enabled
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:72
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:75
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:76
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:65
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:77
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:66
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:68
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:67
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 226:1
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:80
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 226:0
Sep 24 12:24:00 computer_name_here /usr/libexec/gdm-x-session[4285]: (II) systemd-logind: got pause for 13:64
Sep 24 12:24:15 computer_name_here kernel: fbcon: Taking over console
Sep 24 12:24:15 computer_name_here kernel: Console: switching to colour frame buffer device 100x37

Enter最后两行是我在短时间内尝试恢复屏幕的微弱(且徒劳)后按下的结果。

由于怀疑显卡驱动程序存在问题,我可能需要提及的是,我有一个使用以下驱动程序的 GeForce GTX 1080:

$ sudo dnf list installed "*nvidia*"
Installed Packages
akmod-nvidia.x86_64                          3:450.66-1.fc32    @rpmfusion-nonfree-updates
kmod-nvidia-5.8.10-200.fc32.x86_64.x86_64    3:450.66-1.fc32    @@commandline             
kmod-nvidia-5.8.4-200.fc32.x86_64.x86_64     3:450.66-1.fc32    @@commandline             
kmod-nvidia-5.8.7-200.fc32.x86_64.x86_64     3:450.66-1.fc32    @@commandline             
nvidia-settings.x86_64                       3:450.66-1.fc32    @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                   3:450.66-2.fc32    @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64         3:450.66-2.fc32    @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64           3:450.66-2.fc32    @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64              3:450.66-2.fc32    @rpmfusion-nonfree-updates

kmod 软件包不是我手动安装的,而是在安装新内核时必须通过 akmod 软件包安装的。

GRUB 使用以下行开始安装:

GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rd.lvm.lv=Samsung_SSD_970_PRO/system rhgb quiet intel_iommu=on"

有谁有解决方案和/或可以提示我适当的文件来验证其内容?如果需要更多日志或信息,我很乐意提供。

更新(解决评论):

$ lsmod | grep -i nvidia
nvidia_drm             57344  8
nvidia_modeset       1187840  14 nvidia_drm
nvidia_uvm           1138688  0
nvidia              19742720  607 nvidia_uvm,nvidia_modeset
drm_kms_helper        262144  5 drm_vram_helper,ast,nvidia_drm,i915
drm                   626688  20 drm_kms_helper,drm_vram_helper,ast,drm_ttm_helper,nvidia_drm,i915,ttm

相关内容