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

Sleep option, instead of power down #2

Open
mrsilver76 opened this issue Oct 19, 2024 · 1 comment
Open

Sleep option, instead of power down #2

mrsilver76 opened this issue Oct 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mrsilver76
Copy link
Owner

It should be easy to configure the script to sleep instead of shutdown.

For Windows, rundll32.exe powrprof.dll,SetSuspendState Sleep may need to be used (even though it's not usually recommended). This is because any other solution will require downloading a seperate program.

For Linux, systemctl suspend should work.

@mrsilver76 mrsilver76 added the enhancement New feature or request label Oct 19, 2024
@mrsilver76 mrsilver76 changed the title Hibernate option Sleep option, instead of power down Nov 4, 2024
@mrsilver76
Copy link
Owner Author

For Linux, look at rtcwake instead of systemctl suspend.

Need to remember that using server uptime cannot be reliably used any more (since the server hasn't been rebooted) - so the date and time needs to be stored somewhere.

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

No branches or pull requests

1 participant