dots-hyprland icon indicating copy to clipboard operation
dots-hyprland copied to clipboard

Can't lock device

Open alr86 opened this issue 1 year ago • 3 comments

Distro: Arch Linux

Problem: The lock button and "loginctl lock-session" command are not locking the device, but "hyprlock" works fine.

Details:

  • I'm unable to locate relevant logs to troubleshoot the issue.

alr86 avatar Sep 27 '24 12:09 alr86

any solutions you've found? Facing the same problem here. @end-4

so-uvik avatar Oct 25 '24 17:10 so-uvik

Hello! I had the same issue, when I tried to add Hyprland as a default_session to greetd to skip the greeter and open hyprlock from exec-once. At first, to fix it I added agreety to default_session and moved Hyprland to initial_session to enable autologin. Here is the config:

[terminal]
vt = 1

[default_session]
command = "agreety --cmd Hyprland"
user = "greeter"

[initial_session]
command = "Hyprland"
user = "asalde_le1"

But there was a problem: if I logged out from Hyprland, I needed to type password twice. To fix it I decided to use autologin instead of greetd. To install it:

yay -S autologin
sudo systemctl enable autologin
sudo ln -fs /usr/lib/systemd/system/autologin.service /etc/systemd/system/display-manager.ser
vice

To configure it edit /usr/lib/systemd/system/autologin.service. My ExecStart: ExecStart=autologin asalde_le1 sh -c 'source /etc/profile && Hyprland' It is like this, because by default autologin doesn't load envs, so I do it manually to get localized system, etc.

asaldele1 avatar Oct 26 '24 05:10 asaldele1

Same issue here.

On my side i just replaced the exec commands in hyprland config to use hyprlock instead of loginctl + edited ags script for the button lock session to use hyprlock too.

Works like a charm.

Oursin46 avatar Jan 10 '25 11:01 Oursin46

Closing as outdated.

clsty avatar Oct 30 '25 00:10 clsty