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 Thu 02 Oct 2014, 10:52
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
tempicon -a tray icon to monitor CPU temp
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 3 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
Billtoo


Joined: 07 Apr 2009
Posts: 2117
Location: Ontario Canada

PostPosted: Sun 01 Jan 2012, 17:58    Post_subject: tempicon -a tray icon to monitor CPU temp  

This is icewm in Saluki
temp.jpg
 Description   
 Filesize   11.39 KB
 Viewed   1363 Time(s)

temp.jpg

Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7805
Location: qld

PostPosted: Fri 20 Jan 2012, 07:51    Post_subject:
Sub_title: new svg based version
 

I've been sitting on this for awhile..

new svg based tempicon remove older versions first!!!

- See main post
tray.png
 Description   
 Filesize   5.37 KB
 Viewed   1280 Time(s)

tray.png


_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Fri 20 Jan 2012, 14:09    Post_subject:
Sub_title: new svg based version
 

01micko wrote:
I've been sitting on this for awhile..

new svg based tempicon remove older versions first!!!

- See main post


Excellent. Much easier to read thanks.

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
CatDude


Joined: 03 Jan 2007
Posts: 1479
Location: UK

PostPosted: Fri 20 Jan 2012, 15:50    Post_subject:  

Hello Mick

Working OK in Slacko-531 (with Compiz + Lxpanel)

I installed lm_sensors-3.1.2 via the PPM then installed the tempicon-0.05.pet

