You are not logged in.

#1 2013-06-23 20:01:06

Kalrish
Member
Registered: 2013-02-27
Posts: 62

thermal-tools

Hello!

Time ago I looked for a way of controling the fan speed of my computer. lm_sensors didn't helped, as my hardware was not capable, so I researched a bit more and 'discovered' /sys/class/thermal. A deep reading about it brought me the idea that the sysfs interface should be the way to go. So, I played a bit with the cooling_devices that were there.

Trying to make an unified & simple frontend to the kernel interface, I made two little scripts. Thanks to rockin turtle (see bbs.archlinux.org), I finally set them up. With the help I've received in this other thread today, well, they're there!

cool shows the status of all the cooling devices in the system. It also allows you to modify them in a very easy way:

cool 0- 2=3 4+

Here, I've put the cooling device 0 to its minimum state. The device number 2 has been set to 3, and the fourth, to its maximum.

The other script is called temp, and it simply displays the temperature obtained from all the thermal zones exposed by the kernel. It lets you change the colors associated with the different temperatures (I know nobody cares about it, but, well, this has also been a learning exercise). I'll add support for tuning the ranges (i.e.: low is under 40ºC, mid is between 40 and 50 celsius, etc).

The scripts are located in my Github repo. The README there is a good reading that briefly explains what they do and how you can customize the few things the scripts let you tune. Finally, if you get interested on them, I've just uploaded the package to the AUR: thermal-tools.

Hope you like it :)

Offline

Board footer

Powered by FluxBB