wiiznokes / fan-control

Control your fans with different behaviors
GNU General Public License v3.0
159 stars 11 forks source link

Fan not set to inactive when disconnecting on Windows #50

Open wiiznokes opened 11 months ago

wiiznokes commented 11 months ago

Problem

When disconnecting, fan should be set to inactive. Also, when relaunching the app after disconnecting, my CPU fan can not be set to inactive anymore, but his percentage can be changed.

Steps

Possible Solution(s)

maybe try to catch the kill signal on the windows C# server. The code should be non blocking if we do that.

Notes

No response

Version

No response

wiiznokes commented 11 months ago

I think a fix would need to come from lhm, or the capture of the kill signal will need to come from Rust. When using ctrl + c from the command line, windows code is shutdown properly tho.

Subscribing from either cancel process AND endSession on C# doesn't stop this bug.

wiiznokes commented 11 months ago

When using ctrl + c from the command line, windows code is shutdown properly tho.

Execpt for #55