https://bugzilla.kernel.org/show_bug.cgi?id=24492





--- Comment #22 from Lorenzo Masellis <masel...@fastwebnet.it>  2011-06-18 
08:12:58 ---
The patch compiles cleanly on vanilla kernel 3.0.0-rc3, as well as on Debian
flavour 2.6.32-5-34.

The values in sysfs are regularly updated every 30 seconds and updating stops
when the battery is full. I would be grateful if you can confirm that this is
intentional.

If so, the patch seems to solve the object of the bug.

Anyway, rate of discharge seems to be incorrect:

lorenzo@castor:~$ cat /sys/class/power_supply/BAT0/uevent
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
POWER_SUPPLY_VOLTAGE_NOW=15799000
POWER_SUPPLY_CURRENT_NOW=1018000
POWER_SUPPLY_CURRENT_AVG=985000
POWER_SUPPLY_POWER_NOW=1018000
POWER_SUPPLY_POWER_AVG=985000
POWER_SUPPLY_CAPACITY=34
POWER_SUPPLY_ENERGY_FULL_DESIGN=65120000
POWER_SUPPLY_ENERGY_FULL=23290000
POWER_SUPPLY_ENERGY_NOW=22400000
POWER_SUPPLY_TEMP=259
POWER_SUPPLY_MODEL_NAME=01ZA
POWER_SUPPLY_MANUFACTURER=Lezinn

With a charge W=22.4 Ah, an actual voltage V=15.799 V and a current I=1.018 A,
power should be P=V*I=16.083, resulting in an estimated time of discharge
T=W/P=1.393 h.

As can be seen above, power value is instead equal to current and not
multiplied by voltage, thus giving an unrealistic estimated time T=22 h, which
is also reported by upower and, in turn, by gnome-power-manager.

Do you have any clue about this?

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to