-
Notifications
You must be signed in to change notification settings - Fork 345
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
dunst stops showing notifications after screen turns off and back on #1396
Comments
could you run dunst in debug mode |
Here's the verbose log |
I see different idle events. does the screen turn off when the idle events are shown right? is this the dynamic ? |
Yes, the dynamic is correct. I'm not sure about the contents of the log. I did it via systemctl and journalctl. |
did previous version of dunst work correctly? or is it a general error? |
I will downgrade and try, and report back. EDIT: It did start happening recently, so could've been the update, or could be something new in the ecosystem. |
Happens with 1.10.0 also. I'll try older. |
thanks for trying. also, did you recently upgrade sway/wayland or the idle manager (is it integrated in sway?) ? |
sway was relatively recently upgraded from |
Bug does not occur with |
I will look into it. From a glance it may be from #1250, which refreshed the idle handling |
After a night's worth of idling, it seems to have happened again with |
Issue DescriptionProblem: Dunst notifications stop showing after turning an external HDMI display off and back on. Environment:
Steps to Reproduce
Observed Behavior: Additional Information:
|
please provide a debug log. maybe it is better to open a separate issue. also, does this occur with older dunst versions? |
This might be the same issue. My notifications are set to stay on screen when there is no activity. |
I’ve attached debug logs for Dunst versions 1.9.2 and 1.11.0 — the issue occurs with both.
It looks like the same problem for me as well. I have the |
I assumed at first that it was a problem with the idle managment, but now it seems more of a communication problem with the wayland protocols? I am not an expert in wayland so it might take a while to fix this |
Yes, I agree. The idle manager handles turning off inactive displays, and I also turn off the HDMI display manually by pressing its physical button. It appears that in both cases—whether the display is turned off physically or programmatically—the issue is tied to how Wayland protocols/Dunst handle display state changes. |
afaik the protocol used to draw is the layer shell (zwlr_layer_shell_v1) and for idle managment is ext_idle_notifier_v1 both supported by sway 1.9+ |
I am experiencing the same behavior with the dunst and mako notification daemons immediately after upgrading to sway 1.10. I switch between 3 different monitor inputs for different machines and now every time I return to my Linux desktop with sway 1.10 the notifications stop showing until I kill/restart the daemons. They are being handled by dunst and mako since I can still use the client apps to interact with them. I hear the notification sound, they just don't show on the screen. |
Maybe this is a bug in sway after all? Are older version of sway working fine with dunst or are there similar issues? |
I've searched for similar issues in mako, looks like here is similar discussion - emersion/mako#416 (comment) |
emersion/mako#189 - also looks similar |
I will try looking in the solution of this issue |
I created a portable trace using the rr project (details on trace portability). This allows developers to replay the bug with the |
Any updates? |
I've attempted to debug this issue myself and found that at some point, Wayland stops invoking dunst callbacks. This makes it particularly challenging to diagnose, as it falls into a category of problems where understanding why something didn't happen is notoriously difficult (see this explanation for context). To investigate further, I need a deeper understanding of the Wayland state machine. Unfortunately, my current experience with Wayland is limited, which makes progress slower. |
Sorry at the moment I dont have time to do this. Especially since this issue seems not only related to dunst but to the whole wayland stack. Also soon there will be a release, so after that I will try to figure this out. |
Issue description
dunst doesn't show notifications after the screen turns back on after it has turned off after idling
Installation info
Dunst - A customizable and lightweight notification-daemon 1.11.0 (2024-04-15)
package
sway
Arch
Minimal dunstrc
journalctl logs
The text was updated successfully, but these errors were encountered: