greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.85k stars 470 forks source link

Battery report: Failed to get capacity #1890

Closed deimosfr closed 1 year ago

deimosfr commented 1 year ago

Hi,

I randomly encounter issues with two Logitech devices (mouse and keyboard). The battery report will work for several hours, then stop working. It never gets back to work until I reload i3. Here is the config I'm using:

# keyboard battery
[[block]]
block = "battery"
model = "MX Keys Wireless Keyboard"
format = "$icon $percentage"
full_format = " $percentage "
missing_format = ""
driver = "sysfs"
merge_with_next = true
interval = 300

# mouse battery
[[block]]
block = "battery"
model = "Wireless Mouse MX Master 3"
format = "$icon $percentage"
full_format = "󰍽 $percentage "
missing_format = ""
driver = "sysfs"
interval = 300
merge_with_next = true

image

Is there something wrong with my configuration?

Thanks

MaxVerevkin commented 1 year ago

For some reason sysfs does not provide enough information to calculate the capacity...

It never gets back to work until I reload i3

With 1cee224 the block will recover from this situation when info becomes available.

deimosfr commented 1 year ago

Thanks! Can't wait for a new release then :)