Archive for the ‘Cinnamon’ Category

Reliable screen lock on sleep in Cinnamon

December 2nd, 2014 Comments off

I’ve been having some problems with Cinnamon’s default lock screen cinnamon-screensaver not reliably being active after resume. Sometimes my screen was still visible for a blink of an eye, sometimes it didn’t even activate at all (often coinciding with hangs of Cinnamon, e.g. caused by FUSE).
In order to fix this I created a simple systemd service following the template in the Arch Wiki.

Description=Lock X session on sleep

ExecStart=/usr/bin/cinnamon-screensaver-command -l


After enabling the service (systemctl enable screenlock.service) I got a reliable lock screen. It takes my notebook about an extra second to go to sleep now, but I don’t mind that.