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

i3bar battery percent

asked 2013-08-22 01:10:26 +0000

Kratisto gravatar image

So I followed the two steps from a question on here sorry I can't post links

It shows Bat when it's not charging and has a time remaining. The percent though shows inf% and does not change. I tried to add the integer line from the faq, but everywhere I put it when I restart i3 there is no bar at the bottom.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-02-17 20:11:19 +0000

brocktice gravatar image

updated 2014-02-17 20:11:58 +0000

Actually, the battery probably just doesn't include the design capacity in the information provided by the kernel. Deep in the i3status man page (and/or code, which is how I find it), you can find the option:

last_full_capacity = true

which will use your battery's last full capacity, rather than the design capacity, to show the percentage. Fixed it for me on some cheap-o ASUS laptops.

edit flag offensive delete link more
0

answered 2013-08-22 06:14:59 +0000

Michael gravatar image

You can run i3status in a terminal to see the error messages, if any. An entirely missing bar suggests that you are reading the documentation and using options that are not supported in the version you are using (try upgrading).

If the battery indicator shows inf%, that is an issue with your charging electronics or kernel driver.

edit flag offensive delete link more

Comments

I get the inf% but it is not charging. What can I do about the kernel driver?

Kratisto gravatar imageKratisto ( 2013-08-22 20:03:09 +0000 )edit

Either debug the issue yourself and fix it or report a Linux kernel bug.

Michael gravatar imageMichael ( 2013-09-26 16:48:29 +0000 )edit

Question Tools

Stats

Asked: 2013-08-22 01:10:26 +0000

Seen: 1,222 times

Last updated: Feb 17 '14