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 ... 9, 10, 11  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
benxor
n00b
n00b


Joined: 18 Jan 2004
Posts: 19
Location: Sydney, Australia

PostPosted: Thu Dec 02, 2004 1:09 am    Post subject: no i2c devices Reply with quote

I have an Asus A8V Deluxe motherboard (w/ athlon64 3500+ skt939), and also a spare machine with a K8V Deluxe motherboard (w/ athlon64 3400+ skt754). I can't get lm-sensors working on either.

I correctly compile all the i2c stuff as modules; i install lm-sensors and it compiles cleanly against the kernel; I've done everything to the letter, but when I run sensors-detect, it says:

Code:
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.


I follow the adivce of modprobe'ing i2c-dev, the module loads, but sensors-detect then produces the same error. No matter what I do I can't seem to get these i2c devices to be created in /dev/ or /sys. I even try modprobing various i2c modules and i2c-dev and then restarting coldplug/hotplug, but to no avail.

I have the latest bios version for my A8V, and a recent (haven't checked) bios version on my K8V.

Does anyone know what might be causing this problem?
_________________
'I'll tell you something the great Maharishi Guru taught me - and I don't think there's a day goes by that I don't remember this one simple lesson. "Always"... no, wait it was "Never"... '
--Steve Martin
Back to top
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 480
Location: Bantayan Island

PostPosted: Thu Dec 02, 2004 2:31 am    Post subject: Re: no i2c devices Reply with quote

benxor wrote:
I've done everything to the letter, but when I run sensors-detect, it says:

Code:
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.



This sounds like you are using udev instead of devfs?

Did you try running the mkdev.sh script? The entries under /dev are made using mknod, not by loading modules into the kernel (although that is still required).

See my earlier post in this thread for that script or find in in the lm_sensors tarball.
Back to top
View user's profile Send private message
Major
Apprentice
Apprentice


Joined: 27 Feb 2004
Posts: 198
Location: Sherbrooke, Qc, Canada

PostPosted: Thu Dec 02, 2004 2:59 am    Post subject: Re: no i2c devices Reply with quote

benxor wrote:

Code:
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.


Does anyone know what might be causing this problem?


you should try running the mkdev.sh script that you can find this way.
Code:

tar -xvvzf /usr/portage/distfiles/lm_sensors-2.8.7.tar.gz
./lm_sensors-2.8.7/prog/mkdev/mkdev.sh


and after you should be able to get you sensors info using
Code:
sensors

_________________
Major over and out
Back to top
View user's profile Send private message
benxor
n00b
n00b


Joined: 18 Jan 2004
Posts: 19
Location: Sydney, Australia

PostPosted: Fri Dec 03, 2004 5:56 am    Post subject: works! Reply with quote

thanks man, fixed the problem! I was getting even more confused because my other skt754 athlon64 machine suddenly aquired i2c devices after a reboot and I couldn't figure out what I'd done - ah the mysteries of linux hardware configuration =)
_________________
'I'll tell you something the great Maharishi Guru taught me - and I don't think there's a day goes by that I don't remember this one simple lesson. "Always"... no, wait it was "Never"... '
--Steve Martin
Back to top
View user's profile Send private message
stdPikachu
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 254
Location: UK

PostPosted: Thu Jan 27, 2005 12:05 am    Post subject: Reply with quote

Didn't have time to read the thread in it's entirety, but managed to get sensors working on my MSI nForce3 Neo2 Platinum with the following modules loaded at boot (all found under I2C settings, using 2.6.10-gentoo-r6 sources);

