You are not logged in.

#1 2015-06-28 00:43:37

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Lockscreen reveals desktop upon wake [SOLVED]

Hello all.

I've had this issue in both Cinnamon & XFCE. Basically, upon wake from suspend, cinnamon-screensaver reveals the desktop for a moment, then hits the lock screen as normal. I've seen this behavior with other lockscreens (xscreensaver) and I'm guessing it's something I'm doing wrong.

Any pointers?

Thanks


EDIT:
Using xss-lock with xscreensaver seems to have worked.

Last edited by yochaigal (2015-09-14 15:13:42)

Offline

#2 2015-07-08 03:31:51

mankmonjre
Member
Registered: 2014-07-16
Posts: 8

Re: Lockscreen reveals desktop upon wake [SOLVED]

I'm having the same issue in Gnome as well. Have you found anything?

Offline

#3 2015-07-08 15:40:06

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

No, although I have learned a few things.
The problem only occurs on LID CLOSE, not when I simply issue systemctl suspend.
I've configured multiple suspend hooks - using a variety of lockers (light-locker, i3lock, xscreensaver, etc) and the problem persists. Again, only on lid close.
I had some great help @ arch IRC yesterday from user gehidore, they said they'd try and help out here if they found a solution.

Offline

#4 2015-07-08 16:49:06

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Lockscreen reveals desktop upon wake [SOLVED]

As I understand it, the power manager should call something like "loginctl lock-session" prior to suspending. I'm just guessing here but to me it sounds like the call is getting sent upon resuming. So maybe check your power settings? I'm afraid I'm not familiar with the Cinnamon power settings so I can't help there.

Offline

#5 2015-07-08 19:46:46

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

This isn't a Cinnamon thing - it happens in other DEs as well.
Further, I can disable Cinnamon's suspend config entirely (and kill cinnamon screensaver); I then configure a suspend hook to run the lockscreen command (e.g. i3lock or xscreensaver), then run "systemctl suspend" from CLI and the problem persists.

Last edited by yochaigal (2015-07-08 19:47:07)

Offline

#6 2015-09-12 14:39:49

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

A few notes I've discovered over the last few months:

Problem persists in XFCE and GNOME.
The only solution seems to be lightdm+light-locker (lightdm+another screensaver doesn't help). It may be that light-locker simply takes longer to "wake up" - giving the illusion of success.

Offline

#7 2015-09-12 15:03:25

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Lockscreen reveals desktop upon wake [SOLVED]

I never experience this in Xfce with LightDM and the legacy gnome-screensaver. For Xfce users experiencing this, does enabling the lock screen before sleep option help? Execute:

xfconf-query -c xfce4-session -p /shutdown/LockScreen -s true

or tick the option under Applications -> Session and Startup -> Advanced

Last edited by Chazza (2015-09-12 15:09:09)

Offline

#8 2015-09-12 15:30:32

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

No, same behavior!

Offline

#9 2015-09-14 11:35:03

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

Something else I've found: if I run xflock4 with light-locker uninstalled, it complains and says: light-locker not found. It seems that xflock4 is symlinked to light-locker?

Offline

#10 2015-09-14 12:30:57

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Lockscreen reveals desktop upon wake [SOLVED]

I don't understand how that can be. xflock4 shouldn't even work with light-locker. These are the contents of xflock4 minus the copyright notice:

PATH=/bin:/usr/bin
export PATH

# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
for lock_cmd in \
    "xscreensaver-command -lock" \
    "gnome-screensaver-command --lock"
do
    $lock_cmd >/dev/null 2>&1 && exit
done

# else run another access locking utility, if installed
for lock_cmd in \
  "xlock -mode blank" \
  "slock"
  do
    set -- $lock_cmd
    if command -v -- $1 >/dev/null 2>&1; then
        $lock_cmd >/dev/null 2>&1 &
	# turn off display backlight:
	xset dpms force off
        exit
    fi
done

# else access locking failed
exit 1

As you can see, it will only work if xscreensaver, gnome-screensaver, xlock or slock are installed. Have you edited /usr/bin/xflock4 or perhaps created an overriding version in /usr/local/bin/xflock4?

Offline

#11 2015-09-14 12:57:06

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

Yes, this is what I have.
If I remove light-locker, and run xflock4:

⚡ xflock4
zsh: command not found: light-locker-command

So I checked my zshrc, and yup I've got an alias in there for god knows why. I removed it.

I then installed xscreensaver, ran it, and suspended. Active Windows still (momentarily) viewable upon wake.

Last edited by yochaigal (2015-09-14 12:59:58)

Offline

#12 2015-09-14 13:52:22

toz
Member
Registered: 2011-10-28
Posts: 497

Re: Lockscreen reveals desktop upon wake [SOLVED]

yochaigal wrote:

I then installed xscreensaver, ran it, and suspended. Active Windows still (momentarily) viewable upon wake.

I have the same issue with Xfce and xscreensaver and use xss-lock to work around the problem.

One gotcha, if you log out and back in again (without rebooting), is the xss-lock program will create another process and run your cpu usage high. Setting "KillUserProcesses=yes" in /etc/systemd/logind.conf seems to fix that.

Offline

#13 2015-09-14 14:49:30

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

I had the same experience with xss-lock. I remove light-locker, ran xss-lock -- xscreensaver-command -lock on startup, as well as xscreensaver... same issue. Windows appear, and then xscreensaver shows up.

Offline

#14 2015-09-14 14:51:07

toz
Member
Registered: 2011-10-28
Posts: 497

Re: Lockscreen reveals desktop upon wake [SOLVED]

yochaigal wrote:

I had the same experience with xss-lock. I remove light-locker, ran xss-lock -- xscreensaver-command -lock on startup, as well as xscreensaver... same issue. Windows appear, and then xscreensaver shows up.

In the xscreensaver properties, on the Advanced tab, uncheck "Fade to Black when Blanking"

Offline

#15 2015-09-14 14:59:15

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Lockscreen reveals desktop upon wake [SOLVED]

Yes! That worked - it no longer reveals desktop on wake!
Why did the issue happen in cinnamon with cinnamon-screensaver, though?

Offline

#16 2015-09-14 17:19:14

toz
Member
Registered: 2011-10-28
Posts: 497

Re: Lockscreen reveals desktop upon wake [SOLVED]

yochaigal wrote:

Why did the issue happen in cinnamon with cinnamon-screensaver, though?

I don't know, I don't use the cinnamon DE.

Offline

#17 2015-09-18 15:52:38

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Lockscreen reveals desktop upon wake [SOLVED]

Weird. Now I just experienced this behaviour out of the blue with Xfce and GNOME Screensaver on lid close. I've tried to reproduce it since but couldn't. Would the OP be alright with removing the solved tag?

Edit: it looks like the real issue might be with DPMS:
* https://bugzilla.redhat.com/show_bug.cgi?id=713640
* https://bugzilla.gnome.org/show_bug.cgi?id=753678

Last edited by Chazza (2015-09-18 16:12:27)

Offline

Board footer

Powered by FluxBB