I have a Rii i25 mini remote. I hade the rf powerbutton (lower left) remapped so it wouldn’t shut down my Vero4K+, it tends to get pressed accidentally. Since an update this remapping is no longer working, but I can’t figure out how to fix it! Looking in the debug log I see:
So you can see the remapping is still active (action is CECActivateSource) but the last line sais logind still gets triggered tot perform a shutdown.
I tried setting HandlePowerKey=ignore in /etc/systemd/logind.conf (even though /etc/systemd/logind.conf.d/000-osmc-ignore-power-key.conf exists with the same setting), didn’t help.
Tried running > systemd-inhibit --what=handle-power-key sleep 1000 < which also didn’t do anything.
Where I’m coming now is editing /lib/udev/rules.d/98-lircd.rules, but I wouldnt know what to do.
Running > ir-keytable -t --device=/dev/input/by-path/platform-xhci-hcd.0.auto-usb-0:1:1.0-event-kbd < the powerkey doesn’t show up.
The keyboard keycode for the button is 142 in showkey and 61663 in keymap.xml.
I’m on Kodi 19.3.0, 20211220osmc
Glad to hear it. When that issue came up before with a power button I didn’t think of a remote sending out a sleep command so I didn’t think to include those lines. Now that we know it is an easy enough fix to make.
On a side note if you wanted to keep that button for a useful power function you could probably keymap (in Kodi) the short press to “CECActivateSource” and map a long press to “CECStandby”. With this accidentally pressing the button when using Kodi should effectively do nothing unless you are accidentally holding it down for over a second.
Run the following command to add the staging repository: echo 'deb http://apt.osmc.tv buster-devel main' | sudo tee /etc/apt/sources.list.d/osmc-devel.list
Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
Your system should have have received the update.
Please see if the issue is resolved.
I also recommend you remove /etc/apt/sources.list.d/osmc-devel.list after updating.
I’d also recommend you deactivate the staging repository. You can do so with the following command: sudo rm /etc/apt/sources.list.d/osmc-devel.list.
Please note that we will automatically disable this update channel after 14 days on your device in case you forget to do so to ensure that your system reverts to the stable update channel.