moonlight-qt icon indicating copy to clipboard operation
moonlight-qt copied to clipboard

Shutdown client machine via moonlight

Open thomasfjen opened this issue 1 year ago • 2 comments

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.

thomasfjen avatar Jan 22 '24 11:01 thomasfjen

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

apoklyps3 avatar Feb 21 '24 18:02 apoklyps3

@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.

gschintgen avatar Mar 20 '24 19:03 gschintgen