Package: lightdm
Version: 1.32.0-6+b1
Severity: important
X-Debbugs-Cc: vomeb...@protonmail.com

I am using debian testing (trixie currently) with Xfce desktop environment
which was installed by Debian installer. After recent updates (about a half of
month ago) a lightdm's bug exists:

Lightdm always make my computer into screen lock status after graphical session
becoming to idle with 10-12 minutes, even I have disabled all screen lock/power
save settings in Xfce. I must unlock (input password) twice for going back to
my Xfce session again.

I checked systemd-journald and discovered messages when screen lock was enabled
unexpectedly:

Jan 15 14:24:07 justa lightdm[245408]: Error getting user list from
org.freedesktop.Accounts:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.Accounts was not provided by any .service files
Jan 15 14:24:07 justa lightdm[245408]: pam_unix(lightdm-greeter:session):
session opened for user lightdm(uid=108) by (uid=0)
Jan 15 14:24:07 justa systemd[1]: Created slice user-108.slice - User Slice of
UID 108.
Jan 15 14:24:07 justa systemd[1]: Starting user-runtime-dir@108.service - User
Runtime Directory /run/user/108...
Jan 15 14:24:07 justa systemd-logind[959]: New session c20 of user lightdm.
Jan 15 14:24:07 justa systemd[1]: Finished user-runtime-dir@108.service - User
Runtime Directory /run/user/108.
Jan 15 14:24:07 justa systemd[1]: Starting user@108.service - User Manager for
UID 108...
Jan 15 14:24:07 justa (systemd)[245414]: pam_unix(systemd-user:session):
session opened for user lightdm(uid=108) by lightdm(uid=0)
Jan 15 14:24:07 justa systemd-logind[959]: New session 210 of user lightdm.
Jan 15 14:24:07 justa systemd[245414]: Queued start job for default target
default.target.
Jan 15 14:24:07 justa systemd[245414]: Created slice app.slice - User
Application Slice.
Jan 15 14:24:07 justa systemd[245414]: Created slice session.slice - User Core
Session Slice.
Jan 15 14:24:07 justa systemd[245414]: Reached target paths.target - Paths.
Jan 15 14:24:07 justa systemd[245414]: Reached target timers.target - Timers.
Jan 15 14:24:07 justa systemd[245414]: Starting dbus.socket - D-Bus User
Message Bus Socket...
Jan 15 14:24:07 justa systemd[245414]: Listening on dirmngr.socket - GnuPG
network certificate management daemon.
Jan 15 14:24:07 justa systemd[245414]: Starting gcr-ssh-agent.socket - GCR ssh-
agent wrapper...
Jan 15 14:24:07 justa systemd[245414]: Listening on gnome-keyring-daemon.socket
- GNOME Keyring daemon.
Jan 15 14:24:07 justa systemd[245414]: Listening on gpg-agent-browser.socket -
GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jan 15 14:24:07 justa systemd[245414]: Listening on gpg-agent-extra.socket -
GnuPG cryptographic agent and passphrase cache (restricted).
Jan 15 14:24:07 justa systemd[245414]: Listening on gpg-agent-ssh.socket -
GnuPG cryptographic agent (ssh-agent emulation).
Jan 15 14:24:07 justa systemd[245414]: Listening on gpg-agent.socket - GnuPG
cryptographic agent and passphrase cache.
Jan 15 14:24:07 justa systemd[245414]: Listening on pulseaudio.socket - Sound
System.
Jan 15 14:24:07 justa systemd[245414]: Listening on dbus.socket - D-Bus User
Message Bus Socket.
Jan 15 14:24:07 justa systemd[245414]: Listening on gcr-ssh-agent.socket - GCR
ssh-agent wrapper.
Jan 15 14:24:07 justa systemd[245414]: Reached target sockets.target - Sockets.
Jan 15 14:24:07 justa systemd[245414]: Reached target basic.target - Basic
System.
Jan 15 14:24:07 justa systemd[1]: Started user@108.service - User Manager for
UID 108.
Jan 15 14:24:07 justa systemd[245414]: Started mpris-proxy.service - Bluetooth
mpris proxy.
Jan 15 14:24:07 justa systemd[1]: Started session-c20.scope - Session c20 of
User lightdm.
Jan 15 14:24:07 justa systemd[245414]: Starting pulseaudio.service - Sound
Service...
Jan 15 14:24:07 justa lightdm[245408]: pam_unix(lightdm-greeter:session):
session opened for user lightdm(uid=108) by (uid=0)
Jan 15 14:24:07 justa systemd[245414]: Starting dbus.service - D-Bus User
Message Bus...
Jan 15 14:24:07 justa systemd[245414]: Started dbus.service - D-Bus User
Message Bus.
Jan 15 14:24:07 justa rtkit-daemon[2034]: Successfully made thread 245435 of
process 245435 owned by '108' high priority at nice level -11.
Jan 15 14:24:07 justa rtkit-daemon[2034]: Supervising 4 threads of 3 processes
of 2 users.
Jan 15 14:24:08 justa rtkit-daemon[2034]: Supervising 4 threads of 3 processes
of 2 users.
Jan 15 14:24:08 justa rtkit-daemon[2034]: Successfully made thread 245440 of
process 245435 owned by '108' RT at priority 5.
Jan 15 14:24:08 justa rtkit-daemon[2034]: Supervising 5 threads of 3 processes
of 2 users.
Jan 15 14:24:08 justa systemd[245414]: Started pulseaudio.service - Sound
Service.
Jan 15 14:24:08 justa systemd[245414]: Reached target default.target - Main
User Target.
Jan 15 14:24:08 justa systemd[245414]: Startup finished in 204ms.
Jan 15 14:24:08 justa dbus-daemon[245437]: [session uid=108 pid=245437 pidfd=5]
Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-
bus.service' requested by ':1.3' (uid=108 pid=245436 comm="/usr/sbin/lightdm-
gtk-greeter")
Jan 15 14:24:08 justa systemd[245414]: Starting at-spi-dbus-bus.service -
Accessibility services bus...
Jan 15 14:24:08 justa dbus-daemon[245437]: [session uid=108 pid=245437 pidfd=5]
Successfully activated service 'org.a11y.Bus'
Jan 15 14:24:08 justa systemd[245414]: Started at-spi-dbus-bus.service -
Accessibility services bus.
Jan 15 14:24:08 justa dbus-daemon[245437]: [session uid=108 pid=245437 pidfd=5]
Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-
daemon.service' requested by ':1.5' (uid=108 pid=245436
comm="/usr/sbin/lightdm-gtk-greeter")
Jan 15 14:24:08 justa systemd[245414]: Starting gvfs-daemon.service - Virtual
filesystem service...
Jan 15 14:24:08 justa dbus-daemon[245437]: [session uid=108 pid=245437 pidfd=5]
Successfully activated service 'org.gtk.vfs.Daemon'
Jan 15 14:24:08 justa systemd[245414]: Started gvfs-daemon.service - Virtual
filesystem service.
Jan 15 14:24:08 justa at-spi-bus-launcher[245451]: dbus-daemon[245451]:
Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=108
pid=245436 comm="/usr/sbin/lightdm-gtk-greeter")
Jan 15 14:24:08 justa at-spi-bus-launcher[245451]: dbus-daemon[245451]:
Successfully activated service 'org.a11y.atspi.Registry'
Jan 15 14:24:08 justa at-spi-bus-launcher[245482]: SpiRegistry daemon is
running with well-known name - org.a11y.atspi.Registry
Jan 15 14:24:10 justa cgroup-name.sh[245491]: cgroup
'user.slice_user-108.slice_session-c20.scope' is called
'user.slice_user-108.slice_session-c20.scope', labels ''
Jan 15 14:24:10 justa cgroup-name.sh[245495]: cgroup
'user.slice_user-108.slice_user_108.service_init.scope' is called
'user.slice_user-108.slice_user_108.service_init.scope', labels ''

