/kernel_reloaded/

Author:

Other contacts

Novi članci

Flickr Goodness

Categories

July 3, 2013 @ 9:05

Stop laptop fans from working full speed on Linux after suspend!

 
After restoring most laptops that I work on fans start goind full speed after suspend and resume instead reularing speed as they usually do.
If you are afflicted with this bug then you are probably also very annoyed by this kernel bug
 

There is a simple process to stop this behaviour. First let’s see how many thermal/cooling_devices your system reports, so just do:
 
su -
ls -al /sys/class/thermal/cooling_device*
lrwxrwxrwx. 1 root root 0 Jul 1 11:14 /sys/class/thermal/cooling_device0
lrwxrwxrwx. 1 root root 0 Jul 1 11:14 /sys/class/thermal/cooling_device1
lrwxrwxrwx. 1 root root 0 Jul 1 11:14 /sys/class/thermal/cooling_device2
lrwxrwxrwx. 1 root root 0 Jul 1 11:14 /sys/class/thermal/cooling_device3

 
Some systems have 0-3, some 0-7 and others 0-15, so you need to use correct values in your final script.
 
Here is what you can do to for a quick fix, just issue this command:
 
for i in {0..7}; do echo 0 > /sys/class/thermal/cooling_device$i/cur_state; done
 
and to make things permanent you need to add a script for this:
 
cat > / etc/pm/sleep.d/fan_fix.sh < < EOF
#!/bin/sh
case “$1″ in
thaw|resume)
for i in {0..7}; do echo 0 > /sys/class/thermal/cooling_device$i/cur_state; done
;;
*)
;;
esac
EOF
chmod +x / etc/pm/sleep.d/fan_fix.sh

 
Please notice leading space before “etc”, and remove it.
 

Filed under diy, english, fedora, linux, tips&tricks

  • blahmer anagas

    set get fans at full speed hp linux, how can i set my fans to full speed on my hp 6530b 6730b?

    ^ just for tag spider help

    ok this is good to get those fans down, but if your comp is heating up and you dont like, do the “script” after the ls command, the redo the “script” but replace “0″ with “1″

    Recent Comments

    •  Tomáš Pavel: So I just solder it together and it works? That looks easy.
    • Valent Turkovic: NetVideoHunter (plugin) NetVideoHunter is a Firefox add-on (extension), and you can easily download...
    • Valent Turkovic: Also interesting, Google+ Share – https://addons.mozilla.org/en- US/firefox/addon/google-sha...
    • sf_jeff: Did you look under the “View” tab under the computer on the left?
    • blahmer anagas: set get fans at full speed hp linux, how can i set my fans to full speed on my hp 6530b 6730b? ^ just...

    Archives

    del.icio.us

    Flickr photostream

    User not found

    Meta meta :)