
I recently shared my Linux HTPC/couch gaming build: https://programming.dev/post/50315130
Now, here’s a repository if you want to copy my setup or parts of it.

I recently shared my Linux HTPC/couch gaming build: https://programming.dev/post/50315130
Now, here’s a repository if you want to copy my setup or parts of it.
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.