Messages below were reported when I unlocking twice and going back to Xfce:

Jan 15 14:45:17 justa systemd[1]: Stopping user@108.service - User Manager for
UID 108...
Jan 15 14:45:17 justa systemd[245414]: Activating special unit exit.target...
Jan 15 14:45:17 justa systemd[245414]: Stopped target default.target - Main
User Target.
Jan 15 14:45:17 justa systemd[245414]: Stopping at-spi-dbus-bus.service -
Accessibility services bus...
Jan 15 14:45:17 justa gvfsd[245454]: A connection to the bus can't be made
Jan 15 14:45:17 justa systemd[245414]: Stopping dbus.service - D-Bus User
Message Bus...
Jan 15 14:45:17 justa systemd[245414]: Stopping gvfs-daemon.service - Virtual
filesystem service...
Jan 15 14:45:17 justa systemd[245414]: Stopping mpris-proxy.service - Bluetooth
mpris proxy...
Jan 15 14:45:17 justa systemd[245414]: mpris-proxy.service: Main process
exited, code=exited, status=1/FAILURE
Jan 15 14:45:17 justa systemd[245414]: mpris-proxy.service: Failed with result
'exit-code'.
Jan 15 14:45:17 justa systemd[245414]: Stopped mpris-proxy.service - Bluetooth
mpris proxy.
Jan 15 14:45:17 justa systemd[245414]: Stopped dbus.service - D-Bus User
Message Bus.
Jan 15 14:45:17 justa systemd[245414]: Stopped at-spi-dbus-bus.service -
Accessibility services bus.
Jan 15 14:45:17 justa systemd[1]: run-user-108-gvfs.mount: Deactivated
successfully.
Jan 15 14:45:17 justa systemd[245414]: Stopped gvfs-daemon.service - Virtual
filesystem service.
Jan 15 14:45:17 justa systemd[245414]: Removed slice session.slice - User Core
Session Slice.
Jan 15 14:45:17 justa systemd[245414]: Stopped target basic.target - Basic
System.
Jan 15 14:45:17 justa systemd[245414]: Stopped target paths.target - Paths.
Jan 15 14:45:17 justa systemd[245414]: Stopped target sockets.target - Sockets.
Jan 15 14:45:17 justa systemd[245414]: Stopped target timers.target - Timers.
Jan 15 14:45:17 justa systemd[245414]: Closed dbus.socket - D-Bus User Message
Bus Socket.
Jan 15 14:45:17 justa systemd[245414]: Closed dirmngr.socket - GnuPG network
certificate management daemon.
Jan 15 14:45:17 justa systemd[245414]: Closed gcr-ssh-agent.socket - GCR ssh-
agent wrapper.
Jan 15 14:45:17 justa systemd[245414]: Closed gnome-keyring-daemon.socket -
GNOME Keyring daemon.
Jan 15 14:45:17 justa systemd[245414]: Closed gpg-agent-browser.socket - GnuPG
cryptographic agent and passphrase cache (access for web browsers).
Jan 15 14:45:17 justa systemd[245414]: Closed gpg-agent-extra.socket - GnuPG
cryptographic agent and passphrase cache (restricted).
Jan 15 14:45:17 justa systemd[245414]: Closed gpg-agent-ssh.socket - GnuPG
cryptographic agent (ssh-agent emulation).
Jan 15 14:45:17 justa systemd[245414]: Closed gpg-agent.socket - GnuPG
cryptographic agent and passphrase cache.
Jan 15 14:45:17 justa systemd[245414]: Closed pulseaudio.socket - Sound System.
Jan 15 14:45:17 justa systemd[245414]: Removed slice app.slice - User
Application Slice.
Jan 15 14:45:17 justa systemd[245414]: Reached target shutdown.target -
Shutdown.
Jan 15 14:45:17 justa systemd[245414]: Finished systemd-exit.service - Exit the
Session.
Jan 15 14:45:17 justa systemd[245414]: Reached target exit.target - Exit the
Session.
Jan 15 14:45:17 justa (sd-pam)[245415]: pam_unix(systemd-user:session): session
closed for user lightdm
Jan 15 14:45:17 justa systemd[1]: user@108.service: Deactivated successfully.
Jan 15 14:45:17 justa systemd[1]: Stopped user@108.service - User Manager for
UID 108.
Jan 15 14:45:17 justa systemd[1]: Stopping user-runtime-dir@108.service - User
Runtime Directory /run/user/108...
Jan 15 14:45:17 justa systemd[1]: run-user-108.mount: Deactivated successfully.
Jan 15 14:45:17 justa systemd[1]: user-runtime-dir@108.service: Deactivated
successfully.
Jan 15 14:45:17 justa systemd[1]: Stopped user-runtime-dir@108.service - User
Runtime Directory /run/user/108.
Jan 15 14:45:17 justa systemd[1]: Removed slice user-108.slice - User Slice of
UID 108.
Jan 15 14:45:17 justa systemd[1]: user-108.slice: Consumed 2.266s CPU time,
64.9M memory peak.

