[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

therm_adt746x



Hi list,

is there a tool to check /sys/devices/temperatures?
I just created a primitive shell script as attached.

THX
Elimar


-- 
    .~.
    /V\   L   I   N   U   X
   /( )\ >Phear the Penguin<
   ^^-^^
#! /bin/sh
if [  `cat /sys/devices/temperatures/cpu_fan_speed` = 82 ]
   then echo "cpu fan speed		= 0"
else
        echo "cpu fan speed 		= `cat /sys/devices/temperatures/cpu_fan_speed`"
fi
echo "cpu limit 		= `cat /sys/devices/temperatures/cpu_limit`"
echo "cpu temp 		= `cat /sys/devices/temperatures/cpu_temperature`"
if [ `cat /sys/devices/temperatures/gpu_fan_speed` = 82 ]
   then echo "gpu fan speed		= 0"
else
        echo "gpu fan speed 		= `cat /sys/devices/temperatures/gpu_fan_speed`"
fi
echo "gpu limit		= `cat /sys/devices/temperatures/gpu_limit`"
echo "gpu temperature		= `cat /sys/devices/temperatures/gpu_temperature`"
echo "limit adjust		= `cat /sys/devices/temperatures/limit_adjust`"
echo "specified fan speed	= `cat /sys/devices/temperatures/specified_fan_speed`"
echo "hdd temp		= `hddtemp /dev/hda`"

Attachment: signature.asc
Description: Digital signature


Reply to: