Fn键的扫描码


2

我在我的戴尔xps 9370上重新映射Fn键时出现问题。软件:Arch linux + Wayland。我想重新设置亮度上/下键以向上/向下翻页,但我找不到他们的扫描码。这是showkey的输出,带有按下的brig up键:

#>> 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'和其他扫描码,没什么用。使用其他键都可以正常工作,重新映射成功。我怎么能找到这个键的实际扫描码?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.