Ticket #2086 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

sensors-detect does not detect anything

Reported by: vaclav@… Owned by: somebody
Priority: minor Milestone:
Component: interface Version: 2.9.2
Keywords: sensors-detect Cc:

Description

Hello!

Script sensors-detect does not detect anything.

I'm running Ubuntu 6.06 LTS - Dapper Drake.

The same bug I had discovered in the previous release.

Kernel: 2.6.15-25-386

Motherboard: ASUSTeK P4P800 Mainboard

Package: lm-sensors=2.9.2-5ubuntu3

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

probable solution (a patch):

--- /usr/sbin/sensors-detect    2006-04-20 20:49:01.000000000 +0400
+++ upgrade/sensors-detect      2006-04-13 12:51:08.000000000 +0400
@@ -2009,10 +2009,12 @@
       }
     }
     close INPUTFILE;
-  } else {
+  }
+  if (!$use_udev) {
     # Try some known default udev db locations, just in case
-    if (-e '/dev/.udev.tdb' || -e '/dev/.udev'
-     || -e '/dev/.udevdb' || -e '/dev/.udevdb') {
+    if (-e '/dev/.udev.tdb' || -e '/dev/.udev' || -e '/dev/.udev/db'
+      || -e '/dev/.udevdb' || -e '/dev/.udevdb')
+    {
       $use_udev = 1;
       $dev_i2c = '/dev/i2c-';
     }

Best regards!

Change History

Changed 6 years ago by khali

  • keywords bug removed
  • resolution set to fixed
  • status changed from new to closed
  • component changed from hardware to interface

Already fixed in 2.10.0:

------------------------------------------------------------------------
r3232 | khali | 2006-01-15 19:40:41 +0100 (Sun, 15 Jan 2006) | 3 lines

Fix the udev detection in the case /etc/udev/udev.conf exists
but doesn't mention a specific db location. Tested by Rudolf Marek.

------------------------------------------------------------------------

As a side note, the second part of your change wasn't needed, as '/dev/.udev' must exit for '/dev/.udev/db' to exist.

Note: See TracTickets for help on using tickets.