GalliumOS / galliumos-distro

Docs, issues, and artwork sources for GalliumOS
https://galliumos.org/
GNU General Public License v2.0
345 stars 11 forks source link

Screen isn't locked when the lid is closed, despite having the setting on. #597

Closed ghost closed 3 years ago

espoelstra commented 3 years ago

Can you run sudo journalctl -axef in a terminal and then close the lid for a minute and reopen it and share the logs via a gist with the last dozen or so lines from before the close and then anything that shows up after?

espoelstra commented 3 years ago

I wonder if it is the sleep.target vs the suspend.target that isn't triggering the lock.

https://www.jvt.me/posts/2019/12/03/lock-before-suspend-systemd/

espoelstra commented 3 years ago

Archwiki mentions sleep.target, while the post above mentions suspend.target. In your case it appears sleep is the one being triggered, so you can probably modify the blog post to use Wanted: sleep.target instead of suspend.target.

https://wiki.archlinux.org/index.php/Session_lock#Before_suspend_or_hibernate