i2c-dev (should already be loaded with alias char-major-89 in /etc/modules.d/aliases)
i2c-nforce2
w83627hf (module for the winbond chip)
i2c-sensor
i2c-isa
it87 (not sure if this is needed, but it was sensors-detect's next best guess)

The sensors data is made over the ISA bus, so you'll need to ensure you have ISA support in order to build the i2c-isa modules.

Code:
tybalt linux # sensors
w83627thf-isa-0290
Adapter: ISA adapter
VCore:     +1.46 V  (min =  +0.70 V, max =  +1.87 V)
+12V:     +12.65 V  (min =  +4.80 V, max =  +1.40 V)
+3.3V:     +3.17 V  (min =  +1.02 V, max =  +1.10 V)
+5V:       +4.99 V  (min =  +2.72 V, max =  +3.55 V)
-12V:     -14.91 V  (min = -14.91 V, max = -14.91 V)
V5SB:      +4.92 V  (min =  +1.83 V, max =  +5.48 V)
VBat:      +2.61 V  (min =  +0.56 V, max =  +2.37 V)
fan1:     5037 RPM  (min = 12053 RPM, div = 2)
CPU Fan:     0 RPM  (min =   -1 RPM, div = 2)
fan3:        0 RPM  (min = 8881 RPM, div = 2)
M/B Temp:    +16 C  (high =   +86 C, hyst =   +17 C)   sensor = thermistor
CPU Temp:  +33.5 C  (high =   +80 C, hyst =   +75 C)   sensor = PII/Celeron diode
temp3:     +24.5 C  (high =   +80 C, hyst =   +75 C)   sensor = thermistor
ERROR: Can't get VID data!
alarms:
beep_enable:
          Sound alarm disabled


Still some tweaking to do, but thought it might be helpful (although someone has prolly posted it already, damned search...!) cos google didn't turn much up either.

Now I just need to get Cool'n'Quiet working properly...
Code:
powernow-k8: vid trans failed, vid 0x3, curr 0x4
powernow-k8: transition frequency failed

:roll:
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Sat Mar 05, 2005 9:21 am    Post subject: Reply with quote

Hi,

I have udev inplace and set the kernel properly (ver 2.6.9-r13).
When I type sensors I get this error:

Code:
# sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and done
'modprobe i2c_sensor'!
For older kernels, make sure you have done 'modprobe i2c-proc'!


Here is my fstab (important part)
Code:
none                    /proc                   proc            defaults                        0 0
none                    /dev/shm                tmpfs           defaults                        0 0
none                    /proc/bus/usb           usbdevfs        defaults                        0 0


In lsmod I do not have any i2c modules.
I think the issue has to do with udev and the fact that lmsensors is looking for sysft and is not there.

I really do not know what to do and what command to run. I need lmsensor because I have to monitor the cpu temperature. I do not know how to handle i2c bus info, modprobe.

Could someone kindly help me? I need assistance.

I appreciate your help.
Spiro
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Mar 05, 2005 1:45 pm    Post subject: Reply with quote

Well, is your udev working generally ?
You have to set RC_DEVICES="udev" in /etc/conf.d/rc !
And emerge udev, o'course...
If those are in order, sysfs will be mounted/run by the kernel automatically (it is not a FS you can control yourself).
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Sat Mar 05, 2005 2:19 pm    Post subject: Reply with quote

Hi adaptr,

You are correct. I made changes to the /etc/conf.d/rc file and here is what I currently have:
Code:
RC_TTY_NUMBER=11
RC_PARALLEL_STARTUP="no"
RC_NET_STRICT_CHECKING="no"
RC_DEVICES="udev"
RC_DEVICE_TARBALL="no"
RC_DEVFSD_STARTUP="no"
RC_RETRY_KILL="yes"
RC_RETRY_TIMEOUT=1
RC_RETRY_COUNT=5
RC_FAIL_ON_ZOMBIE="no"
svcdir="/var/lib/init.d"
svcmount="no"
svcfstype="tmpfs"
svcsize=2048


Obviously, udev was already implemented but missconfigured.
I rebooted the system but no way to run sensors = "No sensors found!"

Here is my lsmod:
Code:
Module                  Size  Used by
ipv6                  185600  8
i2c_isa                 1280  0
snd_pcm_oss            37800  0
snd_mixer_oss          13056  2 snd_pcm_oss
snd_seq_oss            22144  0
snd_seq_midi_event      3712  1 snd_seq_oss
snd_seq                32656  4 snd_seq_oss,snd_seq_midi_event
snd_intel8x0           21800  2
snd_ac97_codec         46416  1 snd_intel8x0
snd_pcm                54792  2 snd_pcm_oss,snd_intel8x0
snd_timer              15492  2 snd_seq,snd_pcm
snd_page_alloc          5768  2 snd_intel8x0,snd_pcm
snd_mpu401_uart         4352  1 snd_intel8x0
snd_rawmidi            14756  1 snd_mpu401_uart
snd_seq_device          4744  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    31204  13 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_intel8x0, snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               4960  2 snd
usb_storage            43040  0
uhci_hcd               23696  0
evdev                   6528  0
lm85                   12584  0
i2c_i801                6028  0
i2c_sensor              2432  1 lm85
i2c_core               12560  4 i2c_isa,lm85,i2c_i801,i2c_sensor


Also, ls /sys/bus/i2c/devices/ returns tha is empty. This is wrong, right?

What should I do?

Please advice....

Thank you,
Spiro
Back to top
View user's profile Send private message
teahola
n00b
n00b


Joined: 20 Jul 2004
Posts: 16

PostPosted: Fri Jul 29, 2005 11:32 am    Post subject: Reply with quote

dlehman wrote:
I canot get the modules to load

Code:
root@dlehman dlehman # modprobe i2c_core
FATAL: Module i2c_core not found.
root@dlehman dlehman # ls /usr/src/linux-2.6.0-test9/drivers/i2c/
Kconfig     chips           i2c-core.o     i2c-dev.o         i2c-sensor.o
Makefile    i2c-core.c      i2c-dev.c      i2c-sensor.c
algos       i2c-core.ko     i2c-dev.ko     i2c-sensor.ko
built-in.o  i2c-core.mod.c  i2c-dev.mod.c  i2c-sensor.mod.c
busses      i2c-core.mod.o  i2c-dev.mod.o  i2c-sensor.mod.o
root@dlehman dlehman #


if any one can help thanks


Did you do "make modules_install"?
Back to top
View user's profile Send private message
wolfier
n00b
n00b


Joined: 25 Aug 2005
Posts: 1

PostPosted: Thu Aug 25, 2005 3:14 am    Post subject: Reply with quote

Hello,

I'm a Slackware user (not looking for flames here, just to see if I can help) and have installed i2c from scratch. There are a lot of complaints about what doesn't work, etc. So, here's my steps to get it work (at least to verify things exist). Missing any one of these steps, nothing will work.

Gentoo for sure works differently, but you can verify the equivalent steps.

1. the easy part - download and install the package that includes you `sensors` and `sensor-detect`.

2. do some research on your motherboard, etc. And compile your kernel. For example, my board uses an IT8705F chip on a VIA8237 chipset, so I enabled the these kernel features: i2c-core (compile-in), i2c-dev (module), i2c-viapro (module), i2c-isa (module), i2c-eeprom (module), i2c-sensor (module), it87 (module). Also make sure you enable sysfs - compile it in, copy the kernel, blah blah blah, the usual steps. Don't get too excited and forget lilo if you use it ;)

4. Create a mount point for sysfs, and tell the box to mount it automatically: mkdir /sys, edit your /etc/fstab to add this line: "sysfs /sys sysfs defaults 0 0"

5. Also make sure a /dev node is created for your i2c device. This command worked for me. "mknod /dev/i2c-0 c 89 0". See the man page of mknod for details.

6. Reboot and modprobe all the modules needed. Proceed to run sensor-detect and then sensor.

Hope it helps!
Back to top
View user's profile Send private message
puta
n00b
n00b


Joined: 13 Oct 2004
Posts: 9
Location: Quebec, Canada

PostPosted: Wed Aug 31, 2005 12:59 am    Post subject: Reply with quote

Hey hey!

I have posted this question in details there:
https://forums.gentoo.org/viewtopic.php?p=2688069#2688069

To be short, the sensors-detect tool "told" me that I needed those modules :

Code:
i2c-core (ok)
i2c-savage4 (ok)
smartbatt (!!)
max6650 (!!)
saa1064 (!!)
lm92 (ok)
ds1621 (ok)
eeprom (ok)
smbus-arp (!!)
pca9540 (!!)


some modules are loading OK while others DON'T. It would be fun for me to compile them in my kernel, only if I could find them! Where am I going to find support for those modules :

    smartbatt
    max6650
    saa1064
    smbus-arp



HELP!! I really need to get my sensors working because this will be a prod server
Back to top
View user's profile Send private message
wokick
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2004
Posts: 97

PostPosted: Wed Aug 31, 2005 9:49 pm    Post subject: Reply with quote

Hi, guys,

Can I ask How to find out what is the model of censor chip in my computer?
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 Sep 30, 2005 6:16 pm    Post subject: Reply with quote

@wokick: you should run sensors-detect...
_________________
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
srlinuxx
l33t
l33t


Joined: 22 Nov 2003
Posts: 627

PostPosted: Sun Dec 04, 2005 11:26 pm    Post subject: nvidia GPU temps? Reply with quote

Anyone know where gkrellm2 is picking up the nvidia gpu ambient and core temps from? For example, I know my motherboard/cpu are located in /sys/bus/i2c/devices. But I been searching for quite a long time and can't locate the gpu. Anyone have any idea?

thanks!

EDIT: well, I never did find that file, but if anyone else was wondering, I was able to gleen the info by using nvidia-settings at the cli and sed the info I wanted for my .torsmorc.
_________________
--You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots
Back to top
View user's profile Send private message
soigres
l33t
l33t


Joined: 09 Dec 2004
Posts: 648
Location: Milano, Italy

PostPosted: Mon Apr 17, 2006 12:37 pm    Post subject: Reply with quote

can i use gentoo-sources kernel?
after emerging lm_sensors (with that kernel) kacpid goes on 99,9% of cpu... do i need to emerge even i2c? (in the italian guide it says to emerge i2c before lm_sensors)
thanks!
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: Tue Apr 18, 2006 4:52 pm    Post subject: Reply with quote

When emerging lm_sensors at a system which has /usr/src/linux pointing to a 2.6 kernel the lm_sensors package just installs userspace applications, as the kernel modules have been merged into vanilla-sources. I²C has been merged too, so you don't need the package.
_________________
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
soigres
l33t
l33t


Joined: 09 Dec 2004
Posts: 648
Location: Milano, Italy

PostPosted: Tue Apr 18, 2006 5:39 pm    Post subject: Reply with quote

i found that may hp nx6110 can't use lm_sensors... but i can cat /proc/acpi temperatures
thanks!
Back to top
View user's profile Send private message
misssexywrexy
n00b
n00b


Joined: 24 Apr 2006
Posts: 3
Location: melbourne

PostPosted: Mon Apr 24, 2006 5:45 am    Post subject: hii Reply with quote

thanks for the handy info :) it was usefull
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Thu Jul 13, 2006 3:19 am    Post subject: Reply with quote

I got the hardware sensors on my Abit KN8-SLi board to work (Winbond W82867HF chip) but it has the nasty habit of shutting fans it monitors off AND then breaking the "system shutdown when a fan dies" routine. I'd like to run lm_sensors but I certainly don't want to see a repeat of my CPU heatsink fan suddenly shutting off and the core temp going from 44 C (full load on both cores of an X2 4200+) to 121 C and the computer not shutting off on either the HSF failure or temp > 70 C like the BIOS is supposed to have it do. I uninstalled lm_sensors and compiled a new kernel without i2c and sensors and the fans run and the system shuts off as it is supposed to upon a fan failure.

Any suggestions?
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
gerardo
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 228
Location: Belgium

PostPosted: Sun Jul 30, 2006 10:21 pm    Post subject: Reply with quote

To SAngili:
I had the same problem.
Try disabling ACPI sleep states in kernel config. Maybe that will help.
See my post
_________________
Windoze : Plug and Pay...
Back to top
View user's profile Send private message
Vicchius
n00b
n00b


Joined: 26 Dec 2005
Posts: 12

PostPosted: Wed Jan 03, 2007 8:06 am    Post subject: Reply with quote

Hi! I already configured everything on my computer for sensor reading. Now I am looking for a non-gui app that can periodically check temperatures and shut down the system if it's too hot. I found a lot of apps that run under X (gkrellm2, conky, various gnome, kde and X apps...) but no text-only ones. Do you have any suggestions? Thanks a lot
Back to top
View user's profile Send private message
Reks2004
n00b
n00b


