> Hi all,
>
> here's another one regarding sensors. I upgraded my kernel
> from 2.6.4 to
> 2.6.5 a while ago, and noticed that I couldn't read sensors
> temperatures
> anymore (it's a gentoo-patched kernel and I think they took the newer
> sensors), so I upgraded the lm-sensors package to, to 2.8.6.
> the sensors
> modules are compiled from the kernel source, and now with the 2.8.6
> package, when I issue the "sensors" command on the command
> line, I cand
> read sensors temperatures. Only freevo complains:

The actual name on the sensors changed in 2.6 between 2.6.4 and 2.6.5.
It used to be temp_input1 now it's temp1_input

So you have to update that in plugins/idlebar/system.py

> Kernel 2.5/2.6 detected, but no i2c sensors found
> Did u load (or compile) the necessary bus driver
> and sensor chip modules
> Kernel 2.5/2.6 detected, but no i2c sensors found
> Did u load (or compile) the necessary bus driver
> and sensor chip modules
>
> Well, I did load them, just look at the end of my message at
> the output
> of lsmod (and the sensors command reports temperatures). I
> looked into
> the code of the idlebar.system plugin and I think it's
> looking for the
> sensors in the /sys/ filesystem. Well, I don't understand why
> it doesn't
> find them, because the're actually listed there:
>
> htpc root # ls -al /sys/bus/i2c/devices
> total 0
> drwxr-xr-x  2 root root  0 May  8  2004 .
> drwxr-xr-x  4 root root  0 May  8  2004 ..
> lrwxrwxrwx  1 root root 38 May  8  2004 3-0021 ->
> ../../../devices/platform/i2c-3/3-0021
> lrwxrwxrwx  1 root root 38 May  8  2004 3-0040 ->
> ../../../devices/platform/i2c-3/3-0040
> lrwxrwxrwx  1 root root 38 May  8  2004 3-0061 ->
> ../../../devices/platform/i2c-3/3-0061
> lrwxrwxrwx  1 root root 38 May  8 08:58 4-6000 ->
> ../../../devices/platform/i2c-4/4-6000
> htpc root # ls -al /sys/bus/i2c/drivers
> total 0
> drwxr-xr-x  8 root root 0 May  8  2004 .
> drwxr-xr-x  4 root root 0 May  8  2004 ..
> drwxr-xr-x  2 root root 0 May  8  2004 dev_driver
> drwxr-xr-x  2 root root 0 May  8  2004 i2c TV tuner driver
> drwxr-xr-x  2 root root 0 May  8  2004 i2c msp3400 driver
> drwxr-xr-x  2 root root 0 May  8  2004 i2c_adapter
> drwxr-xr-x  2 root root 0 May  8  2004 saa7115
> drwxr-xr-x  2 root root 0 May  8 08:58 via686a
>                                          ^^^^^
>
> Is there something I could be doing wrong? Does the plugin need an
> upgrade? More info needed?
>

Here is a diff of plugins/idlebar/system.py

--- system.py.orig      2004-05-09 11:37:15.000000000 +0200
+++ system.py   2004-05-09 11:39:05.000000000 +0200
@@ -228,8 +228,8 @@
                 return "?"

             if self.k6 :
-                file = os.path.join( self.senspath, 'temp_input' +
self.sensor[-1] )
-                fhot = os.path.join( self.senspath, 'temp_max' +
self.sensor[-1] )
+                file = os.path.join( self.senspath, 'temp' +
self.sensor[-1] + '_input' )
+                fhot = os.path.join( self.senspath, 'temp' +
self.sensor[-1] + '_max' )
                 f = open(fhot)
                 hotdata = f.read()
                 f.close()
@@ -268,7 +268,7 @@
                 for senspath in os.listdir(self.k6path):
                     testpath = os.path.join(self.k6path , senspath)
                     for pos_sensors in os.listdir(testpath):
-                        if pos_sensors == "temp_input1":
+                        if pos_sensors == "temp1_input":
                             return testpath

             if not os.path.exists(self.initpath):

Best Regards,
/LM






-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to