moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
9.28k stars 546 forks source link

Shutdown client machine via moonlight #1162

Open thomasfjen opened 5 months ago

thomasfjen commented 5 months ago

I'm currently using Moonlight on a htpc with linux, as it's mostly controlled with a controller it would be nice to be able to shutdown the client machine within moonlight. I prefer using a htpc as it has the lowest encoding time, but you're sometimes required to pickup the keyboard. I currently start the machine with wol and have moonlight configured as autostart in fullscreen mode.

Describe the solution you'd like A Button/Option to shutdown the client controllable with the gamepad, similiar to the gamepad ui of steam.

Describe alternatives you've considered Currently i use home assistant to execute a ssh command to shut down the client machine. But it's a hassle to configure and a simple button would help. I also use home assistant to start the machine, but wol is much easier to configure than ssh shutdown.

apoklyps3 commented 4 months ago

You can set commands in Sunshine settings for when streaming an app starts/ends, the downside is that quiting the stream requieres you to close the running app too to get the command executed. adding a custom app/game with shoutdown commands is also an option

gschintgen commented 3 months ago

@apoklyps3 I think you misunderstood the issue: it’s about shutting down the client (with moonlight on it), not the host (with sunshine).

I’m in the same boat as the OP. I worked around it by adding a shutdown via ssh button to my already existing node-red server.