hwdb: Enable JP-IK LEAP W502's touchpad toggle key
authorJian-Hong Pan <jhp@endlessos.org>
Fri, 17 May 2024 03:32:30 +0000 (11:32 +0800)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 May 2024 05:24:20 +0000 (14:24 +0900)
commit5ccd8ab263e1e2f75ade9b77b1b79ec8bb3074b2
treec92be511c5a9601c1b28164f4be62e941f27cfec
parent1cd53a1f91653a4b4565ba2073263ad1bbf88a48
hwdb: Enable JP-IK LEAP W502's touchpad toggle key

The laptop JP-IK LEAP W502 has touchpad toggle key (Fn+F9), but it does
not work. Because, the scancode maps to a wrong key code:

Event: time 1715846095.224900, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9d
Event: time 1715846095.224900, type 1 (EV_KEY), code 97 (KEY_RIGHTCTRL), value 1
Event: time 1715846095.224900, -------------- SYN_REPORT ------------
Event: time 1715846095.230985, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1715846095.230985, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1715846095.230985, -------------- SYN_REPORT ------------
Event: time 1715846095.232903, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1715846095.232903, type 1 (EV_KEY), code 85 (KEY_ZENKAKUHANKAKU), value 1
Event: time 1715846095.232903, -------------- SYN_REPORT ------------

Map the scancode 76 to KEY_F21 to enable the touchpad toggle key.
hwdb.d/60-keyboard.hwdb