by jesse

how do i setup lm_sensors on an abit vp6 mobo?

firth, this assumes you know how to load modules, how to compile a kernel, that you are using a 2.4.x series kernel, and that marsupials can be amusing.

1. get the latest lm_sensors package from http://www.netroedge.com/~lm78/download.html
1a. get the latest i2c package from http://www.netroedge.com/~lm78/download.html
1b. get the latest kernel 2.4.x seriese kernel source from kernel.org.(this is written for 2.4.6).
2. untar the kernel source, the i2c source, and the lm_sensors source(i will assume you are working in /tmp).
3. go into the i2c source dir.
4. make the patch for the kernel source, './mkpatch/mkpatch.pl . /tmp/linux > /tmp/i2c-patch'.
5. apply the patch. cd ..; patch -p0 < i2c-patch;
6. make the patch for lm_sensors, this uses the same process as the i2c patch. cd lm_sensors; ./mkpatch/mkpatch.pl . /tmp/linux > /tmp/lm_sensors-patch;
7. apply the patch. cd ..; patch -p0 < lm_sensors-patch;
8. now time to compile lm_sensors. cd lm_sensors; ./configure; make; make install;
9. now compile your kernel, make sure to compile the i2c support. under 'I2C mainboard interfaces' compile 'Pseudo ISA adapter' into the kernel. Under 'Hardware sensors support' build 'VIA 686a Integrated Hardware Monitor' as a module. Those are both in the character devices section.
10. compile and reboot with your new kernel.
11. load the via686a module.
12. now run the 'sensors' program, if it has worked right you will see some output, the numbers will be all wrong, but there should be numbers.
13. now you need to edit the config file for sensrs, /etc/sensors.conf. Here is what you need to put in it:
chip "via686a-*"
    label "2.0V" "CPU core"
    label "2.5V" "+2.5V"
    label "3.3V" "I/O"
    label "5.0V" "+5V"
    label "12V" "+12V"
    label fan1  "CPU1 Fan"
    label fan2  "CPU2 Fan"
    label temp1 "CPU1 Temp"
    label temp2 "CPU2 Temp"
    label temp3 "SBr Temp"
    set in0_min 2.0
    set in0_max 2.5
    set temp1_hyst 55
    set temp1_over 65
    set temp2_hyst 55
    set temp2_over 65
    set temp3_hyst 60
    set temp3_over 65

14. now run sensors -s
now when you run sensors it should have the correct data.
you will need to load the via686a module after every reboot, i sugest putting it in an init script.

 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2010-02-10)

443.   Who is Tila Tequila?   [n0b0dy/2008-06-12]
384.   Where can I find good undergraduate summer research/internships?   [virgil/2003-10-03]
372.   What is the offical 'insta-gay' drink™ of #temp?   [ross/2003-09-16]
371.   What is the offical bitch drink™ of #temp?   [ross/2003-09-15]
316.   Ericsson Test Mode - Cellular Wiretaping   [brad/2002-05-15]
297.   What are some notable events in Usenet history?   [rupe/2001-12-20]
292.   what do you do when your favorite web site becomes no more?   [kurt/2001-11-29]
261.   Which companies belong to the DVD Copy Control Association (DVD CCA) as of 08-2001?   [rupe/2001-08-03]
187.   So when's the BIG PARTY?   [strick/2002-01-23] ( nana/2001-03-22 nana/2001-03-21 macki/2001-03-04 )
185.   what are some cool domain names?   [jesse/2001-02-26] ( josh/2001-04-03 )
180.   Why is that dwarf always following me?   [vonguard/2001-02-17]
173.   What's in the strawberry flavouring of a Burger King Milkshake?   [rupe/2001-02-06]
146.   What commands do UNIX system administrators commonly use?   [rupe/2000-11-09] ( strick/2001-01-04 )
105.   What does matt do to Windows machine after a fresh install?   [matt/2000-07-03]
96.   Where can I find information on in-vehicle computer systems?   [rupe/2000-05-24]
51.   I'm playing with dialpad.com -- What's the USGS earthquake info phone #?   [strick/2000-02-06]
44.   What web pages are by VONGUARD?   [strick/2000-02-02]
38.   What did <Andrigaar> and <|PenZerg|> say to the HUMANS in #yak ?   [strick/2000-02-01]