-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Sway stops responding to idle command from swayidle #7545
Comments
Hmmmm, not sure about the problem with (Note that only a single instance of |
Thanks, I actually used this fallback :) swayidle is triggering DPMS after longer inactivity (or not - it's a hit or miss, sometimes it does, othertimes it doesn't). |
Yeah, not sure if it's related in some way to your issue, but swayidle's handling of |
I tried reporting the issue there, but they said it's sway's fault :( I did some tests and for sure the SIGUSR1 is received (debug logs indicate this), however the events are not fired. I looked into swayidle code and there is almost no logic there - everything is handled by ext-idle-notify so I guess this is the faulty part, however I have no idea how to debug this so I can provied an actionable issue. This behavior is so frustrating when you can't know for sure if your screen will lock automatically or if it will shut down for the night :( |
Sway Version:
Debug Log:
I'm using swayidle with such invocation:
I use
killall -USR1 swayidle
to trigger screen lock.When I have external monitor attached for longer period of time the USR1 signal does not lock the screen or locks the screen only after I invoke a keybinding to change window. In the log in gist there is a case when the screen actually locked but with 10 minutes delay. When I detach monitor screen locking starts working again. Sometimes reloading sway does the trick without detaching monitor. Other times it just starts working again. It looks like the event produced by swayidle uppon USR1 is consumed by sway with a large delay - perhaps there is some queue that is filled up?
Is there a workaround this problem? This seriously undermines system security when your automatic screen locker works from time to time. Perhaps there is an alternative way I can detect idle and lock screen?
The text was updated successfully, but these errors were encountered: