this post was submitted on 29 May 2026
44 points (95.8% liked)
Linux
14120 readers
292 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments

the "turn off" that's mentioned, that's handled with CEC; but it turns off only the TV, correct? if it also turns off the player, how do you turn it back on with just a gamepad?
"turn on/off" with CEC turns on/off the TV.
But the scripts are linked to booting/shutdown and sleep/wake. So when you boot or wake the PC, the TV should turn on and when you poweroff or sleep, the TV should turn off.
You can wake the PC from sleep with a gamepad, if your motherboard supports wake with bluetooth or if you have an USB dongle and enable wake with USB from the specific port.
Booting the PC with a gamepad doesn't work unfortunately. If you want to remotely turn on your PC, you can use wake-on-lan (most motherboards should support it but it's rather complex) or boot on AC (again a motherboard option in UEFI, names may vary a bit) combined with a remote/wifi socket or a master/slave socket.
You can also bind the StartCEC and StopCEC scripts to keys. If your PC is turned on, you can then use the respective keys.