The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Wrong battery status

asked 2013-05-27 13:12:55 +0000

iomartin gravatar image

Hello,

My i3 status bar is displaying my battery information incorrectly. When fully charged, I get this:

BAT 100% 5200:00:00

This is my .i3status.conf:

battery 0 {
    format = "%status %percentage %remaining"
    integer_battery_capacity = true
}

And this is the output of /sys/class/power_supply/BAT0/uevent

$ cat /sys/class/power_supply/BAT0/uevent
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Unknown
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11196000
POWER_SUPPLY_VOLTAGE_NOW=12479000
POWER_SUPPLY_CURRENT_NOW=1000
POWER_SUPPLY_CHARGE_FULL_DESIGN=5212000
POWER_SUPPLY_CHARGE_FULL=4176000
POWER_SUPPLY_CHARGE_NOW=5200000
POWER_SUPPLY_MODEL_NAME=DELL TXWRR15
POWER_SUPPLY_MANUFACTURER=SMP
POWER_SUPPLY_SERIAL_NUMBER= 2495

If I use the last_full_capacity = true option, I get:

BAT 125% 5200:00:00
edit retag flag offensive close merge delete

Comments

In my old config (I am using py3status now) there is format="%status %percentage %emptytime". I think this should be the solution for you.

mschaefer gravatar imagemschaefer ( 2013-05-27 15:07:59 +0000 )edit

@mschaefer This kind of works. I'm down to a more reasonable time, but my emptytime keeps growing. Every two seconds, it gets two seconds larger. My laptop has been charging all night, so it should be already fully charged. Also, I keep getting 125% when I use `last_full_capacity = true`

iomartin gravatar imageiomartin ( 2013-05-28 11:49:42 +0000 )edit

It started at 1h40 mins left and now is almost at 8hs!

iomartin gravatar imageiomartin ( 2013-05-28 17:54:50 +0000 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2013-05-28 19:59:10 +0000

Michael gravatar image

First of all, make sure you are using i3status 2.7. In case you are already using that, your battery might just report wrong values — nothing we can do about it.

There are no known bugs in the i3status battery code and you are the first person reporting such behavior.

edit flag offensive delete link more

Comments

I'm using i3status 2.7. Here is what my battery is reporting: http://pastebin.com/hmdFJFRw - I'm not sure what information it uses to calculate the %emptytime or %remaining

iomartin gravatar imageiomartin ( 2013-05-29 12:07:07 +0000 )edit

Question Tools

Stats

Asked: 2013-05-27 13:12:55 +0000

Seen: 1,484 times

Last updated: May 28 '13