The time now is Thu 21 Feb 2019, 23:45
All times are UTC - 4 |
Author |
Message |
Semme

Joined: 07 Aug 2011 Posts: 7909 Location: World_Hub
|
Posted: Mon 17 Feb 2014, 07:44 Post subject:
|
|
Not knowing from where those get their info, compare:
Code: | cat /proc/acpi/thermal_zone/THM/temperature |
|
Back to top
|
|
 |
Mercedes350se
Joined: 16 Apr 2008 Posts: 744
|
Posted: Mon 17 Feb 2014, 19:51 Post subject:
|
|
Code: | # cat /proc/acpi/thermal_zone/THM/temperature |
returns
cat: /proc/acpi/thermal_zone/THM/temperature: No such file or directory
|
Back to top
|
|
 |
Semme

Joined: 07 Aug 2011 Posts: 7909 Location: World_Hub
|
Posted: Mon 17 Feb 2014, 20:26 Post subject:
|
|
No doubt we're on different systems so, going from acpi, take a closer look @ your path..
|
Back to top
|
|
 |
ardvark

Joined: 01 Jul 2013 Posts: 1458 Location: USA
|
Posted: Mon 17 Feb 2014, 20:56 Post subject:
|
|
Mercedes350se wrote: | Sure does. Thank you. |
You're welcome
|
Back to top
|
|
 |
Mercedes350se
Joined: 16 Apr 2008 Posts: 744
|
Posted: Tue 18 Feb 2014, 01:00 Post subject:
|
|
Semme wrote: | No doubt we're on different systems so, going from acpi, take a closer look @ your path.. |
There is nothing in the thermal_zone directory.
|
Back to top
|
|
 |
Semme

Joined: 07 Aug 2011 Posts: 7909 Location: World_Hub
|
Posted: Tue 18 Feb 2014, 07:59 Post subject:
|
|
Hmm, there's a *temperature* file aboard 431.. Don't know how 412 does it..
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3425 Location: Oregon
|
Posted: Sat 19 Apr 2014, 00:46 Post subject:
|
|
After loading it87 with modprobe in Puppy Lupu 520, I actually get a display of CPU core temperatures and fan speeds.
But Pwidgets still shows the CPU temp as 0 and the fan display says CPU Fan no fans?
Is there a way to get Pwidgets to display the values?
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 13545 Location: Gatineau (Qc), Canada
|
Posted: Sat 25 Jul 2015, 03:05 Post subject:
|
|
Hello, all.
First, thanks to rcrsn51 for opening this thread. I must say that I find his
tray icon most useful.
However, a different approach might be more suited for integration in a
dynamic menu, such as pekwm's or aewm's. I'll provide examples of
menu entries later.
The script below takes the five temperatures provided by the < sensors >
command and averages them through awk. Less accurate, no doubt, but
there's only one number to grasp.
BFN.
musher0
P.S. Keep your heat sinks clean!
~~~~~~~~~~~
Code: | #!/bin/ash
# ~/my-applications/bin/AVGsysTEMP.sh
# musher0, July 25, 2015.
####
# variables
AVGsysTEMP="`sensors | awk '$1 ~ /temp/ { s += $2 } END { print s/5 }'`"
if [ "${LANG:0:2}" = "fr" ];then
MSG="La température moyenne de votre système est de $AVGsysTEMP° C."
else
MSG="The average temperature of your system is $AVGsysTEMP° C."
fi
CLR="bg SaddleBrown -bd NavajoWhite3 -fg snow"
# action
/usr/X11/bin/yaf-splash -margin 15 -bw 20 -$CLR -placement center -font "9x15B" -timeout 10 -outline 0 -text "$MSG" |
Description |
Average displayed through the traditional yaf-splash. |
Filesize |
6.02 KB |
Viewed |
580 Time(s) |

|
Description |
Unzip in any /bin type folder and make executable.
|