Running the command: sensors-detect
revealed:
Code:
AMD Family 10h thermal sensors...                           Success!
    (driver `k10temp')


but modprobing the module k10temp failed. Sad

A quick 'google' lead me to these:


with which i was able to build the k10temp module.

I put it in: /lib/modules/2.6.37.6/kernel/drivers/hwmon/
ran depmod
then modprobe k10temp
rebooted and there it was in the system tray of lxpanel. Very Happy

Nice one mate.

CatDude

P.S
Line 6 of: /usr/sbin/tempiconsvg.sh
say's
Code:
ver=0.04

Wink Wink
.
slacko-531+compiz+lxpanel.png
 Description   
 Filesize   4.23 KB
 Viewed   1247 Time(s)

slacko-531+compiz+lxpanel.png


_________________

Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7805
Location: qld

PostPosted: Fri 20 Jan 2012, 20:57    Post_subject:  

Minor update v-0.06 -see main post

Thanks CatDude, 06 fixes the version number. Yeah, 2.6.37.6 has k8temp which works with my X2 and nvidia board, I thought it would work for most, wrong I guess! Can you post your module please? I'll whack it in PPM.

Also, pemasu, it *should* install cleanly into woof now, I'll test tonight when I do a build. I left a message on your thread but I now realise it was doomed to fail!

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
CatDude


Joined: 03 Jan 2007
Posts: 1479
Location: UK

PostPosted: Sat 21 Jan 2012, 04:48    Post_subject:  

Hi

01micko wrote:
...Can you post your module please? I'll whack it in PPM.


Here you go mate.

CatDude
.
k10temp-module-slacko-k2.6.37.6.tar.gz
Description 
gz

 Download 
Filename  k10temp-module-slacko-k2.6.37.6.tar.gz 
Filesize  2.57 KB 
Downloaded  433 Time(s) 

_________________

Back to top
View user's profile Send_private_message 
snayak

Joined: 14 Sep 2011
Posts: 231

PostPosted: Mon 13 Feb 2012, 09:33    Post_subject:  

Does it work with Wary 500?

Sincerely,
Srinivas Nayak

_________________
Machine: Wary 530, AMD Athlon 2000+, ASUS A7N266-VM board, 512MB DDR RAM, 40GB HDD, 52xCDRW, PS/2 Mouse/Keyboard, USB 2.0.
Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.com/
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Thu 01 Mar 2012, 18:30    Post_subject:  

I have made a generic tool to do this using symlinks:
http://www.murga-linux.com/puppy/viewtopic.php?t=76431
you should be able to adjust your backend to only update a single file and the binary is smaller too.

edit: and here is an awk example that I used to generate the svg for my cpu
Code:

#!/bin/ash
awk '{BG = "#00FF00"
if ($2 > 65) BG = "#FFFF00"
if ($2 > 80) BG = "#FF0000"
printf "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> \
<rect width=\"32\" height=\"22\" x=\"0\" y=\"0\" \
style=\"font-size:%d;fill:%s;fill-opacity:0.75;fill-rule:evenodd;stroke-width:3pt;\" id=\"rect1\" />  \
<text x=\"0\" y=\"18\" style=\"font-size:%d;font-weight:normal;fill-opacity:0.75;stroke-width:3pt;font-family:helvetica;\" id=\"text1\"> \
<tspan id=\"tspan1\">%d°C</tspan> \
</text> \
</svg>",14,BG,14,$2}' /proc/acpi/thermal_zone/TZ01/temperature >test.svg

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
mavrothal


Joined: 24 Aug 2009
Posts: 1638

PostPosted: Sun 11 Mar 2012, 18:25    Post_subject:  

technosaurus wrote:
I have made a generic tool to do this using symlinks:
http://www.murga-linux.com/puppy/viewtopic.php?t=76431
you should be able to adjust your backend to only update a single file and the binary is smaller too.

edit: and here is an awk example that I used to generate the svg for my cpu
Code:

#!/bin/ash
awk '{BG = "#00FF00"
if ($2 > 65) BG = "#FFFF00"
if ($2 > 80) BG = "#FF0000"
printf "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> \
<rect width=\"32\" height=\"22\" x=\"0\" y=\"0\" \
style=\"font-size:%d;fill:%s;fill-opacity:0.75;fill-rule:evenodd;stroke-width:3pt;\" id=\"rect1\" />  \
<text x=\"0\" y=\"18\" style=\"font-size:%d;font-weight:normal;fill-opacity:0.75;stroke-width:3pt;font-family:helvetica;\" id=\"text1\"> \
<tspan id=\"tspan1\">%d°C</tspan> \
</text> \
</svg>",14,BG,14,$2}' /proc/acpi/thermal_zone/TZ01/temperature >test.svg


Tried this and I get:
Code:
awk: cmd. line:4: printf "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> \
awk: cmd. line:4:        ^ unterminated string
awk: cmd. line:4: printf "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> \
awk: cmd. line:4:        ^ syntax error

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Sun 11 Mar 2012, 19:58    Post_subject:  

Edit, nope that was just my browser formatting even though html standards told it not to.

the real problem was using the UTF-8 encoded '°' instead of the standard ascii one that I posted ... guess I need to push a tarball to avoid these copy-paste issues (unless maybe you added your own '°' ???)

btw if you ever need an ascii character, I use this a lot to cut/paste from the terminal

Code:
int main() { 
char c=127;
while (c-->=-127) { 
  printf("%d, %c\n",c,c);
}
}

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7805
Location: qld

PostPosted: Sun 18 Mar 2012, 06:55    Post_subject:  

0.07 is out

Fixes persistent pink message recurrence.

See main post

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Sun 18 Mar 2012, 07:02    Post_subject:  

Very Happy Very Happy Very Happy
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7805
Location: qld

PostPosted: Sun 10 Jun 2012, 08:49    Post_subject:  

New version 0.09

See main post

-now compiles the source with a Makefile (devx needed for compilation, not for pet install)
-supports FatDog
-lm_sensors now optional (ymmv - reports please)
-README in source package
-new, rounded corners on icons
-icons are included in PET, no longer generated, faster on older HW
-some minor bugfixes

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
davids45


Joined: 26 Nov 2006
Posts: 648
Location: Chatswood, NSW

PostPosted: Sun 10 Jun 2012, 20:41    Post_subject:
Sub_title: No to Slacko?
 

G'day 01micko,

A little off-topic maybe, but I'm curious why this interesting little utility was not in Slacko (or is it and I couldn't/can't find it)?

I have two computers using high operating temperature CPUs so like to watch how often they get over 70C and to see the background colour change from green to yellow/amber. I assume it would get to red if I find and run the "right" software.

David S.
Back to top
View user's profile Send_private_message 
ETP


Joined: 19 Oct 2010
Posts: 542
Location: UK

PostPosted: Wed 13 Jun 2012, 02:32    Post_subject: Tempicon 0.09
Sub_title: CPU – Pentium D 945. Winbond W83627THF
 

01micko

Thanks for this latest version. With my 6 year old hardware I found that retaining lm_sensors displays more info. (i.e. max allowable CPU temp)
screenshot.44.png
 Description   
 Filesize   45.71 KB
 Viewed   723 Time(s)

screenshot.44.png


_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 3 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1084s ][ Queries: 13 (0.0196s) ][ GZIP on ]