Thermal Shutdown
Posted: July 27th, 2012, 5:59 pm
Hi,
Firstly great website and very useful, I am trying to get the cpu temp script working I have looked on here and done the commands you suggest here is the sensors
when i do an echo ${newstr:14:2} to show the output there is nothing all i get in the script output is;
Hope you can help me with this and can you explain the ${newstr:14:2}
regards
Aidan
Firstly great website and very useful, I am trying to get the cpu temp script working I have looked on here and done the commands you suggest here is the sensors
Code: Select all
Adapter: ISA adapter
Physical id 0: +36.0°C (high = +82.0°C, crit = +102.0°C)
Core 0: +33.0°C (high = +82.0°C, crit = +102.0°C)
Core 1: +35.0°C (high = +82.0°C, crit = +102.0°C)
nct6776-isa-0290
Adapter: ISA adapter
Vcore: +0.74 V (min = +0.00 V, max = +1.74 V)
in1: +1.02 V (min = +0.00 V, max = +0.00 V) ALARM
AVCC: +3.44 V (min = +2.98 V, max = +3.63 V)
+3.3V: +3.42 V (min = +2.98 V, max = +3.63 V)
in4: +1.02 V (min = +0.00 V, max = +0.00 V) ALARM
in5: +0.00 V (min = +0.00 V, max = +0.00 V)
3VSB: +3.39 V (min = +2.98 V, max = +3.63 V)
Vbat: +3.39 V (min = +2.70 V, max = +3.30 V) ALARM
fan1: 0 RPM (min = 0 RPM) ALARM
fan2: 1147 RPM (min = 0 RPM) ALARM
fan3: 0 RPM (min = 0 RPM) ALARM
fan4: 0 RPM (min = 0 RPM) ALARM
fan5: 0 RPM (min = 0 RPM) ALARM
SYSTIN: +63.0°C (high = +0.0°C, hyst = +0.0°C) ALARM sensor = the rmistor
CPUTIN: -60.0°C (high = +80.0°C, hyst = +75.0°C) sensor = diode
AUXTIN: +35.5°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
PECI Agent 0: +25.5°C
cpu0_vid: +2.050 V
intrusion0: ALARM
intrusion1: ALARM
when i do an echo ${newstr:14:2} to show the output there is nothing all i get in the script output is;
Code: Select all
./CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
./CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
Temperature Core 0 OK at =>
./CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
./CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
Temperature Core 1 OK at =>
Hope you can help me with this and can you explain the ${newstr:14:2}
regards
Aidan