It seems this is a common problem, but I still cannot find a good solution. After a cold boot, my laptop runs perfectly, but after resuming from suspend, the fan kicks in to 100% and blows out cold air, indicating that the fan isn't responding to the temperature of the laptop components. As proof, here's the output from sensors:

acpitz-virtual-0
Adapter: Virtual device
temp1:        +41.0°C  (crit = +101.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +43.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +43.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +39.0°C  (high = +87.0°C, crit = +105.0°C)

My laptop model is Sony SVE14A290X. I have tried adding a couple different 99fancontrol.d scripts, but none worked so far. pwmconfig also doesn't report a pwm-capable module in my laptop. Please help!

share|improve this question

Unfortunately fancontrol doesn't restore the fan state after suspension. You can write a pm-action(8) resume hook that restarts the fancontrol service:

  1. Create a file /etc/pm/sleep.d/10_fancontrol (e. g. with gksudo gedit):

    #!/bin/sh
    case "$1" in
    resume)
        exec service fancontrol restart;;
    esac
    
  2. Mark it executable:

    sudo chmod +x /etc/pm/sleep.d/10_fancontrol
    
share|improve this answer
    
    
As you're a reputation 1 user: if this answers your question, don't forget to click the grey ☑ under the "0" at the left of this text to accept it, which means "yes, this answer is valid"! – David Foerster Apr 4 '15 at 23:30
1  
fancontrol is not even installed by default (at least in Xubuntu 15.10). – jarno Nov 26 '15 at 13:56

On more recent Ubuntu using systemd, you need a similar script but in /lib/systemd/system-sleep:

#!/bin/bash
case "$1" in
post)
  exec service fancontrol restart;;
esac
share|improve this answer
    
I don't think it worked. – DanMan Sep 5 '16 at 23:07
    
Worked for me. May need to mark it executable – fisk Jul 2 '17 at 8:59
    
This was from another question, but it seems like there was some sort of bug that got fixed in kernel 4.12. If you follow this guide to manually installed the latest kernel (via .debs) this will fix the problem. tecmint.com/upgrade-kernel-in-ubuntu – Benjamin Sep 4 '17 at 16:21

I followed the suggestion for systemd and it worked briefly. It appears to me that it may work only on the first suspend/resume cycle after a cold boot.

I tried restarting the fancontrol service manually but it was 'masked' and permission denied. I tried unmasking it but that did not solve the problem.

Folks have speculated that this issue is a kernel regression. Upon searching it is seen cropping up over the past ten years. Laptops mentioned include Dell, HP, and Lenovo.

I am having the issue on a new Lenovo X1-Carbon, 5th generation, running Ubuntu 16.04.2 LTS Gnome, all updates current, kernel 4.10.0-28-generic.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.