The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Battery Status Indicator?

asked 2013-01-17 17:20:16 +0000

JohnnyFive gravatar image

I'm using an HP Envy 4 laptop.

The battery indicator shows "no battery", even though it most definitely does exist, and i'm using it right now.

johnnyfive@mint-envy:/sys/class/power_supply$ ll
lrwxrwxrwx  1 root root 0 Jan 16 23:03 ACAD ->     ../../devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/ACPI0003:00/power_supply/ACAD/
lrwxrwxrwx  1 root root 0 Jan 17 08:43 BAT1 -> ../../devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0A:00/power_supply/BAT1/

Any ideas? I have no idea where to start.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2014-02-18 11:15:03 +0000

IzeBit gravatar image

updated 2014-02-18 11:16:36 +0000

I solved this issue with "no battery" on Debian by adding the following path to my i3status config file.

Here's an excerpt from my i3status.conf.

battery 0 {
format = "%status %percentage %remaining"
path = "/sys/class/power_supply/CMB1/uevent"

edit flag offensive delete link more

answered 2013-01-17 18:58:31 +0000

Michael gravatar image
sed -ie 's/battery 0/battery 1/g' ~/.i3status.conf
i3 restart

Alternatively, change the path property in the battery block, see

edit flag offensive delete link more


Thanks. I had to cp /etc/i3status.conf ~/.i3status.conf first, but that worked beautifully!

JohnnyFive gravatar imageJohnnyFive ( 2013-01-17 19:10:03 +0000 )edit

After using it for a bit, i'm confused. Although a number shows up, it doesn't seem to make any sense. The number shows up as something in the format d.dd, like 0.74. It randomly, it seems, jumps around anywhere from 0.09 to 1.8, and it doesn't really seem to hover around any one number.

JohnnyFive gravatar imageJohnnyFive ( 2013-01-18 18:43:15 +0000 )edit

Please post a new question for that. And provide a better example (screenshot?), I don’t really know what you are talking about.

Michael gravatar imageMichael ( 2013-01-22 06:31:41 +0000 )edit

Question Tools


Asked: 2013-01-17 17:20:16 +0000

Seen: 11,193 times

Last updated: Feb 18 '14