Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bedrin opened this issue Jan 15, 2022 · 3 comments
Open

Comments

@bedrin
Copy link

bedrin commented Jan 15, 2022

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

@Rem0o
Copy link

Rem0o commented Jan 17, 2022

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.

@bedrin
Copy link
Author

bedrin commented Feb 2, 2022

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

@Rem0o
Copy link

Rem0o commented Feb 2, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants