Bug 135558

Summary: i2c devices are not provided for sensors-detect
Product: [Fedora] Fedora Reporter: Leonid Kanter <leon>
Component: lm_sensorsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-23 15:58:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leonid Kanter 2004-10-13 14:40:14 UTC
Description of problem:

[root@leon root]# sensors-detect
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.

[root@leon root]# MAKEDEV i2c
[root@leon root]# sensors-detect
...
help skipped
...
 We can start with probing for (PCI) I2C or SMBus adapters.
 You do not need any special privileges for this.
 Do you want to probe now? (YES/no):

It looks like i2c devices must be provided in /etc/dev.d or somhow else

Version-Release number of selected component (if applicable):

udev-034-2

Comment 1 Harald Hoyer 2004-10-13 15:09:13 UTC
lm_sensors-2.8.7-1 should add s.th. to /usr/sbin/sensors-detect like this:

[ -e /sys/bus/i2c ] || echo "No i2c support"

/sbin/modprobe i2c-dev

FILE=/dev/i2c-0
count=10
while [ ! -f  $FILE -a $count -gt 0 ]
do
  sleep 1
  count=$(($count-1))
done

if [ ! -f $FILE ]; then
  echo "No i2c support"
  exit 1
fi


Comment 2 Phil Knirsch 2004-10-18 11:53:27 UTC
The latest lm_sensors package should contain a fix for that problem.

Please give it a shot.

Read ya, Phil

Comment 3 Phil Knirsch 2005-05-23 15:58:56 UTC
Most likely fixed, closing due to inactivity.

Read ya, Phil