Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
I have an ECS K75SA Pro mainboard, and I'm running kernel 2.6.0-test9.
I just found out about lm_sensors, but unfortunately I can't find information anywhere on how to use it with a 2.6 kernel. I looked through menuconfig, and I couldn't find anything about sensors or i2c anywhere.
I'm running lm_sensors 2.6.5-5, and RedHat 9.
Here's the output of sensors-detect
Code:
Probing for PCI bus adapters...
Use driver `i2c-sis5595' for device 00:02.0: Silicon Integrated Systems SIS5595
Probe succesfully concluded.
We will now try to load each adapter module in turn.
Load `i2c-sis5595' (say NO if built into your kernel)? (YES/no): yes
FATAL: Module i2c_sis5595 not found.
Loading failed ()... skipping.
Do you now want to be prompted for non-detectable adapters? (yes/NO): no
To continue, we need module `i2c-dev' to be loaded.
If it is built-in into your kernel, you can safely skip this.
i2c-dev is not loaded. Do you want to load it now? (YES/no): yes
FATAL: Module i2c_dev already in kernel.
Loading failed (), expect problems later on.
We are now going to do the adapter probings. Some adapters may hang halfway
through; we can't really help that. Also, some chips will be double detected;
we choose the one with the highest confidence value in that case.
If you found that the adapter hung after probing a certain address, you can
specify that address to remain unprobed. That often
includes address 0x69 (clock chip).
Couldn't open /proc/bus/i2c?!? at /usr/sbin/sensors-detect line 2970, <STDIN> line 4.
Could someone please tell me how to set up lm_sensors with my 2.6 kernel?
Thanks!
Edit: I just noticed that I told it to load i2c-dev when it was already built into the kernel, but it still doesn't work if I tell it not to load it. I'm pretty sure that it's built into the kernel, because there are a few files beginning with i2c in dev.
I did "make user" and "make user_install" for 2.8.2, which is all it said to do for a 2.5/2.6 kernel.
It still doesn't work though, I think the problem is the fact that the module for my motherboard (sis5595 chipset, the module was something like i2c_sis5595) wasn't built with the kernel, but I looked through the kernel config and couldn't find where you enable it.
Where in 'make menuconfig' are the options pertainting to i2c and lm_sensors?
I found that, but it won't let me open "I2C Hardware Sensors Chip Support", whenever I choose select, it doesn't open it - it just reloads the I2C support screen.
Any idea why?
Post the I2C part of your kernel .config file. You dont have something enabled that should be. You do have I2C support set as a module or built into the kernel?
Built as a module, the I2C part is below (at least I think that's all of it)
Code:
# I2C support
#
CONFIG_I2C=m
CONFIG_I2C_CHARDEV=m
#
# I2C Algorithms
#
CONFIG_I2C_ALGOBIT=m
CONFIG_I2C_ALGOPCF=m
#
# I2C Hardware Bus support
#
CONFIG_I2C_ELEKTOR=m
CONFIG_I2C_ELV=m
CONFIG_I2C_PHILIPSPAR=m
# CONFIG_SCx200_ACB is not set
CONFIG_I2C_VELLEMAN=m
#
# I2C Hardware Sensors Chip support
#
CONFIG_I2C_SENSOR=m
###I also tried changing the above to 'y', still didn't work.
at the top of menuconfig, make sure you select all those options for "prompt for incomplete drivers" and a bunch of other good stuff up there until you can see all the hidden things in the kernel config
That made them show up, thanks.
I actually thought of that earlier when I was in school, but I had completely forgotten about it once I got home. I still can't believe that I missed something so obvious..
Hmm, I've compiled the modules, but I get the following error when trying to run 'sensors'.
Code:
# sensors
Can't access /proc file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs!
For older kernels, make sure you have done 'modprobe i2c-proc'!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.