使用 NVIDIA 驱动程序时屏幕闪烁

使用 NVIDIA 驱动程序时屏幕闪烁

我最近安装了自己的 Arch Linux。我的双显示器设置中的其中一台显示器出现一些问题。每隔一段时间,我的显示器就会变黑一秒钟,然后再刷新,这似乎是随机的。这真是令人沮丧。仅我的一台显示器出现这种情况,另一台显示器完全不受影响。我已经尝试了各种方法并阅读了大量的论坛帖子,但我无法解决这个问题。

我正在运行 nvidia-450 驱动程序和 GTX 1080 TI。有问题的显示器通过 Displayport 连接,并且是 2k 显示器。另一台显示器也通过 Displayport 连接,是 1080p 显示器。

以下是一些可能有帮助的命令输出,已针对相关部分进行了编辑:

lspci - k

08:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
    Subsystem: Gigabyte Technology Co., Ltd Device 374c
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia

dmesg

[    5.896505] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  450.66  Wed Aug 12 19:37:58 UTC 2020
[    5.947554] [drm] [nvidia-drm] [GPU ID 0x00000800] Loading driver
[    5.947559] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:08:00.0 on minor 0
[    6.031959] audit: type=1130 audit(1598214227.195:21): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nvidia-persistenced comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    6.034669] usb 1-5: set resolution quirk: cval->res = 384
[    6.034934] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
[    6.119775] uvcvideo 1-5:1.0: Entity type for entity Extension 4 was not initialized!
[    6.119779] uvcvideo 1-5:1.0: Entity type for entity Extension 6 was not initialized!
[    6.119781] uvcvideo 1-5:1.0: Entity type for entity Extension 7 was not initialized!
[    6.119783] uvcvideo 1-5:1.0: Entity type for entity Processing 2 was not initialized!
[    6.119785] uvcvideo 1-5:1.0: Entity type for entity Extension 3 was not initialized!
[    6.119787] uvcvideo 1-5:1.0: Entity type for entity Camera 1 was not initialized!
[    6.119882] input: UVC Camera (046d:0825) as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-5/1-5:1.0/input/input32
[    6.119971] usbcore: registered new interface driver uvcvideo
[    6.119972] USB Video Class driver (1.1.1)
[    6.135659] usbcore: registered new interface driver snd-usb-audio
[    7.092020] audit: type=1103 audit(1598214228.255:22): pid=541 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_env,pam_permit acct="lightdm" exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success'
[    7.114373] audit: type=1130 audit(1598214228.278:23): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@976 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.124372] audit: type=1101 audit(1598214228.288:24): pid=545 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_permit,pam_time acct="lightdm" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    7.124392] audit: type=1103 audit(1598214228.288:25): pid=545 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=? acct="lightdm" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[    7.124425] audit: type=1006 audit(1598214228.288:26): pid=545 uid=0 old-auid=4294967295 auid=976 tty=(none) old-ses=4294967295 ses=1 res=1
[    7.743903] igb 0000:06:00.0 enp6s0: igb: enp6s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[    7.956953] IPv6: ADDRCONF(NETDEV_CHANGE): enp6s0: link becomes ready
[    9.320055] usb 5-4: device descriptor read/64, error -110
[   24.893783] usb 5-4: device descriptor read/64, error -110
[   25.123356] usb 5-4: new high-speed USB device number 4 using xhci_hcd
[   30.440070] usb 5-4: device descriptor read/64, error -110
[   46.013782] usb 5-4: device descriptor read/64, error -110
[   46.120071] usb usb5-port4: attempt power cycle
[   46.763345] usb 5-4: new high-speed USB device number 5 using xhci_hcd
[   51.863777] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   57.197078] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   57.403701] usb 5-4: device not accepting address 5, error -62
[   57.526684] usb 5-4: new high-speed USB device number 6 using xhci_hcd
[   62.530134] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   67.863370] xhci_hcd 0000:09:00.3: Timeout while waiting for setup device command
[   68.070345] usb 5-4: device not accepting address 6, error -62
[   68.070416] usb usb5-port4: unable to enumerate USB device
[   71.757209] kauditd_printk_skb: 5 callbacks suppressed

如果您需要更多信息,请告诉我。这个问题一直让我抓狂。

答案1

事实证明,我的屏幕闪烁问题是由我的合成器:picom 引起的。我通过在 picom 配置文件中将后端从 glx 更改为 xrender 解决了这个问题。

答案2

您是否尝试过切换到开源驱动程序?由于处理这些问题的人员数量较多,因此出现问题的可能性较小。如果没有,可能只是您的显卡没有获得足够的电量。

相关内容