Guest User

Ubuntu Raring (Kernel 3.8) CPU fan fix

a guest
Mar 27th, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. case "$1" in
  4.     hibernate|suspend)
  5.         ;;
  6.     thaw|resume)
  7.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device0/cur_state;
  8.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device1/cur_state;
  9.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device2/cur_state;
  10.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device3/cur_state;
  11.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device4/cur_state;
  12.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device5/cur_state;
  13.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device6/cur_state;
  14.         echo -n 0 > /sys/devices/virtual/thermal/cooling_device7/cur_state;
  15.         ;;
  16.     *)
  17.         exit 0
  18.         ;;
  19. esac
Advertisement
Add Comment
Please, Sign In to add comment