pm-utils and Locked Screens

April 06, 2010 at 05:54 AM | categories: tips, archlinux | View Comments

pm-utils seems to be the clear winner to userspace suspend and hibernate setup. It's a great back, but, for those of us who don't run a desktop environment with a power manager, there's one thing missing: screen locking. I'd like the screen to be locked when my computer resumes from either suspend or hibernate, and I don't want to run gnome-power-manager to get that functionality. So, 00lock-screen to the rescue. Just drop that file in /etc/pm/sleep.d and, as long as you have xscreensaver, gnome-screensaver, i3lock, or xlock setup, the screen will lock as your computer suspends or hibernates.

For the Archlinux users, it's already packaged in the AUR: pm-utils-screen-lock