我使用 Linux 已有一段时间了,从来没有遇到过这个问题。我的屏幕每 1.5 秒闪烁一次。我尝试重新安装 Linux,更改驱动程序(尝试过 495、xserver-xorg-video-nouveau 和 460)并通过 x 服务器设置切换到集成英特尔显卡。我还尝试在 /etc/default/grub 中更改GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
为GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
其他内容,但它只是让我的 gui 停止工作。它发生在(几乎)全新安装上。journalctl 中存在一些问题:
>journalctl -p 0..3
Jan 29 17:13:12 walenty-nitroan51544 kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP4.WLAN], AE_NOT_FOUND (20201113/dswload2-162)
Jan 29 17:13:12 walenty-nitroan51544 kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20201113/psobject-220)
Jan 29 17:13:12 walenty-nitroan51544 kernel: amdgpu 0000:05:00.0: amdgpu: Unsupported power profile mode 0 on RENOIR
Jan 29 17:13:29 walenty-nitroan51544 sddm-helper[1171]: gkr-pam: unable to locate daemon control file
Jan 29 17:13:31 walenty-nitroan51544 kernel: nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
Jan 29 17:13:31 walenty-nitroan51544 kernel: nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
Jan 29 17:13:31 walenty-nitroan51544 kernel: nouveau 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
Jan 29 17:13:31 walenty-nitroan51544 kernel: nouveau 0000:01:00.0: tmr: stalled at ffffffffffffffff
这句话重复了20次。
这些是我的规格:
>dpkg -l *nvidia* | grep ii
ii libnvidia-cfg1-470:amd64 470.86-0ubuntu0.20.04.2 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-470 470.86-0ubuntu0.20.04.2 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-470:amd64 470.86-0ubuntu0.20.04.2 amd64 NVIDIA libcompute package
ii libnvidia-compute-470:i386 470.86-0ubuntu0.20.04.2 i386 NVIDIA libcompute package
ii libnvidia-decode-470:amd64 470.86-0ubuntu0.20.04.2 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-470:i386 470.86-0ubuntu0.20.04.2 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-470:amd64 470.86-0ubuntu0.20.04.2 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-470:i386 470.86-0ubuntu0.20.04.2 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-470:amd64 470.86-0ubuntu0.20.04.2 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-470:amd64 470.86-0ubuntu0.20.04.2 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-470:i386 470.86-0ubuntu0.20.04.2 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-470:amd64 470.86-0ubuntu0.20.04.2 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-470:i386 470.86-0ubuntu0.20.04.2 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-470:amd64 470.86-0ubuntu0.20.04.2 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-470:i386 470.86-0ubuntu0.20.04.2 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii linux-modules-nvidia-470-5.13.0-27-generic 5.13.0-27.29~20.04.1 amd64 Linux kernel nvidia modules for version 5.13.0-27
ii linux-modules-nvidia-470-generic-hwe-20.04 5.13.0-27.29~20.04.1 amd64 Extra drivers for nvidia-470 for the generic-hwe-20.04 flavour
ii linux-objects-nvidia-470-5.13.0-27-generic 5.13.0-27.29~20.04.1 amd64 Linux kernel nvidia modules for version 5.13.0-27 (objects)
ii linux-signatures-nvidia-5.13.0-27-generic 5.13.0-27.29~20.04.1 amd64 Linux kernel signatures for nvidia modules for version 5.13.0-27-generic
ii nvidia-compute-utils-470 470.86-0ubuntu0.20.04.2 amd64 NVIDIA compute utilities
ii nvidia-driver-470 470.86-0ubuntu0.20.04.2 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-470 470.86-0ubuntu0.20.04.2 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-470 470.86-0ubuntu0.20.04.2 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.16~0.20.04.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 470.57.01-0ubuntu0.20.04.2 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-470 470.86-0ubuntu0.20.04.2 amd64 NVIDIA driver support binaries
ii xserver-xorg-video-nvidia-470 470.86-0ubuntu0.20.04.2 amd64 NVIDIA binary Xorg driver
还尝试xrandr
设置不同的刷新率。看来 144.00 的刷新率导致了闪烁。我把刷新率从 144 和 60 来回改了几次,闪烁就停止了。然而,当我第一次改成 60 时,闪烁的频率降低了,但强度却大了很多。这很奇怪。
答案1
解决方案似乎是使用 xrandar 两次 - 将刷新率更改为任何值,然后更改为 144,这是正确的刷新率。
> xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected primary (normal left inverted right x axis y axis)
eDP-1-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 144.00*+ 60.00
1680x1050 144.00
1280x1024 144.00
1440x900 144.00
1280x800 144.00
1280x720 144.00
1024x768 144.00
800x600 144.00
640x480 144.00
> xrandr --output eDP-1-0 --mode 1920x1080 --rate 60
> xrandr --output eDP-1-0 --mode 1920x1080 --rate 144
出于某种原因,这解决了这个问题。我将这些行添加到我的.profile