2

followed this great instruction https://askubuntu.com/a/1019659/786192

but it didn't work for me. I then took a more aggressive approach and edited /lib/udev/hwdb.d/60-keyboard.hwdb directly by adding below

evdev:input:b0005v004cp0267*
 KEYBOARD_KEY_c00b8=delete      # map EJECT to Delete

then systemd-hwdb update and udevadm trigger, still no luck ...

i've got the bus, vender, product all right, how come it's still not working? confused

Bo Chen
  • 203

2 Answers2

2

It doesn't work because you wrote the hex codes in lowercase, for the vendor ID and for the keycode.

Try with:

evdev:input:b0005v004Cp0267*
 KEYBOARD_KEY_C00B8=delete      # map EJECT to Delete

and then:

sudo systemd-hwdb update
sudo udevadm trigger
1

For Apple Wireless Keyboard, the vendor and product numbers are different, so I used following content of the /etc/udev/hwdb.d/65-keyboard-apple.hwdb file:

evdev:input:b0005v05ACp0256*
 KEYBOARD_KEY_C00B8=delete      # map EJECT to Delete
bam
  • 11