/etc/X11/xorg.conf [device] driver="nvidia" 时无法启动

/etc/X11/xorg.conf [device] driver="nvidia" 时无法启动

顺便说一句,我正在使用 Arch,有一台 NVIDIA GeForce GTX 1660 Ti Mobile、带有 SDDM 的 KDE、带有内部屏幕的笔记本电脑和 2 个通过 USB-C 连接的外部屏幕。

一切都很好。昨天我进行了全面升级。今天图形启动失败,Playmouth 启动屏幕无法终止。

我玩了一下,发现当我在中评论这一行时,图形将会启动/etc/X11/xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 530.41.03

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
.....
Section "Device"
    Identifier     "Device0"
#    Driver         "nvidia"             #when commented graphical boot works with 1 Monitor
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection
.....
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

所以我猜测这与NVIDIA驱动程序有关

pacman -Q nvidia
nvidia 530.41.03-6     #different from mod. normal?

当我检查已加载的模组时:

modinfo $(modprobe --resolve-alias nvidia) 
filename:       /lib/modules/6.2.13-arch1-1/extramodules/nvidia.ko.xz
firmware:       nvidia/530.41.03/gsp_tu10x.bin
firmware:       nvidia/530.41.03/gsp_ga10x.bin   #different from above. normal?
alias:          char-major-195-*
version:        530.41.03
supported:      external
...

内核日志。我注意到某些签名无法加载,但不知道这是否是问题以及如何修复它: dmesg | grep 英伟达

[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=2efc41cd-9bc2-430d-ad4c-9119cfc5c554 rw loglevel=3 quiet nvidia-drm.modeset=1
[    0.028531] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=2efc41cd-9bc2-430d-ad4c-9119cfc5c554 rw loglevel=3 quiet nvidia-drm.modeset=1
[    3.136458] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[    3.695298] nvidia: loading out-of-tree module taints kernel.
[    3.695323] nvidia: module license 'NVIDIA' taints kernel.
[    3.709474] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    3.902894] nvidia-nvlink: Nvlink Core is being initialized, major device number 510
[    3.903724] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    3.903860] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    4.014272] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    4.108731] nvidia-uvm: Loaded the UVM driver, major device number 508.
[    4.306861] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[    4.360489] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  530.41.03  Thu Mar 16 19:23:04 UTC 2023
[    4.364399] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    5.028945] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1

问题是我的外部 USB 屏幕需要 Nvidia 驱动程序。由于某种未知的原因,它们不再工作,我不知道如何进行调试。我对 Linux 还比较陌生。有什么想法如何继续吗?

更新 当我尝试从登录 shell 启动启动屏幕时,出现以下错误:

kstart plasma-desktop
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

我试过了: 重新安装:qt、nvidia 相关软件包、plasma

答案1

https://bbs.archlinux.org/viewtopic.php?pid=2097245#p2097245

删除(带备份)

/etc/X11/xorg.conf
/etc/X11/xorg.conf.d/20-nvidia.conf

解决了我的问题

相关内容