LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Can't get lm_sensors to work with GKrellM (https://www.linuxquestions.org/questions/debian-26/cant-get-lm_sensors-to-work-with-gkrellm-189731/)

Ducl 06-04-2004 02:13 PM

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

Dead Parrot 06-04-2004 05:45 PM

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

zuralin 06-04-2004 06:00 PM

Quote:

as root, running update-modules returns:
bash: update-modutils: command not found
are you sure you didnt type update-modutils?

powadha 06-05-2004 12:42 PM

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.

Ducl 06-05-2004 07:17 PM

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

carlosruiz 06-27-2004 12:16 PM

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.

HappyTux 06-29-2004 06:02 PM

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??

king of nothing 06-29-2004 11:27 PM

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.


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