I have a G7BTS remote controller, which has both keyboard and multimedia buttons. Most of its buttons work well except "OK" button.
The OK button has a keycode 353, which means KEY_SELECT. But my ubuntu 20.04 does not recognize it.
Below are some researches I have done:
sudo evtest
output:
/dev/input/event9: G7BTS Keyboard
/dev/input/event10: G7BTS Mouse
/dev/input/event11: G7BTS Consumer Control
/dev/input/event12: G7BTS System Control
grep "" /sys/class/input/event11/device/id/*
output:
/sys/class/input/event11/device/id/bustype:0005
/sys/class/input/event11/device/id/product:0041
/sys/class/input/event11/device/id/vendor:045e
/sys/class/input/event11/device/id/version:0300
sudo evtest /dev/input/event11
output:
Testing ... (interrupt to exit)
Event: time 1640250050.701930, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0041
Event: time 1640250050.701930, type 1 (EV_KEY), code 353 (KEY_SELECT), value 1
Event: time 1640250050.701930, -------------- SYN_REPORT ------------
/etc/udev/hwdb.d/60-keyboard.hwdb
I tried to remap OK button to 'enter'.
60-keyboard.hwdb file content:
# G7BTS
evdev:input:b0005v045Ep0041*
KEYBOARD_KEY_c0041=enter
sudo udevadm hwdb --test='evdev:input:b0005v045ep0041*'
output:
KEYBOARD_KEY_c0041=enter
So far, I still cannot see any output in xev when I press OK button.
Any suggestions and help will be appreciated.