Posted almost 4 years ago. Visible to the public.

Ubuntu: Fix screensaver not locking the screen

If the default lock function of your desktop environment isn't working you can try this workaround with xautolock.

Copy
sudo apt-get install xautolock

Autolock runs a command after a given duration of inactivity. Your screensaver or "locker" usually has a programmatic way to lock the screen. How that command looks like depends on which environment you're using.

MATE

  • Go to Control Center and "Startup Applications".
  • Add a new application with the command xautolock -time 10 -locker "mate-screensaver-command -l"

The time is given in minutes.

light-dm

  • add the following command to the autostart of your desktop environment: xautolock -time 10 -locker "dm-tool lock"

The time is given in minutes.

gdm

  • install gnome-screensaver: sudo apt-get install gnome-screensaver
  • add the following command to the autostart of your desktop environment (gnome-session-properties): xautolock -time 10 -locker "gnome-screensaver-command -l"

The time is given in minutes.

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Claus-Theodor Riegg
Last edit:
almost 2 years ago
by Henning Koch
Keywords:
screensaver, display, lock, linux
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Claus-Theodor Riegg to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more