Another workaround that I used for Cinnamon. I can't imagine it would be
too much trouble to adapt it to other window managers:
1. Use dconf-editor to change the button-suspend action at org>cinnamon
>settings-daemon>plugins>power to 'nothing' (you could also amend lid-
close-ac-action and lid-close-battery-action as well if you're using a
2. Save the following script to a convenient location (it locks the
screen, then suspends):
3. Use the System Settings app (cinnamon-settings) to create a custom
keybinding for the sleep key that points to the script.
After this it behaves as it should. You can see the lock screen pop up
briefly before it goes to sleep, which is reassuring.
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-screensaver in Ubuntu.
Desktop contents displayed on resume, before lock screen is shown
Status in gnome-screensaver package in Ubuntu:
I am running 14.04. When I resume from sleep, the contents of my
desktop (including any open windows, emails, etc) are displayed
onscreen briefly before the unlock screen is shown. This potentially
allows an attacker to view the contents of a locked screen.
1) Suspend a machine, e.g. by closing the lid
2) Resume the machine
Upon resume, the first thing shown onscreen is the screensaver unlock screen.
Upon resume, the first thing shown onscreen is the set of open windows that
were displayed before the machine was put to sleep. After a second or two, the
unlock screen is drawn and you have to enter a password to unlock the machine.
This is reproducible on my system.
DistroRelease: Ubuntu 14.04
Package: gnome-screensaver 3.6.1-0ubuntu9
ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
Uname: Linux 3.13.0-8-generic x86_64
Date: Fri Feb 14 09:05:50 2014
# This is a distribution channel descriptor
# For more information see
org.gnome.desktop.session session-name 'ubuntu'
org.gnome.desktop.session idle-delay uint32 300
InstallationDate: Installed on 2013-12-02 (73 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary
UpgradeStatus: Upgraded to trusty on 2014-02-12 (1 days ago)
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~desktop-packages
Post to : email@example.com
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp