[Freevo-users] HOWTO: Sensors on via EPIA systems and idlebar plugin

2007-06-07 Thread Stephen Rowles
Using 2.6.21 I can finally get reliable data from my via EPIA system 
about temperature - yay!

I've updated the Sensors section of the idlebar wiki:

http://freevo.sourceforge.net/cgi-bin/doc/IdlebarPlugins

to include a mini howto with the plugin line you need. Anyone wanting 
this to work will need this bug fixed in their freevo distribution:

http://sourceforge.net/tracker/index.php?func=detailaid=1731892group_id=46652atid=446895

(thanks Duncan!)

It also seems that the via driver returns data at a different scale for 
the CPU than the other data - sigh, so as described in the wiki link 
above, you will need to scale the original temp up by a factor of 10 
before then scaling.

e.g.

plugin.activate('idlebar.system.sensors', level=30, args=(('temp1','((@ * 10) - 
73.869) / 0.9528'), 'temp2', None))


Posting here to ensure people find out about it :)


Cheers all, loving freevo :D

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HOWTO: Sensors on via EPIA systems and idlebar plugin

2007-06-07 Thread Juerg Haefliger
Hi Stephen,

On 6/7/07, Stephen Rowles [EMAIL PROTECTED] wrote:
 Using 2.6.21 I can finally get reliable data from my via EPIA system
 about temperature - yay!

 I've updated the Sensors section of the idlebar wiki:

 http://freevo.sourceforge.net/cgi-bin/doc/IdlebarPlugins

 to include a mini howto with the plugin line you need. Anyone wanting
 this to work will need this bug fixed in their freevo distribution:

 http://sourceforge.net/tracker/index.php?func=detailaid=1731892group_id=46652atid=446895

 (thanks Duncan!)

 It also seems that the via driver returns data at a different scale for
 the CPU than the other data - sigh, so as described in the wiki link
 above, you will need to scale the original temp up by a factor of 10
 before then scaling.

I'm the author of said driver. No need to sigh, that behavior is by
design for good reasons :-) The driver returns what the chip reads at
its inputs. For temp1, this value depends on the implementation of the
board (value of external scaling resistors). The driver can't possibly
know what does values are so scaling is left to the user. Temp2 is
different since it's the chips internal temperature which is always
identical for all boards and thus the driver does the correct scaling.

Check out Documentation/hwmon/vt1211 in the kernel source tree for a
detailed description of the driver.

...juerg


 e.g.

 plugin.activate('idlebar.system.sensors', level=30, args=(('temp1','((@ * 10) 
 - 73.869) / 0.9528'), 'temp2', None))


 Posting here to ensure people find out about it :)


 Cheers all, loving freevo :D

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Freevo-users mailing list
 Freevo-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freevo-users


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HOWTO: Sensors on via EPIA systems and idlebar plugin

2007-06-07 Thread Stephen Rowles
Juerg Haefliger wrote:
 It also seems that the via driver returns data at a different scale for
 the CPU than the other data - sigh, so as described in the wiki link
 above, you will need to scale the original temp up by a factor of 10
 before then scaling.
 

 I'm the author of said driver. No need to sigh, that behavior is by
 design for good reasons :-) The driver returns what the chip reads at
 its inputs. For temp1, this value depends on the implementation of the
 board (value of external scaling resistors). The driver can't possibly
 know what does values are so scaling is left to the user. Temp2 is
 different since it's the chips internal temperature which is always
 identical for all boards and thus the driver does the correct scaling.

 Check out Documentation/hwmon/vt1211 in the kernel source tree for a
 detailed description of the driver.

 ...juerg
My sigh wasn't about the driver, more the slightly strange behaviour 
difference between the sensors config and the config needed in freevo. I 
understand that scaling has to be done outside the driver :)

In /etc/sensors.conf there is the following for temp1:

compute temp1  (@ - 73.869) / 0.9528,  (@ * 0.9528) + 73.869

For most sensors using freevo idlebar plugin all you do is copy and past 
the section (@ - 73.869) / 0.9528 and let it do its stuff. However for 
some reason to get this to work correctly you need to add the extra *10, 
as I documented:

((@ * 10) - 73.869) / 0.9528')

Just seems a bit weird and inconsistent, I don't know whats going on 
here and why sensors.conf doesn't need the *10 scale but freevo does.

And thanks for the driver! Finally with 2.6.21 I have sensors that work, 
I've been worrying about my board as I've squeezed it into a small case, 
now I can rest easy that the temps are in range :D

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] HOWTO: Sensors on via EPIA systems and idlebar plugin

2007-06-07 Thread Juerg Haefliger
On 6/7/07, Stephen Rowles [EMAIL PROTECTED] wrote:
 Juerg Haefliger wrote:
  It also seems that the via driver returns data at a different scale for
  the CPU than the other data - sigh, so as described in the wiki link
  above, you will need to scale the original temp up by a factor of 10
  before then scaling.
 
 
  I'm the author of said driver. No need to sigh, that behavior is by
  design for good reasons :-) The driver returns what the chip reads at
  its inputs. For temp1, this value depends on the implementation of the
  board (value of external scaling resistors). The driver can't possibly
  know what does values are so scaling is left to the user. Temp2 is
  different since it's the chips internal temperature which is always
  identical for all boards and thus the driver does the correct scaling.
 
  Check out Documentation/hwmon/vt1211 in the kernel source tree for a
  detailed description of the driver.
 
  ...juerg
 My sigh wasn't about the driver, more the slightly strange behaviour
 difference between the sensors config and the config needed in freevo. I
 understand that scaling has to be done outside the driver :)

 In /etc/sensors.conf there is the following for temp1:

 compute temp1  (@ - 73.869) / 0.9528,  (@ * 0.9528) + 73.869

 For most sensors using freevo idlebar plugin all you do is copy and past
 the section (@ - 73.869) / 0.9528 and let it do its stuff. However for
 some reason to get this to work correctly you need to add the extra *10,
 as I documented:

 ((@ * 10) - 73.869) / 0.9528')

 Just seems a bit weird and inconsistent, I don't know whats going on
 here and why sensors.conf doesn't need the *10 scale but freevo does.

Err, no, don't blame this on the driver, the driver works just fine.
The raw value reported via the sysfs interface is in 'millivolts' and
needs to be adjusted according to the formula in sensors.conf:

jabba:~# echo (`cat /sys/devices/platform/vt1211.24576/temp1_input` /
1000 - 73.869) / 0.9528 | bc
41

The idlebar plugin must be doing something funny.


 And thanks for the driver! Finally with 2.6.21 I have sensors that work,
 I've been worrying about my board as I've squeezed it into a small case,
 now I can rest easy that the temps are in range :D

Assuming you trust the values? :-)

Out of curiosity, what VIA board do you have? Can you control fan
speeds on your board?

...juerg



 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Freevo-users mailing list
 Freevo-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freevo-users


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users