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 Mon 01 Sep 2014, 22:20
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 [61 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
Billtoo


Joined: 07 Apr 2009
Posts: 2086
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   1333 Time(s)

temp.jpg

Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7796
Location: qld

PostPosted: Fri 20 Jan 2012, 07:51    Post subject:
Subject description: 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   1262 Time(s)

tray.png


_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Fri 20 Jan 2012, 14:09    Post subject:
Subject description: 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: 1470
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   1229 Time(s)

slacko-531+compiz+lxpanel.png


_________________

Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7796
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 poster's website 
CatDude


Joined: 03 Jan 2007
Posts: 1470
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  424 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: 4348

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: 1603

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: 4348

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: 7796
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 poster's 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: 7796
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 poster's website 
davids45


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

PostPosted: Sun 10 Jun 2012, 20:41    Post subject:
Subject description: 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: 535
Location: UK

PostPosted: Wed 13 Jun 2012, 02:32    Post subject: Tempicon 0.09
Subject description: 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   704 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 from previous:   Sort by:   
Page 3 of 5 [61 Posts]   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:  

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.0938s ][ Queries: 13 (0.0054s) ][ GZIP on ]