Hypridle reporting that Niri does not implement hyprland-lock-notify-v1 #3459
Replies: 5 comments
I used Hypridle before switching to Swayidle and this didnt happen to me. Also looking at the source code, it seems that this protocol is not related to your issue. Feel free to correct me. |
So from my understanding of the hypridle code these lines are stating that the following settings at least will not work: The one in particular that leads me to believe this is the reason that suspend happens before the locking has been completed is that the documentation around So it clearly states in the code that inhibit_sleep 3 will not work and the docs also state that this means that the lock app isn't guaranteed to have completed before the system goes to sleep and this is the behavior that lead me to go looking into this. |
So for now I have swapped from hyperidle to swayidle as I was able to get that to actually lock and run scripts prior to suspend via it's |
|
For people who haven't seen the linked PR, YaLTeR mentioned that niri already notifies the locked hint over dbus -- perhaps this means instead, an issue should be raised with hypridle to just support reading the LockedHint from logind dbus instead of needing to implement the hyprland protocol in every compositor. |
|
I'm using hypridle and hyprlock on niri and ran into this issue of desktop flash when resuming. For me it's not a problem with idle time action in hypridle, I can set hypridle to lock after 5 minutes and then suspend after 15 minutes. The problem is hypridle failing to run before suspend when pressing the power button. When systemd controls the power button, it suspends before hypridle has time to draw. Probably not a niri issue. I worked around it by disabling power button handling in systemd-logind, and using a script from niri. That's using uwsm, but it should do the same without. Niri locks properly when hyprlock runs. |
Uh oh!
There was an error while loading. Please reload this page.
hypridle is logging:
This seems to prevent hypridle from knowing when the lock command has been executed and as a result when suspending the machine it doesn't get to lock the screen before suspending.
This then means that when the machine is awoke it is briefly not locked and any sensitive information on the screen is visible for a short time period before the lock screen starts.
The documentation on this protocol can be found here
System Information
niri unstable 2025-10-02 (commit ba6e5e082a79901dc89b0d49c5da1b769d652aec)All reactions