You are not logged in.

#1 2013-08-23 18:19:18

Ownaginatious
Member
Registered: 2010-08-28
Posts: 60

[SOLVED] Battery status in i3status is incorrect...

So i3status suddenly seems to think my battery is fully charged at ~80%. At first I thought maybe my laptop's battery was going, but then I noticed if I run acpi -b when i3status is reporting full at ~80%, I receive the following:

Battery 0: Charging, 100%,  until charged

This is the output of

cat /sys/class/power_supply/BAT1/uevent 
POWER_SUPPLY_NAME=BAT1
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
POWER_SUPPLY_VOLTAGE_NOW=12321000
POWER_SUPPLY_POWER_NOW=295000
POWER_SUPPLY_ENERGY_FULL_DESIGN=56160000
POWER_SUPPLY_ENERGY_FULL=45470000
POWER_SUPPLY_ENERGY_NOW=45470000
POWER_SUPPLY_CAPACITY=100
POWER_SUPPLY_MODEL_NAME=42T4855
POWER_SUPPLY_MANUFACTURER=LGC
POWER_SUPPLY_SERIAL_NUMBER=  420

If i3status' battery percentage output is 100 * POWER_SUPPLY_ENERGY_NOW / POWER_SUPPLY_ENERGY_FULL... then the output I see should be correct hmm

Anyone know what's going on here?

Last edited by Ownaginatious (2013-08-23 18:39:40)

Offline

#2 2013-08-23 18:28:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [SOLVED] Battery status in i3status is incorrect...

I believe that it is telling you that it is as charged as it is going to get.  Looking at the last full value versus the design capacity, It would appear that your battery can only store 80% of what it could when it was new (current capacity is 4547/5616).  My 2 year old battery is about the same as yours  -- around 80% of design capacity.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2013-08-23 18:39:15

Ownaginatious
Member
Registered: 2010-08-28
Posts: 60

Re: [SOLVED] Battery status in i3status is incorrect...

Ah well, I guess it was my original intuition then. My computer also just passed the 2 year age mark. Clever of the designers of i3status to take that into account. Thanks for pointing that out!

Offline

#4 2013-08-23 18:54:50

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Battery status in i3status is incorrect...

You can change this so that it does not reflect the percentage of the max design capacity, and instead have it measure against the recent full state.  This can be done with last_full_capacity = true.

The man page for i3status actually covers this.

Offline

Board footer

Powered by FluxBB