Menu

#86 hwmon: should be able to scale/compute value

open
nobody
5
2007-10-26
2007-10-26
Anonymous
No

By iva2k @ yahoo . com

Values in /sys/class/hwmon/hwmonX/device/* can be (and often are) not 1-to-1. It affeccts at least voltages and fans. On my system conky displays +5V as 2.9V, +12V as 3.0V, Stby(5V) as 2.9V. It is not very usefull, especially it does not help judging if system is OK.

In /etc/sensors.conf, an input can be scaled, or "compute"ed. Here's an example from my /etc/sensors.conf (note in3, in4, in5 being scaled):

## DFI LanParty nF4 UT Ultra-D
##########################################################################
chip "it87-*" "it8712-*"
label in0 "CPU Core"
label in1 "LDT Bus"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "Chipset"
label in6 "DRAM"
label in7 "Stdby"
label in8 "VBat"
compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
compute in4 ((30/10) +1)*@ , @/((30/10) +1)
compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1)
...

New feature should either:
a) let user enter scale & offset into .conkyrc $hwmon variable (preferred)
or b) read sensors.conf and use its scaling information
or c) allow to use output of "sensors" command, which is already scaled.

Discussion


Log in to post a comment.