Two examples: # /etc/init.d/lm_sensors start FATAL: Module i2c_viapromodprobe not found. * Loading lm_sensors modules... * Loading i2c-viapro ... [ ok ] * Loading eeprom ... [ ok ] * Loading k8temp ... [ ok ] * Loading w83627hf ... [ ok ] * Initializing sensors ... [ ok ] # /etc/init.d/lm_sensors restart FATAL: Module i2c_viapromodprobe not found. * Unloading lm_sensors modules... * Unloading w83627hf ... [ ok ] * Unloading k8temp ... [ ok ] * Unloading eeprom ... [ ok ] * Unloading i2c-viapro ... [ ok ] * Loading lm_sensors modules... * Loading i2c-viapro ... [ ok ] * Loading eeprom ... [ ok ] * Loading k8temp ... [ ok ] * Loading w83627hf ... [ ok ] * Initializing sensors ... [ ok ] # equery l lm_sensors [ Searching for package 'lm_sensors' in all categories among: ] * installed packages [I--] [ ~] sys-apps/lm_sensors-2.10.1 (0) emerge --info in attachment
Created attachment 103322 [details] emerge --info
Post the output of `grep ^MODULE /etc/conf.d/lm_sensors` please.
See above.
# grep ^MODULE /etc/conf.d/lm_sensors MODULE_0=i2c-viapro MODULE_1=eeprom MODULE_2=k8temp MODULE_3=w83627hf This is as written by sensors-detect; I've made no changes.
the sensors-detect script put this line in my conf: modprobe i2c-i801modprobe eeprommodprobe w83627ehf# Load modules at startup
using lm_sensors-2.10.1
Hi, same here /usr/sbin/sensors-detect creates this lines in /etc/conf.d/lm_sensors and the init script fails to start lm_sensors. /etc/conf.d/lm_sensors modprobe i2c-sis96xmodprobe eeprommodprobe w83627hf# Load modules at startup LOADMODULES=yes # Initialize sensors at startup INITSENSORS=yes MODULE_0=i2c-sis96x MODULE_1=eeprom MODULE_2=w83627hf
Problem comes from the patch lm_sensors-2.10.0-sensors-detect-gentoo.patch that reverses two lines: print SYSCONFIG - "# Generated by sensors-detect on " . scalar localtime() . "\n"; + "# Generated by sensors-detect on " . scalar localtime() . "\n\n"; + print SYSCONFIG Rq: a warning is generated too. Fixing this patch will solve the warning and this strange line.
Sorry, culprit is lm_sensors-2.10.1-sensors-detect-gentoo.patch (not 2.10.0): print SYSCONFIG - "# Generated by sensors-detect on " . scalar localtime() . "\n"; my @modules = grep /^modprobe /, split "\n", $modprobes; - my $i = 0; + "# Generated by sensors-detect on " . scalar localtime() . "\n\n"; I was too quick in my previous reply.
Created attachment 106827 [details] lm_sensors-2.10.1-sensors-detect-gentoo.patch (In reply to comment #9) > Sorry, culprit is lm_sensors-2.10.1-sensors-detect-gentoo.patch (not 2.10.0): > print SYSCONFIG > - "# Generated by sensors-detect on " . scalar localtime() . "\n"; > my @modules = grep /^modprobe /, split "\n", $modprobes; > - my $i = 0; > + "# Generated by sensors-detect on " . scalar localtime() . "\n\n"; There is no special patch for 2.10.1 .. only the one for 2.10.0 that is being applied to 2.10.1 .. I assume this is still a problem with 2.10.1 ? If yes, could you please see if the above patch solves this ? Thanks in advance.
(In reply to comment #10) > There is no special patch for 2.10.1 .. only the one for 2.10.0 that is being > applied to 2.10.1 .. I assume this is still a problem with 2.10.1 ? *ugh* there is, I even attached the changed one. Must be too stupid to read correctly currently :P
Created attachment 106923 [details, diff] Corrected sensors-detect patch against 'lm_sensors' one. Here is the patch for a correct sensors-detect (i fixed the sensors-detect patched), and diff'ed from the lm_sensors one. diff -u lm_sensors-2.10.1/prog/detect/sensors-detect `which sensors-detect` Rq: the previous patch (http://bugs.gentoo.org/attachment.cgi?id=106827&action=view) will not work.
(In reply to comment #12) > Created an attachment (id=106923) [edit] > Corrected sensors-detect patch against 'lm_sensors' one. > > Here is the patch for a correct sensors-detect (i fixed the sensors-detect > patched), and diff'ed from the lm_sensors one. > > diff -u lm_sensors-2.10.1/prog/detect/sensors-detect `which sensors-detect` Thanks a lot for the patch. You guys rock. I just commited the changes to the tree. Wait the usual amount of time an sync up.