omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Screen doesn't lock anymore when suspending.

Open baguettiesonmywrist opened this issue 1 year ago • 9 comments

Locking from the SUPER + ESC menu works normally. However, when suspending and awaking the system I'm back in without a password prompt.

When manually executing loginctl lock-session nothing happens.

When executing killall hypridle && hypridle & and then loginctl lock-session the lock now works, however only when the terminal window this was executed in is left open.

baguettiesonmywrist avatar Aug 09 '25 09:08 baguettiesonmywrist

More info:

Restarting hypridle via the walker menu (Update > Process > hypridle) doesn't change anything, but manually executing omarchy-restart-hypridle somewhat solves the issue. However, when awaking the device you see the desktop for half a second and then the lock screen pops up.

Restarting the system doesn't solve this.

I'm wondering if this is just an issue on my end or not.

baguettiesonmywrist avatar Aug 09 '25 11:08 baguettiesonmywrist

I am having same problem. After leaving computer untouched for 10+ minutes and waking monitor, i'm getting to desktop without entering password. Lock screen was working earlier for me and i updated to 1.12.1 today so maybe something got changed.

umibear avatar Aug 09 '25 15:08 umibear

Same problem, also not working after update on lid closing as it was before (didn’t change any config files or hardware etc.) It can be fixed with changing idle config by removing “pidof” from listener (you can add it to general in lock_cmd to avoid multiple instances of hyprlock). But if I just close the lid it’s not working instantly as it was before the update.

COOLHax0r1337 avatar Aug 09 '25 18:08 COOLHax0r1337

The issue seem to be that the hypridle service cannot find the omarchy-lock-screen script. I assume the script's location (~/.local/share/omarchy/bin/omarchy-lock-screen) in not in system-wide PATH – possibly related to #557.

OswinWenlock avatar Aug 09 '25 18:08 OswinWenlock

The issue seem to be that the hypridle service cannot find the omarchy-lock-screen script. I assume the script's location (~/.local/share/omarchy/bin/omarchy-lock-screen) in not in system-wide PATH – possibly related to #557.

I don't think so because that script runs fine.

baguettiesonmywrist avatar Aug 10 '25 03:08 baguettiesonmywrist

The issue seem to be that the hypridle service cannot find the omarchy-lock-screen script. I assume the script's location (~/.local/share/omarchy/bin/omarchy-lock-screen) in not in system-wide PATH – possibly related to #557.

I don't think so because that script runs fine.

It runs fine you mean in a user bash ? For me, it does work there too but doesn't when running as sudo (=system). In config/hypr/hypridle.conf:

...
    lock_cmd = omarchy-lock-screen                         # lock screen and 1password
...

Assuming hyperidle running as a system service, this would explain it. As system, it does not know about omarchy-lock-screen.

It works from the menu, though, so I peeked there. In bin/omarchy-menu:

...
  *Lock*) $OMARCHY_BIN_PATH/omarchy-lock-screen ;;
...

The env variable $OMARCHY_BIN_PATH points to user home, therefore it will be known.

As @dhh wants the omarchy binaries in the system $path in #557, it would resolve the issue here as well. This is what I think @oswines meant.

manuel1618 avatar Aug 10 '25 06:08 manuel1618

@manuel1618 Oh I see what you mean, thanks for explaining.

baguettiesonmywrist avatar Aug 10 '25 07:08 baguettiesonmywrist

Thank you @manuel1618, that's exactly what I meant – sorry for making you clarify the point due to my poor explanation.

And to @bagguettiesonmywrist, I should have taken the time to better express my thoughts – sorry for confusing the matter.

OswinWenlock avatar Aug 10 '25 11:08 OswinWenlock

This will get fixed by https://github.com/basecamp/omarchy/pull/602.

In the meantime, you can add the full path in your hypridle.conf.

dhh avatar Aug 10 '25 13:08 dhh