Tianhe Gao

Arch Linux screen flickering(屏幕闪烁)

 1> neofetch --off
 2
 3OS: Arch Linux x86_64
 4Host: HP Laptop 14s-cr0xxx
 5Kernel: 5.17.3-arch1-1
 6Uptime: 4 days, 18 hours, 51 mins
 7Packages: 1479 (pacman)
 8Shell: zsh 5.8.1
 9Resolution: 1920x1080
10DE: Plasma 5.24.4
11WM: kwin
12Theme: Breeze Light [Plasma], Breeze [GTK2]
13Icons: [Plasma], breeze [GTK2/3]
14Terminal: konsole
15Terminal Font: IBM Plex Mono 15
16CPU: Intel i5-8250U (4) @ 3.400GHz
17GPU: Intel UHD Graphics 620
18GPU: AMD ATI Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile
19Memory: 6686MiB / 23924MiB

解决办法:

1sudo vim /etc/default/grub
2sudo grub-mkconfig -o /boot/grub/grub.cfg
3# reboot

/etc/default/grub :

1GRUB_CMDLINE_LINUX_DEFAULT="... i915.enable_psr=0 nomodeset"
2# 或
3GRUB_CMDLINE_LINUX_DEFAULT="... i915.enable_psr=0"

以上办法行不通。

又尝试:

1GRUB_CMDLINE_LINUX_DEFAULT="... nomodeset"

目前看没有屏幕闪烁,不知道以后会怎么样。没有解决,锁屏 20 分钟后开机再次闪烁。

nomodeset 的意思:

The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesn't work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.

来自 https://ubuntuforums.org/showthread.php?t=1613132

<2023-03-31 Fri> 更新:

近期又出现了屏幕闪烁,此前的 GRUB_CMDLINE_LINUX_DEFAULT 参数一直是 loglevel=3 quiet ,现在我加上了 i915.enable_psr=0 。重启后没有屏幕闪烁。一天后,某次笔记本从 Sleep 状态醒来,屏幕又闪烁了。

1$ journalctl -k | grep taint
2
3kernel: Setting dangerous option enable_psr - tainting kernel
4kernel: vboxdrv: loading out-of-tree module taints kernel.
5kernel: vboxdrv: module verification failed: signature and/or required key missing - tainting kernel

从以上输出来看,进行了 i915.enable_psr=0 设置后,让内核被污染(tainted)了。


参考资料


No notes link to this note

Welcome to tell me your thoughts via "email"
UP