[CLIENT] prevents win10 from screen locking, always

x Kuro x·3/8/2018, 8:05:57 PM·1 votes·714 views

The new league client STILL has a bug, where it always holds a display media lock, no matter what it is doing, which prevents the computer from screen locking (and sleeping). PLEASE fix this. (see powercfg -requests output below)

As a workaround, one can override the power config requests to stop this, but it must be done every single time the LoL client is patched, which is super annoying. The work around is to enter (in an administrator cmd.exe shell), a line like this.. (but it must match the path in your output)

powercfg -requestsoverride PROCESS "\Device\HarddiskVolume5\Games\League of Legends\RADS\projects\league_client\releases\0.0.0.129\deploy\LeagueClientUx.exe" system


C:\Windows\system32>powercfg -requests DISPLAY: [PROCESS] \Device\HarddiskVolume5\Games\League of Legends\RADS\projects\league_client\releases\0.0.0.129\deploy\LeagueClientUx.exe Playing video

SYSTEM: [DRIVER] Focusrite USB Audio (FocusriteUSB\Audio&Adapter\1&66de801&0&id:0000000012358202) An audio stream is currently in use.

AWAYMODE: None.

EXECUTION: None.

PERFBOOST: None.

ACTIVELOCKSCREEN: None.

1 Comments

TheMadScientist4/14/2018, 8:05:47 AM1 votes

I m having the exact same problem. It really annoying cause I never turn off my computer. This lower my monitors life.

PS C:\WINDOWS\system32> powercfg /requests DISPLAY: [PROCESS] \Device\HarddiskVolume5\Games\League of Legends\RADS\projects\league_client\releases\0.0.0.139\deploy\LeagueCl ientUx.exe Playing video

SYSTEM: [DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_1220&SUBSYS_1458A182&REV_1000\4&6e312be&0&0001) An audio stream is currently in use.

AWAYMODE: None.

EXECUTION: None.

PERFBOOST: None.

ACTIVELOCKSCREEN: None.

PS C:\WINDOWS\system32>

Edit After some more search I found the below solution in this post

{quoted}

I finally troubleshooted this issue and have a quick, easy, and permanent solution for everyone.

  1. Open an escalated command prompt window (run as administrator)

  2. Run "powercfg -requests" (no quotes) 2a. Here you'll see of processes and drivers disabling power mangement. Here's what we're looking for: DISPLAY: [PROCESS] \BLAH\BLAH\BLAH\LeagueClientUx.exe Playing video

  3. To fix this run "powercfg -requestsoverride PROCESS LeagueClientUx.exe DISPLAY"

  4. To verify you did this right you can run "powercfg -requestsoverride" and it should look like this: [SERVICE]

    [PROCESS] LeagueClientUx.exe DISPLAY

    [DRIVER]

  5. If you need to remove the rule for some reason run the command without the DISPLAY syntax "powercfg -requestsoverride PROCESS LeagueClientUx.exe"

This may differ in the future, but the "powercfg -requests" command should show you what you need to override.