Joined: 11 Feb 2006
Posts: 21
Location: Poland

PostPosted: Tue Sep 04, 2007 10:36 pm    Post subject: Reply with quote

Hmmm i got
Code:

rso linux # sensors
it87-isa-0290
Adapter: ISA adapter
VCore 1:   +1.70 V  (min =  +0.00 V, max =  +4.08 V)
VCore 2:   +2.51 V  (min =  +0.00 V, max =  +4.08 V)
+3.3V:     +2.03 V  (min =  +0.00 V, max =  +4.08 V)
+5V:       +3.90 V  (min =  +0.00 V, max =  +6.85 V)
+12V:      +5.70 V  (min =  +0.00 V, max = +16.32 V)
-12V:     -19.63 V  (min = -27.36 V, max =  +3.93 V)
-5V:       -6.37 V  (min = -13.64 V, max =  +4.03 V)
Stdby:     +1.77 V  (min =  +0.00 V, max =  +6.85 V)
VBat:      +0.00 V
fan1:     1534 RPM  (min =    0 RPM, div = 8)
fan2:        0 RPM  (min =    0 RPM, div = 8)
fan3:        0 RPM  (min =    0 RPM, div = 8)
M/B Temp:    -55°C  (low  =    -1°C, high =  +127°C)   sensor = thermistor
CPU Temp:   +127°C  (low  =    -1°C, high =  +127°C)   sensor = thermistor
Temp3:       -55°C  (low  =    -1°C, high =  +127°C)   sensor = thermistor


I dont know why i got bad para. ;/

I have ECS L7S7A + AMD athlon 1,3ghz

Any suggestions?
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Thu Jun 26, 2008 3:01 pm    Post subject: Reply with quote

last time i tried this trick my bios got triggered left me with a warning about overclocking...en i got scared since then to play with lm_sensors and asus p5k-se mobo.Are there known issues b4 i make another attempt to play with hardware sensors??

thanks
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
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 ... 9, 10, 11
Page 11 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