Hi,

Sorry for resurrecting this old thread, but I finally found time to dive
deeper into this matter. (Postings edited for readability)

Auke Kok wrote:
> We'll have to figure out we somehow can distinguish between the two
> units when we read the data, which will likely be more complex, or
> involve fixing various ACPI drivers to unify their number reporting.

Len Brown wrote:
> Is this related to the power supply sysfs wrong-units bug?

Alexey Starikovskiy wrote:
> Yes.

The best way to fix this issue seems to me to fix the ACPI-drivers to
unify their reporting.

I did some searching for this bug on the kernel bugzilla, but I couldn't
find anything. Does anybody have some pointers to a bugreport or to
additional information on it? Up to now I have only seen reports of it
on (newer?) thinkpads. Is it thinkpad specific or are there more drivers
that report wrong units?

At least for me (and some of the people reporting on Debian bug #497929)
a workaround might also be to read the data from the tp_smapi interface
if present. (/sys/devices/platform/smapi/BAT* , see also
http://www.thinkwiki.org/wiki/Tp_smapi#Battery_status_features ). But
that would be programming for a second, a bit different, interface. My
readouts right now are for example:

winfr...@tinie:/sys/devices/platform/smapi/BAT0$ cat current_now
-789
winfr...@tinie:/sys/devices/platform/smapi/BAT0$ cat current_avg
-809
winfr...@tinie:/sys/devices/platform/smapi/BAT0$ cat power_now
-11835
winfr...@tinie:/sys/devices/platform/smapi/BAT0$ cat power_avg
-11992
winfr...@tinie:/sys/devices/platform/smapi/BAT0$ cat voltage
14987

Thanks,

Winfried

_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to