如何在三星 90X3A 上启用显示器亮度键盘快捷键?

如何在三星 90X3A 上启用显示器亮度键盘快捷键?

我设置了三星 90X3A从头开始(使用 BIOS 引导以避免已知的相关问题Fn),并且我在启用屏幕亮度键( +F2Fn+ )时遇到问题F3

目前状态:

  • 手动设置亮度的工作原理:

    sudo tee /sys/class/backlight/intel_backlight/brightness <<< 1000
    sudo tee /sys/class/backlight/acpi_video0/brightness <<< 50
    
  • xbacklight作品:

    $ xbacklight -get
    100.000000
    
  • Fn+F2Fn+F3被正确检测:

    $ sudo evtest /dev/input/event0
      Input driver version is 1.0.1
    Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab41
    Input device name: "AT Translated Set 2 keyboard"
    Supported events:
    […]
    Event code 224 (KEY_BRIGHTNESSDOWN)
    Event code 225 (KEY_BRIGHTNESSUP)
    […]
    Event: time […], type 4 (EV_MSC), code 4 (MSC_SCAN), value 89
    Event: time […], type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 1
    Event: time […], -------------- SYN_REPORT ------------
    Event: time […], type 4 (EV_MSC), code 4 (MSC_SCAN), value 89
    Event: time […], type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0
    Event: time […], -------------- SYN_REPORT ------------
    Event: time […], type 4 (EV_MSC), code 4 (MSC_SCAN), value 88
    Event: time […], type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 1
    Event: time […], -------------- SYN_REPORT ------------
    Event: time […], type 4 (EV_MSC), code 4 (MSC_SCAN), value 88
    Event: time […], type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 0
    Event: time […], -------------- SYN_REPORT ------------
    
  • ACPId 正在运行:

    $ systemctl is-active acpid
    active
    
  • xmodmap不同意evtest(但请参阅下面尝试的解决方法):

    $ xmodmap -pke | egrep '224|225'
    keycode 224 = XF86Messenger NoSymbol XF86Messenger
    keycode 225 = XF86Search NoSymbol XF86Search
    

但是,屏幕亮度不会改变。

有很多关于处理这个问题和类似问题的建议。这是我已经尝试过的:

其他可能相关的系统信息:

  • X进程树:

    $ ps af -e --format user,cmd | sed "s/$USER/user  /g"
    USER     CMD
    […]
    root     /usr/bin/lightdm
    root      \_ /usr/lib/xorg-server/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
    root      \_ lightdm --session-child 13 20
    user          \_ awesome
    user              \_ logger --priority user notice --tag xprofile-user
    user              \_ logger --priority user error --tag xprofile-user
    user              \_ xss-lock slock
    user              \_ cbatticon
    

答案1

现在我正在解决这个问题硬编码命令来处理 Awesome WM 中的 XF86 事件

awful.key({}, "XF86MonBrightnessDown", function () awful.util.spawn_with_shell("xbacklight -dec 5") end),
awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn_with_shell("xbacklight -inc 5") end),

我仍然坚持寻找一种独立于窗口管理器来处理这个问题的解决方案。

相关内容