From: Christoph Groth <cwg@falma.de>
To: linux-acpi@vger.kernel.org
Cc: tianyu.lan@intel.com
Subject: Re: /sys/class/power_supply/BAT0/ confusion
Date: Sun, 13 Nov 2011 10:45:55 +0100 [thread overview]
Message-ID: <87ty68bbjg.fsf@falma.de> (raw)
In-Reply-To: 625BA99ED14B2D499DC4E29D8138F1506526C6FC7E@shsmsx502.ccr.corp.intel.com
"Lan, Tianyu" <tianyu.lan@intel.com> writes:
> The unit of charge_now is µA.
> What is data shown on the battery?
> 29 Wh?
> Can you test on 3.1 or higher version?
I tested v3.2-rc1-282-g3439a8d
The problem is still the same. After suspend to RAM the presented
interface changes and everything seems OK.
I attach the outputs of "date; grep . *" taken in the
/sys/class/power_supply/BAT0/ directory and a third one taken after
waking up from suspend to RAM.
Christoph
################ running on battery, after boot
Sun Nov 13 10:14:27 CET 2011
alarm:156000
charge_full:3132000
charge_full_design:2886000
charge_now:2970000
current_now:469000
cycle_count:0
manufacturer:SANYO
model_name:42T4899
present:1
serial_number:19797
status:Discharging
technology:Li-ion
type:Battery
uevent:POWER_SUPPLY_NAME=BAT0
uevent:POWER_SUPPLY_STATUS=Discharging
uevent:POWER_SUPPLY_PRESENT=1
uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
uevent:POWER_SUPPLY_CYCLE_COUNT=0
uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
uevent:POWER_SUPPLY_VOLTAGE_NOW=16162000
uevent:POWER_SUPPLY_CURRENT_NOW=469000
uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=2886000
uevent:POWER_SUPPLY_CHARGE_FULL=3132000
uevent:POWER_SUPPLY_CHARGE_NOW=2970000
uevent:POWER_SUPPLY_MODEL_NAME=42T4899
uevent:POWER_SUPPLY_MANUFACTURER=SANYO
uevent:POWER_SUPPLY_SERIAL_NUMBER=19797
voltage_min_design:14800000
voltage_now:16162000
################ running on battery, after boot, a few minutes later
Sun Nov 13 10:18:42 CET 2011
alarm:156000
charge_full:3132000
charge_full_design:2886000
charge_now:2909000
current_now:470000
cycle_count:0
manufacturer:SANYO
model_name:42T4899
present:1
serial_number:19797
status:Discharging
technology:Li-ion
type:Battery
uevent:POWER_SUPPLY_NAME=BAT0
uevent:POWER_SUPPLY_STATUS=Discharging
uevent:POWER_SUPPLY_PRESENT=1
uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
uevent:POWER_SUPPLY_CYCLE_COUNT=0
uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
uevent:POWER_SUPPLY_VOLTAGE_NOW=16132000
uevent:POWER_SUPPLY_CURRENT_NOW=470000
uevent:POWER_SUPPLY_CHARGE_FULL_DESIGN=2886000
uevent:POWER_SUPPLY_CHARGE_FULL=3132000
uevent:POWER_SUPPLY_CHARGE_NOW=2909000
uevent:POWER_SUPPLY_MODEL_NAME=42T4899
uevent:POWER_SUPPLY_MANUFACTURER=SANYO
uevent:POWER_SUPPLY_SERIAL_NUMBER=19797
voltage_min_design:14800000
voltage_now:16132000
################ running on battery, after wakeup from suspend to RAM
Sun Nov 13 10:26:02 CET 2011
alarm:1566000
cycle_count:0
energy_full:31320000
energy_full_design:28860000
energy_now:27770000
manufacturer:SANYO
model_name:42T4899
power_now:7746000
present:1
serial_number:19797
status:Discharging
technology:Li-ion
type:Battery
uevent:POWER_SUPPLY_NAME=BAT0
uevent:POWER_SUPPLY_STATUS=Discharging
uevent:POWER_SUPPLY_PRESENT=1
uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
uevent:POWER_SUPPLY_CYCLE_COUNT=0
uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
uevent:POWER_SUPPLY_VOLTAGE_NOW=16006000
uevent:POWER_SUPPLY_POWER_NOW=7746000
uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=28860000
uevent:POWER_SUPPLY_ENERGY_FULL=31320000
uevent:POWER_SUPPLY_ENERGY_NOW=27770000
uevent:POWER_SUPPLY_MODEL_NAME=42T4899
uevent:POWER_SUPPLY_MANUFACTURER=SANYO
uevent:POWER_SUPPLY_SERIAL_NUMBER=19797
voltage_min_design:14800000
voltage_now:16006000
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2011-11-13 9:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-05 8:46 /sys/class/power_supply/BAT0/ confusion Christoph Groth
2011-11-09 6:22 ` Lan, Tianyu
2011-11-09 6:54 ` Christoph Groth
2011-11-13 9:45 ` Christoph Groth [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ty68bbjg.fsf@falma.de \
--to=cwg@falma.de \
--cc=linux-acpi@vger.kernel.org \
--cc=tianyu.lan@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox