LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2004, 01:08 PM   #1
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
can't get lm_sensors to work with 2.6.0


i've been trying to get this to work for weeks, it feels like. i never had a problem with sensors in earlier kernels, hmm. anyway, i have the i2c stuff built into the kernel as modules, and after installing the latest 2.8.2 lm_sensors with "make user" and "make user_install," i ran depmod -a (just to be safe) and then sensors-detect. i went through the setup screen, and everything seemed to be fine.

lsmod gives this:
Module Size Used by
i2c_dev 10944 0
i2c_nforce2 5952 0
i2c_core 25992 2 i2c_dev,i2c_nforce2
cs46xx 68236 1
ac97_codec 19276 1 cs46xx


mounting the sysfs gives this (i.e., it's already mounted in fstab):
root@homer:/ # mount -f /sys
root@homer:/ # mount -n -t sysfs /sys /sys
mount: /sys already mounted or /sys busy
mount: according to mtab, none is already mounted on /sys


but after loading all the i2c modules, running sensors says, "No sensors found!"

did i miss a kernel option? i built ISA bus into the kernel, so i don't think that's it. (fwiw, i seem to remember not having it built in last time, and lm_sensors did work. ? ) the output of sensors-detect that it told me to put in the rc.modules file is different this time, though -- i tried both the old and the new, but neither worked. but i thought it was weird that it was different with the same hardware... anyway, i'll post both just in case that's a clue to anyone, because i'm clueless at this point. i am overclocked a little, and i also run folding, so i really would like to be able to monitor my temperatures. thx for any help.

#---i2c old----
#---cut here----
# I2C adapter drivers
#modprobe i2c-nforce2
#modprobe i2c-isa
# I2C chip drivers
#modprobe eeprom
#modprobe w83781d
#modprobe w83627hf
# sleep 2 # optional
#/usr/local/bin/sensors -s # recommended
#----cut here----

#---i2c 2.6.0----
#----cut here----
# I2C adapter drivers
modprobe i2c-nforce2
modprobe i2c-isa
# I2C chip drivers
#modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----

Last edited by synaptical; 01-06-2004 at 10:18 PM.
 
Old 01-08-2004, 03:07 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
Re: can't get lm_sensors to work with 2.6.0

anyone?

i modprobed the eeprom, and that is sort of detected. sensors gives:
eeprom-i2c-0-51
Adapter: SMBus nForce2 adapter at 5000
Algorithm: Unavailable from sysfs
Memory type: Unavailable

eeprom-i2c-0-50
Adapter: SMBus nForce2 adapter at 5000
Algorithm: Unavailable from sysfs
Memory type: Unavailable


linux says /sys is already mounted, though:
root@homer:/home/sero # mount -t sysfs /sys /sys
mount: /sys already mounted or /sys busy
mount: according to mtab, /sys is already mounted on /sys

root@homer:/home/sero # cat /etc/fstab
sys /sys sysfs defaults 0 0


i tried it with "none" in place of the first sys, too -- same results. but maybe i mounted it wrong for permissions or something? i don't really understand the function of /sys, especially as it wasn't required before.

modprobing w83627hf doesn't work:
root@homer:/home/sero # modprobe w83627hf
FATAL: Module w83627hf not found.


but again, there is a module missing that was detected in the 2.4.23 kernel, namely w83781d. but modprobing that doesn't work, either. any help appreciated, thx.
 
Old 01-11-2004, 01:23 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'm bumping this in the hopes that someone has an idea or two. I'm running into similar problems as synaptical....different mobo, but still can't get lm sensors to work. Any and all ideas are appreciated.
 
Old 01-11-2004, 02:01 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
i talked to the developer, and it turns out it's a problem with w83627hf not having been ported yet to 2.6.0. 2.6.0 can't detect w83781d, however, so you have to go to 2.6.1. but the problem with 2.6.1 is that it can't use lm_sensors 2.8.2, you have to use the CVS version. (there's info on the website on how to do that.)

