Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Fixes CPU fan running at 100% after waking up from suspend/hibernate
- # in Ubuntu 13.04 (or Linux kernel 3.8 in general)
- #
- # Save this as /etc/pm/sleep.d/99fixcpufan.sh
- # and mark it as executable (sudo chmod +x /etc/pm/sleep.d/99fixcpufan.sh)
- case "$1" in
- hibernate|suspend)
- ;;
- thaw|resume)
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device0/cur_state;
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device1/cur_state;
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device2/cur_state;
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device3/cur_state;
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device4/cur_state;
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device5/cur_state;
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device6/cur_state;
- echo -n 0 > /sys/devices/virtual/thermal/cooling_device7/cur_state;
- ;;
- *)
- exit 0
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement