Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

lm_sensors driving me insane

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
20 posts • Page 1 of 1
Author
Message
TBKDan
n00b
n00b
Posts: 54
Joined: Mon Jan 09, 2006 11:12 pm
Location: NY, USA
Contact:
Contact TBKDan
Website

lm_sensors driving me insane

  • Quote

Post by TBKDan » Mon Apr 24, 2006 2:44 pm

I've tried just about everything to get this thing working. The problem I'm stuck on is:

Code: Select all

# 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'!
sensors-detect finds the chips, and I've written what it tells me to. I've tried unmerging and re-merging it, no luck. sysfs and procfs are both in my fstab:

Code: Select all

procfs              /proc           proc            defaults        0 0
sysfs               /sys             sysfs           defaults        0 0
Pretty much every single module has been selected and compiled (modules, not built-in). Any help would be greatly appreciated. Thanks :) *pulls hair out*
Oh, this is an emachine laptop on a via chipset. AMD64 Gentoo 2006.0.
Top
SoylentGreen
l33t
l33t
User avatar
Posts: 904
Joined: Fri Aug 19, 2005 2:14 pm
Location: The Hostel
Contact:
Contact SoylentGreen
Website

Re: lm_sensors driving me insane

  • Quote

Post by SoylentGreen » Mon Apr 24, 2006 3:00 pm

TBKDan wrote:sysfs and procfs are both in my fstab:

Code: Select all

procfs              /proc           proc            defaults        0 0
sysfs               /sys             sysfs           defaults        0 0
but is sysfs actually mounted? if you just type "mount", it should look like this:

Code: Select all

proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
we have lm_sensors running on amd64 fine.

btw.. you did run "/etc/init.d/lm_sensors start"?
Top
TBKDan
n00b
n00b
Posts: 54
Joined: Mon Jan 09, 2006 11:12 pm
Location: NY, USA
Contact:
Contact TBKDan
Website

  • Quote

Post by TBKDan » Mon Apr 24, 2006 3:10 pm

Both sysfs and procfs are mounted.

Code: Select all

/dev/hda6 on / type ext3 (rw,noatime)
procfs on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)
lm_sensors start loads the modules, then proceeds to fail on the sensor start.

Code: Select all

# /etc/init.d/lm_sensors start
 * Loading lm_sensors modules...
 *   Loading i2c-viapro ...                                                              [ ok ]
 *   Loading eeprom ...                                                                  [ ok ]
 * Initializing sensors ...                                                              [ !! ]
Top
SoylentGreen
l33t
l33t
User avatar
Posts: 904
Joined: Fri Aug 19, 2005 2:14 pm
Location: The Hostel
Contact:
Contact SoylentGreen
Website

  • Quote

Post by SoylentGreen » Mon Apr 24, 2006 3:16 pm

Code: Select all

lsmod
Module                  Size  Used by
w83627hf               30928  0
hwmon_vid               2944  1 w83627hf
eeprom                  8336  0
i2c_isa                 6208  1 w83627hf
i2c_nforce2             8000  0
i2c_core               24344  4 w83627hf,eeprom,i2c_isa,i2c_nforce2
yours should look similar.
Top
TBKDan
n00b
n00b
Posts: 54
Joined: Mon Jan 09, 2006 11:12 pm
Location: NY, USA
Contact:
Contact TBKDan
Website

  • Quote

Post by TBKDan » Mon Apr 24, 2006 3:19 pm

Code: Select all

