Closed tarkh closed 1 year ago
With driver = "upower"
, the default "device" is DisplayDevice
, which is always present. There are a few things you can do:
device = "BAT"
.driver = "sysfs"
(any specific reason you use driver = "upower"
?).
interval = 30
Unrelated, but this option does nothing with upower driver.
@MaxVerevkin Thank you for reply!
Well, I'm trying to create unified config for my devices, one of which is MacBook Pro 11.3 - with Arch Linux, i3status-rust and driver = "sysfs"
I'm getting 110%
at full charge. But with upower
everything works fine with 100%
at full charge on i3status-rust
panel. So this config then migrated to Desktop.
Just to add more details, on MacBook:
cat /sys/class/power_supply/BAT0/capacity
110
also shows 110 percents. Maybe it calculates from FULL_DESIGN and NOW values?:
cat /sys/class/power_supply/BAT0/uevent
...
POWER_SUPPLY_CHARGE_FULL_DESIGN=8880000
POWER_SUPPLY_CHARGE_FULL=9877000
POWER_SUPPLY_CHARGE_NOW=9624000
...
So in conclusion sysfs
and upower
handle battery status differently and in case of MacBook upower
driver solves this issue. Maybe there is any advanced options in i3status-rust
to solve this problem and keep sysfs
module?
Maybe there is any advanced options in i3status-rust to solve this problem and keep sysfs module?
No, but it might be worth investigating.
I'm trying to create unified config for my devices,
You can also use if_command = "..."
to enable the block only on one of your devices.
Thank you for your help! Ok, for now I just switched driver option on Desktop.
Hello! As title says, on my Desktop computer
i3status-rust
showsempty_format
content instead ofmissing_format
content. My system running on Arch Linux, battery block content:So with this config
i3status-rust
pannel shows redtest
word. If I removeempty_format
from config at all, it shows red battery icon. Obviously, if I setempty_format
to blank= ""
, it stops showing anything, but I think it's not right andmissing_format
should be triggered in the case of Desktop computer without any battery. Output ofupower -d
command:Am I missing something? Thanx in advance!