You are not logged in.

#1 2020-05-07 20:12:23

bentinata
Member
Registered: 2020-05-07
Posts: 1

How to properly remap scancodes to keycodes using hwdb?

Hi everyone.

I'm using a 60% keyboard and want to remap fn+number keys.
Since "evtest" has no "MSC_SCAN" output, I'm using "showkey --scancodes".
This is Fn+1 would output:

0xe0 0x4c
0xe0 0xcc

I assume the "4c" is the scancode, so I could just make /etc/udev/hwdb.d/90-mine.hwdb with:

evdev:input:#
 KEYBOARD_KEY_4c=f1

But this is not working. Not sure how to debug it.
"udevadm info /dev/input/by-path/*-usb-*-kbd | grep KEYBOARD_KEY" already print my configurations.

Thanks.

Offline

Board footer

Powered by FluxBB