How to get server session to lock when connected via xrdp #2963
Replies: 6 comments 1 reply
-
Then you can use Here's an example from my Linux Mint machine running XFCE:- $ dbus-send --session --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.GetConnectionUnixProcessID string:org.freedesktop.ScreenSaver method return time=1708703155.300133 sender=org.freedesktop.DBus -> destination=:1.5157 serial=3 reply_serial=2 uint32 3049 $ ps -fp 3049 UID PID PPID C STIME TTY TIME CMD ... 3049 2951 0 10:17 ? 00:00:00 xscreensaver-systemd -verbos We can then figure out if that executable should be running in your XRDP session, and if it should, why it isn't. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. Via VMWare Player console:
... returns:
Looking up that PID returns:
|
Beta Was this translation helpful? Give feedback.
-
Try running light-locker by hand in your session and see what happens. |
Beta Was this translation helpful? Give feedback.
-
All via xrdp connection, "normal" user:
... Returns:
The absence of "XDG_SESSION_PATH" is as in the OP. Running:
... Returned:
... Running:
Returned:
I then ran (still via xrdp, "normal" user):
... And it rather surprisingly returned:
... Suggestive to my not so clear eye, that lightdm is running.
|
Beta Was this translation helpful? Give feedback.
-
@BusterRaid - thanks for that investigative work. There's some useful information there. My guess is that you've got My guess is that it sets Because From the little research I've done, it looks like |
Beta Was this translation helpful? Give feedback.
-
Hi.
... Installed xscreensaver:
Rebooted. Screen lock (and screen saver) works on VMWare Play console and via xrdp. Happy for this to be closed or I can help out with more testing regarding "light-locker". Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi.
I cant seem to get the session to “lock” when connected via xrdp, either on-demand or via “Power management/Blank after X mintues”.
The device running xrdp server is a VM running Debian 12.5 Bookworm with xfce4 desktop and the client is Windows 10 Pro, connecting via "built it" Remote Desktop Client.
Connected “directly”, via VMWare Player:
When connected “directly”, via VMWare Player, I can lock the screen with:
light-locker-command -l
Or:
dm-tool lock
Or:
… if the display is set to “Blank after X minutes” in “Power Management”, the screen will automagically lock, after the allotted time.
The screen briefly goes black and then the greeter is presented.
... and examiningthe log (journalctl), there are many entries regarding closing and stopping stuff.
Connected via xrdp:
When connected via xrdp, issuing the following command in a Terminal (as the logged in user):
light-locker-command -l
… returns:
... and examining the log (journalctl), there are just two entries:
... and looking at xrdp.log ,xrdp-sesman.log and /var/log/lightdm/seat0-greeter.log, there are no entries created when the above command is issued.
When issuing the following command in a Terminal (as the logged in user):
dm-tool lock
… returns:
Looking at “light-locker” (https://github.com/the-cavalry/light-locker/issues?q=rdp), I couldnt see any items regarding rdp.
Any help or ideas would be appreciated.
Thank you.
Client:
Windows 10 Pro x64 2H22
Remote Desktop Connection client.
Remote Desktop Connection Shell\Control Version: 10.0.19041
Remote Desktop Protocol 10.8
Server:
VM running under VMWare Player.
OS: Debian 12.5 Bookworm x86-64
Kernel: Linux 6.1.0-18-amd64
Software:
xorgxrdp/stable,now 1:0.9.19-1 amd64
xrdp/stable,now 0.9.21.1-1 amd64
light-locker/stable,now 1.8.0-3 amd64
xfce4/stable,now 4.18 all
Run via xrdp -
systemctl status display-manager:
Run via VMWare -
systemctl status display-manager:
Run via xrdp -
ME@XRDEB12VM:~$ env:
Run via VMWare-
ME@XRDEB12VM:~$ env:
Beta Was this translation helpful? Give feedback.
All reactions