suspend does not lock screen Fresh Ubuntu Mate 20.04.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lightdm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When suspending my freshly installed 20.04.1 system I noticed that on waking a password is not required. lightdm does not have locking enabled on suspend. A workaround I found from pszafer
on archlinux blog.
Quoted below:
create lockscreen.sh file somewhere in your home directory with:
#!/bin/sh
XDG_SEAT_
- I've prefer just for sure creating dmlock.service file in home dir and create symlink to /etc/systemd/
File has to be in /etc/systemd/
[Unit]
Description=DM Lock before sleep
Before=sleep.target
[Service]
ExecStart=
[Install]
WantedBy=
For your needs, you probably need hibernate.target.
Next run following commands:
systemctl daemon-reload
systemctl enable dmlock.service
Just for sure it is working you could run:
systemctl list-unit-files
systemctl start dmlock.service
Hope it helps you a little
tags: |
added: focal removed: lightdm lock security suspend unlock |
no longer affects: | ubuntu-mate |