[Goodies-dev] [Bug 8594] New: current_now may contain useful negative rates while discharging
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Fri Mar 23 14:37:46 CET 2012
https://bugzilla.xfce.org/show_bug.cgi?id=8594
Priority: Medium
Bug ID: 8594
Assignee: frivoal at xfce.org
Summary: current_now may contain useful negative rates while
discharging
QA Contact: goodies-dev at xfce.org
Severity: normal
Classification: Panel Plugins
OS: Linux
Reporter: xfce_bugzilla at shandschuh.de
Hardware: All
Status: NEW
Version: unspecified
Component: General
Product: Xfce4-battery-plugin
Some battery drivers are reporting a negative rate in
/sys/class/power_supply/BAT0/current_now (replace BAT0 with your battery) such
as the bq27x00-battery driver and the kernel for the toshiba ac100 (tegra 2
soc). In the two cases, the current_now contains a useful rate (i.e. no error
code).
A negative rate in current_now however, is interpreted by the
xfce4-battery-plugin as an error such that remaining time is not displayed
correctly.
This could be fixed by adding abs() panel-plugin/libacpi.c around line 793
together with considering the value -1000 as a not present rate.
The upower-daemon, for instance, also applies abs() to this value.
AFAIK, the acpi specification does not allow negative rates but int the linux
power supply class documentation, there seems to be currently no statement
about the sign.
--
You are receiving this mail because:
You are the QA Contact for the bug.
More information about the Goodies-dev
mailing list