Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-10-31 15:47:39

Tio
Member
Registered: 2021-09-26
Posts: 92

Screen off locks it too

If I setup to turn my screen off, when do anything like press a key or move my mouse, I expect for the screen to turn on again. And it does. However I am also asked for the login password. I do not have anything setup in that regards so how come?

Offline

#2 2021-10-31 16:02:30

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Screen off locks it too

You must have a screen locker of screensaver program running (e.g. xfce4-screensaver, xscreensaver, light-locker, etc). You can see the list in /usr/bin/xflock4, but you can also specify a custom command.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-10-31 16:24:50

Tio
Member
Registered: 2021-09-26
Posts: 92

Re: Screen off locks it too

Ok I only had light-locker installed but I removed it. In that file I have:

#!/bin/sh
#
#  xfce4
#
#  Copyright (C) 1999, 2003 Olivier Fourdan (fourdan@xfce.org)
#  Copyright (C) 2011       Guido Berhoerster (guido+xfce.org@berhoerster.name)
#  Copyright (C) 2011       Jarno Suni (8@iki.fi)
#
#  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.
#

# First test for the command set in the session's xfconf channel
LOCK_CMD=$(xfconf-query -c xfce4-session -p /general/LockCommand)

# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
for lock_cmd in \
    "$LOCK_CMD" \
    "xfce4-screensaver-command --lock" \
    "xscreensaver-command -lock" \
    "gnome-screensaver-command --lock"
do
    if [ ! -z "$lock_cmd" ]; then
        $lock_cmd >/dev/null 2>&1 && exit
    fi
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

Still get the same behavior. I would have to l log in/out after removing light-locker, for it to work?

Offline

#4 2021-10-31 16:26:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Screen off locks it too

Yes. Or kill the process.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-10-31 16:33:54

Tio
Member
Registered: 2021-09-26
Posts: 92

Re: Screen off locks it too

Awesome. Works. Thanks!

Offline

#6 2021-10-31 21:34:39

Tio
Member
Registered: 2021-09-26
Posts: 92

Re: Screen off locks it too

But then I cannot lock my screen anymore. Can't I have both?  A screen locker and a way to turn off my screen without locking it...

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 582.36 KiB (Peak: 646.53 KiB) ]