Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 28 Jul 2015, 09:39
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
CPUtemp - A CPU Temperature Monitor
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 5 [70 Posts]   Goto page: Previous 1, 2, 3, 4, 5
Author Message
Semme

Joined: 07 Aug 2011
Posts: 5271
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
Mercedes350se

Joined: 16 Apr 2008
Posts: 693

PostPosted: 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
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 5271
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
ardvark


Joined: 01 Jul 2013
Posts: 1458
Location: USA

PostPosted: Mon 17 Feb 2014, 20:56    Post subject:  

Mercedes350se wrote:
Sure does. Thank you.


You're welcome Smile
Back to top
View user's profile Send private message 
Mercedes350se

Joined: 16 Apr 2008
Posts: 693

PostPosted: 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
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 5271
Location: World_Hub

PostPosted: 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
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3424
Location: Oregon

PostPosted: 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
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 5667
Location: Gatineau (Qc), Canada

PostPosted: 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! Smile

~~~~~~~~~~~
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"
Average-system-temp.jpg
 Description   Average displayed through the traditional yaf-splash.
 Filesize   6.02 KB
 Viewed   78 Time(s)

Average-system-temp.jpg

AVGsysTEMP.sh.zip
Description  Unzip in any /bin type folder and make executable.
zip

 Download 
Filename  AVGsysTEMP.sh.zip 
Filesize  554 Bytes 
Downloaded  2 Time(s) 

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Sat 25 Jul 2015, 05:32; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 5667
Location: Gatineau (Qc), Canada

PostPosted: 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)
####
AvgSysTemp-pekwm_2015-07-25.jpg
 Description   Average system temperature shown at the top of the pekwm menu
 Filesize   13.16 KB
 Viewed   72 Time(s)

AvgSysTemp-pekwm_2015-07-25.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 5667
Location: Gatineau (Qc), Canada

PostPosted: 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
AvgSysTemp-aemenu_2015-07-25.jpg
 Description   
 Filesize   23.01 KB
 Viewed   59 Time(s)

AvgSysTemp-aemenu_2015-07-25.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 5 of 5 [70 Posts]   Goto page: Previous 1, 2, 3, 4, 5
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

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
[ Time: 0.0828s ][ Queries: 12 (0.0092s) ][ GZIP on ]