-
-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Battery module doesn't update unless I reload #2649
Comments
Does the module never reload or simply not after It does look like |
@patrick96 It behaves the same way with and without poll-interval. No refreshing the battery status unless I reload manually |
Could you run polybar with trace logging ( |
The polling messages are misleading. It doesn't actually update anything. What it does is it reads the polled file (but discards the read value). I think the idea was that this is supposed to trigger an inotify event on the file, but that doesn't work. The message you should look out for is: This message indicates the module was updated. For me that appears every two minutes, so you need to let it run at least that long for it to appear. |
I have the same issue on i3wm. |
@nDanielGH By "the same" do you mean that the module never updates or only about every two minutes? |
@patrick96 The battery module never updates (unless I reload). Edit: Sometimes my i3wm module won't update either, but sometimes it will. If I remove the battery module it seems to always work. Let's just ignore this (possibly unrelated) issue for now. |
Having the same problem on a fresh Arch Linux install + i3wm, logs show frequent polls but no Inotify events ever arrive. |
Can someone try out the fix in #2677? |
@patrick96 Can confirm that the fix works beautifully. |
Thanks for testing :) |
Checklist
Steps to reproduce
Minimal config
Polybar log
Expected behavior
Battery module updates the percentage every 5 seconds. (I've tried adding poll-interval in the config, but no luck.)
Actual behavior
Battery module stays at a fixed percentage until I decide to reload my window manager (Ultimately reloading polybar).
Window Manager and Version
bspwm-git 0.9.10.r36.g1560df3-1
Linux Distribution
Arch Linux
Polybar version
Additional Context / Screenshots
No response
The text was updated successfully, but these errors were encountered: