LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-04-2004, 02:13 PM   #1
Ducl
LQ Newbie
 
Registered: Mar 2004
Location: Houston, TX
Distribution: Ubuntu 12.04 LTS, FC2, Lindows, DSL
Posts: 9

Rep: Reputation: 0
Can't get lm_sensors to work with GKrellM


I am running Debian 2.6.3 on an AMD Athlon 800 MHz machine w/256 MB RAM on an Asus K7 motherboard. hddtemp/hda is working OK but no CPU temperature, fan speed or voltage. lm_sensors and i2c have successfully installed. GKrellM is working OK except for sensors, and sysfs is mounted.

I ran /usr/sbin/sensors-detect as root and it identified the following code to
be added to /etc/modules:

# I2C adapter drivers
i2c-isa
# I2C chip drivers
w83781d
via686a
#----cut here--
Then, run /etc/init.d/modutils
<<I did that, to no apparent effect.>>

To make the sensors modules behave correctly, add these lines to
/etc/modutils/local and run update-modules:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

Here's a problem. No /etc/modutils/local exists.
Instead, there is /etc/modutils/i2c which has the following code:
alias char-major-89 i2c-dev
as root, running update-modules returns:

bash: update-modutils: command not found

What to do now? Sincerely, a noob at his wits end...

Thanks,

/Don Lewis
dlewis@praxisgrp.com
 
Old 06-04-2004, 05:45 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
I haven't got any experince on this but I do know that you'll need to recompile the kernel in order to get the lm_sensors working. The lm_sensors are not enabled in Debian's default kernel-images. Perhaps a search in google would produce something useful?

Studying this web address might be useful:

http://secure.netroedge.com/~lm78/index.html

Last edited by Dead Parrot; 06-04-2004 at 05:55 PM.
 
Old 06-04-2004, 06:00 PM   #3
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
Quote:
as root, running update-modules returns:
bash: update-modutils: command not found
are you sure you didnt type update-modutils?
 
Old 06-05-2004, 12:42 PM   #4
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
As root you can place the alias in etc/modutils/aliases

And as Dead Parrot said, you need to have IC2 support in your kernel (compiled as modules is fine). Sinse sensor-detect picked them up, you should be fine. A lot of drivers havent been ported to 2.6 yet so I hope you're lucky. See their homepage for more info.
 
Old 06-05-2004, 07:17 PM   #5
Ducl
LQ Newbie
 
Registered: Mar 2004
Location: Houston, TX
Distribution: Ubuntu 12.04 LTS, FC2, Lindows, DSL
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by zuralin
are you sure you didnt type update-modutils?
You're right! I typo'ed. I went back and entered update-modules at the root bash prompt. Got no error message but still no sensors. Thanks for your sharp eyes.

/Don
 
Old 06-27-2004, 12:16 PM   #6
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Rep: Reputation: 15
Have you tried sensors-detect yet? remember that after installing you have to setup the sensors available in your pc, that is what sensors-detect will do.
 
Old 06-29-2004, 06:02 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: Can't get lm_sensors to work with GKrellM

Quote:
Originally posted by Ducl
I am running Debian 2.6.3 on an AMD Athlon 800 MHz machine w/256 MB RAM on an Asus K7 motherboard. hddtemp/hda is working OK but no CPU temperature, fan speed or voltage. lm_sensors and i2c have successfully installed. GKrellM is working OK except for sensors, and sysfs is mounted.

I ran /usr/sbin/sensors-detect as root and it identified the following code to
be added to /etc/modules:

# I2C adapter drivers
i2c-isa
# I2C chip drivers
w83781d
via686a
#----cut here--
Then, run /etc/init.d/modutils
<<I did that, to no apparent effect.>>

To make the sensors modules behave correctly, add these lines to
/etc/modutils/local and run update-modules:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

Here's a problem. No /etc/modutils/local exists.
Instead, there is /etc/modutils/i2c which has the following code:
alias char-major-89 i2c-dev
as root, running update-modules returns:

bash: update-modutils: command not found

What to do now? Sincerely, a noob at his wits end...

Thanks,

/Don Lewis
dlewis@praxisgrp.com

Try commenting out or removing the w83781d line in the snippet you put into the /etc/modules. And if you compiled/installed the lm_sensors package into /usr/local when you did the make user and make user_install be sure that you have edited the /etc/ld.so.conf and added the line /usr/local/lib to the file and then run /sbin/ldconfig so the system can find the new libraries.

BTW what version of lm sensors are you using (IIRC you need 2.8.2 or better for 2.6.x kernels) and why did you compile the i2c modules when they are already included in 2.6 kernels??
 
Old 06-29-2004, 11:27 PM   #8
king of nothing
LQ Newbie
 
Registered: Jun 2004
Location: Ankeny, IA
Distribution: Debian Sid
Posts: 11

Rep: Reputation: 0
http://secure.netroedge.com/~lm78/kernel26.html

Take a look at "Recommended kernel and lm_sensors combinations" and make sure you have the right one for your kernel. I had the same problem with 2.6.3 but it worked fine with 2.6.6. I think the version in Sid right now is for 2.6.6..... not sure though.
 
  


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 2.6.0 synaptical Linux - Software 11 06-25-2004 11:09 PM
How do I use lm_sensors? Kramer Linux - Hardware 13 11-15-2003 08:05 PM
lm_sensors help malvu Linux - Software 7 05-04-2003 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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