You are not logged in.
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
I'm having the same issue in Gnome as well. Have you found anything?
Offline
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
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
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
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
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
No, same behavior!
Offline
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
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
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
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
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
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
Yes! That worked - it no longer reveals desktop on wake!
Why did the issue happen in cinnamon with cinnamon-screensaver, though?
Offline
Why did the issue happen in cinnamon with cinnamon-screensaver, though?
I don't know, I don't use the cinnamon DE.
Offline
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