Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to use your hardware sensors with Kernel 2.6
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 9, 10, 11  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
MADcow
l33t
l33t


Joined: 23 Jan 2003
Posts: 742
Location: RIT (Henrietta, New York, United States)

PostPosted: Fri Jan 30, 2004 12:19 am    Post subject: Reply with quote

UGGHH this is horrible. i calibrated the offset for the sensors in 2.6.2, but it keeps jumping around EVERYWHERE. even after setting the offset to the right temp, it drops by like 6 degrees in either direction. then when i set it again, it changes AGAIN. i think something hates me :cry:
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Sun Feb 01, 2004 3:57 pm    Post subject: Reply with quote

Code:
psalms root # ls /sys/bus/i2c/devices/
4-0048  4-0049  4-0050  4-0051
psalms root # sensors
eeprom-i2c-4-51
Adapter: SMBus I801 adapter at 0500
Algorithm: Unavailable from sysfs
Memory type: Unavailable

eeprom-i2c-4-50
Adapter: SMBus I801 adapter at 0500
Algorithm: Unavailable from sysfs
Memory type: Unavailable

lm75-i2c-4-49
Adapter: SMBus I801 adapter at 0500
Algorithm: Unavailable from sysfs
ERROR: Can't get temperature data!

lm75-i2c-4-48
Adapter: SMBus I801 adapter at 0500
Algorithm: Unavailable from sysfs
ERROR: Can't get temperature data!

psalms root # lsmod
Module                  Size  Used by
nvidia               1704172  10
eeprom                  7040  0
lm75                    7552  0
i2c_isa                 2816  0
i2c_i801                8076  0
i2c_algo_pcf            7424  0
i2c_algo_bit           10120  0
i2c_sensor              3456  2 eeprom,lm75
i2c_core               22076  1
psalms root #


help? using Asus PC-DL Deluxe motherboard (and I'm too lazy to read through all the pages...
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Sun Feb 01, 2004 6:11 pm    Post subject: Reply with quote

Hi, I am new to this kind of topic.
I used to use kernel ACPI support to know thermal info on my laptop. That works fine. The problem is that the app Im using, wmpower does not show fan status correctly. Whatever the fan status is, it always show "FAN-."
So, I want to use i2c and lm-sensors, hopefully gkreIIm to know the info.

As in the help here, I made each i2c module, a kernel for it, rebooted and ran sensrors-detect.
It detects successfully the driver and loads it w/ success
Code:
Use driver `i2c-i801' for device 00:1f.3: Intel 82801CA/CAM ICH3
Probe succesfully concluded.

 We will now try to load each adapter module in turn.
Load `i2c-i801' (say NO if built into your kernel)? (YES/no):
Module loaded succesfully.

But when it comes to adapter, it looks like this
Code:

 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).

Next adapter: SMBus I801 adapter at 1820 (Algorithm unavailable)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x69

with series of "Failed!" messages followed and ended up with
Code:
Sorry, no chips were detected.


At a glance, it seems there is few reports to have this working on laptop. My basic question is: is it for laptop as well? If so, what is wrong with my case?

I emerged kernel 2.6.2-rc3, lm-sensors 2.8.2.20040111
Code:
# lsmod |grep i2c
i2c_isa                 1856  0
i2c_sensor              2880  12 asb100,adm1021,eeprom,w83l785ts,w83781d,via686a,lm90,lm85,lm83,lm78,lm75,it87
i2c_i801                7920  0
i2c_dev                10336  0
i2c_core               22916  16 i2c_isa,asb100,adm1021,eeprom,w83l785ts,w83781d,via686a,lm90,lm85,lm83,lm78,lm75,it87,i2c_sensor,i2c_i801,i2c_dev

Code:
# zcat /proc/config.gz |grep "I2C"
# 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_ALI1535 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_ELEKTOR is not set
# CONFIG_I2C_ELV is not set
CONFIG_I2C_I801=m
# CONFIG_I2C_I810 is not set
CONFIG_I2C_ISA=m
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_PHILIPSPAR is not set
# CONFIG_I2C_PARPORT is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_PROSAVAGE is not set
# CONFIG_I2C_SAVAGE4 is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VELLEMAN is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
# CONFIG_I2C_VOODOO3 is not set
# I2C Hardware Sensors Chip support
CONFIG_I2C_SENSOR=m
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_I2C_DEBUG_CHIP is not set
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Sun Feb 01, 2004 6:34 pm    Post subject: Reply with quote

What's in /sys/bus/i2c/devices? Can you get something out of there?
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 168
Location: New Haven, CT, USA

PostPosted: Sun Feb 01, 2004 6:49 pm    Post subject: Reply with quote

Code:
delta-9 root # /etc/init.d/lm_sensors start
 * Loading lm_sensors modules...
 *   Loading i2c-amd756...                                                [ ok ]
 *   Loading i2c-isa...                                                   [ ok ]
 *   Loading lm90...                                                      [ ok ]
 *   Loading eeprom...                                                    [ ok ]
 *   Loading smbus-arp...                                                 [ !! ]

 *   Loading w83627hf...                                                  [ !! ]


delta-9 root # modprobe smbus-arp
FATAL: Module smbus_arp not found.
delta-9 root # modprobe w83627hf
FATAL: Module w83627hf not found.


I am running 2.6.2-rc2-mm2 and lm-sensors 2.8.2... where can I get these smbus-arp and w83627hf modules?
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Sun Feb 01, 2004 6:58 pm    Post subject: Reply with quote

I don't know whether they have been ported yet - see the lm_sensors homepage for details.
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
mike2297
n00b
n00b


Joined: 22 Jan 2003
Posts: 46
Location: Maryland, USA

PostPosted: Sun Feb 01, 2004 8:36 pm    Post subject: abit kt7a Reply with quote

I can't get this to work at all. Check it:

Code:

root@mikescomp mike # lsmod
Module                  Size  Used by
i2c_dev                10752  0
via686a                19972  0
eeprom                  7232  0
adm1021                12288  0
i2c_sensor              2944  3 via686a,eeprom,adm1021
i2c_isa                 1920  0
i2c_viapro              6924  0
i2c_core               25476  7 i2c_dev,via686a,eeprom,adm1021,i2c_sensor,i2c_isa,i2c_viapro


These are the modules that sensors-detect told me I should load. In my /sys/bus/i2c/devices directory, there are two folders:

Code:

root@mikescomp mike # ls /sys/bus/i2c/devices/0-0018/
alarms        name   temp_input1  temp_max1  temp_min1
detach_state  power  temp_input2  temp_max2  temp_min2

root@mikescomp mike # ls /sys/bus/i2c/devices/0-0051/
detach_state  eeprom  name  power


When I run sensors:
Code:

root@mikescomp mike # sensors
eeprom-i2c-0-51
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs
Memory type: Unavailable
 
lm84-i2c-0-18
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Unavailable from sysfs
Board:        +0�C  (low  =    +4�C, high =    +0�C)
ERROR: Can't get temperature data!


Has anybody been able to get sensors to actually work on this motherboard? The temp_input files in the 0-0018 directory contain "0" by the way.

-Mike
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Mon Feb 02, 2004 4:24 am    Post subject: Reply with quote

Master_Of_Disaster wrote:
What's in /sys/bus/i2c/devices? Can you get something out of there?

I do see anything at all. :cry:
Code:
bash-2.05b$ ls /sys/bus/i2c/devices
bash-2.05b$
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Mon Feb 02, 2004 5:28 am    Post subject: Reply with quote

why am i getting this error?
___________________________
root@SaFrOuT safrout # 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'!
root@SaFrOuT safrout # sensors-detect
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.
root@SaFrOuT safrout # sensors
sensors sensors-detect
root@SaFrOuT safrout #

_____________________________


i am using kernel 2.6.2-rc2-love4

and i have enabled the needed modules for i2c in my kernel and rebooted into it
and i used:
ACCEPT_KEYWORDS=~x86 emerge /usr/portage/sys-apps/lm-sensors/lm-sensors-2.8.2.ebuild

and tried the 2.8.3 version also and still the same error
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Mon Feb 02, 2004 5:42 am    Post subject: Reply with quote

now i was able to search and try many solutions till i was able to run sensors-detect
but after finsihing it i got this
__________________________
root@SaFrOuT safrout # /etc/init.d/lm_sensors start
* Loading lm_sensors modules...
* Loading i2c-i810... [ !! ]

* Loading ddcmon... [ !! ]

* Loading ltc1710... [ !! ]

_________________________________

from where can i get the ltc1710 and ddcmon modules???
Back to top
View user's profile Send private message
yamakawa
Guru
Guru


Joined: 28 Jul 2003
Posts: 340

PostPosted: Mon Feb 02, 2004 8:01 am    Post subject: Reply with quote

Perhaps is it related with it saying...

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).

Next adapter: SMBus I801 adapter at 1820 (Algorithm unavailable)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x69[/code]

here?
I tried both i2c-algo-bit and i2c-algo-pcf loaded by modprobe and they are loaded.

Code:
# lsmod |grep i2
i2c_algo_pcf            6980  0
i2c_isa                 1856  0
i2c_algo_bit            9800  0
i2c_sensor              2880  0
i2c_i801                7920  0
i2c_dev                10336  0
i2c_core               22916  6 i2c_algo_pcf,i2c_isa,i2c_algo_bit,i2c_sensor,i2c_i801,i2c_dev

After that, I once again ran sensors-detect only to get the same result.

So, is it possible or usual to use lm-sensors on laptop in general?
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Mon Feb 02, 2004 9:11 am    Post subject: Reply with quote

Well, many people are fine using this on laptops.
Perhaps the modules for the sensors on your motherbard have not yet been ported to 2.6 by the lm_sensors team? Please see their homepage for details.
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Mon Feb 02, 2004 9:14 am    Post subject: Reply with quote

@SaFrout
Apparantly these modules have not yet been ported, please see lm_sensors homepage for details.
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
digital
n00b
n00b


Joined: 17 May 2003
Posts: 20

PostPosted: Tue Feb 03, 2004 3:16 am    Post subject: Reply with quote

anyone have any luck with any 865pe boards? my neo2-ls is somewhat working, voltages but no temperatures (what I really want).

