Also note that lm_sensors and different HW sensors give completely different output, even from version to version and kernel to kernel making the older method I used to find the temperature a joke! The way it's done now is more reliable. Works on all my machines that have sensors, including the raspberry pi (latest kernel with raspbian installed). Also works in KDE with Slackware-current.

Now version 0.21

Changelog:

Quote:

v-0.21 131121
-rewrite of the C source to be more multiuser friendly
-temp files now in ~/tempicon
-made icons square, work-around for bug in JWM-r876 (pemasu)
-removed unecessary code

v-0.19 130404
-added support for gtk+-3.0 (only available at compile time, see the README in the source)
-added a configure script, deleted hard code Makefile
-bugfix - in kernels >=3.7 the script was finding the GPU, not CPU temp

v-0.18 130320 (unreleased in general)
- moved main script to a functions library script

v-0.05 120120
-rewrote for svg (source now tempiconsvg.c) .. looks nicer, and is more hackable, eg you could change the font if you like, not supported though
-added temps up to 105 C
-removed "C" from icon.. I am NOT suporting "F".. get with the program US!
-icons now created in pinstall.sh, it's plenty fast enough
-removed text2xpm depend

NOTE: lm_sensors is now a separate package as there are newer versions available. You CAN IF YOU LIKE (was 'must', ymmv) install lm_sensors, either the one posted below or from PPM. You should do this before installing tempicon-0.xx.pet. If you have previous version of tempicon installed please uninstall with PPM first to cleanup the old files (taken care of in the puninstall.sh).

DEBUG: If the app fails for you, to supply debug info, run sensors in a terminal and post the output. Thanks.

This is an app I have been working on. It displays your cpu temperature in the tray, a handy feature when your machine is under heavy load in warm conditions, eg: compiling large progs in the Queensland summer.

It OPTIONALLY depends on lm_sensors (included) and it also includes rcrsn51's gtkdialog gui from CPUtemp to display more information, mobo temp, fanspeed etc. Thanks rcrsn51. Activate that gui by right clicking the icon and clicking the "more info" tab.

It does not include any images. They are generated by technosaurus' nifty little script text2xpm (the colour and size supported version). So, it depends on text2xpm too(OLD INFO, now uses svg), included.

//@techno, can you add a degree symbol? I tried .. but.. [solved]

----

It works by running a script to save temperature to a temporary file, updated every five seconds, then a little C gtkstatusicon proggy reads that info and displays the cpu temp.

The exec is compiled on Slacko so if it fails for you, perhaps due to an older gtk+-2.0 version, the sources and a compile script are provided. (devx is needed to compile)

This is only my second ever proggy written in C, so this must be considered alpha quality software. (The other is an OLPC battery monitor, only runs on OLPC xo-1 and xo-1.5 hardware).

Usual cautions apply.

When you install there is an option to add a Startup file to start it when X starts.

Do you think there is an algorithmic way to make sense of something like this? Monitor the temp that is closest to critical? Average the values? What do you think?

Well, that output will certainly bork my tempicon.sh script! On my old laptop I get similar output but the order is reversed. I made the gross assumption in my case that, more less the hottest is the temp of the CPU, which is temp1 for me. Nothing algorithmic about that!

Thanks for your sensors output. At least I can cover your case but I am sure there will be others. I've only covered my Athlon and my old Intel, so the script has a way to go yet._________________Woof Mailing List | keep the faith |

Installed on my lappy but it just displayed 10 deg Actual temp is around 56 deg. Uninstalling broke CPU Temp of course, which I had to re-install after._________________Spup Frugal HD and USB
Root forever!

In the first post I'll have to request some debugging output on failure. Run sensors in a terminal. I should be able to make a case based on the module used. On todo list._________________Woof Mailing List | keep the faith |

Yeah thought about that, I think the tilde ~... or any non numeric char except C. Did try the tilde but I goofed by changing the tilde to degree in the array. So I'll leave the tilde in the array and just alter the font. TY._________________Woof Mailing List | keep the faith |

I am finding the values differently now so hopefully tempicon-0.02 should work for you. One thing I may have to address is cold weather conditions. Your machine may be below 10 C and I haven't covered that. There is code built in to the exec that's prints to stderr if an icon isn't found so the app should recover when the machine warms up. Likely 10 C will be shown until then.

I am using the gross assumption that the highest temp is the CPU temp. It is on my Athlon because CPU temp is labeled:

With Puppy Linux 5.3.1 (and even 4.1.2) the fans are always maxed out. But, when I let the system boot into Windows XP, the fans throttle back once the Windows login is displayed and only speed up when necessary.

Is there anything I can do to regulate fan speed based on the CPU/MB temps?

One thing I may have to address is cold weather conditions. Your machine may be below 10 C and I haven't covered that. There is code built in to the exec that's prints to stderr if an icon isn't found so the app should recover when the machine warms up. Likely 10 C will be shown until then.

Dave.. from a cold start is this ever a problem? I wont be able to test that for at least 6 months! (er, unless I shove my lappy in the freezer!).

Samus2012 wrote:

Is there anything I can do to regulate fan speed based on the CPU/MB temps?

First of all, welcome to the kennels!

Probably, but it would have to be a script based on current fan speed/temperature and telling the module which controls fan speed to slow down/speed up depending on those results. Maybe you could post in the software>requests forum? More eyes would see it then _________________Woof Mailing List | keep the faith |

Strange thing.... after re-boot, it just displays 10 deg. If I then right click and select 'more info' the dialogue pops up displaying the temp as it should, then a few seconds later, the tray icon begins giving the correct reading. It is then fine till next boot, whereupon I have to repeat the process.
Will try a sub 10 deg start in the morning _________________Spup Frugal HD and USB
Root forever!

Strange thing.... after re-boot, it just displays 10 deg. If I then right click and select 'more info' the dialogue pops up displaying the temp as it should, then a few seconds later, the tray icon begins giving the correct reading. It is then fine till next boot, whereupon I have to repeat the process.
Will try a sub 10 deg start in the morning

Ok, that's weird. If you can reproduce this, before you click anything run

Code:

cat /tmp/tempicon/count

I suspect you may get "no such file or dirctory" in which case the tempicon.sh script is falling down somewhere. If you get the correct reading then the exec is failing._________________Woof Mailing List | keep the faith |

OK, ran the command... terminal gave zero output, jut a return to the prompt.

Ah, so I bet there was an empty line, meaning the script is failing.
I have a bug in lm_sensors where I can't suppress stdout and consequently my xerrs.log fills up.
I bet for you, "sensors" is failing to run, that's why it's ok after you right click and look at the gui. Thanks Dave, I think I can fix it.

EDIT: Hmmmm... I bet coretemp module is not loaded. rcrsn51's script loads it, then you are ok.
So, when you startup and it fails run modprobe coretemp and see if that fixes it. I'll wait til I hear from you then make a 0.03 version if that is the fix. (likely IMO)_________________Woof Mailing List | keep the faith |

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum