This app puts a digital CPU temperature monitor in your system tray (taskbar).. screen shot attached.
NEW: dependency on lm_sensors is now optional (ymmv)
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:
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).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.17 130301
- improvements to scripts
- better efficiency
- fixed a bug where blank lines were appended to /tmp/xerrs.log
v-0.16 130131
-rewritten to call the script from the binary, not binary from script
- this reduces CPU load and gets rid of a bash loop.
v-0.15 130102
-fixes for slackbones
v-0.14 121020
-font fixes again
v-0.13 120920
-font fixes for different arches (hoping it builds on raspberry pi ... it does!)
-added extra colour and changed colour grading
-added icons to right click menu
v-0.12 120902 (not released)
-bugfix -newer lm_sensors have slightly different format, rely on manual method
to get the cpu temp displayed by icon
-fixed calls from 'sh' to 'bash'
-fixed calls to to gtkdialog (not gtkdialog3 or gtkdialog4)
v-0.11 120702
-bugfix -mainloop refused to start after X restart
-removed "Help" button if lm_sensors is not installed
v-0.10 120701
-bugfix -kill main loop on quitting
-ensure $PREFIX/tempicongui is charset UTF-8 for degree symbol
-improvements to makefile, new2dir compatible, default PREFIX=/usr/local
hack the Makefile for different PREFIX
v-0.09 120610
-add support for Makefile
-small bugfixes in C code
-rounded corners of the icons
-no longer generating icons, done at compile stage
v-0.08 120601 (unpublished)
-remove lm_sensors as needed dependency
-support Fatdog
-changed installation
-added README
v-0.07
-remove startup script automatically when you get the pink error message
v-0.06 120121
-fixed version (CatDude)
-added menuitem in tempiconsvg.c to remove from Startup (mainly for woof builds to give user some control over the tray)
-fixed pinstall.sh, bad link (woof install)
-fixed typo MUDULE
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
v-0.04 120110
-bugfix with loading module logic and fix typo (DaveS)
v-0.03 120101
-added module detection and module loading capability to tempicon.sh
-module printed to /etc/tempicon.conf, removed on uninstall
-adjusted puninstall.sh
-added "usage" to tempicon.sh
-added sensors check to tempicon.sh
-changed CPUtemp and CPUtemp.hlp to tempicongui and tempicon.hlp
wont clobber rcrsn51's app
-filter out degree symbol in gui for non UTF-8 enabled encoding
-changed to mono font in tempicongui
-changed text in tempicon.hlp to use tempicon.sh -m to load module
-changed tempicon.c to call tempicongui instead of CPUtemp
-added toggle to add/remove Startup file "tempicon.sh -t"
v-0.02 111230
-hacked text2xpm font. "~" (tilde) is now "°" (degree)
-adjusted tempicon.sh to draw degree sympal to *.xpm's
-tempicon.sh now get's the highest temp value and makes gross
assumption that that is CPU temp, usually is.
-tempicon.c, adjusted comment with old scriptname, "text-temp" to "tempicon.sh"
-removed lm-sensors binaries to separate package, added warning to pinstall.sh
v-0.01 111229
-initial release
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.
Any C coders please offer your critique, same goes for the bash bits.
Have fun!