DellFanManagement icon indicating copy to clipboard operation
DellFanManagement copied to clipboard

Manual mode stops working after laptop wakes up from sleep or hibernate

Open bedrin opened this issue 3 years ago • 3 comments

Thanks for great tool. I've noticed that when my laptop hibernates and wakes up, the fans are always off. It works fine after I enable and disable EC fan control

bedrin avatar Jan 15 '22 10:01 bedrin

That's normal. Going out of wake will reset everything, that's expected.

A simple event sub to https://docs.microsoft.com/en-us/dotnet/api/microsoft.win32.systemevents.powermodechanged?redirectedfrom=MSDN&view=dotnet-plat-ext-6.0

That reapply everything when waken back from sleep will do the trick, I do the same in an other app.

Rem0o avatar Jan 17 '22 21:01 Rem0o

Another nice (optional) feature would be to put fans to manual-off mode automatically before putting laptop to sleep

bedrin avatar Feb 02 '22 15:02 bedrin

@bedrin you can't reliably execute code "before" going to sleep from a dotnet app as far as I know. You can catch the event, but your process will get paused at any given point when the sleep state will come active. You can't "hold" it back to execute code.

Rem0o avatar Feb 02 '22 21:02 Rem0o