On Sat, Feb 18, 2017 at 07:02:26AM -0800,
themastero...@gmail.com wrote:
> Hello Everyone,
>
> I was giving a look at /bin/qubes-i3status and realized that it is supposed
> to show also battery info in the statusbar along with disk usage, time and
> so on. This does not happen for me. The reason is that at some point the
> script looks for /sys/class/power_supply/BAT*/energy_now and
> /sys/class/power_supply/BAT*/energy_full to calculate the charge percentage
> of the battery. Unfortunately, energy_now and energy_full are not present
> in /sys/class/power_supply/BAT* for me. I tried to edit the script using
> instead charge_now and charge_full. Doing this, the battery information is
> correctly displayed when AC is disconnected, but when it's not it balloons
> up to 137%. This is not a problem of the script itself but of the
> charge_now parameter, that balloons when AC is connected.
>
> I don't know if this is a bug or if I'm the only one affected. Using upower
> the information displayed seems correct.
Yes, you need to edit qubes-i3status. Better than editing the command