You are not logged in.

#1 2020-08-17 02:00:49

j@s0n
Member
Registered: 2020-08-15
Posts: 58

Screen lock on lid close

I'm trying to get the screen to lock on my notebook (Dell XPS 13 7390) when I close the lid, or press the sleep button.

I installed acpid and added a line to /etc/acpid/handler.sh under button/sleep and again under button/lid -> close that calls my i3lock script. When I close the lid, or press the sleep button, the computer goes to sleep. When I wake it (or open the lid), it shows my unlocked screen for less than a second, and then locks the screen.

How can I get it to lock before the computer goes to sleep?

Offline

#2 2020-08-17 13:18:52

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,858

Re: Screen lock on lid close

Something else then acpid probably interferes, check https://wiki.archlinux.org/index.php/Po … CPI_events .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB