[Pkg-acpi-devel] Bug#532000: acpi: current_now sysfs attribute is being replaced by power_now
Ferenc Wagner
wferi at niif.hu
Fri Jun 5 16:01:25 UTC 2009
Package: acpi
Version: 1.4-2
Severity: wishlist
Hi,
Consider this commit from the Linux-2.6 tree:
commit 7faa144a518c456e2057918f030f50100144ccc6
Author: Alexey Starikovskiy <astarikovskiy at suse.de>
Date: Fri Mar 27 22:23:52 2009 -0400
ACPI: battery: add power_{now,avg} properties to power_class
ACPI has smart batteries, which work in units of energy and measure
rate of (dis)charge as power, thus it is not appropriate to export it
as a current_now. Current_now will still be exported to allow
for userland applications to match.
Signed-off-by: Alexey Starikovskiy <astarikovskiy at suse.de>
Signed-off-by: Len Brown <len.brown at intel.com>
Thus Linux 2.6.30 exports both power_now and current_now containing the same
value. However, the latter is not correct and will get deprecated sooner or
later, so please start preferring (reading) the former.
Thanks,
Feri.
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-rc5 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
More information about the Pkg-acpi-devel
mailing list