You are not logged in.

#1 2018-03-11 05:10:47

CarterCox
Member
From: Argentina
Registered: 2018-02-24
Posts: 116

Help with XScreensaver and xss-lock

Hello! I have been analyzing the "List of applications" article and I
got to the Screen lockers section
(https://wiki.archlinux.org/index.php/Li … en_lockers),
and I decided to go for "XScreensaver" since it has a Wiki page and it's
the default on other distros. I also love the little whales and sharks tongue

Now I have a few questions:

First and most important: How to set it up to lock the screen on
suspension and hibernation? I am using Xfce's power manager, and I have
installed xss-lock. Still suspending or hibernating doesn't lock the
screen. Do I have to do some extra configuration?

Secondly, the way I understand it, XScreensaver overrides my display power manager, so should I just disable it? Would this mean I can't
differenciate between power management on AC and on battery?

Thanks for the help!!


And neither the angels in Heaven above
   Nor the demons down under the sea
Can ever dissever my soul from the soul
   Of the beautiful Annabel Lee;

Offline

#2 2018-03-11 21:02:34

peterklarc
Member
Registered: 2017-03-28
Posts: 28

Re: Help with XScreensaver and xss-lock

Only using Xfce's power manager without xscreensaver and slock. Installed and config "slock" in xflock4:

https://git.xfce.org/xfce/xfce4-session … ts/xflock4

/usr/bin/xflock4:

#!/bin/sh
#
#  xfce4
#
#  Copyright (C) 1999, 2003 Olivier Fourdan (fourdan@xfce.org)
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

if test x"`which xscreensaver-command 2>/dev/null`" != x""; then
    xscreensaver-command -lock 
elif test x"`which gnome-screensaver-command 2>/dev/null`" != x""; then
    gnome-screensaver-command --lock
elif test x"`which slock 2>/dev/null`" != x""; then
   slock
else
    xlock $*
fi
exit 0

https://wiki.archlinux.org/index.php/xf … the_screen

Offline

#3 2018-03-12 14:03:23

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

Re: Help with XScreensaver and xss-lock

You say you've installed xss-lock but are you actually running it? You need to run the following: xss-lock -- xscreensaver-command -lock

Secondly, the way I understand it, XScreensaver overrides my display power manager

XScreenSaver will set the DPMS timeouts, yes. You can see what they are using the command xset -q
If you have another power manager installed then you may find that it will also try to set the DPMS timeouts. In that case, the timeouts will be set by the last program to start. Not an ideal state of affairs so, yes, you probably only want to start one or the other.

Would this mean I can't
differenciate between power management on AC and on battery?

Yes, XScreenSaver doesn't differentiate between the two.

Offline

Board footer

Powered by FluxBB