Change power off key in Raspberry Pi

  • Hello,

    I have installed Libreelec in my Raspberry Pi. It works great playing videos and music.

    As Raspberry has not suspend mode, I want to switch off the TV (CEC) with remote power off key. And then power on the TV (CEC) pushing again the remote power key.

    Is this possible?

    Best regards.

  • Hello, I am using a Sapphire remote with a USB receiver. It works great all buttons, but I want to change the power key to not shutdiwn the pi and to power on/off the TV with CEC.

    Regards.