/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

    Archives

    Flickr photostream

    Vikram Dev College Jeypore -----------------KORAPUT--------JEYPORE---ORISSA----- (24)
    44596
    IMG_4233.JPG
    Les vandales peuvent être mignons tout plein... #rennes #street #streets #streetart #graffiti #sticker #slaps #yvesduteil #vandal
    http://Ultra.SSF.Asia A North Korean couple sits on the side of the road next to two sculptures near the town of Samsu in Ryanggang province. See more AP pictures and read about what we saw during our 2,150 kilometer road trip across North Korea at http:/
    #UDRSouthernFallTrunkShow #udr #ultimatedressingroom #theultimatedressingroom
    GBM 380 Week 3 Individual Assignment Concepts of Culture
    すべての写真-15
    Round ended balance beams at Bogg’s Lock
    Flickr_001481
    IMG-20141023-WA0025

    Meta meta :)