digital@station1 1-0290 $ sensors
w83627hf-isa-0290
Adapter: ISA adapter
Algorithm: ISA algorithm
VCore 1: +1.49 V (min = +0.00 V, max = +0.00 V)
VCore 2: +1.54 V (min = +0.00 V, max = +0.00 V)
+3.3V: +3.33 V (min = +3.14 V, max = +3.46 V)
+5V: +5.11 V (min = +4.73 V, max = +5.24 V)
+12V: +12.10 V (min = +10.82 V, max = +13.19 V)
-12V: -12.20 V (min = -13.18 V, max = -10.88 V)
-5V: -5.10 V (min = -5.25 V, max = -4.75 V)
V5SB: +5.59 V (min = +4.73 V, max = +5.24 V)
VBat: +3.06 V (min = +2.40 V, max = +3.60 V)
fan1: 0 RPM (min = 3552 RPM, div = 2)
fan2: 6428 RPM (min = 5672 RPM, div = 2)
fan3: 0 RPM (min = 883 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:
beep_enable:
Sound alarm disabled

digital@station1 1-0290 $ lsmod | grep i2c
i2c_algo_bit 9608 0
i2c_sensor 2944 1 w83781d
i2c_dev 9088 0
i2c_isa 2304 0
i2c_core 19456 5 i2c_algo_bit,w83781d,i2c_sensor,i2c_dev,i2c_isa
plus the w83781d

i would really like temperature readings, is anyone else using this board successfully?
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1336
Location: Mississippi USA

PostPosted: Tue Feb 03, 2004 10:49 am    Post subject: Reply with quote

I have the 2.6.1-rc1 kernel and have been using gkrellm for a while. I noticed since I upgraded from 2.6.0-test11 that sometimes the temp and fan speed freezes. They don't change at all.

I tested the temp two ways. I ran glxgears for a bit, no change. Then I pointed a small heater toward the computer, the side is off at the moment, still no change. I can hear the fan, it's in auto temp mode, speed up. I know it is getting warm. If I reboot it works for a while then freezes again.

I have re-emerged gkrellm to see if their was a bad file somewhere, no help. I did create the /sys way back when I updated to 2.6.

Is there something wrong with the kernel you think? Anything else you can think of?

Waiting on ideas. Me confused, which is pretty easy most of the time. <scratches head>

:? :? :D :D :D :D
_________________
My rig: Gigabyte GA-770T-USB3 mobo AMD Phenom II X4 955 3.2GHz ZALMAN CNPS10X Performa CPU cooler
G.SKILL 16GB DDR3 PC3 12800 Memory Nvidia GT-220 video card LG W2253 Monitor
WD1600AAJS & WD2502ABYS hard drives
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Fri Feb 06, 2004 12:04 pm    Post subject: Reply with quote

@digital:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/chips/w83781d
Have you read this already? Perhaps one of the parameters can fix your problem...

@dalek:
I got no idea what this could cause this, you might file a bug report here.
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1336
Location: Mississippi USA

PostPosted: Fri Feb 06, 2004 12:57 pm    Post subject: Reply with quote

I'm pretty sure it is a kernel issue. I went back to 2.6.0-test11 and it works flawlessly. I'm not sure if I should tell the kernel people or the Gkrellm people. I also don't want to throw up a false alarm.

It really acts like the files in /sys are not being updated after running a while. From what I understand, which ain't a whole lot, that is done by the kernel.

I don't have lm-sensors installed. the new versions of 2.6 kernel nad Gkrellm don't need it. I'm glad they were a pain in the but to install in Mandrake.

I did start a thread on this. No other responses though.

Should I tell the kernel or Gkrellm people, or both so they can hash it out as to what is wrong?

Thanks for the help.

:? :? :D :D :D :D
_________________
My rig: Gigabyte GA-770T-USB3 mobo AMD Phenom II X4 955 3.2GHz ZALMAN CNPS10X Performa CPU cooler
G.SKILL 16GB DDR3 PC3 12800 Memory Nvidia GT-220 video card LG W2253 Monitor
WD1600AAJS & WD2502ABYS hard drives
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Fri Feb 06, 2004 1:13 pm    Post subject: Reply with quote

Perhaps it would be best to first file a bug report at bugs.gentoo.org and ask them what to do...
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
digital
n00b
n00b


Joined: 17 May 2003
Posts: 20

PostPosted: Mon Feb 09, 2004 10:34 pm    Post subject: Reply with quote

No luck with hardware sensors for me. I might come back to this at a later point and if I get it working I'll post about my experiences.
Back to top
View user's profile Send private message
riggagoogoo
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2003
Posts: 108

PostPosted: Tue Feb 10, 2004 10:18 am    Post subject: Reply with quote

When I follow this howto and run sensors-detect i get the following error:
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.

I have a /sys folder and it is populated so should I need to run the command stated in the line above?

Any help appreciated.

RiGGa
Back to top
View user's profile Send private message
theboywho
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 110
Location: Birmingham, United Kingdom

PostPosted: Tue Feb 10, 2004 10:46 am    Post subject: Reply with quote

i installed lm-sensors 2.8.3 on my nForce3 system using the it87 driver now the sensors script shows my tempratures correctly. tho some of the voltages are incorrect and labled incorrectly. Also im not sure if the temratures are marked correctly.

Although the lm-sensors website says that i2c is not recomemeded for it87/2.6.x users, and the it87 fan control stuff hasnt been ported either.
Back to top
View user's profile Send private message
theboywho
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 110
Location: Birmingham, United Kingdom

PostPosted: Tue Feb 10, 2004 10:47 am    Post subject: Reply with quote

riggagoogoo wrote:
When I follow this howto and run sensors-detect i get the following error:
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.

I have a /sys folder and it is populated so should I need to run the command stated in the line above?

Any help appreciated.

RiGGa


have you tried
Code:
 modprobe i2c-dev
Back to top
View user's profile Send private message
riggagoogoo
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2003
Posts: 108

PostPosted: Tue Feb 10, 2004 10:50 am    Post subject: Reply with quote

Ahh that looks better thanks! I take it I just add that to modules.autoload to get it loaded on each boot?

Cheers

RiGGa
Back to top
View user's profile Send private message
riggagoogoo
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2003
Posts: 108

PostPosted: Tue Feb 10, 2004 11:15 am    Post subject: Reply with quote

Spoke too soon, I stepped through sensors-detect and chose the ISA option, insmodded all the modules and all I get when I do sensors is this:

eeprom-i2c-0-51
Adapter: SMBus Via Pro adapter at 0400
Algorithm: Unavailable from sysfs
Memory type: Unavailable

I have all i2c stuff selected as modules in kernel config including all the hardware sensors chip support selected as modules too.

I have an MSI KT6 motherboard

Cheers
RiGGa
Back to top
View user's profile Send private message
riggagoogoo
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2003
Posts: 108

PostPosted: Tue Feb 10, 2004 12:48 pm    Post subject: Reply with quote

Current status:

From fresh reboot:

Only module loaded at this time is for my network card, if I then type sensors it comes up with:

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'!

I am using gentoo-dev-sources 2.6.2 and no nothing about sysfs, should i be mounting it?

Any help appreciated

RiGGA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 9, 10, 11  Next
Page 6 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum