Fn 键的扫描码

Fn 键的扫描码

我在重新映射 Dell xps 9370 上的 Fn 键时遇到问题。软件:Arch linux + Wayland。我想将亮度调高/调低键重新映射到向上/向下翻页,但我找不到它们的扫描码。这是按下 brig up 键时 showkey 的输出:

#>> showkey --scancodes               
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
0x9c 
0xe0 0x54 0xe0 0xd4

evtest 的输出:

#>> evtest /dev/input/event13 
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x6 version 0x0
Input device name: "Video Bus"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 224 (KEY_BRIGHTNESSDOWN)
    Event code 225 (KEY_BRIGHTNESSUP)
    Event code 227 (KEY_SWITCHVIDEOMODE)
    Event code 241 (KEY_VIDEO_NEXT)
    Event code 242 (KEY_VIDEO_PREV)
    Event code 243 (KEY_BRIGHTNESS_CYCLE)
    Event code 244 (KEY_BRIGHTNESS_ZERO)
    Event code 245 (KEY_DISPLAY_OFF)
Properties:
Testing ... (interrupt to exit)
Event: time 1523197124.754306, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 1
Event: time 1523197124.754306, -------------- SYN_REPORT ------------
Event: time 1523197124.754340, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 0
Event: time 1523197124.754340, -------------- SYN_REPORT ------------

我的 hwdb 文件如下:

evdev:*
  KEYBOARD_KEY_d4=pageup

我尝试了“d4、53、oe54、54d4”和其他扫描码,但都不起作用。其他键都正常工作,重新映射成功。我如何找到这些键的实际扫描码?

相关内容