Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- acpitz-virtual-0
- Adapter: Virtual device
- temp1: +45.0°C (crit = +256.0°C)
- temp2: +36.0°C (crit = +105.0°C)
- temp3: +32.0°C (crit = +105.0°C)
- temp4: +24.1°C (crit = +105.0°C)
- temp5: +100.0°C (crit = +110.0°C)
- coretemp-isa-0000
- Adapter: ISA adapter
- Core 0: +41.0°C (crit = +100.0°C) <--- This is the temp i need!
- Core 1: +38.0°C (crit = +100.0°C)
- Core0Temp=$(cat /PATH/TO/ISA/TEMP/GOES/HERE)
- Core1Temp=$(cat /PATH/TO/ISA/TEMP2/GOES/HERE)
- if [ $Core0Temp="40" ]; then
- echo "Exceeding Temp Value. Enabling Fan."
- /var/tempmon/fanon
- elif [ $Core0Temp -lt "40" ]; then
- echo "Turning Fan Off."
- /var/tempmon/fanoff
- fi
- echo "Enabling ACPI FAN... "
- echo 1 > /sys/class/thermal/cooling_device2/cur_state
- echo "Fan Enabled... "
- echo "Disabling ACPI FAN..."
- echo "echo 0 > /sys/class/thermal/cooling_device2/cur_state"
- echo "Fan Disabled..."
Add Comment
Please, Sign In to add comment