Anti-Sleep not working

Started by jrg63, February 21, 2024, 12:37:12 AM

Previous topic - Next topic

jrg63

I'm having an issue stopping my machine from going to sleep. In Process Lasso, I search for the process that I want to prevent the PC from sleeping when its active, right click on it and select Prevent Sleep -> Prevent PC. I small d appears in the rules column. My power profile is set to sleep after 15m of inactivity and almost always I come back to my PC and find that its asleep even if one of the processes that I have set to disable sleep is active. I can see in the Actions Log that the process was detected and Process Lasso configured for no sleep but it doesn't appear to be working. This was working several months ago without issues as far as I can recall. My config is

AMD ThreadRipper 3970X, 128 GB
Edition   Windows 11 Pro
Version   23H2
Installed on   ‎23/‎6/‎2022
OS build   22635.3209
Experience   Windows Feature Experience Pack 1000.22687.1000.0

Thanks in advance for any help

Jeremy Collake

The small 'd' does not prevent the display from sleeping, just the PC itself. So, are you sure it isn't just your display that is going to sleep?

I know this can be confusing and we have a ticket to consider simplifying the feature.
Software Engineer. Bitsum LLC.

Seturs

Quote from: jrg63 on February 21, 2024, 12:37:12 AMI'm having an issue stopping my machine from going to sleep. In Process Lasso, I search for the process that I want to prevent the PC from sleeping when its active, right click on it and select Prevent Sleep -> Prevent PC. I small d appears in the rules column. My power profile is set to sleep after 15m of inactivity and almost always I come back to my PC and find that its asleep even if one of the processes that I have set to disable sleep is active. I can see in the Actions Log that the process was detected and Process Lasso configured for no sleep but it doesn't appear to be working. This was working several months ago without issues as far as I can recall. My config is

AMD ThreadRipper 3970X, 128 GB
Edition    Windows 11 Pro
Version    23H2
Installed on    ‎23/‎6/‎2022
OS build    22635.3209
Experience    Windows Feature Experience Pack 1000.22687.1000.0

Thanks in advance for any help


Try using the 'Keep PC Awake' or 'Keep Display On' options in Process Lasso. These options will prevent the PC or the display from sleeping for a specified duration, regardless of the process activity.

n300

Sorry for necrophilia  :P
But I have exact the same issue that the "Prevent Sleep" function isn't working at all since I switched from Windows 10 to Windows 11. And yes I have tried both rules "d" and "D".
@Seturs This is not a real solution for me. I also have Power Toys installed, with PowerToys Awake. That works. Basically my PC goes to sleep after 15min idle by power plan. But I want to prevent this AUTOMICALY only if some of my working tools like vmware Horizon (VDI Client to my Company) are active.

This worked perfectly for years in Win 10. But in Win 11 it won't.

Is there a way to fix that?
Many thanks :)

Jeremy Collake

This was an issue caused by changes to Windows 11 that was fixed some time ago in Process Lasso. You should not be encountering it with modern versions. What is the version number shown in menu item "Help / About"?
Software Engineer. Bitsum LLC.

n300

Quote from: Jeremy Collake on June 06, 2025, 07:21:59 PMThis was an issue caused by changes to Windows 11 that was fixed some time ago in Process Lasso. You should not be encountering it with modern versions. What is the version number shown in menu item "Help / About"?

Hi Jeremy,
I think I'm using the latest version i got offered from autoupdate.

Process Lasso Pro v15.1.1.26 x64
Windows 11 (26100)
Engine version: 6270200 - May 27 2025 10:57:53 GMT-5

Jeremy Collake

Is bitsumsessionagent.exe running? The Keep Awake functions depend on that process. If you've disabled the session agent Task Scheduler entry, then that may be the cause. Reinstalling Process Lasso and/or re-enabling that task in the Task Scheduler will likely fix the issue. Let me know!
Software Engineer. Bitsum LLC.

n300

Of course the process is here and running and wasn't disabled

get-process *bits*

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
     90       8     1124       2472       2,64   9712   1 bitsumsessionagent

Jeremy Collake

Does the timed Keep Awake function, as available in the tray menu, work?

We are going to spend some time theorizing what may be happening here and trying to reproduce it, but one other thing you can try is to set the Governor to run as a normal process instead of service. See https://bitsum.com/processlasso-docs/#governor-as-a-process-gaap

Software Engineer. Bitsum LLC.

n300

Thanks for the hint, I'm trying today, if the timed Keep Awake function works properly.
If not, i will try the governor setting.
Keeping you up to date :)

n300

Update from here:
Keep Awake function independently from running processes works.
Next Step: Switched the governor from service to normal process as documented. Will test it now.

n300

New Update:
I think the workaround (gaap) does what it should.
My PC kept power on the whole day und just now I got a "(0x11) Leaving no sleep mode" message when I closed my vmware horizon client which has the "d" rule :)