You are not logged in.

#1 2013-07-04 12:21:42

skrat
Member
Registered: 2013-05-10
Posts: 39

Desktop visible after resume (from suspend) and before screen is locke

My desktop becomes visible for brief period (<1s) when the system resumes from suspended state. My desktop env. is XFCE4, it happens with both xscreensaver and gnome-screensaver (also with slimlock and i3lock), therefore I think it's not locker dependent. It's a major security flaw because sensitive information may be exposed (not just porn). Using both XFCE provided locking facilities (suspend/resume lock options in Power Manager and Session settings), and systemd suspend/resume hooks yields same result. I remember back then when I was using Gnome, I haven't had this issues. Does anyone have any idea how to prevent this desktop expose?

Offline

#2 2013-07-04 17:22:19

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: Desktop visible after resume (from suspend) and before screen is locke

It also happens in KDE.

Offline

#3 2013-07-09 15:41:23

leflore
Member
From: Columbus, OH
Registered: 2013-07-09
Posts: 11

Re: Desktop visible after resume (from suspend) and before screen is locke


"Whoever has ears, let him hear"

Offline

#4 2016-12-01 11:25:21

gethinlw
Member
Registered: 2016-12-01
Posts: 1

Re: Desktop visible after resume (from suspend) and before screen is locke

This seems to be present in a lot of distros. This is a workaround I'm using for Cinnamon on Debian, but it should be possible to do something similar with other distro/window manager combinations:

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-bettery-action as well if you're using a laptop).

2. Save the following script to a convenient location:

#!/bin/bash
cinnamon-screensaver-command -l		#lock the screen (use 'gnome-screensaver-command -l' if you're using the gnome screensaver package)
systemctl suspend			#suspend the system

3. Use the System Settings app 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.

Last edited by gethinlw (2016-12-01 11:28:05)

Offline

#5 2016-12-01 13:46:27

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: Desktop visible after resume (from suspend) and before screen is locke

Thanks for sharing. I'll take this opportunity to close this old thread now.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB