On 14/02/15 23:05, Srdjan Todorovic wrote:
On 14 February 2015 at 22:56, Chris Green cl@isbd.net wrote:
If one runs 'sensors' what are reasonable (i.e. reasonably safe) temperatures to see?
Doesn't the output of sensors tell you what the upper thresholds are?
eg. CPU Temperature: +36.0°C (high = +60.0°C, crit = +95.0°C)
So you'd think anything below 'high' is fine.
- srdjan
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
+1 Sensors should give the information relevant to acceptable temperatures.
As an aside, if you find yourself paranoid about temperatures (I live in permanent fear of my laptop catching fire for example) then you can run a bash script against cron every minute. The feedback can take the form of audible output (as mine does) or by emailing an alert etc...
The script in my cron is below - your mileage may vary (sensors for you might show high AND critical values, for example so you'll need to exclude more results from the regex. Mine only shows a high value of 70, so I use this manually in greps and evaluations. A little modification would sort you out if your system was vastly different from mine.
Apologies to all the real bash coders for the hack-y nature of this.
#!/bin/bash # check_temp
# regex matches numerical values of 2 or more numbers that are followed by # decimal point, then removes known values that will turn up
SensorTemp=$(sensors | grep -oP '[0-9]{2,}(?=.)' | grep -v 70)
if [ "$SensorTemp" -gt 70 ]; then `echo "Danger, danger Will Robinson" | espeak` fi
Cheers