Lock screen hangs with xrdp set-up to enable a remote session AND a concurrent local session #2823
-
I use Fedora 38, up to date. I cannot find authoritative documentation on how to set-up Fedora 38 to enable the same user to both log in physically on the workstation (wayland/gnome) and remotely (xrdp). Below is the configuration changes that enable me to mostly achieve my goals, however trying to unlock a screen lock on the remote session hangs almost always for ever, although it randomly un-hung twice (I have not been able to identify the trigger). With the configuration below, I can disconnect and reconnect at will so long as I do not lock the screen. The same behaviour can be observed with a variety of clients (Samsung smart TV, Android, Remmina on host system). Install:
gvim /usr/libexec/xrdp/startwm.sh (modified parts, no deletion):
gvim /usr/libexec/xrdp/reconnectwm.sh:
gvim /etc/X11/xinit/xinitrc.d/00-start-message-bus.sh:
I also have nomachine installed, causing issues with smartcard access, changing the following solves these issues.
I also played with this. Choosing password-auth or gdm-password seems to have no noticeable impact.
When changing the above or to exit any locked xrdp sessions, do:
Reproducing the problem:
Problem:
Ideal outcome: the unlock screen works without any undue delay. Any help to achieve this appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
@apmcgh - the short answer is it isn't supported on systemd. This is in the FAQ Longer answer; you can try running a separate All of these workarounds suffer from the same problem; this isn't a supported use-case for systemd and so anything you get working can break at the next update. If you really have to use the same user on the console and remotely you can't use a systemd-based distro. |
Beta Was this translation helpful? Give feedback.
@apmcgh - the short answer is it isn't supported on systemd. This is in the FAQ
Longer answer; you can try running a separate
systemd --user
instance as a separate service under the existing one. Have a look at #2491 and also https://github.com/matt335672/nest-systemd-user. This may work well enough for you.All of these workarounds suffer from the same problem; this isn't a supported use-case for systemd and so anything you get working can break at the next update. If you really have to use the same user on the console and remotely you can't use a systemd-based distro.