Siduction Forum

Siduction Forum => Software - Support => Thema gestartet von: viniosity in 2014/05/11, 20:11:42

Titel: Desktop showing moments before lockscreen
Beitrag von: viniosity in 2014/05/11, 20:11:42
Things are generally working fine on my new siduction laptop but there are a couple of things I'd like to tweak/fix.


Right now, if I resume from suspend, my desktop shows for about 1-2 seconds before the screensaver shows and then finally it all goes black with the lockscreen. Seems a bit sloppy. I'd expect it to show just the lockscreen on resume and nothing else.


Anyone know how to get that behavior?
Titel: Re: Desktop showing moments before lockscreen
Beitrag von: melmarker in 2014/05/11, 20:24:10
Wait for wayland ...
Titel: Re: Desktop showing moments before lockscreen
Beitrag von: viniosity in 2014/05/13, 22:24:39
Ok, turns out the real answer is that xflock4 (which is what xfce uses) is just a script that tries, in order, gnome-screensaver, xcreensaver, xlock.


Since siduction is using lightdm with their xfce iso, it's possible to lock the screen using it instead.


Create a new file in /usr/local/bin called xflock4 and just paste in some super simple code:




#!/bin/sh

dm-tool lock
exit 1



make it executable


$ chmod a+x /usr/local/bin/xflock4


and off you go. Note that dm-tool lock is the lightdm command to lock the screen. This might not be as secure as using xcreensaver but it's fine for my purposes.