LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-19-2004, 04:02 PM   #1
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Rep: Reputation: 30
lm_sensors not working. No sensors found!


Ok, I know I have a VIA chipset, and I compiled that specific driver into my kernel to make it work, but when I give "sensors" in the shell, I get "No sensors found". I am using a 2.6.3 kernel. Anyone have any ideas?
 
Old 08-19-2004, 04:39 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: lm_sensors not working. No sensors found!

Quote:
Originally posted by Kramer
Ok, I know I have a VIA chipset, and I compiled that specific driver into my kernel to make it work, but when I give "sensors" in the shell, I get "No sensors found". I am using a 2.6.3 kernel. Anyone have any ideas?
I see no mention of you having gone to the lm_sensors website and getting the package there so you can compile the actual user modules. So have you? Assuming that you have a via686 chipset like I have here are the modules you should have in the kernel.

Code:
via686a                17832  0
i2c_sensor              2304  1 via686a
i2c_isa                 1600  0
i2c_core               18832  3 via686a,i2c_sensor,i2c_isa
Here is the steps I had to use on Debian the files may be different for you. You need this in your /etc/modules.conf.
Code:
alias char-major-89 i2c-dev
I used the 2.8.2 version of the files on the site and extracted the file in the /usr/local/ directory and then changed into the directory the files were extracted too for the make user and make user_install steps to install the libraries needed. Then you would run the sensors-detect to ensure that you have everything you need for it to work. When you get near the end of the questions you should say yes to using the ISA bus and you will get output to put into your /etc/modules file in my case this.

Code:
# Added by me for sensors
#----cut here----
# I2C adapter drivers
i2c-isa
# I2C chip drivers
via686a
#----cut here----
The other parts of the output telling me to use the -sleep line or something like that did not apply as well as letting it make a script in the rc.d directory however I had to put this in my /etc/ld.so.conf.

Code:
/usr/local/lib
Then run /sbin/ldconfig to update the /etc/ld.so.cache for the system to be able to find the new local libraries.
 
Old 08-19-2004, 05:01 PM   #3
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ok, we have the same chipset. Ive edited everything you did, but Im confused on one thing. Which file do I add
Quote:
# I2C adapter drivers
i2c-isa
# I2C chip drivers
via686a
to?

I did urpmi to get lm_sensors off of the mandrake cd's
 
Old 08-19-2004, 05:20 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by Kramer
Ok, we have the same chipset. Ive edited everything you did, but Im confused on one thing. Which file do I add

to?

I did urpmi to get lm_sensors off of the mandrake cd's
They go into the /etc/modules file. For the file you got of the CD it has to be version 2.8.2 or better to work with a 2.6 series kernel assuming that it is the source and not just support modules that you need. Unless Mandrake has already went through the trouble of compiling the modules for you then you still need to go to the website and get the package.
 
Old 08-19-2004, 05:23 PM   #5
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
/etc/modules.conf file?

Also, mine is not the 2.8.2 AFAIK. I will download the source, compile and report back.
 
Old 08-19-2004, 05:43 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by Kramer
/etc/modules.conf file?

Also, mine is not the 2.8.2 AFAIK. I will download the source, compile and report back.
No if it does not exist on your system then you will have to find the file that Mandrake uses.
Code:
>$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a "#", and everything on the line after them are ignored.
input
#usbkbd
#keybdev
#msdos
autofs
tulip
lp
# Added by me for Sound
#emu10k1
#sound
# Added by me for Sidewinder joystick
gameport
joydev
#emu10k1-gp
sidewinder
ns558
#nls_iso8859-15
# Added by me for sensors
#----cut here----
# I2C adapter drivers
i2c-isa
# I2C chip drivers
via686a
#----cut here----
#bttv
#videodev
## Added by me for USB
uhci-hcd
 
Old 08-24-2004, 10:14 AM   #7
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ok, Ive managed to find the /etc/modules file. It is the same as yours, but has nothing in it other than the i2c stuff that I added. Im still getting 'No sensors found' at boot. I am going to try and download the 2.8.2 and compile and see if that works.
 
Old 08-24-2004, 09:34 PM   #8
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ok, I downloaded the 2.8.5 version (Mdk has 2.8.4 built in, which I have rolled back to) and tried to compile the 2.8.5, but it doesnt work. I went back to the 2.8.4, but its still not working. Any other pointers? The parts that I need, particularly the via686 driver are built into my kernel, as well as support for i2c. Should I recompile the kernel with them enabled as modules, or leave them be?
 
Old 08-27-2004, 11:28 AM   #9
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Recompiled with everything enabled as modules, but I am still not getting sensor readings. Can anyone help?
 
Old 09-05-2004, 01:50 PM   #10
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Bump
 
Old 09-08-2004, 09:11 PM   #11
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Bump. Ive tried everything and still getting no sensors found. Anyone?
 
Old 09-11-2004, 02:32 PM   #12
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Bump, I can provide anything anyone thinks would help me figure this out. I really need to get my sensors working again! Thanks.
 
Old 09-12-2004, 01:34 AM   #13
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
From lm_sensors site :

Recommended Kernel Configuration

* Code maturity level options
o[*] Prompt for development and/or incomplete code/drivers
* Bus options (PCI, PCMCIA, EISA, MCA, ISA)
o[*] PCI support
o[*] ISA support (not needed anymore since 2.6.2-rc1)
* Device Drivers
o I2C Support
+ <M> I2C Support
+ <M> I2C device interface
+ I2C Algorithms
# <M> (configure all of them as modules)
+ I2C Hardware Bus support
# <M> (configure all of them as modules)
+ I2C Hardware Sensors Chip support
# <M> (configure all of them as modules)



Then compile lm_sensors (make user, make user_install), using the matching package for your kernel:

Recommended kernel and lm_sensors combinations:

* Kernels 2.6.5-rc1 and later: lm_sensors 2.8.6 or any later version
* Kernels 2.6.3-rc2 to 2.6.4: lm_sensors 2.8.5
* Kernels 2.6.2-rc1 to 2.6.3-rc1: lm_sensors 2.8.4
* Kernels 2.6.1-rc1 to 2.6.1: lm_sensors 2.8.3
* Kernels 2.6.0 and earlier: lm_sensors 2.8.2



Run "sensors-detect" as root. It's usually OK to give the default answer (hit enter) for each question. At the end of the program, add the specified code to the files mentioned (/etc/modules.conf and /etc/rc.d/rc.local for Mdk). Don't forget the last line:
Code:
Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors
for initialization at boot time.

Reboot and configure GKrellm or whatever frontend you're using. If that doesn't work, post back with the problem and output of lsmod


edit:spelling

Last edited by mdg; 09-12-2004 at 01:36 AM.
 
Old 09-12-2004, 08:18 AM   #14
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Ok, I have everything compiled in like that, but I did 'urpmi' to get lm_sensors off the Mandrake cd's. It is version 2.8.4 I think. How can I find where it installed it to, and is there anything else I can do? The 2.8.5 I downloaded doesnt compile at all.
 
Old 09-12-2004, 09:58 AM   #15
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Does "sensors-detect" run in terminal as root?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2.6.10 upgrade - No sensors found !!! finidi Fedora 7 06-18-2007 05:09 PM
lm_sensors can't find my Dell Latitude d510 sensors! :( npc Linux - Laptop and Netbook 6 11-02-2005 10:17 PM
i2c and lm_sensors, sensors-detect johnnydangerous Fedora 2 03-15-2005 04:28 PM
lm_sensors installed but this is the only output of the sensors command.. kublador Linux - Software 13 09-09-2004 07:40 PM
lm sensors, no sensors found N_A_J_M Linux - General 3 01-22-2003 05:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration