7th January 2020
Continuous temperature monitoring from the kernel's
/sys/class/thermal/
in an application can be
cumbersome. gtherm aims to make that simpler by providing a
daemon (gthd
) that exports thermal zones and cooling cells over DBus
and providing a small library libgtherm (and GObject introspection
bindings). gthcli
is a simple command line client that displays the
currently found values:
Thermal Zones
-------------
dbus path: /org/sigxcpu/Thermal/ThermalZone/0
type: cpu-thermal
temperature: 53,00°C
cooling devices: /org/sigxcpu/Thermal/CoolingDevice/0
dbus path: /org/sigxcpu/Thermal/ThermalZone/3
type: max170xx_battery
temperature: 36,60°C
dbus path: /org/sigxcpu/Thermal/ThermalZone/2
type: vpu-thermal
temperature: 54,00°C
dbus path: /org/sigxcpu/Thermal/ThermalZone/1
type: gpu-thermal
temperature: 54,00°C
cooling devices: /org/sigxcpu/Thermal/CoolingDevice/1
Cooling Devices
---------------
dbus path: /org/sigxcpu/Thermal/CoolingDevice/0
type: thermal-idle-0
max state: 100
current state: 0
dbus path: /org/sigxcpu/Thermal/CoolingDevice/1
type: 38000000.gpu
max state: 6
current state: 0
There's support for gnome-usage in the works:
Next up is support for trip points (and maybe tuning cooling behaviour from userspace later on).