Download |
Filename |
AVGsysTEMP.sh.zip |
Filesize |
554 Bytes |
Downloaded |
149 Time(s) |
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Last edited by musher0 on Sat 25 Jul 2015, 05:32; edited 1 time in total
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 13545 Location: Gatineau (Qc), Canada
|
Posted: Sat 25 Jul 2015, 04:19 Post subject:
|
|
(Cont'd from above.)
Here is a dynamic script for pekwm incorporating the Average System
Temperature in the pekwm menu.
Code: | #!/bin/ash
# AVGTEMP.sh # for / pour pekwm
# musher0, July 25, 2015
####
MBINS="~/my-applications/bin"
AVGsysTEMP="`sensors | awk '$1 ~ /temp/ { s += $2 } END { print s/5 }'`"
AVGsysTEMP="$AVGsysTEMP C" # The sign for degrees does not carry.
echo "Dynamic {"
echo " Entry = \" Avg. Sys. Temp.: $AVGsysTEMP\" { Actions = \"Exec $MBINS/AVGsysTEMP.sh & \" }"
# Alternative to the line above if you don't want to call anything:
# echo " Entry = \" Avg. Sys. Temp.: $AVGsysTEMP\" { Actions = \"Exec &\" }"
echo " }"
####
# In pekwm menu, towards the top, after
#
# Menu config for pekwm
# Variables
# INCLUDE = "vars"
# RootMenu = "Pekwm" {
# Entry = "" { Actions = "Dynamic $PEK/date-heure-pekwm.sh & "}
# insert:
# Entry = "" { Actions = "Dynamic /root/.pekwm/AVGTEMP.sh &" }
# (...) (Rest of pekwm menu)
#### |
Description |
Average system temperature shown at the top of the pekwm menu |
Filesize |
13.16 KB |
Viewed |
578 Time(s) |

|
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 13545 Location: Gatineau (Qc), Canada
|
Posted: Sat 25 Jul 2015, 05:30 Post subject:
|
|
(Cont'd from above)
It's pretty much the same with aemenu. Here's a snippet which is later
incorporated, in this case, into a more elaborate "Internet & Browsers"
menu.
Code: | #!/bin/ash
# $AEM/incorporer-date.sh # Incorporer date et heure aux (ae)aemenus
# Aussi la temp. du système.
# musher0, 25 juillet 2015.
####
[ ${LANG:0:2} = "fr" ] && JOUR="`date '+%a. %d %b.'`" || JOUR="`date '+%a. %b. %d'`";HR="`date '+%R'`";AN="`date '+%Y'`" # données
[ -f /tmp/drapeau-aepanel ] && JOUR="$JOUR $AN" || JOUR="$JOUR, $HR"
echo "cmd \"$JOUR\" /root/my-applications/bin/hic-et-nunc2.sh" > /tmp/date
AVGsysTEMP="`sensors | awk '$1 ~ /temp/ { s += $2 } END { print s/5 }'`"
AVGsysTEMP="$AVGsysTEMP° C"
echo "cmd \"Temp. sys. : $AVGsysTEMP\" \"\"" >> /tmp/date |
But it's a matter of scripting style. I find it easier to build my "aemenus"
by "piling bricks", so to speak. But you could have an aemenu
incorporating date, time, RAM use, system temperature, the programs
and their categories, plus various exit options, all in one go. Forum
member aragon's spm2 and spm3 menu-buiilding scripts (elsewhere on
this forum) are good examples of that "all-in-one-go" approach.
BFN.
musher0
Description |
|
Filesize |
23.01 KB |
Viewed |
573 Time(s) |

|
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 13545 Location: Gatineau (Qc), Canada
|
Posted: Mon 17 Aug 2015, 17:45 Post subject:
|
|
Hello, everyone!
Speaking of temperature, my main -- and old -- computer died on me 10 days ago,
during a humid heat wave this valley is famous for, and I had to dust off a back-up
1.9 MHz AMD I had.
(On the positive side, this weather situation generally underscores the importance of
having a good heat sensor display on your Puppy, doesn't it?)
Now the main board on this back-up Athlon AMD has only one sensor when using
the on-board video chip. If you have an AGP video card installed, the "sensors"
utility provided by rcrsn51 in the first post of this thread will pick up three readings.
Both cases make my previous script useless.
So I adapted my script, this time to divide not by a fixed number but by the number
of sensors that the "sensors" utility recognizes. Hopefully, this will solve the problem
for good.
For the calculation, in this update, "bc" is now used instead of "expr", for greater
precision and ease of use.
Also, French and Canadian-French users now get a "floating comma" in their menu
and pager displays, whereas English-speaking users keep their traditional
"floating point".
Finally, I'm including a nice temperature icon that I found here. The colors in the
icon are tentatively matched in the displayed box.
I hope this can be of help to someone. Feedback welcome. BFN.
musher0
~~~~~~~~~~~~
Code: | #!/bin/ash
# ~/my-applications/bin/AVGsysTEMP-2.sh
# musher0, July 25 & Aug. 12, 2015.
#### set -xe
# variables
sysTEMP="`sensors | awk '$1 ~ /temp/ { s += $2 } END { print s }'`"
ChIpS="`sensors | grep temp | wc -l`"
AVGsysTEMP="`echo \"scale=1;$sysTEMP/$ChIpS\" | bc`"
if [ "${LANG:0:2}" = "fr" ];then
AVGsysTEMP="`echo $AVGsysTEMP | tr . ,`"
MSG="La température moyenne du système est de $AVGsysTEMP° C."
else
MSG="The average temperature of the system is $AVGsysTEMP° C."
fi
COLR="bg #435167 -bd "#8F44AB" -fg snow"
# action
/usr/X11/bin/yaf-splash -margin 15 -bw 8 -$COLR -placement center -font "9x15B" -timeout 7 -outline 0 -text "$MSG"
### 30 ### set +xe |
Description |
If you need it. This icon isn't covered by a GPL or CC license, but the site says that it's "Free for non-commercial use" (sic). |
Filesize |
2.97 KB |
Viewed |
488 Time(s) |

|
Description |
|

Download |
Filename |
AVGsysTEMP-2.sh.gz |
Filesize |
482 Bytes |
Downloaded |
200 Time(s) |
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
|
Back to top
|
|
 |
Mike Walsh

Joined: 28 Jun 2014 Posts: 4646 Location: King's Lynn, UK.
|
Posted: Mon 17 Aug 2015, 20:18 Post subject:
|
|
Hi.
@rcrsn51/majorfoo:-
I concur about the P4s, with regard to CPU scaling not working. Quite simply, this is because Intel's CPUs didn't contain the requisite SpeedStep code in their instruction sets at the time of the P4's manufacture. It had been originally implemented in the 2nd-gen P3s.....but then skipped a generation, due to Intel becoming obsessed with all-out speed in the P4s..... and next appeared in the Pentium 4-M's which were developed for mobile devices. And of course, mobile devices need to watch their power consumption more than a desktop PC.
And with regard to the tray icon displaying a temp for the P4s, it largely depends on the motherboard manufacturer. The P4s didn't have an embedded temp sensor on-board the chip itself; AFAIK, the sensor was embedded, instead, in the CPU socket, for some strange reason..... Some manufacturers fitted the socket with the sensor; some didn't.
I have a 2.6 GHz, non-HT P4 in my old Dell laptop (previously running a 2.2 GHz Celeron), so I know this to be true from personal experience. It's unfortunate they chose to fit a full, desktop processor into their laptops at the time of the Inspiron 1100's manufacture. They did compensate for this to some extent by fitting the 1100 with a truly enormous battery pack; mine supplies somewhere in the region of nearly 16 volts, @ 7480 mAh (!!).....which largely contributed to the all-in weight of around 7.5 lbs.
The battery pack alone weighs more than a MacBook 'Air'.....
But despite being almost 13 yrs old, she runs Tahrpup flawlessly.....and quite nippy with it, too!
Regards,
Mike.
_________________ My 'Puppy' Packages
--------------------------------------
 
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 13545 Location: Gatineau (Qc), Canada
|
Posted: Tue 18 Aug 2015, 12:45 Post subject:
|
|
Hi, Mike.
Thanks for the sensor info on the P4's. It's good to get confirmation, to know.
@all: Witness the power of the awk!
Code: | sensors | awk '$1 ~ /temp/ { s += $2 ;n++ } END { printf "\n\t\t\tAVG syst. temp.: " "%4.1f C\n\n", s/n }' | Except the display part, it's the entire bash script above on one line... (hehe)
I won't be changing my script, but the processes on that awk line are nice little discoveries.
For next time!
BFN.
_________________ musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12553 Location: Stratford, Ontario
|
Posted: Sun 20 Sep 2015, 23:01 Post subject:
|
|
CPUtemp v1.9 posted above.
|
Back to top
|
|
 |
Mayou
Joined: 17 Apr 2014 Posts: 106
|
Posted: Sun 17 Jan 2016, 11:32 Post subject:
VVersion 1.7 is enoughersion 1.7 |
|
Version 1.7 is enough on my old laptop
icon appears down my screen 63°C, not bad
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|