Fn 鍵掃描碼

Fn 鍵掃描碼

我在 Dell xps 9370 上重新映射 Fn 鍵時遇到問題。我想將亮度向上/向下鍵重新映射到向上/向下翻頁,但我找不到它們的掃描碼。這是按下 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”和其他掃描碼,但沒有任何效果。其他鍵都工作正常,重新映射成功。我如何找到該鍵的實際掃描碼?

相關內容