Guest User

Untitled

a guest
Jan 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. acpitz-virtual-0
  2. Adapter: Virtual device
  3. temp1: +45.0°C (crit = +256.0°C)
  4. temp2: +36.0°C (crit = +105.0°C)
  5. temp3: +32.0°C (crit = +105.0°C)
  6. temp4: +24.1°C (crit = +105.0°C)
  7. temp5: +100.0°C (crit = +110.0°C)
  8.  
  9. coretemp-isa-0000
  10. Adapter: ISA adapter
  11. Core 0: +41.0°C (crit = +100.0°C) <--- This is the temp i need!
  12. Core 1: +38.0°C (crit = +100.0°C)
  13.  
  14. Core0Temp=$(cat /PATH/TO/ISA/TEMP/GOES/HERE)
  15. Core1Temp=$(cat /PATH/TO/ISA/TEMP2/GOES/HERE)
  16.  
  17. if [ $Core0Temp="40" ]; then
  18. echo "Exceeding Temp Value. Enabling Fan."
  19. /var/tempmon/fanon
  20. elif [ $Core0Temp -lt "40" ]; then
  21. echo "Turning Fan Off."
  22. /var/tempmon/fanoff
  23. fi
  24.  
  25. echo "Enabling ACPI FAN... "
  26. echo 1 > /sys/class/thermal/cooling_device2/cur_state
  27. echo "Fan Enabled... "
  28.  
  29. echo "Disabling ACPI FAN..."
  30. echo "echo 0 > /sys/class/thermal/cooling_device2/cur_state"
  31. echo "Fan Disabled..."
Add Comment
Please, Sign In to add comment