-
-
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
Multiple waybars open after resume from dpms off. #3344
Comments
I am also experiencing this with Waybar v0.10.3 and Sway. I was hesitating reporting before I had a concrete reproducible but I didn't yet figure how to trigger this behaviour. For now I can only confirm that:
By looking at the Waybar code, I am not sure where it happens. Could be even GTK receiving a wrong input on the onConfigure event. Next time I will debug this with |
I've had this for a long time, now. I'm on Hyprland. I was not certain of the cause and whether it was a Waybar issue or a Hyprland issue. Its one of those things I kept telling myself I'd look into but never made time for it since I'd usually just restart waybar.service... seeing some of the preliminary findings is motivating, though. |
I could catch this happening with waybar debug logging but unfortunately nothing interesting came out: First, correct configuration when plugging the external monitor (HDMI-A-2)
Then, correct reconfiguration when unplugging the external monitor:
Then, after waking up from the standby, I see 3 (!) instances of the previous monitor being removed
Relevant code where this is handled. and finally when plugging the new monitor, 3 instances are configured in a short burst:
As expected the GTK debug show 3 windows: I have no clue about what is happening here 🤷♂️ cc @Alexays any insights? |
I am testing the gtk4 branch now. Will keep you updated and provide logs. |
I get this on the gtk4 branch. I just woke from sleep (dpms off) and now have two bars. FYI - I was away from my workstation all last week which is why I didn't report the issue sooner. Maybe also of interest: I have 2 4K monitors. I regularly switch from two to one and back again. I use a small script to do this: it rewrites I don't see a pattern with this issue and the monitor switching, only with the sleep. Just mentioning in case it's of any use. |
I have two 2k monitors and I don't do any switches but I'm facing same issue. Using with hyprland.
It's pretty consistent, happens everytime when it wakes up from dpms off state. As similar, |
Helllo fellow hyprland and waybar users... Is there anything I can do to help troubleshoot / resolve this? It's starting to get a little irritating. Every time I leave my workstation for more than a few minutes, I come back to a waybar-nado and have to As a workaround, I tried adding the following to my
Maybe the pkill is running before we see the issue. I guess swayidle would show the same problem. However, if I do the following I am not able to replicate the problem:
Anyone have any insight or ideas on either a workaround or how to deterministically replicate the issue? Thank you |
I may found a workaround by luck, yesterday I was trying some config changes and instead of restarting waybar using
Today my monitors went off couple of times and this bug didn't happen. Will test further |
I have the same issue in River |
Having this, too. But I think restarting by killall -SIGUSR2 waybar; swaymsg output DP-1 disable; sleep 1; swaymsg output DP-1 enable Then after the screen is re-enabled, waybar comes back with itself duplicated. After many times running the command, waybar will then duplicate as many times. |
That's a good catch. I'm finally able to reproduce the issue with your command, and The handler for I'll need some time to figure out how to untangle that properly (and address the obvious signal safety violations in main.cpp). A quick and dirty patch is available here: alebastr@reload-signal-fix Functionally, SIGUSR2 isn't different from restarting the application, so I suggest to just stop using it for now. |
Repeated calls to `Client::main()` result in unnecessary work and duplication of several event handlers. A common consequence of that is the bug with multiple bars being created (Alexays#3344). This change ensures that the `main` is called only once and makes reload logic much simpler.
I removed the I am now unable to replicate the issue. I have not seen it again since those config changes a few days ago. Looks good to me! |
Hi - I use waybar, hyrpland, hypridle and hyprlock.
Most times I wake from sleep (dpms off), waybar is showing multiple copies of itself.
This can usually be fixed by a simple
pkill -SIGUSR2 waybar
but this morning I come to my workstation and I have reached a new record. 7 waybars across both monitors!Attached are the waybar logs from today, I woke the system (and unlocked screenlock) at 10:59:13. (
journalctl --user-unit waybar-hypr.service --since today > waybar-log.txt
).waybar-log.txt
Does anyone have any suggestion on how to troubleshoot?
Thanks
The text was updated successfully, but these errors were encountered: