2021-06-02, 00:04
I'd like to map the power button on my Packard Bell Remote Control / USB receiver to display the power menu rather than shutting down Kodi altogether.
I am familiar with custom mapping, and have used the keymap editor add on already to remap the blue remote button... E.g
<keymap>
<global>
<keyboard>
<key id="254">RunScript(script.audio.profiles,0)</key> <!-- rotates through the profiles -->
</keyboard>
</global>
</keymap>
The problem I am having is that I am unable to discover the "key ID" for the power off button using the keymap editor as expected. Is there another method that I can use to detect this?
https://github.com/torvalds/linux/blob/m...x10-or2x.c
^^ I've discovered a reference to the remote control driver here, but unfortunately adding either of the following lines hasn't worked:
<key id="0x02">ActivateWindow(shutdownmenu)</key> <!-- prevents shutdown button from powering off machine -->
<key id="2">ActivateWindow(shutdownmenu)</key> <!-- prevents shutdown button from powering off machine -->
I am familiar with custom mapping, and have used the keymap editor add on already to remap the blue remote button... E.g
<keymap>
<global>
<keyboard>
<key id="254">RunScript(script.audio.profiles,0)</key> <!-- rotates through the profiles -->
</keyboard>
</global>
</keymap>
The problem I am having is that I am unable to discover the "key ID" for the power off button using the keymap editor as expected. Is there another method that I can use to detect this?
https://github.com/torvalds/linux/blob/m...x10-or2x.c
^^ I've discovered a reference to the remote control driver here, but unfortunately adding either of the following lines hasn't worked:
<key id="0x02">ActivateWindow(shutdownmenu)</key> <!-- prevents shutdown button from powering off machine -->
<key id="2">ActivateWindow(shutdownmenu)</key> <!-- prevents shutdown button from powering off machine -->