Hello
I have an Xbox one remote control works well with OSMC.
I want some kind of “standby” script writing to exit Media Center, Bluetooth and conman but again to start it.
the e.g looks like this:
IF systemctl runing Media Center & Bluetooth & conman then stop
else
systemctl start Media Center & Bluetooth & conman
Unfortunately, as my knowledge it is not from you can help me there?
and I want the script to start then when I use the Power/Xbox button press on the remote.
Can I ask what it is you’re trying to achieve with your “standby” function ? The Pi doesn’t have a true standby mode, and just stopping mediacenter will not turn off the HDMI signal, although that is possible using the tvservice command.
That’s because it doesn’t truly send the device into “standby”. You probably don’t want it to because then, the only way to bring it out of “standby” is to pull the plug and plug it back in or use some other hardware solution. The pi was not designed to be turned off/on.