Hardware Sensors

From gr0x0rd
Jump to navigation Jump to search

Configuring Hardware - Hardware Sensors

Chances are your hardware contains a number of sensors for monitoring temperature, power, fan speed and more. The package that installs the tools is called lm_sensors. Make sure you have the lm_sensors USE flag set in your /etc/make.conf. You will also want to set the package-specific USE flag sensord in your /etc/portage/package.use.

$ sudo emerge -av lm_sensors

To enable the sensors logging daemon, you'll need to configure and restart syslog-ng.

$ sudo nano -w /etc/syslog-ng/syslog-ng.conf

Make sure the file contains the following directives:

...
destination sensord { file("/var/log/sensord"); };
filter f_sensord { facility(daemon); };
log { source(src); filter(f_sensord); destination(sensord); };
...

Restart the logging utility in order to have the changes take effect.

$ sudo /etc/init.d/syslog-ng restart

Next we will run a utility that probes the system and detects the sensors. If any hardware monitoring chips are detected on your system, the program will list the kernel modules needed to interface with them.