Xfce Forum

Sub domains
 

You are not logged in.

#1 2026-01-31 21:00:10

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Lock screen/session

Debian 12 updated
XFCE4 4.18

What software do I need to lock my screen/session after a given amount of time? I have tried light-locker and xscreensaver, with both installed and only one at a time. I can get my monitor to blank, but that is it.

In power management system is set to hibernate for sleep mode at 15 minutes and to lock when system goes to sleep. Display is set to blank after 2 minutes sleep after 5 minutes and switch off after 10 minutes.

Any and all help appreciated.

Offline

#2 2026-01-31 22:24:41

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 896
LinuxFirefox 147.0

Re: Lock screen/session

Install xfce4-screensaver. It has the lock screen feature built into it.


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#3 2026-01-31 23:52:27

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Re: Lock screen/session

eriefisher wrote:

Install xfce4-screensaver. It has the lock screen feature built into it.

xfce4-screesaver is not in the Debian 12 repository, or at least I can't find it.

Offline

#4 2026-01-31 23:57:28

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 896
LinuxFirefox 147.0

Re: Lock screen/session


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#5 2026-02-01 03:12:23

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Re: Lock screen/session

fails install because of dependencies.

Offline

#6 2026-02-01 11:42:54

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 896
LinuxFirefox 147.0

Re: Lock screen/session

Another option, especially if you already use Lightdm is dm-tool. It can be set up with a hot key of scripted.

dm-tool lock

I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#7 2026-02-01 16:29:10

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Re: Lock screen/session

eriefisher wrote:

Another option, especially if you already use Lightdm is dm-tool. It can be set up with a hot key of scripted.

dm-tool lock

Thanks. I'll probably try to upgrade to Trixie.

Added later 7 h 52 min 50 s:
I tried compiling but ran into dependency issues.

Offline

#8 2026-02-16 14:51:14

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Re: Lock screen/session

I have updated to Trixie and installed xfce4-screensaver.
I can't seem to get the screen to blank or lock.

Offline

#9 2026-02-16 19:04:35

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 896
LinuxFirefox 147.0

Re: Lock screen/session

Do you still have light-locker installed? If so, remove it. Log out and back in then goto Settings Manager>>xfce Screensaver>>Lock screen tab>>enable lock screen.


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#10 2026-02-16 21:10:14

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Re: Lock screen/session

rick71 wrote:

I have updated to Trixie and installed xfce4-screensaver.
I can't seem to get the screen to blank or lock.

eriefisher wrote:

Do you still have light-locker installed? If so, remove it. Log out and back in then goto Settings Manager>>xfce Screensaver>>Lock screen tab>>enable lock screen.

Light-locker is not installed.
Enable Lock Screen - On
Lock screen after screensaver is active for 2 minutes
Lock screen with system sleep - On

Offline

#11 2026-02-17 11:31:53

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 896
LinuxFirefox 147.0

Re: Lock screen/session

Check in the Power Manager settings. There is an option to lock the screen when the system sleeps.


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#12 2026-02-18 03:57:42

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Re: Lock screen/session

Lock screen when system goes to sleep is checked.
I have duplicated the settings from my laptop for battery and plugged in. The laptop does not have the xfce4-screensaer and it will blank and lock screen. The desktop will not.
The desktop, with lock screen enabled in xfce4-screensaver enable, will lock screen when selected from the action buttons.

Offline

#13 2026-02-18 10:32:33

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 896
LinuxFirefox 147.0

Re: Lock screen/session

When you say "action button", do you mean from the Whiskermenu? What are the commands for locking in the whiskermenu?


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#14 2026-02-18 23:54:05

rick71
Member
Registered: 2014-03-04
Posts: 35
LinuxFirefox 140.0

Re: Lock screen/session

I have no idea what a whiskermenu is. The action button plugin shows in a toolbar/menubar. Mine is at the top of the screen. Click on the username and a menu drops. Click on lock screen and it locks.

Offline

#15 2026-02-19 00:07:25

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 896
LinuxFirefox 147.0

Re: Lock screen/session

This sounds like Whisker Menu. Can you post a screen shot to be sure.

If it is, you can right click on the icon and select properties then commands. Lock screen should be checked and there will be a command on the right. What is it?


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#16 2026-02-19 00:25:07

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,478
LinuxFirefox 147.0

Re: Lock screen/session

The Action Button plugin is the older plugin that is default on upstream installs. It directly issues a dbus command to initiate a suspend. @rick71, it sounds like something might be blocking the other timeout method. As a sanity check, can you post back the output of the following commands:

xfconf-query -c xfce4-power-manager -lv
xfconf-query -c xfce4-session -lv | grep Lock
xfconf-query -c xfce4-screensaver -lv
ps -ef | grep -E 'saver|locker'
xfce4-power-manager --dump

Something else you can try is to run the power manager in debug mode:

xfce4-power-manager --quit
xfce4-power-manager --debug

...wait for the timeout to happen and see what is displayed in the terminal window. Feel free to post back the output you get.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 583.5 KiB (Peak: 600.91 KiB) ]