-
Notifications
You must be signed in to change notification settings - Fork 502
Open
Description
My battery seems to show up to the OS just fine, but i3status-rs can't seem to read it.
With sysfs:
[bat-problem] 0 $ cat config-sysfs
[[block]]
block = "battery"
device = "sbs-12-000b"
driver = "sysfs"
[bat-problem] 0 $ head /sys/class/power_supply/sbs-12-000b/energy_*
==> /sys/class/power_supply/sbs-12-000b/energy_full <==
44910000
==> /sys/class/power_supply/sbs-12-000b/energy_full_design <==
45370000
==> /sys/class/power_supply/sbs-12-000b/energy_now <==
44630000
[bat-problem] 0 $ i3status-rs ~/tmp/bat-problem/config-sysfs
{"version": 1, "click_events": true}
[
[{"full_text":"|","color":"#A9A9A9FF","background":"#000000FF","separator":false,"separator_block_width":0,"markup":"pango"},{"full_text":" BAT ","color":"#93A1A1FF","background":"#000000FF","name":"0","instance":"0:","separator":false,"separator_block_width":0,"markup":"pango"}],
^C
With upower:
[bat-problem] 0 $ cat config-upower
[[block]]
block = "battery"
driver = "upower"
#device = "sbs-12-000b"
[bat-problem] 0 $ upower -b
Device: /org/freedesktop/UPower/devices/battery_sbs_12_000b
native-path: sbs-12-000b
vendor: LGC
model: L20L3PG
serial: 0691
power supply: yes
updated: Tue Sep 23 16:58:28 2025 (1 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
warning-level: none
energy: 44.64 Wh
energy-empty: 0 Wh
energy-full: 44.92 Wh
energy-full-design: 45.38 Wh
voltage-min-design: 11.4 V
voltage-max-design: 11.4 V
capacity-level: Normal
energy-rate: 2.38349 W
voltage: 12.315 V
charge-cycles: 68
time to full: 7.0 minutes
percentage: 99%
temperature: 25.8 degrees C
capacity: 98.9863%
technology: lithium-polymer
icon-name: 'battery-full-charging-symbolic'
History (rate):
1758661108 2.383 charging
1758661093 0.000 charging
1758661063 2.383 charging
1758661012 0.000 charging
[bat-problem] 0 $ i3status-rs ~/tmp/bat-problem/config-upower
{"version": 1, "click_events": true}
[
[{"full_text":"|","color":"#A9A9A9FF","background":"#000000FF","separator":false,"separator_block_width":0,"markup":"pango"},{"full_text":" BAT ","color":"#93A1A1FF","background":"#000000FF","name":"0","instance":"0:","separator":false,"separator_block_width":0,"markup":"pango"}],
^C
And version info, if it helps:
[bat-problem] 0 $ i3status-rs --version
i3status-rs 0.34.0 (commit )
[bat-problem] 0 $ cat /etc/os-release
PRETTY_NAME="postmarketOS edge"
NAME="postmarketOS"
VERSION_ID="edge"
VERSION="edge"
ID="postmarketos"
ID_LIKE="alpine"
HOME_URL="https://www.postmarketos.org/"
SUPPORT_URL="https://gitlab.postmarketos.org/postmarketOS"
BUG_REPORT_URL="https://gitlab.postmarketos.org/postmarketOS/pmaports/issues"
LOGO="postmarketos-logo"
ANSI_COLOR="0;32"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels