-
-
Notifications
You must be signed in to change notification settings - Fork 951
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
Add the disable_lockdead_screen option #8427
Add the disable_lockdead_screen option #8427
Conversation
How does that fix the problem? By not drawing a frame at all?? BUT I think i know why that happens and how to fix it properly. Here is how stuff works:
Regarding point 3 the protocol says
To me it seems like we generally want to render the lockscreen starting from when the clients gets the locked event. Currently we start right on the lock event. However, this would introduce the following problem: |
I mentioned the timer in my PR but not was not aware of the internal mechanics (I am not familiar with wayland protocols). I saw that some lock event is processed by the compositor but I do no know exactly from where it is originating from, gtklock or logind? |
gtklock or any other lockscreen client can send the lock request. River has an additional state "waiting_for_lock_surfaces" and a timer with 200ms that disables rendering normal content. Basically what i described in my first comment. I think we can solve the issue by implementing something like that. And if it is really needed, we could make this timeout configurable. |
thanks for the Analysis. I am currently trying a fix with a timer. I'll update this when I have finished |
@PaideiaDilemma Created the following PR with a delay: #8467 |
Describe your PR, what does it fix/add?
When running on slow computer (in my case laptop in powersave mode), hyprland can display lockdead screen before the lockscreen has started. It results in seeing for 1 or 2 second before the lockscreen actually starts.
This PR add a config option to disable the lockdead screen, solving the issue at the same time.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Another solution would be to wait for a configurable delay before displaying it. If this solution is preferable, let me know.
Is it ready for merging, or does it need work?
It shall be mergeable