-
Notifications
You must be signed in to change notification settings - Fork 67
Description
I have a Lenovo ThinkPad T14 Gen 4 with a i7-1335U running Ubuntu 24.04 and I've compiled thinkfan from source. The tool seems to work fine, except for the fact that when I put the laptop into sleep the fans don't stop running. This makes sleep pretty unusable as you can imagine.
Maybe important to add this system only supports s2idle or S0 sleep. I've tried many things but could not get it to work properly. After much trial and error I found a workaround:
sudo systemctl edit thinkfan-sleep
# add the following line
[Service]
ExecStart=sh -c "echo 'disable' > /proc/acpi/ibm/fan"
# reload the deamon afterwards
sudo systemctl daemon-reload
# If all is well you should see your override using cat
sudo systemctl cat thinkfan-sleep
# and that the override has run after a suspend cycle
sudo systemclt status thinkfan-sleepI was a bit worried that this is potentially unsafe, but if I just watch /proc/acpi/ibm/fan I see the fan's will be enabled automatically after waking from suspend so for me this workable I think.
But I was wondering why this happens in the first place and if there is no other proper way to fix it perhaps? In any case this workaround might be useful for other people struggling with the same issue.