Setting up lm sensors: Difference between revisions
No edit summary |
Prabuanand (talk | contribs) (added links, headings, category) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
This | This page documents how to set up lm-sensors in Alpine Linux. [http://hwmon.wiki.kernel.org/ lm-sensors] is a Linux hwmon subsystem that provides tools and drivers for monitoring temperatures, voltage, and fans. | ||
Install the neccessary packages. | == Installation == | ||
Install the neccessary packages. | |||
{{Cmd|# apk add {{pkg|lm-sensors}} {{pkg|lm-sensors-sensord}} {{pkg|lm-sensors-detect}}}} | |||
{{note|If you already know the name of the sensor module, you can modprobe it now, and skip the lm-sensors-detect install.}} | |||
== Configuration == | |||
Load the i2c-dev module: | Load the i2c-dev module: | ||
{{Cmd|<nowiki># echo i2c-dev >> /etc/modules-load.d/i2c.conf | |||
# modprobe i2c-dev</nowiki>}} | |||
Run sensors detect: | |||
{{Cmd|# sensors-detect}} | |||
There are multiple types of sensors that you must skip scanning for (answer <code>no</code> to the prompt) because grsec will not allow you to access {{path|/proc/port}}. If you encounter an error that says something like <code>/dev/port: no such file..</code>, re-run the script and answer <code>no</code> to that question on the next attempt. Examples of ones that you must enter <code>no</code> for: ISA bus, other Super I/O sensors, and IPMI. | |||
Be sure to enter <code>yes</code> (non-default) for the question <code>Do you want to generate /etc/conf.d/lm_sensors?</code> | |||
You will not need perl anymore. Remove it before you forget. | You will not need perl anymore. Remove it before you forget. | ||
{{Cmd|# apk del lm-sensors-detect}} | |||
Make services start during next reboot. | Make services start during next reboot. | ||
{{Cmd|<nowiki># rc-update add lm_sensors default | |||
# rc-update add sensord default</nowiki>}} | |||
Start services: | Start services: | ||
{{Cmd|<nowiki># rc-service lm_sensors start | |||
# rc-service sensord start</nowiki>}} | |||
If you're using [[Diskless Mode]], don't forget to save your new server configuration using {{Cmd|# lbu commit}} | |||
[[Category:Monitoring]][[Category:Desktop]] |
Latest revision as of 09:24, 16 January 2025
This page documents how to set up lm-sensors in Alpine Linux. lm-sensors is a Linux hwmon subsystem that provides tools and drivers for monitoring temperatures, voltage, and fans.
Installation
Install the neccessary packages.
# apk add lm-sensors lm-sensors-sensord lm-sensors-detect
Configuration
Load the i2c-dev module:
# echo i2c-dev >> /etc/modules-load.d/i2c.conf # modprobe i2c-dev
Run sensors detect:
# sensors-detect
There are multiple types of sensors that you must skip scanning for (answer no
to the prompt) because grsec will not allow you to access /proc/port. If you encounter an error that says something like /dev/port: no such file..
, re-run the script and answer no
to that question on the next attempt. Examples of ones that you must enter no
for: ISA bus, other Super I/O sensors, and IPMI.
Be sure to enter yes
(non-default) for the question Do you want to generate /etc/conf.d/lm_sensors?
You will not need perl anymore. Remove it before you forget.
# apk del lm-sensors-detect
Make services start during next reboot.
# rc-update add lm_sensors default # rc-update add sensord default
Start services:
# rc-service lm_sensors start # rc-service sensord start
If you're using Diskless Mode, don't forget to save your new server configuration using
# lbu commit