Re: HOW TO: Install and configure lm-sensors
Just as a follow up to my above post, GkrellM works perfect. My advice to anyone who gets that error is to continue modprobing and finish the install per this guide. Everything works and there are no problems. I'm still curious but it doesn't bother me that much.
Re: HOW TO: Install and configure lm-sensors
Argh. A lot of people get the same problem: ((Sorry, no chips were detected. )) when u run sensors detect (even with sudo). The fun thing is that i've got an HP NX8220 and in another post in this thread a guy got another answer. Why? Really there must be someone that has an answer to this problem. What i can understand there is alot of people having this problem. Is it just that simple that our laptops isn't supported yet even thou i've had mine for a long time, 8 months...
Re: HOW TO: Install and configure lm-sensors
Quote:
Originally Posted by
scotte
I finally got my sensors working again in edgy, and hopefully this tip helps others who had sensors working fine in dapper, but are no longer working with edgy. This particular issue is not directly related to anything done in Ubuntu.
For the background, I've got an intel 801 based motherboard on this particular box, and everything was working just fine with my former Gentoo install. Likewise, all was good when I installed Ubuntu dapper. After the upgrade to edgy, sensors stopped working. I tried compiling the latest lm-sensors, but that didn't help either.
A key piece of information is that dapper was on kernel 2.6.15 and edgy uses 2.6.17. With some research and perusal of drivers/pci/quirks.c, there are a number of systems where the SMBus is hidden by default (see asus_hides_smbus in quirks.c).
At any rate, I discovered there was a patch applied to quirks.c in 2.6.16 which effectively disables unhiding the SMBus when ACPI_SLEEP is enabled.
My solution was to build a custom kernel without ACPI_SLEEP support. I'm now running 2.6.19, but this should work equally well for 2.6.17 or .18.
Here's the supporting documentation:
http://bugzilla.kernel.org/show_bug.cgi?id=6449
http://www.kernel.org/git/?p=linux/k...s/pci/quirks.c
http://www.kernel.org/git/?p=linux/k...7a3b3221813932
Hope this helps!
Thanks for the tip! I will try this. Can you post your kernel .config ?
Re: HOW TO: Install and configure lm-sensors
Re: HOW TO: Install and configure lm-sensors
I'm using the 2.6.19.2 kernel, which doesn't have i2c-sensors as a module.
loaded modules are as follows
Quote:
# Generated by sensors-detect on Fri Feb 2 22:36:27 2007
it87
# I2C adapter drivers
i2c-nforce2
i2c-isa
# I2C chip drivers
eeprom
# Warning: the required module it87 is not currently installed on your system.
# For status of 2.6 kernel ports see
http://secure.netroedge.com/~lm78/supported
.html
# If driver is built-in to the kernel, or unavailable, comment out the following
line.
When I run sensors -s I get the following output:
Quote:
root@rob-desktop:/home/rob# sensors -s
it8712-isa-0d00: Can't access procfs/sysfs file for writing;
Run as root?
I had a feeling sysfs was deprecated in favour of udev, but my /sys folder is there. I have built and rub mkdev.sh.
When I run sensors and I get the following output:
Quote:
it8712-isa-0d00
Adapter: ISA adapter
VCore 1: +1.65 V (min = +1.42 V, max = +1.57 V) ALARM
VCore 2: +1.57 V (min = +2.40 V, max = +2.61 V) ALARM
+3.3V: +2.58 V (min = +3.14 V, max = +3.47 V) ALARM
+5V: +2.47 V (min = +4.76 V, max = +5.24 V) ALARM
+12V: +13.12 V (min = +11.39 V, max = +12.61 V) ALARM
-12V: -5.02 V (min = -12.63 V, max = -11.41 V) ALARM
-5V: -1.24 V (min = -5.26 V, max = -4.77 V) ALARM
Stdby: +5.05 V (min = +4.76 V, max = +5.24 V)
VBat: +4.08 V
fan1: 4299 RPM (min = 0 RPM, div = 2)
fan2: 2109 RPM (min = 2986 RPM, div = 4) ALARM
ERROR: Can't get FAN3 data!
M/B Temp: +51°C (low = +15°C, high = +40°C) sensor = diode
CPU Temp: -1°C (low = +15°C, high = +45°C) sensor = disabled
Temp3: -1°C (low = +15°C, high = +45°C) sensor = disabled
How do I enable the CPU and Temp3 sensors?
Thanks,
Rob.
Re: HOW TO: Install and configure lm-sensors
Quote:
Originally Posted by
jczucco
Thanks for the tip! I will try this. Can you post your kernel .config ?
All I did was copy /boot/config-2.6.17-10-generic to the new kernel .config, did a "make oldconfig", disabled ACPI_SLEEP, then proceeded normally from there...
Re: HOW TO: Install and configure lm-sensors
Great HowTo! =D>
Even simpler than expected as the Sensor detect install the modules automatically!
Re: HOW TO: Install and configure lm-sensors
i can't quite get it to work..
I followed the howto and running sensors works after I have loaded the modules manually using sudo modprobe..
but I can't get them to load automatically during boot.
I think I need to be root to load some of the modules, and that's why they don't load properly..
these are the modules I need to load in order to get lm-sensors to work.
Code:
#----cut here----
# I2C adapter drivers
# modprobe unknown adapter NVIDIA i2c adapter 0 at 1:00.0
# modprobe unknown adapter NVIDIA i2c adapter 1 at 1:00.0
# modprobe unknown adapter NVIDIA i2c adapter 2 at 1:00.0
i2c-sis96x
i2c-isa
# I2C chip drivers
eeprom
w83627hf
#----cut here----
they are also added to my /etc/modules file.
but after boot up sensors does not work and I get this error message:
Code:
morgan@morgan-desktop:~$ sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!
For older kernels, make sure you have done 'modprobe i2c-proc'!
if I then run sudo modprobe on all the modules listed above it works..
if I run modprobe without sudo one of them tells me that I am not allowed to do that..(sorry, I don't remember which one it is)
So, my guess is that I need to load those modules during boot but I need to have sudo rights in order to do that..
Is there a way to do that or is there a completely different way to get lm-sensors to work
thank you in advance.
Re: HOW TO: Install and configure lm-sensors
Since Dapper, I have found that sensors-detect can automaticly make all the changes required to your system. For example, on Ubuntu 6.06.1 you can see below where sensors-detect did the following:
#/etc/modules:
# Generated by sensors-detect on Fri Feb 3 11:24:54 2006
# I2C adapter drivers
i2c-i801
i2c-isa
# I2C chip drivers
eeprom
w83627hf
e.p.
Re: HOW TO: Install and configure lm-sensors
yes it does make the changes and adds the modules in /etc/modules but I still have to run them "manually" after each reboot in order for the "sensors" command to work..
Anyone know why this is?