View previous topic :: View next topic |
Author |
Message |
Icethepenguin Apprentice
Joined: 01 Nov 2003 Posts: 252 Location: Loganville, Ga
|
Posted: Tue Mar 30, 2004 1:26 pm Post subject: Problem detecting Sensors |
|
|
Code: | root@tower kevin # sensors-detect
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.
root@tower kevin #
|
|
|
Back to top |
|
|
foton2 Guru
Joined: 23 Feb 2004 Posts: 347 Location: Prague, Czech Republick
|
Posted: Tue Mar 30, 2004 3:08 pm Post subject: |
|
|
And do you use 2.4.x kernel ? Because in 2.6.x you haven't to run sensors-detect. You only need to have kernel modules for i2c. _________________ Pentium4 2.4Ghz 533Mhz, Intel® Desktop Board D845GEBV2 + LAN, 768MB DDR 266Mhz RAM, 80GB Seagate Barracuda 7200.7, NVIDIA GeForce4 MX 440, SB Live! 5.1, TEAC CD-552E, TEAC DW-548D, Packard Bell 1512SL Monitor, HP DeskJet 640C, Opti UPS PowerPS 800ps. |
|
Back to top |
|
|
Icethepenguin Apprentice
Joined: 01 Nov 2003 Posts: 252 Location: Loganville, Ga
|
Posted: Tue Mar 30, 2004 7:31 pm Post subject: |
|
|
Code: | root@tower kevin # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 21 Mar 15 15:49 /usr/src/linux -> /usr/src/linux-2.4.25
root@tower kevin # |
|
|
Back to top |
|
|
foton2 Guru
Joined: 23 Feb 2004 Posts: 347 Location: Prague, Czech Republick
|
Posted: Tue Mar 30, 2004 7:36 pm Post subject: |
|
|
And did you
Quote: | Use prog/mkdev/mkdev.sh to create them |
?
I think that you should write a little bit more about your problem. _________________ Pentium4 2.4Ghz 533Mhz, Intel® Desktop Board D845GEBV2 + LAN, 768MB DDR 266Mhz RAM, 80GB Seagate Barracuda 7200.7, NVIDIA GeForce4 MX 440, SB Live! 5.1, TEAC CD-552E, TEAC DW-548D, Packard Bell 1512SL Monitor, HP DeskJet 640C, Opti UPS PowerPS 800ps. |
|
Back to top |
|
|
Icethepenguin Apprentice
Joined: 01 Nov 2003 Posts: 252 Location: Loganville, Ga
|
Posted: Wed Mar 31, 2004 3:29 am Post subject: |
|
|
Sorry about that, okay, this is what I'm doing, I'm following this setup to get my sensors to work on my systems and getting the problem I'm posting about at this point in the setup.
Point I'm at in the setup
Quote: | if you're running kde you can use ksensors instead of gkrellm.
Code: | Code:
# emerge ksensors |
Then run:
Code: | Code:
# sensors-detect |
|
This is what I'm getting back:
Code: | root@tower kevin # prog/mkdev/mkdev.sh
bash: prog/mkdev/mkdev.sh: No such file or directory
root@tower kevin #
|
|
|
Back to top |
|
|
foton2 Guru
Joined: 23 Feb 2004 Posts: 347 Location: Prague, Czech Republick
|
Posted: Wed Mar 31, 2004 9:54 am Post subject: |
|
|
Is this file really missing ?
try
Code: |
find /* -name "mkdev.sh" |
I have lm-sensors 2.8.5 and when I emerged it this text appeared :
Quote: | echo
einfo "*****************************************************************"
einfo
einfo "This ebuild assumes your /usr/src/linux kernel is the one you"
einfo "used to build i2c-2.8.2."
einfo
einfo "For 2.5+ series kernels, use the support already in the kernel"
einfo "under 'Character devices' -> 'I2C support' and then merge this"
einfo "ebuild."
einfo
einfo "To cross-compile, 'export LINUX=\"/lib/modules/<version>/build\"'"
einfo "or symlink /usr/src/linux to another kernel."
einfo
einfo "*****************************************************************"
echo
|
and
Quote: | einfo
einfo "The lm_sensors hardware sensors package has been installed."
einfo
einfo "It is recommended that you read the lm_sensors documentation."
einfo "To enable lm_sensors you will need to compile i2c support in"
einfo "your kernel as a module and run /usr/sbin/sensors-detect to"
einfo "detect the hardware in your system."
einfo
einfo "Be warned, the probing of hardware in your system performed by"
einfo "sensors-detect could freeze your system. Also do not use"
einfo "lm_sensors on certain laptop models from IBM. See the lm_sensors"
einfo "documentation and website for more information."
einfo
einfo "IMPORTANT: When you merge this package it installs kernel modules"
einfo "that can only be used with the specific kernel version whose"
einfo "source is located in /usr/src/linux. If you upgrade to a new"
einfo "kernel, you will need to remerge the lm_sensors package to build" einfo "new kernel modules."
einfo
echo
|
look to ebuild of your version for more information.
You can also look to the i2c ebulid. _________________ Pentium4 2.4Ghz 533Mhz, Intel® Desktop Board D845GEBV2 + LAN, 768MB DDR 266Mhz RAM, 80GB Seagate Barracuda 7200.7, NVIDIA GeForce4 MX 440, SB Live! 5.1, TEAC CD-552E, TEAC DW-548D, Packard Bell 1512SL Monitor, HP DeskJet 640C, Opti UPS PowerPS 800ps. |
|
Back to top |
|
|
Drunkula Apprentice
Joined: 28 Jul 2003 Posts: 257 Location: Denton, TX - USA
|
Posted: Wed Jun 16, 2004 12:18 am Post subject: |
|
|
Emerging lm-sensors isn't enough. I went and manually downloaded the lm-sensors package. Extract it and you will find the mkdev.sh file in there. To save you some time this is the entire contents of that script from the 2.8.6 version.
Code: |
#!/bin/bash
# Here you can set several defaults.
# The number of devices to create (max: 256)
NUMBER=32
# The owner and group of the devices
OUSER=root
OGROUP=root
# The mode of the devices
MODE=600
i=0;
while [ $i -lt $NUMBER ] ; do
echo /dev/i2c-$i
mknod -m 000 /dev/i2c-$i c 89 $i
chown "$OUSER:$OGROUP" /dev/i2c-$i
chmod $MODE /dev/i2c-$i
i=$[$i + 1]
done
|
Save it to a script file and run it as root... |
|
Back to top |
|
|
revertex l33t
Joined: 23 Apr 2003 Posts: 806
|
Posted: Tue Jun 29, 2004 5:59 pm Post subject: |
|
|
thanks a lot Drunkula, your script save my day.
iv'e got this problem not in my gentoo box, but in a debian box that i'm installing.
the funny thing is the only place where i found my solution is here.
Debian is a great distro, but their docs sucks and their community is a bit selfish.
GENTOO FORUMS RULEZZZZ! |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3526
|
Posted: Wed Jun 29, 2005 2:56 pm Post subject: |
|
|
foton2 wrote: | And do you use 2.4.x kernel ? Because in 2.6.x you haven't to run sensors-detect. You only need to have kernel modules for i2c. |
In that case, what do you have to do to get rid of the "No sensors found!" response?
I've got another problem, that may or may not be related. This is on an IBM Intellistation. The sensors-detect command has blacklisted all IBM systems because of Thinkpad problems. But this isn't a Thinkpad, and I don't see any override switch. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
|