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

Re: therm_adt746x



On Sat, 07 Aug 2004 the mental interface of
Djoumé SALVETTI told:

> a script that optionnaly use zenity could be found here :
> 
> http://bulma.net/body.phtml?nIdNoticia=2011&nIdPage=5

Inspired of that link maybe the attched script is useful on console
and ?term as well ;-)


-- 
  Never make anything simple and efficient when a way 
  can be found to make it complex and wonderful ;-)
#! /bin/sh

if [  `cat /sys/devices/temperatures/cpu_fan_speed` = 82 ]
   then FANSPEEDCPU=0
else
    FANSPEEDCPU=`cat /sys/devices/temperatures/cpu_fan_speed`
fi

if [ `cat /sys/devices/temperatures/gpu_fan_speed` = 82 ]
   then FANSPEEDGPU=0
else
    FANSPEEDGPU=`cat /sys/devices/temperatures/gpu_fan_speed`
fi

dialog --title " Temperatures of my iBook G4 " --infobox \
"  cpu fan speed:       $FANSPEEDCPU \n \
 cpu limit:           `cat /sys/devices/temperatures/cpu_limit` \n \
 cpu temp:            `cat /sys/devices/temperatures/cpu_temperature` \n \
 gpu fan speed:       $FANSPEEDGPU \n \
 gpu limit;           `cat /sys/devices/temperatures/gpu_limit` \n \
 gpu temperature:     `cat /sys/devices/temperatures/gpu_temperature` \n \
 limit adjust:        `cat /sys/devices/temperatures/limit_adjust` \n \
 specified fan speed: `cat /sys/devices/temperatures/specified_fan_speed` \n \
 hdd temp:            `hddtemp /dev/hda`" 14 65

Attachment: signature.asc
Description: Digital signature


Reply to: