Difference between revisions of "Hardware Sensors"

From gr0x0rd
Jump to navigation Jump to search
(Created page with "== Configuring Hardware - Hardware Sensors == Chances are your hardware contains a number of sensors for monitoring temperature, power, fan speed and more. The package that inst…")
 
Line 3: Line 3:
 
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''.
 
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
 
  '''$''' 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); };
 +
...

Revision as of 20:14, 9 December 2010

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); };
...