bokicoder

Results comments of bokicoder

Or try locking the screen first, then suspending the system through the power menu in the lower-left corner. Guess what? It also takes about 4 seconds.

Yep. Now only the "lock before suspend does not work" issue remains, but I can work around it by using swayidle. So let's take our time and wait to see...

It only successfully locked the screen the first time I attempted to suspend; after that, the issue reappeared.

> So that one, would unblock the 4/5 second delay (unless something else is holding an inhibitor) However, when the dms sleep inhibitor is active (loginctl integration enabled), a delay...

> I wonder if something on the nix configuration is breaking the dbus connection, or something else is interfering and persisting the session lock state. I configured the system to...

I tried it, but it didn't work.

> Can you dump these: > > Before suspend (when working) and after suspend (when not working) > > loginctl list-sessions > loginctl list-sessions > loginctl show-session $(loginctl show-user $USER...

I conducted 10 consecutive suspend tests using the latest commits of dms and dms-cli. The screen successfully locked only once (during the 2nd or 3rd attempt).

I actually also experience occasional screen lock failures when using swayidle, though the frequency is lower—possibly similar to the success rate of dms.

@bbedward I have a few observations, and I hope they're helpful. - lock before suspend. - dms - Failed to lock: - swayidle - Locked successfully: - Lock, wait for...