GAI Temp
- a program which displays the temperature of your harddisk or of your cpu in gnome-panel or as so called "dockapp" in some window managers..
The translation of the homepage is in progress. If you spot any mistakes, don't hesitate to mail me!
News
Portage overlay for 0.1.1
The overlay contains a patch which prevents sandbox problems.
It might also be useful for other distributions.
version 0.1.1 released
improvements:
- removed seg.fault which caused crashes on some systems while saving the configuration
- use alternate paths as ACPI-temperature source (still hardcoded)
preconditions
- gai >= 0.5.8
- Linux >= 2.6 for Lm_sensors ("uname -r" tells you more)
- hddtemp
(as daemon) to display the harddisk temperature.
- acpi-support in linux kernel
packages
gai-temp exists currently in following forms:
- gai-temp-0.1.1.tar.gz as source code
(md5-sum)
- gai-temp_overlay-0.1.1.tar.gz as Gentoo Portage overlay (md5-sum)
Unpack gai-temp_overlay-0.1.1.tar.gz to your portage overlay directory
e.g. /usr/local/portage (set /etc/make.conf :
PORTDIR_OVERLAY=/usr/local/portage);
then run as the following commands as root:
cd /usr/local/portage
tar xzvf /pfad/zu/gai-temp_overlay-0.1.1.tar.gz
echo x11-plugins/gai-temp ~x86 >> /etc/portage/package.keywords
emerge gai-temp
You might also need to unmask x11-libs/gai:
echo x11-libs/gai ~x86 >> /etc/portage/package.keywords
- and here is the gentoo ebuild gai-temp-0.1.1.ebuild on its own. The sandbox-patch is also needed: gai-temp-sandbox_fix.patch.
installation from source
The popular three steps to install a unix source package are used here.
./configure --prefix=/usr
make
make install
The last command must be executed as root to be allowed to install the program system-wide.
What's next?
When you run gai-temp for the first time - never mind if it runs as gnome-panel app or not - all available temperatures are displayed.
This may be more than five. The number of temperatures which are displayed at the same time can be modified in the preference menu. By default it is set to three, but you can choose any value.
You can also define a high and a critical temperature for any sensor group gai-temp is able to detect (e.g. all temperatures that are read via lm_sensors) and you can choose a font color for normal, high and critical temperatures. Temperature limits for individual sensors are planed.
You can also select the temperature unit such as celsius (standart), kelvin and fahrenheit - but the temperature limits currently must be set in celsius values.
Non-Gnome users can select the "vertical"-option, which lists the temperatures vertically, change the background color and select a different font. By default the GTK+ default font and the default background are used to integrate gai-temp better into gnome-panel.
Finally you can set an alternative name for any temperature sensor, but currently this feature isn't used anywhere.
Something to look at

from gnome-panel

this time vertical

the preference menu

the lm_sensors page
Details
GAI-Temp gets its data about the component's temperature from the following sources:
- hddtemp
Many modern harddisks have a built-in temperature sensor. You can talk to it using hddtemp,
when you have SMART acticated in your bios setup. To do this, hddtemp must run as root.
Running as daemon in the background, reading the temperature is done via network sockets.
So it is possible to read the temperature from forign hosts, but gai-temp
isn't capable of doing this, yet. Only the local temperature is read.
Further information is available from http://coredump.free.fr/linux/hddtemp.php
- acpi
Linux-ACPI supports the extension "thermal zones". Never mind using it as module "thermal" or having it compiled into the kernel, there is a file "/proc/acpi/thermal_zone/THRM/temperature" if your mainboard supports it. GAI-Temp reads the needed data from there.
example content:
temperature: 48 C
- lm_sensors
[not translated, yet]
Lm_sensors ist ein Projekt, welches es sich zum Ziel gesetzt hat die
"Sensoren" eines Rechers zu überwachen. Dazu haben sie Werkzeuge und
Bibliotheken entwickelt, die gai-temp aber nicht verwendet. Stattdessen
liest es die Daten, ähnlich wie bei acpi, aus einem virtuellen
Dateisystem aus. Diesmal ist es aber das SYS Dateisystem, in dem alles
mögliche zu finden ist. Vor Linux 2.6 legte lm_sensors die
Sensorinformationen im PROC-Dateisystem ab; aus diesem Grund
funktioniert gai-temps lm_sensors Lesefähigkeit nur auf Linux 2.6.
Unter "/sys/devices/platform/" sucht gai-temp nach Verzeichnissen mit
dem Namen "i2c-[Zahl]". In diesen befindet sich dann ein Ordner namens
[Zahl]-*. Dort sind nun eine Menge an Dateien zu finden:
-r--r--r-- 1 root root 4096 28. Sep 09:09 alarms
-rw-r--r-- 1 root root 4096 28. Sep 09:09 beep_enable
-rw-r--r-- 1 root root 4096 28. Sep 09:09 beep_mask
...
-r--r--r-- 1 root root 4096 28. Sep 09:09 temp1_input
-rw-r--r-- 1 root root 4096 28. Sep 09:09 temp1_max
-rw-r--r-- 1 root root 4096 28. Sep 09:09 temp1_max_hyst
-rw-r--r-- 1 root root 4096 28. Sep 09:09 temp1_type
...
Relevant für gai-temp sind lediglich temp?_input. Bei mir steht temp1
für die Temperatur des Mainboards und temp2 zeigt die gleiche
Temperatur an, wie sie auch aus acpi_thermal_zone gelesen werden kann,
also die Prozessortemperatur.
Diese Dateien beinhalten lediglich eine ganzzahl, die die Temperatur in Milli-Grad-Celsius [°C * 10^-3] enthält.
Further information and installation guidance is available from http://secure.netroedge.com/~lm78/
all links to get an overview:
contact
Fragen und Kommentare an
questions and comments to
| Olaf Leidinger |  |
|