ArcoLinux -D -B 19.1 iso's have been released

[INFO]Laptop lock screen after suspend

Post Reply
User avatar
TheWanderer
Crewman
Posts: 15
Joined: Wed Jan 10, 2018 9:59 am
Hungary
[INFO]Laptop lock screen after suspend

Post by TheWanderer » Thu Feb 22, 2018 6:26 pm

I had a little problem, my laptop didn't lock the screen when it wake up from suspend, now I found the solution. To lock the screen on suspend do the following.

First of all you need a file in /etc/systemd/system/

Code: Select all

sudo nano /etc/systemd/system/lock.service
Now add the following entries

Code: Select all

[Unit]
Description=Lock the screen on resume from suspend

[Service]
User=YOUR_USERNAME
Environment=DISPLAY=:0
ExecStart=/usr/bin/slimlock

[Install]
WantedBy=suspend.target

Warning: Change your username in the file, else it won't work.

And last enable this service.

Code: Select all

sudo systemctl enable lock.service
Now it should work.

User avatar
narayan-das
recruit crewman
Posts: 2
Joined: Mon Jun 18, 2018 5:14 pm
South Africa
Re: [INFO]Laptop lock screen after suspend

Post by narayan-das » Tue Jul 31, 2018 5:34 pm

Much Respect <3. This solved my issue on my ArcoLinuxB-Awesome OS running on Dell XPS 15 9560
Running ArcoLinuxB-Awesome on a Dell XPS 9560
☥Hare Krsnaॐ

Abstraction
Crewman
Posts: 5
Joined: Mon Dec 31, 2018 3:37 am
United States of America
Re: [INFO]Laptop lock screen after suspend

Post by Abstraction » Sun Jan 06, 2019 11:30 pm

Thanks! The XFCE Power Manager locking function doesn't work quite right, but this was an immediate fix (after disabling the XFCE PM setting). :D


Post Reply

Return to “Laptop”