lm-sensors on the VIA EPIA SN10000EG and SN18000g
July 1st, 2009
7 comments
1. Edit /etc/modprobe.d/options.conf
2. Add the following line:
options dme1737 probe_all_addr=1
3. Save and exit
4. Load the module
modprobe dme1737
5. Check that it loaded succesfully:
lsmod6. Edit the /etc/sysconfig/lm_sensors file
HWMON_MODULES="dme1737" MODULE_0=dme1737
7. Run sensors to check the output
sensors
8. I also compiled the c7temp module because the in0 didn’t show and loaded it.
mkdir -p /usr/src/c7temp (I extracted the c7temp.c file from the patch which is placed here: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20080619/0dccdaf0/attachment.bin) touch /usr/src/c7temp/c7temp.c filled the contents of c7temp.c with those of the patch
Created a makefile in the c7temp dir.
obj-m := c7temp.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
And ran make in the c7temp dir. This will get you a .ko file. Install it.
install -m 644 c7temp.ko /lib/modules/`uname -r`/kernel/drivers/hwmon/c7temp.ko
Generate the modules.dep and map files
depmod -aAnd load the module
modprobe c7temp
And check that the module loaded with lsmod
lsmodModified the /etc/sysconfig/lm_sensors file a bit again
# Generated by sensors-detect on Wed Jul 1 08:43:13 2009 # This file is sourced by /etc/init.d/lm_sensors and defines the modules to # be loaded/unloaded. # # The format of this file is a shell script that simply defines variables: # HWMON_MODULES for hardware monitoring driver modules, and optionally # BUS_MODULES for any required bus driver module (for example for I2C or SPI). HWMON_MODULES="dme1737 c7temp" # For compatibility reasons, modules are also listed individually as variables # MODULE_0, MODULE_1, MODULE_2, etc. # You should use BUS_MODULES and HWMON_MODULES instead if possible. MODULE_0=dme1737 MODULE_1=c7temp
Done.
9. I edited the /etc/sensors3.conf file on my machine
chip "sch311x-*" ignore in0 label in1 "Vcore" label in2 "+3.3V" label in3 "+5V" label in4 "+12V" label in5 "3VSB" label in6 "Vbat" label temp1 "CPU" label temp2 "SIO Temp" label temp3 "M/B Temp" set in2_min 3.3 * 0.90 set in2_max 3.3 * 1.10 set in3_min 5.0 * 0.90 set in3_max 5.0 * 1.10 set in4_min 12.0 * 0.90 set in4_max 12.0 * 1.10 set in5_min 3.3 * 0.90 set in5_max 3.3 * 1.10 set in6_min 3.0 * 0.90 set in6_max 3.0 * 1.10 chip "c7temp-*" ignore temp1
Categories: Debian