Hi,
Consider this commit from the Linux-2.6 tree:
commit 7faa144a518c456e2057918f030f50100144ccc6
Author: Alexey Starikovskiy <astari...@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 <astari...@suse.de>
Signed-off-by: Len Brown <len....@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
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
For whatever reason my systems do not have power_now at all. I tried all
kernels up to 2.6.32. Could you please send me your /sys/class/power_supply
directory so I have some data to test with?
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ: 179140304, AIM/Yahoo/Skype: michaelmeskes, Jabber: mes...@jabber.org
VfL Borussia! Forca Barca! Go SF 49ers! Use: Debian GNU/Linux, PostgreSQL
>> 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.
>
> For whatever reason my systems do not have power_now at all. I tried all
> kernels up to 2.6.32. Could you please send me your /sys/class/power_supply
> directory so I have some data to test with?
There is nothing more than two symlinks in it: AC and BAT0. Here is the
grep . * output in the BAT0 directory when the laptop is on AC power:
alarm:1286000
current_now:0
energy_full:25710000
energy_full_design:47510000
energy_now:25580000
manufacturer:Panasonic
model_name:IBM-92P1060
power_now:0
present:1
serial_number: 3610
status:Unknown
technology:Li-ion
type:Battery
uevent:POWER_SUPPLY_NAME=BAT0
uevent:POWER_SUPPLY_TYPE=Battery
uevent:POWER_SUPPLY_STATUS=Unknown
uevent:POWER_SUPPLY_PRESENT=1
uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
uevent:POWER_SUPPLY_VOLTAGE_NOW=12349000
uevent:POWER_SUPPLY_CURRENT_NOW=0
uevent:POWER_SUPPLY_POWER_NOW=0
uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=47510000
uevent:POWER_SUPPLY_ENERGY_FULL=25710000
uevent:POWER_SUPPLY_ENERGY_NOW=25580000
uevent:POWER_SUPPLY_MODEL_NAME=IBM-92P1060
uevent:POWER_SUPPLY_MANUFACTURER=Panasonic
uevent:POWER_SUPPLY_SERIAL_NUMBER= 3610
voltage_min_design:10800000
voltage_now:12349000
And when on battery:
alarm:1286000
current_now:15458000
energy_full:25710000
energy_full_design:47510000
energy_now:25490000
manufacturer:Panasonic
model_name:IBM-92P1060
power_now:15458000
present:1
serial_number: 3610
status:Discharging
technology:Li-ion
type:Battery
uevent:POWER_SUPPLY_NAME=BAT0
uevent:POWER_SUPPLY_TYPE=Battery
uevent:POWER_SUPPLY_STATUS=Discharging
uevent:POWER_SUPPLY_PRESENT=1
uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
uevent:POWER_SUPPLY_VOLTAGE_NOW=11891000
uevent:POWER_SUPPLY_CURRENT_NOW=15458000
uevent:POWER_SUPPLY_POWER_NOW=15458000
uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=47510000
uevent:POWER_SUPPLY_ENERGY_FULL=25710000
uevent:POWER_SUPPLY_ENERGY_NOW=25490000
uevent:POWER_SUPPLY_MODEL_NAME=IBM-92P1060
uevent:POWER_SUPPLY_MANUFACTURER=Panasonic
uevent:POWER_SUPPLY_SERIAL_NUMBER= 3610
voltage_min_design:10800000
voltage_now:11891000
--
Regards,
Feri.