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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-06-2004, 01:08 PM
|
#1
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Rep:
|
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.
|
|
|
01-08-2004, 03:07 PM
|
#2
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Original Poster
Rep:
|
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.
|
|
|
01-11-2004, 01:23 PM
|
#3
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
01-11-2004, 02:01 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Original Poster
Rep:
|
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.
|
|
|
01-11-2004, 02:19 PM
|
#5
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
Many thanks for the info. Now I just have to find the time to play with 2.6.1.........
|
|
|
01-11-2004, 03:36 PM
|
#6
|
Member
Registered: Jun 2003
Posts: 160
Rep:
|
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
|
|
|
01-11-2004, 03:43 PM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Original Poster
Rep:
|
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
|
|
|
01-11-2004, 06:53 PM
|
#8
|
Member
Registered: Jun 2003
Posts: 160
Rep:
|
I have gkrellm 2.1.24
|
|
|
01-18-2004, 09:04 AM
|
#9
|
Member
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651
Rep:
|
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.
|
|
|
06-23-2004, 06:37 PM
|
#10
|
Member
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150
Rep:
|
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
|
|
|
06-23-2004, 09:17 PM
|
#11
|
Member
Registered: Jun 2003
Posts: 160
Rep:
|
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
|
|
|
06-25-2004, 11:09 PM
|
#12
|
Member
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150
Rep:
|
thanks but i've already fixed the problem.. apparently I had actually missed it :-) It's working now, thanks a lot!
|
|
|
All times are GMT -5. The time now is 06:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|