i installed the CVS version and it finally detected the sensors, but it couldn't read any temps. now i've been sidetracked trying to get my video card acceleration working properly, and i haven't gone back to it yet. (hopefully by the time i do, everything will have been fixed in the CVS. ) but if you're having trouble, try 2.6.1 and the CVS version of lm_sensors (and note you also need the CVS i2c -- but it's all explained on the site). i'll post back if i get it working.

> CVS info toward the bottom of the download page:
http://secure.netroedge.com/~lm78/download.html

Last edited by synaptical; 01-11-2004 at 02:03 PM.
 
Old 01-11-2004, 02:19 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Many thanks for the info. Now I just have to find the time to play with 2.6.1.........
 
Old 01-11-2004, 03:36 PM   #6
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
The reason w83781d (it as the w83627hf built in) didn't work is you need to have i2c-isa loaded.
root@gumby:/sys/bus/i2c/devices/1-0290# sensors
w83627hf-isa-0290
Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 1: +1.52 V (min = +0.00 V, max = +0.00 V)
VCore 2: +1.55 V (min = +0.00 V, max = +0.00 V)
+3.3V: +3.34 V (min = +3.14 V, max = +3.46 V)
+5V: +5.05 V (min = +4.73 V, max = +5.24 V)
+12V: +12.10 V (min = +10.82 V, max = +13.19 V)
-12V: -12.28 V (min = -13.18 V, max = -10.88 V)
-5V: -5.15 V (min = -5.25 V, max = -4.75 V)
V5SB: +5.59 V (min = +4.73 V, max = +5.24 V)
VBat: +3.09 V (min = +2.40 V, max = +3.60 V)
fan1: 3729 RPM (min = -1 RPM, div = 2)
fan2: 5869 RPM (min = 37500 RPM, div = 2)
fan3: 0 RPM (min = -1 RPM, div = 8)
ERROR: Can't get TEMP1 data!
ERROR: Can't get TEMP2 data!
ERROR: Can't get TEMP3 data!
vid: +0.000 V
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm disabled

eeprom-i2c-0-52
Adapter: SMBus I801 adapter at 0c00
Algorithm: Unavailable from sysfs
Memory type: Unavailable

eeprom-i2c-0-50
Adapter: SMBus I801 adapter at 0c00
Algorithm: Unavailable from sysfs
Memory type: Unavailable

The ERRORS are wrong I can detect the temps with gkrellm with no problem.

lm_sensors using gkrellm

Walt
 
Old 01-11-2004, 03:43 PM   #7
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
Quote:
Originally posted by ghostwalker
The ERRORS are wrong I can detect the temps with gkrellm with no problem.
that's odd. i get those errors, and i can't read the temps with gkrellm. it's blanked out.

what version of gkrellm do you have? i have 2.1.21 -- maybe i have to upgrade. ?


-----------------------------
root@homer:/home/sero # lsmod
Module Size Used by
w83781d 33984 0
i2c_sensor 3392 1 w83781d
i2c_isa 2368 0
i2c_dev 10944 0
i2c_nforce2 5952 0
i2c_core 25992 5 w83781d,i2c_sensor,i2c_isa,i2c_dev,i2c_nforce2
 
Old 01-11-2004, 06:53 PM   #8
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
I have gkrellm 2.1.24
 
Old 01-18-2004, 09:04 AM   #9
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
I read this post but still have troubles.

I use 2.6.1 and used the cvs version to install with: "make user", "make user_install" I ran sensors-detect and edited the modules.conf file and the rc.modules file with the given outpunt of sensor-detect. lsmod gives me:
eeprom 5832 0
i2c_sensor 2368 1 eeprom
i2c_isa 1664 0
i2c_viapro 5836 0
i2c_core 20232 4 eeprom,i2c_sensor,i2c_isa,i2c_viapro

Seems that everything is loading fine except for the w83627hf module. modprobe w83627hf gives me the same output as above:
FATAL: Module w83627hf not found.

How did you fix this? I see you mention that I have to install the cvs version of i2c, but on the site and in the readme it's said not to compile it with a 2.6 kernel. So what to do? Eeprom seems to work fine. Sensors give me:

root@slack:~# sensors
eeprom-i2c-0-52
Adapter: SMBus Via Pro adapter at 0400
Algorithm: Unavailable from sysfs
Memory type: DDR SDRAM DIMM
Memory size (MB): 512

eeprom-i2c-0-50
Adapter: SMBus Via Pro adapter at 0400
Algorithm: Unavailable from sysfs
Memory type: DDR SDRAM DIMM
Memory size (MB): 512


sensors-detect gave me:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended

Shouldn't there be something about my graphics card to (Gforce2mx400)?

What to try next?

Last edited by powadha; 01-18-2004 at 09:05 AM.
 
Old 06-23-2004, 06:37 PM   #10
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Rep: Reputation: 15
i cant seem to find i2c_isa on the kernel configuration. SO I have every other module loaded except for this one. Maybe because of this I keep getting the 'no sensors found' msg when i run the prog. How can I get that module compiled and installed? Under what kernel config option is that listed?

Thanks
 
Old 06-23-2004, 09:17 PM   #11
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
Some times under 'Bus Options (PCI.....) you have to enable it there first before it shows up under
Device Drivers -> I2C -> Hardware Bus support

walt
 
Old 06-25-2004, 11:09 PM   #12
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Rep: Reputation: 15
thanks but i've already fixed the problem.. apparently I had actually missed it :-) It's working now, thanks a lot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need help with lm_sensors slinky2004 Linux - Software 2 09-10-2005 07:32 PM
lm_sensors it87 doesnt work not isa support was removed from kernel 2.6.10 qwijibow Linux - General 4 05-15-2005 04:11 PM
Can't get lm_sensors to work with GKrellM Ducl Debian 7 06-29-2004 11:27 PM
Can someone help me with lm_sensors? Kramer Linux - General 25 02-11-2004 07:31 PM
lm_sensors CanadianPenguin Linux - Software 5 10-26-2003 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 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