Article 5P7GH GDM3 doesn't lock the screen (show login screen)

GDM3 doesn't lock the screen (show login screen)

by
shogun1234
from LinuxQuestions.org on (#5P7GH)
Recently I installed Debian 11, then switching to use i3 window manager (version 4.19.1-1). Most of functions work as expected, except locking mechanism. There is no problem to use i3lock, xscreensaver, and so on. But the effect I want to achieve is use GDM3 functions to lock the screen (show login screen).

Code:$ cat /etc/debian_version
11.0

$ uname -r
5.10.0-8-amd64

$ cat /etc/X11/default-display-manager
/usr/sbin/gdm3I searched on the internet, finding the command to lock the screen (show login scree as lock) is

Code:# https://askubuntu.com/questions/980638/gdm3-lock-switch-to-greeter-from-command-line/983451#983451
dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.LockHowever after executing that command, there is nothing happen. No lock screen; no error; no warning. The only thing I can check is echo $?, which return 0 as expected.

Code:$ dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock

$ echo $?
0What steps or commands should I execute in order to get the screen locked in gdm3?

I do not intend switching to lightdm, or use other lock such as i3lock, xscreensaver, gnome-screensaver - I did use them already and it works fine, but those are not what I want to use for this setup.

Thankslatest?d=yIl2AUoC8zA latest?i=DwYtbk_j6Z8:B14vCV7sOeg:F7zBnMy latest?i=DwYtbk_j6Z8:B14vCV7sOeg:V_sGLiP latest?d=qj6IDK7rITs latest?i=DwYtbk_j6Z8:B14vCV7sOeg:gIN9vFwDwYtbk_j6Z8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments