Solved [CEC] Remote power button not shutting down but suspending?
#1
I have recently redone my Kodi setup (latest LibreELEC, from scratch) but I am finding that pressing the power button on my TV remote (I'm relying on CEC, which works nicely) suspends my HTPC rather than shutting it down. I've turned on debugging but have not found a key ID for this particular button, so I don't know how to reconfigure it (or if it's possible altogether).

This is what I'm seeing in the Kodi log when I press the power button on the remote:
Quote:22:21:58.726 T:140052967782080   DEBUG: LogindUPowerSyscall: Received PrepareForSleep with arg 1
22:21:58.726 T:140052967782080   DEBUG: ------ Window Init (DialogBusy.xml) ------
22:21:58.726 T:140052735129344   DEBUG: CAnnouncementManager - Announcement: OnSleep from xbmc
22:21:58.726 T:140052735129344   DEBUG: GOT ANNOUNCEMENT, type: 8, from xbmc, message OnSleep
22:21:58.726 T:140052967782080  NOTICE: OnSleep: Running sleep jobs
22:21:58.726 T:140052967782080  NOTICE: OnSleep: Stopping lirc
22:21:58.726 T:140052967782080    INFO: LIRC SetEnabled: disabled
22:21:58.726 T:140052967782080   DEBUG: CApplication::CloseNetworkShares: Closing all network shares
22:21:58.726 T:140052967782080   DEBUG: LogindUPowerSyscall - delay lock released
22:21:58.785 T:140052967782080    INFO: LIRC SetEnabled: disabled
22:21:58.811 T:140051769980672   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: System.OnSleep  - data: null

I've grepped the remote.xml but power is set to ShutDown(), which I've configured in Kodi's settings menu (if that is indeed the same setting) to shut down, and not to suspend (which is clearly what OnSleep seems to do):
Quote:mnemosyne:~/.kodi/userdata/keymaps # grep -i power *
remote.xml:      <power>ShutDown()</power>

How can I change this?

Edit: I obviously forgot that I can configure the CEC settings in the Kodi settings menu - ticking a few boxes and altering a few options did the trick. Sorry about the fuss.
* MikroTik RB5009UG+S+IN :: ZyXEL GS1900-8HP v1 :: EAP615-Wall v1 :: Netgear GS108T v3 running OpenWrt 23.05
* LibreELEC 11:  HTPC Gigabyte Brix GB-BXA8-5545 with CEC adapter, Sony XR-64A84K :: Desktop AMD Ryzen 7 5800X / Sapphire Nitro+ Radeon 6700XT  / 27" Dell U2717D QHD
* Debian Bookworm x86_64: Celeron G1610, NFS/MariaDB/ZFS server
* Blog
Reply

Logout Mark Read Team Forum Stats Members Help
[CEC] Remote power button not shutting down but suspending?0