Re: [Powertop] [BUG] powertop shows estimates only for 1st battery from 2

Maksim Melnikau <maxposedon at gmail.com>
Newsgroups dev.linux.lists.powertop
Message-ID <CAGbmdnUvBORJYyg=0EspRSAVqqcpgbcX1ZL4FxfFJioEh8p8SQ@mail.gmail.com>
When first battery discharged, kernel reports following info

% cat /sys/class/power_supply/BAT0/uevent
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-poly
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
POWER_SUPPLY_VOLTAGE_NOW=12401000
POWER_SUPPLY_POWER_NOW=7800000
POWER_SUPPLY_ENERGY_FULL_DESIGN=42010000
POWER_SUPPLY_ENERGY_FULL=42010000
POWER_SUPPLY_ENERGY_NOW=41810000
POWER_SUPPLY_CAPACITY=99
POWER_SUPPLY_MODEL_NAME=45N1103
POWER_SUPPLY_MANUFACTURER=SMP
POWER_SUPPLY_SERIAL_NUMBER= 3507

% cat /sys/class/power_supply/BAT1/uevent
POWER_SUPPLY_NAME=BAT1
POWER_SUPPLY_STATUS=Unknown
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-poly
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
POWER_SUPPLY_VOLTAGE_NOW=13902000
POWER_SUPPLY_POWER_NOW=0
POWER_SUPPLY_ENERGY_FULL_DESIGN=28050000
POWER_SUPPLY_ENERGY_FULL=26370000
POWER_SUPPLY_ENERGY_NOW=930000
POWER_SUPPLY_CAPACITY=3
POWER_SUPPLY_MODEL_NAME=45N1101
POWER_SUPPLY_MANUFACTURER=SMP
POWER_SUPPLY_SERIAL_NUMBER= 1840

On Fri, Oct 11, 2013 at 9:19 AM, Maksim Melnikau <maxposedon(a)gmail.com> wrote:
> Hello!
>
> I have 2 batteries in my thinkpad helix laptop, and it looks like powertop
> shows "the estimated remaining time" just for first battery, what is a bit
> confusing. May be it somehow connected to some hardware features of
> batteries switching.
>
> # powertop, Overview page
> The battery reports a discharge rate of 7.67 W
> The estimated remaining time is 2 hours, 17 minutes
>
> # powertop -V
> PowerTOP versionv2.4, compiled on Jul 29 2013
>
> # cat /sys/class/power_supply/BAT0/uevent
> POWER_SUPPLY_NAME=BAT0
> POWER_SUPPLY_STATUS=Unknown
> POWER_SUPPLY_PRESENT=1
> POWER_SUPPLY_TECHNOLOGY=Li-poly
> POWER_SUPPLY_CYCLE_COUNT=0
> POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
> POWER_SUPPLY_VOLTAGE_NOW=12503000
> POWER_SUPPLY_POWER_NOW=0
> POWER_SUPPLY_ENERGY_FULL_DESIGN=42010000
> POWER_SUPPLY_ENERGY_FULL=42010000
> POWER_SUPPLY_ENERGY_NOW=41940000
> POWER_SUPPLY_CAPACITY=99
> POWER_SUPPLY_MODEL_NAME=45N1103
> POWER_SUPPLY_MANUFACTURER=SMP
> POWER_SUPPLY_SERIAL_NUMBER= 3507
>
> # cat /sys/class/power_supply/BAT1/uevent
> POWER_SUPPLY_NAME=BAT1
> POWER_SUPPLY_STATUS=Discharging
> POWER_SUPPLY_PRESENT=1
> POWER_SUPPLY_TECHNOLOGY=Li-poly
> POWER_SUPPLY_CYCLE_COUNT=0
> POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
> POWER_SUPPLY_VOLTAGE_NOW=15178000
> POWER_SUPPLY_POWER_NOW=8165000
> POWER_SUPPLY_ENERGY_FULL_DESIGN=28050000
> POWER_SUPPLY_ENERGY_FULL=26370000
> POWER_SUPPLY_ENERGY_NOW=16750000
> POWER_SUPPLY_CAPACITY=63
> POWER_SUPPLY_MODEL_NAME=45N1101
> POWER_SUPPLY_MANUFACTURER=SMP
> POWER_SUPPLY_SERIAL_NUMBER= 1840
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.