FR: Ability to prevent FanControl window from opening window after waking PC
Every time I wake my PC from sleep, the FanControl window opens and doesn't minimize by itself. Start minimized is enabled.
Can this be prevented somehow, so the window remains minimized to tray?
Do you get any popup error when the window is opened up automatically?
Currently there are no errors when resuming from sleep.
Sent from Nine
Van: "Rem0o @.)" @.> verzonden: woensdag 24 januari 2024 02:49 Aan: Rem0o/FanControl.Releases Cc: hapklaar; Author Onderwerp: Re: [Rem0o/FanControl.Releases] FR: Ability to prevent FanControl window from opening window after waking PC (Issue #2265)
Do you get any popup error when the window is opened up automatically? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Strangely enough when I just woke the PC, the window did not pop up... Should it only happen when there are errors?
Should it only happen when there are errors?
Yes, well, if some part of the program asked to show a dialog, which upon wake from sleep to happen automatically, is an error in the refresh process .
Today it opened again after resuming from sleep. Nothing in the error log. Window appears like this:
The bottom notification Configuration loaded: userConfig.json kept dropping down and reappearing. That eventually stopped. Maybe that is relevant?
@hapklaar that means the app refreshed for every time that snackbar popped up, which means upon waking from sleep the app can't get hold of all the sensors it had before going to sleep.
Ah I see. The level of sleep might play a part here.
Would it be possible to do this in the background and not show the screen?
The intention is to only show the window if it couldn't restore properly, hence functionality was not restored, needing attention.
In your case there seem to be a bug. I will take a look.
Any log.txt?
I made a debug version of the exe with logs of the whole wake from sleep sequence, if you could run that, reproduce the wake from sleep problem, then send back the logs.
sure, will do. Will it write to log.txt in the exe's directory?
yes
Today when I woke the pc from sleep (16:41), no FanControl window was opened, but I noticed after a while my radiator fans were spinning louder than they should. I opened FanControl from systray (16:51) and was greeted with a message that not all sensors were detected. After clicking refresh once, this was fixed.
So not the original issue I was facing, but maybe it is still useful.
I enclosed the log log.txt
This tells me it takes more than 30 seconds for your system to be able to get back the sensors after sleep. When waking from sleep, fancontrol will refresh every 5 seconds for 30 seconds until all sensors that were previously there before sleep are restored. Maybe in your case that's just not enough, which is surprising.
I made a debug version of the exe with logs of the whole wake from sleep sequence, if you could run that, reproduce the wake from sleep problem, then send back the logs.
Just to let you know. I haven't had the issue since I installed your debug version. Could the debugging itself have influence?
I have the same problem and occasionally need to manually refresh the sensor, is there a solution now?