please stop preventing windows "sleep" mode

x Kuro x·6/30/2019, 9:08:42 PM·1 votes·734 views

Whenever I have the league client running, my computer will not sleep.

Can we PLEASE get a fix within the league client (chromium/electron?) to stop it from preventing windows sleep?


These are the powerconfig requests that are the problem....

C:\WINDOWS\system32>powercfg -requests DISPLAY: [PROCESS] [PROCESS] \Device\HarddiskVolume2\Riot Games\League of Legends\LeagueClientUx.exe Playing video

EXECUTION: [SERVICE] [PROCESS] \Device\HarddiskVolume2\Riot Games\League of Legends\LeagueClientUx.exe WebRTC has active PeerConnections


One workaround is to start an administrator CMD.EXE and use powercfg -requestsoverride to tell windows power management to ignore the league client.. but the override has to be re-done everytime there is a new client version, because it uses the exact EXE path... such as:

C:\Windows\system32>powercfg -requestsoverride process "C:\Riot Games\League of Legends\LeagueClientUx.exe"


Another workaround is to use Windows Group Policy.. though I warn that doing this will also mean that video applications can't prevent sleep when you're watching netflix or itunes.

Open the Group Policy Editor by clicking Start and typing in gpedit.msc, and then hit Enter.

Open Computer Configuration, Administrative Templates, System, Power Management and then Sleep Settings.

Set Allow Applications to Prevent Automatic Sleep to Disabled. If this is a laptop, there will be two options, one for On Battery and one for Plugged In, so you might want to change both.

0 Comments