Skip to contentSkip to conversation

possible bug - lm_sensors

DISCUSSION Axel Thimm 3 participants 4 messages May 19, 2005

lore
Share & tools
lore

Axel Thimm

author
#0 lore raw
Quoted 28 lines · bishop

Not sure if this was a bug, so I've not logged anything in the bz.

Diffing my config files recently showed this gem:

/etc/sensors.conf

Quoted 8 lines
(quoted diff) +3 -1
@@ -1630,12 +1630,28 @@
 # Analog inputs
 
   ignore ain_conf
-   set    ain_conf    0
+# Since Linux 2.6, input configuration is set as module parameter,
+# so the line below is for older kernels only.
+#  set    ain_conf    0

Review line 1645

Quoted 10 lines
(quoted diff) +6 -0
+
+# You may discard ch2 and ch3 if you don't use them (depends on the input
+# configuration)
+#  ignore ch2
+#  ignore ch3
+
   label  ch0         "Chan. 0"
   label  ch1         "Chan. 1"
   label  ch2         "Chan. 2"
   label  ch3         "Chan. 3"

The recent change seems to have removed some behaviour that seems - by comments - to be required for kernel 2.4 . This is my FC1 mythtv system, which is running kernel-2.4.22-1.2174.nptl_37.rhfc1.at .

Quoted 4 lines

Should the package have a conflicts: so it doesn't install with 2.4 kernels? Should another package be built for 2.4 with that option uncommented? It all depends on whether it's really an important bit, I guess.

I think this is there by mistake, the built packages are meant for 2.4 (or from the source code's POV for both 2.6 and 2.4). I suggest that either the comment is wrong (works also with 2.4), or that you should uncomment that part. Of course, at the end of the day, what really counts is whether you have decent output from lm_sensors.

Quoted 1 line

So I wasn't sure, and thought I'd report it to the maintainer, at least.

I am copying the lm_sensors list. I am not sure myself ;)

Signature · 8 lines
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040407/b97105e5/attachment.bin
#1 lore raw
Quoted 7 lines
Quoted 7 lines

/etc/sensors.conf

Review line 1633

Quoted 6 lines
(quoted diff) +1 -1
@@ -1630,12 +1630,28 @@
 # Analog inputs
 
   ignore ain_conf
-   set    ain_conf    0
+# Since Linux 2.6, input configuration is set as module

parameter,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
(quoted diff) +7 -0
+# so the line below is for older kernels only.
+#  set    ain_conf    0
+
+# You may discard ch2 and ch3 if you don't use them (depends on
+# the input configuration)
+#  ignore ch2
+#  ignore ch3
Quoted 8 lines
Quoted 8 lines

Review line 1645

Quoted 5 lines
(quoted diff) +1 -0
+
   label  ch0         "Chan. 0"
   label  ch1         "Chan. 1"
   label  ch2         "Chan. 2"
   label  ch3         "Chan. 3"

The recent change seems to have removed some behaviour that seems - by comments - to be required for kernel 2.4.

Not really required. The driver initialize the value to 0 by default, so the commented out line (set ain_conf 0) mostly has no effect unless you also change the value.

Quoted 4 lines
Quoted 4 lines

Should the package have a conflicts: so it doesn't install with 2.4 kernels? Should another package be built for 2.4 with that option uncommented? It all depends on whether it's really an important bit, I guess.

It's actually not important, for two reasons. First, as said right above, this is the default value anyway, so it doesn't change anything. Second, the pcf8591 driver is almost not used. PCF8591 devices are not present on motherboards as far as I know, and the driver was only written and ported to Linux 2.6 to support home-maid electronic devices.

Quoted 3 lines

I think this is there by mistake, the built packages are meant for 2.4 (or from the source code's POV for both 2.6 and 2.4). I suggest that either the comment is wrong (works also with 2.4),

No, the comment is correct, it really doesn't work with 2.6 kernels, because the driver design was slightly changed.

What is the problem exactly? Considering that 1* you most likely don't have a PCF8591 and 2* the "missing" line has no effect by default, I just don't get what you are worrying about.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
author
#2 lore raw
In reply to Axel Thimm
Quoted 6 lines · Jean Delvare
Quoted 2 lines
Quoted 2 lines

The recent change seems to have removed some behaviour that seems - by comments - to be required for kernel 2.4.

What is the problem exactly? Considering that 1* you most likely don't have a PCF8591 and 2* the "missing" line has no effect by default, I just don't get what you are worrying about.

Thanks for clarifying, I believe the original poster (bishop <[email protected]>) was doing only code reviewing, so nothing to really worry about.

Signature · 8 lines
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040407/af472ca1/attachment.bin
#3 lore raw
In reply to Axel Thimm
Quoted 5 lines · Axel Thimm
Quoted 2 lines · Jean Delvare
Quoted 2 lines
Quoted 2 lines

The recent change seems to have removed some behaviour that seems - by comments - to be required for kernel 2.4.

Quoted 7 lines
Quoted 3 lines

What is the problem exactly? Considering that 1* you most likely don't have a PCF8591 and 2* the "missing" line has no effect by default, I just don't get what you are worrying about.

Thanks for clarifying, I believe the original poster (bishop <[email protected]>) was doing only code reviewing, so nothing to really worry about.

Yep, that's about it. I saw something suspicious and potentially concerning, and brought it to the attention of the guy who was packaging it for folks, to see if he knew about it. Don't blame the messenger on this one; blame me for wanting to be sure it was nothing serious.

Thanks for checking, Axel, and thanks to the sensors list for explaining the comment in the config.

- bish

Signature · 4 lines
	WAP is the sound a clunky Internet-enabled cellphone makes
	when you throw it at a brick wall in frustration.
				 -- 'Frozen North'
	http://www.kuro5hin.org/story/2003/11/14/173126/56