Skip to content

Battery block broken on Arch #2184

@byezy

Description

@byezy

Just started using i3status-rs, great utility.

Have been able to get all blocks of interest working as advertised except battery. Flat out can't get the battery block to work. Battery data is working with i3status fine but I'm unable to get anything reported using i3status-rs (except charge status?).

Image

The block is being evaluated as expected, for example disabling the icons.overrides section shows the battery icon rather than |F| . There is just no state/numbers output.

Have tried with all block defaults, have tried with explicit format and device. No luck. Bug? Documentation lag? MOST LIKELY Something dumb I'm doing? I would really like to get to the bottom of this as I run Arch on a laptop and definitely want to keep using i3status-rs.

Arch Linux 6.15.9-arch1-1

cat .config/i3status-rust/config.toml

icons_format = "{icon}"

[theme]
theme = "slick"
[theme.overrides]
idle_bg = "#123456"
idle_fg = "#abcdef"

[icons]
icons = "awesome4"
[icons.overrides]
bat = ["|E|", "|_|", "|=|", "|F|"]
bat_charging = "|^| "

[[block]]
block = "pomodoro"
notify_cmd = "notify-send '{msg}'"
blocking_cmd = false

[[block]]
block = "backlight"
device = "intel_backlight"

[[block]]
block = "nvidia_gpu"
format = "$icon$utilization$temperature$clocks"
interval = 5

[[block]]
block = "net"
format = "$icon{$signal_strength $ssid$frequency|Wired connection} $device"
interval = 5

[[block]]
block = "battery"
format = "$percentage {$time_remaining.dur(hms:true, min_unit:m)}"
device = "BAT0"

[[block]]
block = "cpu"
format = "$icon$utilization$frequency"
info_cpu = 20
warning_cpu = 50
critical_cpu = 90
interval = 5

[[block]]
block = "disk_space"
path = "/"
info_type = "available"
alert_unit = "GB"
warning = 20.0
alert = 10.0
format = "$icon$used/$available.eng(w:2)"
interval = 60

[[block]]
block = "memory"
format = "$icon $mem_total_used_percents.eng(w:2)"
format_alt = "$icon_swap$swap_used_percents.eng(w:2)"
interval = 5

[[block]]
block = "sound"
[[block.click]]
button = "left"
cmd = "pavucontrol"

[[block]]
block = "time"
interval = 60
format = "$timestamp.datetime(f:'%a%v %R')"
thinkarch% ls /sys/class/power_supply/BAT0 -a1
.
..
alarm
capacity
capacity_level
charge_behaviour
charge_control_end_threshold
charge_control_start_threshold
charge_start_threshold
charge_stop_threshold
cycle_count
device
energy_full
energy_full_design
energy_now
extensions
hwmon2
manufacturer
model_name
power
power_now
present
serial_number
status
subsystem
technology
type
uevent
voltage_min_design
voltage_now

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions