The battery indicator for i3wm’s bar is not displaying for me. I’ve tried using both script 1 and 2 in the blocks config. acpi shows the battery correctly and upower outputs the following:
Device: /org/freedesktop/UPower/devices/line_power_AC0
native-path: AC0
power supply: yes
updated: Mon 18 Jul 2022 04:20:20 PM EDT (986 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: no
icon-name: 'ac-adapter-symbolic'
Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
vendor: ASUSTeK
model: ASUS Battery
power supply: yes
updated: Mon 18 Jul 2022 04:36:21 PM EDT (25 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: none
energy: 38.621 Wh
energy-empty: 0 Wh
energy-full: 77.514 Wh
energy-full-design: 76 Wh
energy-rate: 13.304 W
voltage: 15.933 V
charge-cycles: N/A
time to empty: 2.9 hours
percentage: 49%
capacity: 100%
technology: lithium-ion
icon-name: 'battery-good-symbolic'
History (charge):
1658176551 49.000 discharging
History (rate):
1658176581 13.304 discharging
1658176551 13.829 discharging
1658176521 14.722 discharging
Device: /org/freedesktop/UPower/devices/DisplayDevice
power supply: yes
updated: Mon 18 Jul 2022 04:36:21 PM EDT (25 seconds ago)
has history: no
has statistics: no
battery
present: yes
state: discharging
warning-level: none
energy: 38.621 Wh
energy-full: 77.514 Wh
energy-rate: 13.304 W
charge-cycles: N/A
time to empty: 2.9 hours
percentage: 49%
icon-name: 'battery-good-symbolic'
Daemon:
daemon-version: 0.99.20
on-battery: yes
lid-is-closed: no
lid-is-present: yes
critical-action: PowerOff
I also tried manually setting the bat_number variable in script 1 to 0 just in case.
I’m running on a ASUS G14 2022 and have asuscli and and the G14 kernel installed if that matters. The battery indicator worked on the xfce live environment as well. Any help would be greatly appreciated.