Uid 108 is lightdm user in my system. It seems that lightdm always activate
locker and launch a new systemd user session automatically when idle, without
respecting my screen lock settings in Xfce, occupied display :0, which causes
this problem. I had checked configuration files of lightdm itself, but did not
find the way to solve this.

This problem has been exists on my two machines after recent updates, both of
them are using lightdm and xfce.

I am sure that first unlock is sent to lightdm itself in this bug, because if I
kill lightdm session manually firstly, I can unlock and back to Xfce by
inputting password only once.



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lightdm depends on:
ii  adduser                                3.137
ii  dbus                                   1.16.0-1
ii  debconf [debconf-2.0]                  1.5.89
ii  libaudit1                              1:4.0.2-2
ii  libc6                                  2.40-5
ii  libgcrypt20                            1.11.0-7
ii  libglib2.0-0t64                        2.82.4-1
ii  libpam-systemd [logind]                257.1-7
ii  libpam0g                               1.5.3-7+b1
ii  libxcb1                                1.17.0-2+b1
ii  libxdmcp6                              1:1.1.5-1
ii  lightdm-gtk-greeter [lightdm-greeter]  2.0.9-1

Versions of packages lightdm recommends:
ii  xserver-xorg  1:7.7+23.1

Versions of packages lightdm suggests:
pn  accountsservice  <none>
ii  upower           1.90.6-2
pn  xserver-xephyr   <none>

-- debconf information:
* shared/default-x-display-manager: lightdm
  lightdm/daemon_name: /usr/sbin/lightdm

Reply via email to