Comment 6 for bug 7490

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 17 Aug 2004 07:01:16 +0300
From: =?iso-8859-13?q?Mantas_Kriau=E8i=FBnas?= <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: lm-sensors doesn't start and doesn't provide any information how to solve
 this problem

Package: lm-sensors
Version: 2.8.7-2
Severity: grave
Justification: renders package unusable

I'm trying to get working lm-sensors on debian:

dubrava:/home/mantas# apt-get install lm-sensors

[...]

Setting up lm-sensors (2.8.7-2) ...

Gtk-WARNING **: cannot open display:
debconf: unable to initialize frontend: Gnome
debconf: (DISPLAY problem?)
debconf: falling back to frontend: Dialog

Creating config file /etc/sensors.conf with new version
 cp -f /usr/share/lm-sensors/sensors.conf.eg /etc/sensors.conf
 cp -f /usr/share/lm-sensors/sensors.conf.eg /var/lib/ucf/cache/:etc:sensors.conf
Setting sensors limits: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'!
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'!
 done.

As I don't know what is sysfs (procfs is mountend automatically on my
system by discover) and didn't got any debconf prompts about mounting
sysfs, so I did 'modprobe i2c_sensor' and then did:

dubrava:/home/mantas# /etc/init.d/lm-sensors restart
Setting sensors limits: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'!
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'!
 done.

It seems same shit again :(

Then I've read in /usr/share/doc/lm-sensors/README.Debian this:

2.6 kernels

Once you have your kernel properly configured, you need to probe for the
sensors available on your system. You can use the sensors-detect program to
do this.

Hehe, if it's so simple, why don't offer debconf prompt for user about this?

OK, then I started sensors-detect program pressed Enter several times and
got this info in terminal:

To make the sensors modules behave correctly, add these lines to
/etc/modules:

#----cut here----
# I2C adapter drivers
i2c-isa
# I2C chip drivers
w83627hf
#----cut here----

Then, run /etc/init.d/module-init-tools

To make the sensors modules behave correctly, add these lines to
/etc/modprobe.d/local and run update-modules:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

I copied info into /etc/modules, then copied another part into
/etc/modprobe.d/local and then acidently searched /etc/modprobe.d/aliases
and found, that the same alias is in /etc/modprobe.d/aliases already !!!

One more bug :( Also I think it's not hard to make script, which adds needed
lines automatically, why user should manually to do this ?

OK. It seems all things, which I've found in documentation are done, so I
tried to start lm-sensors again:

dubrava:/home/mantas# /etc/init.d/lm-sensors start
Setting sensors limits: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'!
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'!
 done.

Again the same shit :( For sure I did lsmod:

dubrava:/var/cache/apt/archives# lsmod |grep i2c
i2c_sensor 2944 1 w83627hf
i2c_isa 1920 0
i2c_core 23364 3 w83627hf,i2c_sensor,i2c_isa

So, I searched /usr/share/doc/lm-sensors/ for info how to mount sysfs, but
after 2 hours searching local and web documentation found no info and
decided to report a bug.

So,
 - why sensors-detect isn't started automatically (after debconf prompt)
about this ?
 - why output of sensors-detect isn't copied to /etc/modules automatically ?
 - why sysfs isn't mounted in /etc/init.d/lm-sensors or in some other place
 automatically ?

It seems lm-sensors will be usable for simple users only, when these problems
will be solved (not even advanced users can't get lmsensors working :( )

Thanks for maintaining and good luck :)

-- System Information:
Debian Release: 3.1
Architecture: i386
Kernel: Linux dubrava.homelinux.org 2.6.5-1-k7 #2 Fri Apr 30 20:46:35 EST 2004 i686
Locale: LANG=lt_LT, LC_CTYPE=lt_LT

Versions of packages lm-sensors depends on:
ii debconf [debconf-2.0] 1.3.20 Debian configuration management sy
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libsensors3 2.8.7-2 Library to read temperature/voltag
ii makedev 2.3.1-58 Creates device files in /dev.
ii perl 5.8.4-2 Larry Wall's Practical Extraction
ii ucf 0.33 Update Configuration File: preserv

-- debconf information:
  lm-sensors/negatives: