-
-
Notifications
You must be signed in to change notification settings - Fork 707
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
Battery module no longer instantly updates #2519
Battery module no longer instantly updates #2519
Comments
Can recreate on Arch Linux. |
I'm not affiliated with this project but I wrote a bit about what worked for me here: #2444 |
It used to update instantly!? |
I've been facing the same issue as well… Is there a way to subscribe to changes in the battery state? |
Same here on:
In my case, the unplugged event is still handled by waybar within 2-3 sec, but the plugged event is never handled. I have no I worked around it without polling by reloading waybar from my acpi event handler script, which I have handling button presses on my Thinkpad p1g5 laptop.. |
I noticed the same thing, but I don't think the regression was introduced in sway. I'm still seeing it in 0.9.17. The battery module uses inotify to watch for accesses to the power supply's uevent file: Waybar/src/modules/battery.cpp Line 127 in 48ec834
but it should be using netlink to listen to changes: https://unix.stackexchange.com/questions/579460/why-doesnt-inotifywait-report-modifications-made-to-battery-capacity-file. I have a feeling that this used to work because something would trigger an |
Back in version 0.9.17 (I think), the battery module would instantly update whenever I plugged or unplugged the charger on my notebook (I have it set up so that the background color for the module changes on toggling charging). However, through no fault of my own (I assume, since I didn't touch my configuration), this is no longer the case: the module now seems to update at the default interval of 60 seconds.
How do I revert this? Or, at least, change my config so that it goes back to how it was, toggling instantly on plugging/unplugging the charger without setting the interval to something like a few seconds (I don't want constant polling).
The text was updated successfully, but these errors were encountered: