Author |
Message |
Billtoo

Joined: 07 Apr 2009 Posts: 3421 Location: Ontario Canada
|
Posted: Sun 01 Jan 2012, 17:58 Post subject:
tempicon -a tray icon to monitor CPU temp |
|
This is icewm in Saluki
Description |
|
Filesize |
11.39 KB |
Viewed |
1813 Time(s) |

|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: 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
Description |
|
Filesize |
5.37 KB |
Viewed |
1669 Time(s) |

|
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3726 Location: UK
|
Posted: 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
|
|
 |
CatDude

Joined: 03 Jan 2007 Posts: 1570 Location: UK
|
Posted: 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.
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.
Nice one mate.
CatDude
P.S
Line 6 of: /usr/sbin/tempiconsvg.sh
say's
.
Description |
|
Filesize |
4.23 KB |
Viewed |
1642 Time(s) |

|
_________________

|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: 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!
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
CatDude

Joined: 03 Jan 2007 Posts: 1570 Location: UK
|
Posted: 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
.
Description |
|

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

|
Back to top
|
|
 |
snayak
Joined: 14 Sep 2011 Posts: 406
|
Posted: Mon 13 Feb 2012, 09:33 Post subject:
|
|
Does it work with Wary 500?
Sincerely,
Srinivas Nayak
_________________ [Precise 571 on AMD Athlon XP 2000+ with 512MB RAM]
[Fatdog 720 on Intel Pentium B960 with 4GB RAM]
Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.com/
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4785 Location: Kingwood, TX
|
Posted: 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 |
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
mavrothal

Joined: 24 Aug 2009 Posts: 2964
|
Posted: 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
|
_________________ == Here is how to solve your Linux problems fast ==
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4785 Location: Kingwood, TX
|
Posted: 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);
}
} |
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: Sun 18 Mar 2012, 06:55 Post subject:
|
|
0.07 is out
Fixes persistent pink message recurrence.
See main post
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
pemasu

Joined: 08 Jul 2009 Posts: 5484 Location: Finland
|
Posted: Sun 18 Mar 2012, 07:02 Post subject:
|
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: 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
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
davids45

Joined: 26 Nov 2006 Posts: 1068 Location: Chatswood, NSW
|
Posted: 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
|
|
 |
ETP

Joined: 19 Oct 2010 Posts: 1049 Location: UK
|
Posted: 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)
Description |
|
Filesize |
45.71 KB |
Viewed |
1168 Time(s) |

|
_________________ Regards ETP
Kennels
|
Back to top
|
|
 |
|