CPUtemp - A CPU Temperature Monitor
CPUtemp - A CPU Temperature Monitor
Update: V1.9 recognizes CPU scaling governors like PowerSave in addition to OnDemand. This will give you more information in recent Puppies.
One of my machines won't run traytemp, so I decided to make my own. I noticed that System > Hardinfo > Sensors has two readings - the CPU core temperature and the thermal zone temperature. There is a considerable difference between the two and no consistency among machines as to which is correct.
This applet shows both readings plus the CPU frequency scaling status and the current CPU frequency.
1. Install the PET below.
2. You should see a "flame" icon in the system tray. It is launched from your /root/Startup folder. Click it.
3. If you have an AMD or Intel processor, CPUtemp should display the temperature information. If not, click on Help and follow the instructions for detecting other temperature modules.
4. To change the CPU scaling method, run the CPU Frequency Scaling Tool. Look for it in Menu > Utility or Menu > System.
One of my machines won't run traytemp, so I decided to make my own. I noticed that System > Hardinfo > Sensors has two readings - the CPU core temperature and the thermal zone temperature. There is a considerable difference between the two and no consistency among machines as to which is correct.
This applet shows both readings plus the CPU frequency scaling status and the current CPU frequency.
1. Install the PET below.
2. You should see a "flame" icon in the system tray. It is launched from your /root/Startup folder. Click it.
3. If you have an AMD or Intel processor, CPUtemp should display the temperature information. If not, click on Help and follow the instructions for detecting other temperature modules.
4. To change the CPU scaling method, run the CPU Frequency Scaling Tool. Look for it in Menu > Utility or Menu > System.
- Attachments
-
- CPUtemp-2.0.pet
- Updated 2017-02-03
Different tray applet - (78.36 KiB) Downloaded 1170 times
-
- CPUtemp-1.9.pet
- Updated 2015-09-21
- (80.27 KiB) Downloaded 1290 times
-
- CPUtemp-1.7.pet
- Updated 2013-12-16
- (80.46 KiB) Downloaded 2369 times
Last edited by rcrsn51 on Fri 03 Feb 2017, 17:51, edited 30 times in total.
1: This .pet introduced me to `sensors` and sensors-detect .
Hardinfo now shows temp ! This is very very good !
2: I also was introduced to modules I never stumbled upon : it87 , acpi* , hwmon , k8temp , processor and much more. Even without k8temp on my K7 board i got temp.
3. /usr/bin/CPUtemp I had to modify a little, because even with loaded acpi* via BootManager and BOOT_IMAGE=/dpup004/vmlinuz pdev=sdc3 psubdir=dpup004 acpi=force from /proc/cmdline
I still have no /proc/acpi -directory
without such prove the screen frooze clicking the sun and even killing kill -9
7858 root 0:00 tr -s
7859 root 0:00 sed s/temperature/THRM Temp/
didn't help .... I had to kill X ! and startx again !
Now the clicking the sun doesn't show any tempers but it doesn't freeze anymore.
I also if'ed
so the end looks like this for now:
var-log-messages:
ACPI Error: A valid RSDP was not found (20091214/tbxfroot-219)
ACPI WAKEUP ==> [0000011000 - 0000015000]
Kernel command line: BOOT_IMAGE=/dpup004/vmlinuz pdev=sdc3 psubdir=dpup004 acpi=force
ACPI: Interpreter disabled.
pnp: PnP ACPI: disabled
Hardinfo now shows temp ! This is very very good !
2: I also was introduced to modules I never stumbled upon : it87 , acpi* , hwmon , k8temp , processor and much more. Even without k8temp on my K7 board i got temp.
3. /usr/bin/CPUtemp I had to modify a little, because even with loaded acpi* via BootManager and BOOT_IMAGE=/dpup004/vmlinuz pdev=sdc3 psubdir=dpup004 acpi=force from /proc/cmdline
I still have no /proc/acpi -directory
Code: Select all
if [ -d /proc/acpi/ ]; then
THRMFILE=`find /proc/acpi/thermal_zone -name "temperature"`
7858 root 0:00 tr -s
7859 root 0:00 sed s/temperature/THRM Temp/
didn't help .... I had to kill X ! and startx again !
Now the clicking the sun doesn't show any tempers but it doesn't freeze anymore.
I also if'ed
Code: Select all
if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq ]; then
Code: Select all
xmessage -file /tmp/CPUtemp.txt -timeout 10 -buttons Okay:0,Help:1
[ $? -eq 1 ] && exec xmessage -file /usr/bin/CPUtemp.hlp
fi
fi
else
echo line 43 $?,$FREQ,$THRMFILE
exit
fi
ACPI Error: A valid RSDP was not found (20091214/tbxfroot-219)
ACPI WAKEUP ==> [0000011000 - 0000015000]
Kernel command line: BOOT_IMAGE=/dpup004/vmlinuz pdev=sdc3 psubdir=dpup004 acpi=force
ACPI: Interpreter disabled.
pnp: PnP ACPI: disabled
now the code is that :
Code: Select all
#!/bin/sh
#modprobe k8temp
#modprobe coretemp
sensors -A | tr -s " " > /tmp/CPUtemp.txt
if [ -d /proc/acpi/ ]; then
THRMFILE=`find /proc/acpi/thermal_zone -name "temperature"`
cat $THRMFILE | tr -s " " | sed s/"temperature"/"THRM Temp"/ >> /tmp/CPUtemp.txt
echo >> /tmp/CPUtemp.txt
if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]; then
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | grep -q ondemand
if [ $? -eq 0 ]; then
echo "OnDemand CPU Scaling: on" >> /tmp/CPUtemp.txt
else
echo "OnDemand CPU Scaling: off" >> /tmp/CPUtemp.txt
fi
if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq ]; then
FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
if [ -n "$FREQ" ]; then
echo -n "Current CPU Freq: " >> /tmp/CPUtemp.txt
echo ${FREQ%???} MHz >> /tmp/CPUtemp.txt
fi
xmessage -file /tmp/CPUtemp.txt -timeout 10 -buttons Okay:0,Help:1
[ $? -eq 1 ] && exec xmessage -file /usr/bin/CPUtemp.hlp
fi
fi
else
# echo line 43 $?,$FREQ,$THRMFILE
xmessage -file /tmp/CPUtemp.txt -timeout 107 -buttons Okay:0,Help:1
[ $? -eq 1 ] && exec xmessage -file /usr/bin/CPUtemp.hlp
fi
- Attachments
-
- YATM-1.0.jpg
- (176.92 KiB) Downloaded 15876 times
Just discovered this pet. Worked perfectly...after I changed from openbox to jwm The included guide was a great help.
Clicking the little sun reveals a healthy 33°C core temperature.
For the first time on this box, Hardinfo is displaying temperatures!
Thank you rcrsn51!
Clicking the little sun reveals a healthy 33°C core temperature.
For the first time on this box, Hardinfo is displaying temperatures!
Thank you rcrsn51!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]
Glad you like it. If you don't want to use JWM, you can run CPUtemp from the command line with
Or you can drag a shortcut to /usr/local/bin/CPUtemp onto your desktop.
Code: Select all
CPUtemp
You mean like this?rcrsn51 wrote:Glad you like it. If you don't want to use JWM, you can run CPUtemp from the command line withOr you can drag a shortcut to /usr/local/bin/CPUtemp onto your desktop.Code: Select all
CPUtemp
Thanks again!
- Attachments
-
- buroscr.png
- (78.11 KiB) Downloaded 14219 times
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]
For those of you who prefer your temperature readings in Fahrenheit, here are the modifications to CPUtemp.
1. Open the file /usr/local/bin/CPUtemp in a text editor.
2. Go to Line 8 and add an "f" as follows
3. Go to Line 13 and insert a new line AFTER it.
4. On the next line, change the "C" to an "F".
1. Open the file /usr/local/bin/CPUtemp in a text editor.
2. Go to Line 8 and add an "f" as follows
Code: Select all
/usr/local/bin/sensors -Af -c /etc/sensors3.conf | tr -s " " > /tmp/CPUtemp.txt
Code: Select all
TEMP=${TEMP%???}
let TEMP=TEMP*9/5+32
Code: Select all
echo "THRM Temp: " $TEMP F >> /tmp/CPUtemp.txt
Last edited by rcrsn51 on Mon 09 Dec 2013, 11:51, edited 2 times in total.
Oh I should have found this one a year ago. So much frustration.
Now I know the CPU temp. it is not 26 which I was very skeptical to. it is 48 Celsius. That is more likely to be the true temp than 26 C.
So thanks indeed for providing this pet. I tested it on Snow5 and on Ice-010
Now I know the CPU temp. it is not 26 which I was very skeptical to. it is 48 Celsius. That is more likely to be the true temp than 26 C.
So thanks indeed for providing this pet. I tested it on Snow5 and on Ice-010
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though
Oh wait a minute, in a terminal i did 'modprobe w83627ehf' and now I have more info than I wanted
Hi rcrsn51, I run sensors-detect
That is the only Success.
Then I get CPUTemp in the systray. But all I get is
lsmod shows that k10temp is running and is used by hwmon.
Hardinfo gives no Sensors at all, blank.
I changed the module on line 5 to k10temp.
No big deal, but does anything jump out at you? Thanks.
Hi rcrsn51, I run sensors-detect
Code: Select all
Found `Winbond W83627EHF/EF/EHG/EG Super IO Sensors' Success!
(address 0x290, driver `w83627ehf')
Then I get CPUTemp in the systray. But all I get is
Code: Select all
CPUTemp
ONDemand CPU Scaling On
Current CPU Frequency 150MHz
Hardinfo gives no Sensors at all, blank.
I changed the module on line 5 to k10temp.
No big deal, but does anything jump out at you? Thanks.
This is the reality of temperature detection. Sometimes, both methods (libsensors and thermal zone) will detect a temperature, but only one will make sense. Sometimes, only one method will give a value. In your case, neither works.
However, some processors appear to keep their thermal zone info in different locations, so another temperature tool may find it.
However, some processors appear to keep their thermal zone info in different locations, so another temperature tool may find it.
Was the temperature included?Oh wait a minute, in a terminal i did 'modprobe w83627ehf' and now I have more info than I wanted
I downloaded and modified the CPUtemp file as per your instructions to show the temperature in fahrenheit.
But the display window has some unknown character symbols shown.
See attached example.
How to fix it?
But the display window has some unknown character symbols shown.
See attached example.
How to fix it?
- Attachments
-
- cputemp.png
- What I see.
- (15.24 KiB) Downloaded 3236 times
What Puppy are you using? None of my machines show that symbol anymore.
Version 1.3 runs the script /usr/local/bin/CPUtemp. It calls /usr/local/bin/sensors. Is that where you are? Or do you have an older version still installed? TypeI downloaded CPUtemp-1.3.pet and ran it from its own directory.
Code: Select all
which sensors
Last edited by rcrsn51 on Thu 25 Aug 2011, 22:30, edited 1 time in total.