I have a bluetooth remote device that sends key events to my Pi 5
I have a button on the device that is reported in evtest thus:It was powering off my Pi but I have solved that by editing /usr/share/X11/xkb/symbols/inet and modifying the line:(I changed POWR to XF86AudioMute)
Now my Pi no longer powers off and in python, using pyinput the button is reported as:That's fine but I have another key on the device that in evtest shows up as:but in pyinput it only shows up as <269025048>
I believe I need to map it somehow but I am bewildered as to how this all works. Can someone give me a hand?
I have a button on the device that is reported in evtest thus:
Code:
type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Code:
key <POWR> { [ XF86AudioMute ] };
Now my Pi no longer powers off and in python, using pyinput the button is reported as:
Code:
Key.media_volume_mute
Code:
type 1 (EV_KEY), code 172 (KEY_HOMEPAGE), value 1
I believe I need to map it somehow but I am bewildered as to how this all works. Can someone give me a hand?
Statistics: Posted by jimseng — Fri Mar 28, 2025 12:05 am