Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WoL support #84

Open
Josh5 opened this issue Aug 30, 2023 · 1 comment
Open

WoL support #84

Josh5 opened this issue Aug 30, 2023 · 1 comment
Labels
status:in-review type:enhancement New feature or request for feature enhancement

Comments

@Josh5
Copy link
Collaborator

Josh5 commented Aug 30, 2023

Is your feature request related to a problem?

Running a Steam Headless container can take up a bit of RAM. I would like to reduce the container use when it is not doing anything.

What is your feature request?

I believe we could check for running processes on the desktop. If nothing is running (no Steam games or Moonlight connections), then we can safely assume that the container is "idle". When it is idle for a set period of time, perhaps an hour, we could stop all processes supervisord is running and put the container to sleep with the exception of a small WoL listener service.
When this Listener service is triggered by either Moonlight or Steam Link, it can "wake up" the services again and restart the desktop.

We could either do this completely internally within the container, or we could pass the host Docker socket to the container and have it issue restart commands to itself.

Are there any workarounds?

We can sort of do this already if the container is run in "host" mode and we use an external WoL listener service to trigger commands. But this will not work if we are using any other Docker network type.

Additional Context

No response

@Josh5 Josh5 added type:enhancement New feature or request for feature enhancement status:awaiting-triage status:in-review and removed status:awaiting-triage labels Aug 30, 2023
@Cheerpipe
Copy link

Cheerpipe commented Oct 26, 2023

I am using a small python script as a service running in the host to listen wol packages. Once I get a wol packet I just run a docker command to start the container. May share the script but i need to polish it before share it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:in-review type:enhancement New feature or request for feature enhancement
Projects
None yet
Development

No branches or pull requests

2 participants