Windows: Use Powercfg API for Requests

Want something added? Ask for it here.
Post Reply
GLomax
Newbie
Newbie
Posts: 1
Joined: August 29th, 2020, 11:59 am

Windows: Use Powercfg API for Requests

Post by GLomax »

Using the Powercfg API requests to keep a Windows system in Wake mode (no sleep while SABnzbd is loaded) would allow a user to Override the request and allow the system to go to sleep.

A command such as:

powercfg /requestsoverride process sabnzbd.exe system awaymode

in a script could be scheduled to allow a Windows system to go to sleep while sabnzbd.exe is active. The alternative is to kill the process with a command: taskkill /f /im sabnzbd.exe
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Windows: Use Powercfg API for Requests

Post by safihre »

You can also just disable sabnzbd keeping your system awake, it's in Config Specials :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply