i3wm – i3status unable to detect battery fix

If you install i3wm and i3status fail to detect your battery, here’s one solution:

Open /etc/i3status.conf and look for “battery 0 {“. Add the following line inside the battery config:

path = “/sys/class/power_supply/BAT1/uevent”

The location might differ, so navigate to power_supply and find the BATX appropriate for you. I’ve seen someone use BAT%d in their config (%d would refer to an integer), but I havn’t tested it.

i3status should now automatically detect your battery, log out or reboot to see the changes.

Join the Conversation


Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Thx for solution to my problem :).
    You can also just reload i3 config to see the changes: “Shift+$mod+r” by default. “BAT%d” didn’t work for me.

  2. I’ve tried your solution, but it didn’t worked, I found an other solution very simple!

    change “battery 0” references to “battery 1”
    and it worked!