Linux 内核 4.x 在我的笔记本电脑上引入了屏幕亮度问题,我无法使用各种启动参数及其组合来修复该问题。每当屏幕重新打开时就会出现该问题。幸运的是,我找到了一种通过简单命令解决问题的方法。
我现在想做的是每当屏幕打开时自动运行此命令。有什么办法可以做到这一点吗?acpi_listen
未检测到屏幕状态变化。
答案1
一个不太好的解决方案是进行民意调查。
$ xset q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000002
XKB indicators:
00: Caps Lock: off 01: Num Lock: on 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: off
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 600 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffffff
Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,built-ins
DPMS (Energy Star):
Standby: 600 Suspend: 600 Off: 600
DPMS is Enabled
Monitor is On
会告诉您显示器是打开还是关闭。您可以每 5 秒启动一次脚本,看看是否从“监视器关闭”变为“监视器打开”。