# lsmod
Module                  Size  Used by
eeprom                  6672  0
i2c_dev                10368  0
i2c_viapro              8920  0
i2c_core               20120  3 eeprom,i2c_dev,i2c_viapro
fglrx                 498816  7
rt2500                172136  1
snd_via82xx            23264  1
snd_ac97_codec         97048  1 snd_via82xx
snd_ac97_bus            2432  1 snd_ac97_codec
snd_mpu401_uart         6528  1 snd_via82xx
snd_rawmidi            22176  1 snd_mpu401_uart
via_rhine              20996  0
I am really at a loss of how to get around the error in the first post :(
Top
SoylentGreen
l33t
l33t
User avatar
Posts: 904
Joined: Fri Aug 19, 2005 2:14 pm
Location: The Hostel
Contact:
Contact SoylentGreen
Website

  • Quote

Post by SoylentGreen » Mon Apr 24, 2006 3:23 pm

TBKDan wrote: I am really at a loss of how to get around the error in the first post :(
which says:

Code: Select all

Unable to find i2c bus information
try sensors-detect using ISA method (which is the default). note that i have

Code: Select all

i2c_isa                 6208  1 w83627hf 
loaded.
are you sure your chipset is supported by lm_sensors at all? check out their website.
Top
TBKDan
n00b
n00b
Posts: 54
Joined: Mon Jan 09, 2006 11:12 pm
Location: NY, USA
Contact:
Contact TBKDan
Website

  • Quote

Post by TBKDan » Mon Apr 24, 2006 3:27 pm

I did that after my last post, and it still does not recognize any sensors. sensors-detect finds the bus and chip, and via chipsets are supported according to the lm_sensors webiste.

Code: Select all

# lsmod
Module                  Size  Used by
i2c_isa                 5248  0
eeprom                  6672  0
i2c_dev                10368  0
i2c_viapro              8920  0
i2c_core               20120  4 i2c_isa,eeprom,i2c_dev,i2c_viapro
fglrx                 498816  7
rt2500                172136  1
snd_via82xx            23264  1
snd_ac97_codec         97048  1 snd_via82xx
snd_ac97_bus            2432  1 snd_ac97_codec
snd_mpu401_uart         6528  1 snd_via82xx
snd_rawmidi            22176  1 snd_mpu401_uart
via_rhine              20996  0
EDIT: Misread your last post. I modprobed i2c-isa. When doing sensors-detect, I was saying yes to everything to let it find everything it could :P
Top
TBKDan
n00b
n00b
Posts: 54
Joined: Mon Jan 09, 2006 11:12 pm
Location: NY, USA
Contact:
Contact TBKDan
Website

  • Quote

Post by TBKDan » Tue Apr 25, 2006 3:07 pm

I just upgraded to 2.6.16-r3. Still nothing new =/ Everything is compiled as a module. Anybody have any ideas? :(
Top
TBKDan
n00b
n00b
Posts: 54
Joined: Mon Jan 09, 2006 11:12 pm
Location: NY, USA
Contact:
Contact TBKDan
Website

  • Quote

Post by TBKDan » Sat May 06, 2006 6:06 pm

Ok, I just got my laptop back from repairs (Vid card fried), and I'm back to where I was. I still have no clue how to get this running... how should the proc and sysfs look in fstab? Is there anything else I'm missing? :(
Top
skoalman
n00b
n00b
Posts: 2
Joined: Sat Oct 16, 2004 5:56 pm
Location: Chicago, IL

  • Quote

Post by skoalman » Sun May 07, 2006 11:06 am

maybe this can help you
http://gentoo-wiki.com/HARDWARE_Sensors
Top
Larcen
Apprentice
Apprentice
Posts: 174
Joined: Sun Mar 21, 2004 11:51 pm

  • Quote

Post by Larcen » Sun May 21, 2006 4:42 am

Anyluck on this mysterious problem? Mine are the same, the modules show to be loaded, even when they aren't and you run /etc/init.d/lm_sensors start they load but fail to intialize. Then if you do sensors they give the error about accessing /proc and /sys. Rank this right up there with being as annoying as glxinfo's can't handle tls data issues.
Top
laoshi
n00b
n00b
Posts: 44
Joined: Wed Jul 23, 2003 1:23 pm

  • Quote

Post by laoshi » Mon May 29, 2006 11:35 am

have same problem :(

sensors-detect detects my sensors and i have sys and proc mounted, but still ...

Code: Select all

laoshi linux # 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'!

Code: Select all

laoshi linux # mount
/dev/sda6 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)

Code: Select all

laoshi linux # lsmod
Module                  Size  Used by
eeprom                  6544  0
i2c_dev                 8452  0
i2c_i801                8716  0
i2c_core               18688  3 eeprom,i2c_dev,i2c_i801

EDIT:

Just found out that i have no /sys entry in my /etc/fstab, but sys seems still to be mounted?
is this normal with newer kernel versions or udev versions?
Maybe thats the problem ...
Top
Cintra
Advocate
Advocate
User avatar
Posts: 2111
Joined: Sat Apr 03, 2004 3:49 pm
Location: Norway

  • Quote

Post by Cintra » Tue May 30, 2006 5:07 am

Have you by any chance updated to vanilla-sources-2.6.17_rc5?

There appears to be a bug affecting sensors.. rc4 works ok, rc5 doesn't.
I haven't discovered why yet & the .configs are identical.

Mvh
"I am not bound to please thee with my answers" W.S.
Top
laoshi
n00b
n00b
Posts: 44
Joined: Wed Jul 23, 2003 1:23 pm

  • Quote

Post by laoshi » Tue May 30, 2006 7:35 am

I have linux-2.6.16-gentoo-r7 running on my system.
Top
the_enigma
Apprentice
Apprentice
Posts: 210
Joined: Mon Aug 23, 2004 4:17 am
Location: Brisbane, Aus

  • Quote

Post by the_enigma » Thu Jul 06, 2006 1:18 am

Grave digging I know, but I've got the same issue. Running an Nforce4 system. sensors-detect picks up eeprom and DS1621. Modules are all compiled :

Code: Select all

enigmas ~ # lsmod
Module                  Size  Used by
eeprom                  6032  0 
ds1621                  6992  0 
i2c_dev                 8512  0 
uhci_hcd               29648  0 
nvidia               4545076  12 
joydev                  8192  0 
evdev                   7488  0 
rtc                    10744  0 
forcedeth              16768  0 
nvidia_agp              5980  0 
agpgart                29320  2 nvidia,nvidia_agp
i2c_sensor              3520  2 eeprom,ds1621
i2c_nforce2             5632  0 
i2c_core               20624  6 eeprom,ds1621,i2c_dev,nvidia,i2c_sensor,i2c_nforce2
Sysfs is mounted

Code: Select all

enigmas ~ # mount
/dev/sda5 on / type auto (rw,noatime,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
/dev/sda6 on /var type ext3 (rw)
/dev/sda7 on /home type ext3 (rw)
/dev/sda8 on /usr type ext3 (rw)
/dev/sda9 on /storage/local type ext3 (rw)
/dev/sda2 on /mnt/stuff type vfat (rw,uid=1000,umask=000)
none on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)
/dev/hdc on /cdrom type iso9660 (ro,noexec,nosuid,nodev,user=enigma)
/etc/init.d/lm_sensors won't start.

Code: Select all

enigmas ~ # /etc/init.d/lm_sensors start
 * Loading lm_sensors modules...
 *   Loading i2c-nforce2 ...                                              [ ok ]
 *   Loading ds1621 ...                                                   [ ok ]
 *   Loading eeprom ...                                                   [ ok ]
 * Initializing sensors ...                                               [ !! ]
sensors -s gives

Code: Select all

enigmas ~ # sensors -s
No sensors found!
Version info

Code: Select all

enigmas ~ # uname -a
Linux enigmas.home 2.6.12-love1 #2 Sat Jun 10 19:14:18 EST 2006 i686 AMD Athlon(tm) 64 Processor 3500+ GNU/Linux
enigmas ~ # sensors -v
sensors version 2.10.0 with libsensors version 2.10.0
Anyone found anything yet?
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

  • Quote

Post by slycordinator » Fri Jul 14, 2006 10:18 pm

Not sure how to fix this but if you look at the init script, it refers to /proc/sys/dev/sensors

I'm assuming this is what the "sensors" program is looking for when it is being called. And on my box that file doesn't exist.

I have i2c-core, i2c-core, i2c-algo-bit as built-in and eeprom and i2c-i801 as modules.
Top
helmutvandeshaft
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Thu Sep 23, 2004 10:52 am
Location: Amsterdam

  • Quote

Post by helmutvandeshaft » Mon Jul 24, 2006 7:14 pm

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


Does anybody know about libsensors?

When running sensors it says make sure libsensors is compiled with sysfs support.

Also if I run " strace -s500 sensors -s >sensors_debug 2>&1" I get this errors about:

/usr/local/lib/tls/i686/sse2/libsensors

If I look in /usr/local/lib I don't see the tls directory at all, anybody else notice this?
Top
gerardo
Apprentice
Apprentice
User avatar
Posts: 228
Joined: Thu Feb 05, 2004 8:30 pm
Location: Belgium

  • Quote

Post by gerardo » Sun Jul 30, 2006 10:03 pm

Maybe you can try my solution ?
Windoze : Plug and Pay...
Top
pieman
n00b
n00b
User avatar
Posts: 41
Joined: Thu Sep 22, 2005 6:03 pm
Location: San Dimas - Calif.
Contact:
Contact pieman
Website

  • Quote

Post by pieman » Mon Jul 31, 2006 6:14 am

I have the same trouble to with my Asus A8N SLI Deluxe with Nforce 4 SLI...
Viva la penguin
Top
cradlebin
n00b
n00b
Posts: 32
Joined: Sat Sep 18, 2004 3:55 pm

  • Quote

Post by cradlebin » Fri Aug 04, 2006 1:32 pm

Same here with a Centrino
there's nothing in /sys/bus/i2c/devices either, that's probably where it comes from.
Top
Post Reply

20 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic