You are not logged in.

#1 2023-03-17 22:39:08

robotux
Member
Registered: 2020-07-01
Posts: 5

can't login via lightdm into sway

I can't login via lightdm into sway. If I log via tty and start sway manually - it works as expected.

1. After the initial boot the lightdm-gtk-greeter is displayed.
2. I fill in credentials & credentials are accepted
3. Black screen appears with blinking top left cursor, then after 2-3s I get presented again with the greeter.

The config for a greeter was not changed and the lightdm.conf just 1 line:

[Seat:*]
greeter-session=lightdm-gtk-greeter

Here are logs when lightdm comes up.
It seems my user rob authenticates but does not reach "sway" - so it's rolled all backed to the greeter.

Mar 17 21:41:08 arch-main dbus-daemon[1054]: [system] Activating via systemd: service name='org.freedesktop.Accounts' unit='accounts-daemon.service' requested by ':1.6' (uid=0 pid=1080 comm="/usr/bin/lightdm")
Mar 17 21:41:08 arch-main systemd[1]: Reached target User and Group Name Lookups.
Mar 17 21:41:08 arch-main systemd[1]: Starting Accounts Service...
Mar 17 21:41:08 arch-main dbus-daemon[1054]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.7' (uid=0 pid=1087 comm="/usr/lib/accounts-daemon")
Mar 17 21:41:08 arch-main systemd[1]: Starting Authorization Manager...
Mar 17 21:41:08 arch-main polkitd[1092]: Started polkitd version 122
Mar 17 21:41:08 arch-main polkitd[1092]: Loading rules from directory /etc/polkit-1/rules.d
Mar 17 21:41:08 arch-main polkitd[1092]: Loading rules from directory /usr/share/polkit-1/rules.d
Mar 17 21:41:08 arch-main polkitd[1092]: Finished loading, compiling and executing 4 rules
Mar 17 21:41:08 arch-main dbus-daemon[1054]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Mar 17 21:41:08 arch-main systemd[1]: Started Authorization Manager.
Mar 17 21:41:08 arch-main polkitd[1092]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Mar 17 21:41:08 arch-main accounts-daemon[1087]: started daemon version 22.08.0
Mar 17 21:41:08 arch-main dbus-daemon[1054]: [system] Successfully activated service 'org.freedesktop.Accounts'
Mar 17 21:41:08 arch-main systemd[1]: Started Accounts Service.
Mar 17 21:41:08 arch-main kernel: Bluetooth: hci1: AOSP extensions version v1.00
Mar 17 21:41:08 arch-main kernel: Bluetooth: hci1: AOSP quality report is supported
Mar 17 21:41:08 arch-main kernel: amdgpu 0000:03:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
Mar 17 21:41:08 arch-main kernel: amdgpu 0000:14:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
Mar 17 21:41:09 arch-main lightdm[1119]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=971) by (uid=0)
Mar 17 21:41:09 arch-main systemd[1]: Created slice User Slice of UID 971.
Mar 17 21:41:09 arch-main systemd[1]: Starting User Runtime Directory /run/user/971...
Mar 17 21:41:09 arch-main systemd-logind[1058]: New session c1 of user lightdm.
Mar 17 21:41:09 arch-main systemd[1]: Finished User Runtime Directory /run/user/971.
Mar 17 21:41:09 arch-main systemd[1]: Starting User Manager for UID 971...
Mar 17 21:41:09 arch-main (systemd)[1124]: pam_systemd_home(systemd-user:account): Not a user managed by systemd-homed: No home for user lightdm known
Mar 17 21:41:09 arch-main (systemd)[1124]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[lightdm] ruser=[<unknown>] rhost=[<unknown>]
Mar 17 21:41:09 arch-main (systemd)[1124]: pam_unix(systemd-user:session): session opened for user lightdm(uid=971) by (uid=0)
Mar 17 21:41:09 arch-main systemd[1124]: Queued start job for default target Main User Target.
Mar 17 21:41:09 arch-main systemd[1124]: Created slice User Application Slice.
Mar 17 21:41:09 arch-main systemd[1124]: Reached target Paths.
Mar 17 21:41:09 arch-main systemd[1124]: Reached target Timers.
Mar 17 21:41:09 arch-main systemd[1124]: Starting D-Bus User Message Bus Socket...
Mar 17 21:41:09 arch-main systemd[1124]: Listening on GnuPG network certificate management daemon.
Mar 17 21:41:09 arch-main systemd[1124]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 17 21:41:09 arch-main systemd[1124]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Mar 17 21:41:09 arch-main systemd[1124]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Mar 17 21:41:09 arch-main systemd[1124]: Listening on GnuPG cryptographic agent and passphrase cache.
Mar 17 21:41:09 arch-main systemd[1124]: Listening on p11-kit server.
Mar 17 21:41:09 arch-main systemd[1124]: Listening on PipeWire PulseAudio.
Mar 17 21:41:09 arch-main systemd[1124]: Listening on PipeWire Multimedia System Socket.
Mar 17 21:41:09 arch-main systemd[1124]: Listening on D-Bus User Message Bus Socket.
Mar 17 21:41:09 arch-main systemd[1124]: Reached target Sockets.
Mar 17 21:41:09 arch-main systemd[1124]: Reached target Basic System.
Mar 17 21:41:09 arch-main systemd[1]: Started User Manager for UID 971.
Mar 17 21:41:09 arch-main systemd[1124]: Starting Update XDG user dir configuration...
Mar 17 21:41:09 arch-main systemd[1]: Started Session c1 of User lightdm.
Mar 17 21:41:09 arch-main systemd[1124]: Finished Update XDG user dir configuration.
Mar 17 21:41:09 arch-main systemd[1124]: Reached target Main User Target.
Mar 17 21:41:09 arch-main systemd[1124]: Startup finished in 63ms.
Mar 17 21:41:09 arch-main systemd[1124]: Created slice User Core Session Slice.
Mar 17 21:41:09 arch-main systemd[1124]: Starting D-Bus User Message Bus...
Mar 17 21:41:09 arch-main systemd[1124]: Started D-Bus User Message Bus.
Mar 17 21:41:09 arch-main dbus-daemon[1138]: [session uid=971 pid=1138] Activating systemd to hand-off: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.0' (uid=971 pid=1132 comm="/usr/bin/lightdm-gtk-greeter")
Mar 17 21:41:09 arch-main dbus-daemon[1138]: [session uid=971 pid=1138] Successfully activated service 'org.freedesktop.systemd1'
Mar 17 21:41:09 arch-main systemd[1124]: Starting Accessibility services bus...
Mar 17 21:41:09 arch-main dbus-daemon[1138]: [session uid=971 pid=1138] Successfully activated service 'org.a11y.Bus'
Mar 17 21:41:09 arch-main systemd[1124]: Started Accessibility services bus.
Mar 17 21:41:09 arch-main dbus-daemon[1138]: [session uid=971 pid=1138] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.3' (uid=971 pid=1132 comm="/usr/bin/lightdm-gtk-greeter")
Mar 17 21:41:09 arch-main systemd[1124]: Starting Virtual filesystem service...
Mar 17 21:41:09 arch-main dbus-daemon[1138]: [session uid=971 pid=1138] Successfully activated service 'org.gtk.vfs.Daemon'
Mar 17 21:41:09 arch-main systemd[1124]: Started Virtual filesystem service.
Mar 17 21:41:09 arch-main at-spi-bus-launcher[1146]: dbus-daemon[1146]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=971 pid=1132 comm="/usr/bin/lightdm-gtk-greeter")
Mar 17 21:41:09 arch-main lightdm[1175]: pam_systemd_home(lightdm:auth): Not a user managed by systemd-homed: No home for user rob known
Mar 17 21:41:09 arch-main at-spi-bus-launcher[1146]: dbus-daemon[1146]: Successfully activated service 'org.a11y.atspi.Registry'
Mar 17 21:41:09 arch-main at-spi-bus-launcher[1177]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Mar 17 21:41:10 arch-main systemd-networkd-wait-online[1016]: wlan0: Failed to update link state, ignoring: No such file or directory
Mar 17 21:41:10 arch-main kernel: mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
Mar 17 21:41:10 arch-main systemd-networkd[888]: wlan0: Interface name change detected, renamed to wlp13s0.
Mar 17 21:41:11 arch-main lightdm[1175]: pam_unix(lightdm:session): session opened for user rob(uid=1000) by (uid=0)
Mar 17 21:41:11 arch-main systemd-logind[1058]: New session 2 of user rob.
Mar 17 21:41:11 arch-main systemd[1]: Created slice User Slice of UID 1000.
Mar 17 21:41:11 arch-main systemd[1]: Starting User Runtime Directory /run/user/1000...
Mar 17 21:41:11 arch-main systemd[1]: Finished User Runtime Directory /run/user/1000.
Mar 17 21:41:11 arch-main systemd[1]: Starting User Manager for UID 1000...
Mar 17 21:41:11 arch-main (systemd)[1191]: pam_systemd_home(systemd-user:account): Not a user managed by systemd-homed: No home for user rob known
Mar 17 21:41:11 arch-main (systemd)[1191]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[rob] ruser=[<unknown>] rhost=[<unknown>]
Mar 17 21:41:11 arch-main (systemd)[1191]: pam_unix(systemd-user:session): session opened for user rob(uid=1000) by (uid=0)
Mar 17 21:41:11 arch-main systemd[1191]: Queued start job for default target Main User Target.
Mar 17 21:41:11 arch-main systemd-journald[834]: /var/log/journal/04d6175d165247ab992d058d65754350/user-1000.journal: Monotonic clock jumped backwards relative to last journal entry, rotating.
Mar 17 21:41:11 arch-main kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
Mar 17 21:41:11 arch-main kernel: r8169 0000:0c:00.0 eno1: Link is Up - 1Gbps/Full - flow control rx/tx
Mar 17 21:41:11 arch-main dbus-daemon[1206]: [session uid=1000 pid=1206] Successfully activated service 'org.freedesktop.systemd1'
Mar 17 21:41:11 arch-main systemd[1191]: Created slice User Application Slice.
Mar 17 21:41:11 arch-main lightdm[1119]: pam_unix(lightdm-greeter:session): session closed for user lightdm
Mar 17 21:41:11 arch-main systemd[1191]: Reached target Paths.
Mar 17 21:41:11 arch-main dbus-daemon[1054]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.2' (uid=980 pid=888 comm="/usr/lib/systemd/systemd-networkd")
Mar 17 21:41:11 arch-main systemd[1191]: Reached target Timers.
Mar 17 21:41:11 arch-main systemd[1191]: Starting D-Bus User Message Bus Socket...
Mar 17 21:41:11 arch-main systemd[1191]: Listening on GnuPG network certificate management daemon.
Mar 17 21:41:11 arch-main systemd[1191]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 17 21:41:11 arch-main systemd[1191]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Mar 17 21:41:11 arch-main systemd[1191]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Mar 17 21:41:11 arch-main systemd[1191]: Listening on GnuPG cryptographic agent and passphrase cache.
Mar 17 21:41:11 arch-main systemd[1191]: Listening on p11-kit server.
Mar 17 21:41:11 arch-main systemd[1191]: Listening on PipeWire PulseAudio.
Mar 17 21:41:11 arch-main systemd[1191]: Listening on PipeWire Multimedia System Socket.
Mar 17 21:41:11 arch-main systemd[1191]: Listening on D-Bus User Message Bus Socket.
Mar 17 21:41:11 arch-main systemd[1191]: Reached target Sockets.
Mar 17 21:41:11 arch-main systemd[1191]: Reached target Basic System.
Mar 17 21:41:11 arch-main systemd[1]: Started User Manager for UID 1000.
Mar 17 21:41:11 arch-main systemd[1191]: Starting Update XDG user dir configuration...
Mar 17 21:41:11 arch-main systemd[1]: Started Session 2 of User rob.
Mar 17 21:41:11 arch-main systemd[1191]: Finished Update XDG user dir configuration.
Mar 17 21:41:11 arch-main systemd[1191]: Reached target Main User Target.
Mar 17 21:41:11 arch-main systemd[1191]: Startup finished in 65ms.
Mar 17 21:41:11 arch-main systemd[1191]: Created slice User Core Session Slice.
Mar 17 21:41:11 arch-main systemd[1191]: Starting D-Bus User Message Bus...
Mar 17 21:41:11 arch-main systemd[1191]: Started D-Bus User Message Bus.
Mar 17 21:41:11 arch-main systemd-networkd[888]: eno1: Gained carrier
Mar 17 21:41:11 arch-main systemd[1]: Stopping Session c1 of User lightdm...
Mar 17 21:41:11 arch-main systemd[1]: session-c1.scope: Deactivated successfully.
Mar 17 21:41:11 arch-main systemd[1]: Stopped Session c1 of User lightdm.
Mar 17 21:41:11 arch-main systemd-logind[1058]: Removed session c1.
Mar 17 21:41:11 arch-main systemd-networkd[888]: eno1: DHCPv4 address 192.168.1.227/24, gateway 192.168.1.1 acquired from 192.168.1.1
Mar 17 21:41:11 arch-main systemd-timesyncd[1044]: Network configuration changed, trying to establish connection.
Mar 17 21:41:11 arch-main systemd[1]: Starting Hostname Service...
Mar 17 21:41:11 arch-main dbus-daemon[1054]: [system] Successfully activated service 'org.freedesktop.hostname1'
Mar 17 21:41:11 arch-main systemd[1]: Started Hostname Service.
Mar 17 21:41:11 arch-main systemd-hostnamed[1212]: Hostname set to <arch-main> (static)
Mar 17 21:41:12 arch-main systemd-timesyncd[1044]: Contacted time server 81.27.192.20:123 (0.arch.pool.ntp.org).
Mar 17 21:41:12 arch-main systemd-timesyncd[1044]: Initial clock synchronization to Fri 2023-03-17 21:41:11.788202 CET.
Mar 17 21:41:12 arch-main systemd-networkd[888]: eno1: Gained IPv6LL
Mar 17 21:41:12 arch-main systemd-timesyncd[1044]: Network configuration changed, trying to establish connection.
Mar 17 21:41:12 arch-main systemd-timesyncd[1044]: Contacted time server 81.27.192.20:123 (0.arch.pool.ntp.org).
Mar 17 21:41:12 arch-main systemd[1]: Finished Wait for Network to be Configured.
Mar 17 21:41:12 arch-main systemd[1]: Reached target Network is Online.
Mar 17 21:41:12 arch-main systemd[1]: Starting Refresh Pacman mirrorlist with Reflector....
Mar 17 21:41:13 arch-main systemd[1]: reflector.service: Deactivated successfully.
Mar 17 21:41:13 arch-main systemd[1]: Finished Refresh Pacman mirrorlist with Reflector..
Mar 17 21:41:13 arch-main systemd[1]: Reached target Multi-User System.
Mar 17 21:41:13 arch-main systemd[1]: Reached target Graphical Interface.
Mar 17 21:41:13 arch-main systemd[1]: Startup finished in 11.484s (firmware) + 419ms (loader) + 3.434s (kernel) + 16.682s (initrd) + 5.932s (userspace) = 37.954s.
Mar 17 21:41:15 arch-main systemd[1]: systemd-rfkill.service: Deactivated successfully.
Mar 17 21:41:21 arch-main lightdm[1175]: pam_unix(lightdm:session): session closed for user rob
Mar 17 21:41:21 arch-main systemd[1]: session-2.scope: Deactivated successfully.
Mar 17 21:41:21 arch-main systemd-logind[1058]: Session 2 logged out. Waiting for processes to exit.
Mar 17 21:41:21 arch-main systemd-logind[1058]: Removed session 2.
Mar 17 21:41:21 arch-main systemd[1]: Stopping User Manager for UID 971...
Mar 17 21:41:21 arch-main systemd[1124]: Activating special unit Exit the Session...
Mar 17 21:41:21 arch-main systemd[1124]: Stopped target Main User Target.
Mar 17 21:41:21 arch-main systemd[1124]: Stopping Accessibility services bus...
Mar 17 21:41:21 arch-main gvfsd[1149]: A connection to the bus can't be made
Mar 17 21:41:21 arch-main systemd[1124]: Stopping D-Bus User Message Bus...
Mar 17 21:41:21 arch-main systemd[1124]: Stopping Virtual filesystem service...
Mar 17 21:41:21 arch-main systemd[1124]: Stopped Accessibility services bus.
Mar 17 21:41:21 arch-main systemd[1124]: Stopped D-Bus User Message Bus.
Mar 17 21:41:21 arch-main systemd[1]: run-user-971-gvfs.mount: Deactivated successfully.
Mar 17 21:41:21 arch-main systemd[1124]: Stopped Virtual filesystem service.
Mar 17 21:41:21 arch-main systemd[1124]: Removed slice User Core Session Slice.
Mar 17 21:41:21 arch-main systemd[1124]: Stopped target Basic System.
Mar 17 21:41:21 arch-main systemd[1124]: Stopped target Paths.
Mar 17 21:41:21 arch-main systemd[1124]: Stopped target Sockets.
Mar 17 21:41:21 arch-main systemd[1124]: Stopped target Timers.
Mar 17 21:41:21 arch-main systemd[1124]: Closed D-Bus User Message Bus Socket.
Mar 17 21:41:21 arch-main systemd[1124]: Closed GnuPG network certificate management daemon.
Mar 17 21:41:21 arch-main systemd[1124]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 17 21:41:21 arch-main systemd[1124]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Mar 17 21:41:21 arch-main systemd[1124]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Mar 17 21:41:21 arch-main systemd[1124]: Closed GnuPG cryptographic agent and passphrase cache.
Mar 17 21:41:21 arch-main systemd[1124]: Closed p11-kit server.
Mar 17 21:41:21 arch-main systemd[1124]: Closed PipeWire PulseAudio.
Mar 17 21:41:21 arch-main systemd[1124]: Closed PipeWire Multimedia System Socket.
Mar 17 21:41:21 arch-main systemd[1124]: Removed slice User Application Slice.
Mar 17 21:41:21 arch-main systemd[1124]: Reached target Shutdown.
Mar 17 21:41:21 arch-main systemd[1124]: Finished Exit the Session.
Mar 17 21:41:21 arch-main systemd[1124]: Reached target Exit the Session.
Mar 17 21:41:21 arch-main (sd-pam)[1125]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8004 service=[systemd-user] terminal=[] user=[lightdm] ruser=[<unknown>] rhost=[<unknown>]
Mar 17 21:41:21 arch-main systemd[1]: user@971.service: Deactivated successfully.
Mar 17 21:41:21 arch-main systemd[1]: Stopped User Manager for UID 971.
Mar 17 21:41:21 arch-main systemd[1]: Stopping User Runtime Directory /run/user/971...
Mar 17 21:41:21 arch-main systemd[1]: run-user-971.mount: Deactivated successfully.
Mar 17 21:41:21 arch-main systemd[1]: user-runtime-dir@971.service: Deactivated successfully.
Mar 17 21:41:21 arch-main systemd[1]: Stopped User Runtime Directory /run/user/971.
Mar 17 21:41:21 arch-main systemd[1]: Removed slice User Slice of UID 971.
Mar 17 21:41:22 arch-main lightdm[1239]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=971) by (uid=0)
Mar 17 21:41:22 arch-main systemd[1]: Created slice User Slice of UID 971.
Mar 17 21:41:22 arch-main systemd[1]: Starting User Runtime Directory /run/user/971...
Mar 17 21:41:22 arch-main systemd-logind[1058]: New session c2 of user lightdm.
Mar 17 21:41:22 arch-main systemd[1]: Finished User Runtime Directory /run/user/971.
Mar 17 21:41:22 arch-main systemd[1]: Starting User Manager for UID 971...
Mar 17 21:41:22 arch-main (systemd)[1244]: pam_systemd_home(systemd-user:account): Not a user managed by systemd-homed: No home for user lightdm known
Mar 17 21:41:22 arch-main (systemd)[1244]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[lightdm] ruser=[<unknown>] rhost=[<unknown>]
Mar 17 21:41:22 arch-main (systemd)[1244]: pam_unix(systemd-user:session): session opened for user lightdm(uid=971) by (uid=0)
Mar 17 21:41:22 arch-main systemd[1244]: Queued start job for default target Main User Target.
Mar 17 21:41:22 arch-main systemd[1244]: Created slice User Application Slice.
Mar 17 21:41:22 arch-main systemd[1244]: Reached target Paths.
Mar 17 21:41:22 arch-main systemd[1244]: Reached target Timers.
Mar 17 21:41:22 arch-main systemd[1244]: Starting D-Bus User Message Bus Socket...
Mar 17 21:41:22 arch-main systemd[1244]: Listening on GnuPG network certificate management daemon.
Mar 17 21:41:22 arch-main systemd[1244]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 17 21:41:22 arch-main systemd[1244]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Mar 17 21:41:22 arch-main systemd[1244]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Mar 17 21:41:22 arch-main systemd[1244]: Listening on GnuPG cryptographic agent and passphrase cache.
Mar 17 21:41:22 arch-main systemd[1244]: Listening on p11-kit server.
Mar 17 21:41:22 arch-main systemd[1244]: Listening on PipeWire PulseAudio.
Mar 17 21:41:22 arch-main systemd[1244]: Listening on PipeWire Multimedia System Socket.
Mar 17 21:41:22 arch-main systemd[1244]: Listening on D-Bus User Message Bus Socket.
Mar 17 21:41:22 arch-main systemd[1244]: Reached target Sockets.
Mar 17 21:41:22 arch-main systemd[1244]: Reached target Basic System.
Mar 17 21:41:22 arch-main systemd[1]: Started User Manager for UID 971.
Mar 17 21:41:22 arch-main systemd[1244]: Starting Update XDG user dir configuration...
Mar 17 21:41:22 arch-main systemd[1]: Started Session c2 of User lightdm.
Mar 17 21:41:22 arch-main systemd[1244]: Finished Update XDG user dir configuration.
Mar 17 21:41:22 arch-main systemd[1244]: Reached target Main User Target.
Mar 17 21:41:22 arch-main systemd[1244]: Startup finished in 62ms.
Mar 17 21:41:22 arch-main systemd[1244]: Created slice User Core Session Slice.
Mar 17 21:41:22 arch-main systemd[1244]: Starting D-Bus User Message Bus...
Mar 17 21:41:22 arch-main systemd[1244]: Started D-Bus User Message Bus.
Mar 17 21:41:22 arch-main dbus-daemon[1258]: [session uid=971 pid=1258] Activating systemd to hand-off: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.0' (uid=971 pid=1252 comm="/usr/bin/lightdm-gtk-greeter")
Mar 17 21:41:22 arch-main dbus-daemon[1258]: [session uid=971 pid=1258] Successfully activated service 'org.freedesktop.systemd1'
Mar 17 21:41:22 arch-main systemd[1244]: Starting Accessibility services bus...
Mar 17 21:41:22 arch-main dbus-daemon[1258]: [session uid=971 pid=1258] Successfully activated service 'org.a11y.Bus'
Mar 17 21:41:22 arch-main systemd[1244]: Started Accessibility services bus.
Mar 17 21:41:22 arch-main dbus-daemon[1258]: [session uid=971 pid=1258] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.3' (uid=971 pid=1252 comm="/usr/bin/lightdm-gtk-greeter")
Mar 17 21:41:22 arch-main systemd[1244]: Starting Virtual filesystem service...
Mar 17 21:41:22 arch-main dbus-daemon[1258]: [session uid=971 pid=1258] Successfully activated service 'org.gtk.vfs.Daemon'
Mar 17 21:41:22 arch-main systemd[1244]: Started Virtual filesystem service.

Also found in ~/.xsession-errors. But still need to confirm if it was generated from tty login or the lightdm.

00:00:10.013 [ERROR] [wlr] [backend/backend.c:114] Timeout waiting session to become active
00:00:10.013 [ERROR] [wlr] [backend/backend.c:357] Failed to start a DRM session
00:00:10.013 [ERROR] [sway/server.c:73] Unable to create backend

Here's /var/log/lightdm/lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=1072
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 1078: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.05s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.05s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.39s] DEBUG: Got signal 10 from process 1078
[+0.39s] DEBUG: XServer 0: Got signal from X server :0
[+0.39s] DEBUG: XServer 0: Connecting to XServer :0
[+0.41s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.41s] DEBUG: Session pid=1112: Started with service 'lightdm-greeter', username 'lightdm'
[+0.43s] DEBUG: Session pid=1112: Authentication complete with return value 0: Success
[+0.43s] DEBUG: Seat seat0: Session authenticated, running command
[+0.43s] DEBUG: Session pid=1112: Running command /usr/bin/lightdm-gtk-greeter
[+0.43s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.43s] DEBUG: Session pid=1112: Logging to /var/log/lightdm/seat0-greeter.log
[+0.53s] DEBUG: Activating VT 7
[+0.53s] DEBUG: Activating login1 session c1
[+0.53s] DEBUG: Seat seat0 changes active session to c1
[+0.53s] DEBUG: Session c1 is already active
[+0.63s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+0.67s] DEBUG: Greeter start authentication for rob
[+0.67s] DEBUG: Session pid=1168: Started with service 'lightdm', username 'rob'
[+0.67s] DEBUG: Session pid=1168: Got 1 message(s) from PAM
[+0.67s] DEBUG: Prompt greeter with 1 message(s)
[+7.86s] DEBUG: Continue authentication
[+7.86s] DEBUG: Session pid=1168: Authentication complete with return value 0: Success
[+7.86s] DEBUG: Authenticate result for user rob: Success
[+7.86s] DEBUG: User rob authorized
[+7.89s] DEBUG: Greeter requests session sway
[+7.89s] DEBUG: Seat seat0: Creating display server of type wayland
[+7.89s] DEBUG: Using VT 8
[+7.89s] DEBUG: Seat seat0: Display server ready, running session
[+7.89s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+7.89s] DEBUG: Session pid=1168: Running command /etc/lightdm/Xsession sway
[+7.89s] DEBUG: Creating shared data directory /var/lib/lightdm-data/rob
[+7.89s] DEBUG: Session pid=1168: Logging to .xsession-errors
[+7.99s] DEBUG: Activating VT 8
[+8.05s] DEBUG: Seat seat0: Stopping greeter
[+8.05s] DEBUG: Terminating login1 session c1
[+8.05s] DEBUG: Session pid=1112: Sending SIGTERM
[+8.05s] DEBUG: Activating login1 session 2
[+8.05s] DEBUG: Seat seat0 changes active session to 2
[+8.05s] DEBUG: Session 2 is already active
[+8.07s] DEBUG: Greeter closed communication channel
[+8.07s] DEBUG: Session pid=1112: Exited with return value 0
[+8.07s] DEBUG: Seat seat0: Session stopped
[+8.07s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+8.07s] DEBUG: Sending signal 15 to process 1078
[+8.23s] DEBUG: Process 1078 exited with return value 0
[+8.23s] DEBUG: XServer 0: X server stopped
[+8.23s] DEBUG: Releasing VT 7
[+8.23s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+8.23s] DEBUG: Seat seat0: Display server stopped
[+18.04s] DEBUG: Session pid=1168: Exited with return value 1
[+18.04s] DEBUG: Seat seat0: Session stopped
[+18.04s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+18.04s] DEBUG: Seat seat0: Display server stopped
[+18.04s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+18.04s] DEBUG: Seat seat0: Creating greeter session
[+18.04s] DEBUG: Seat seat0: Creating display server of type x
[+18.04s] DEBUG: Using VT 7
[+18.04s] DEBUG: Seat seat0: Starting local X display on VT 7
[+18.04s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+18.04s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+18.04s] DEBUG: XServer 0: Launching X Server
[+18.05s] DEBUG: Launching process 1215: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+18.05s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+18.05s] DEBUG: Releasing VT 8
[+18.06s] DEBUG: Seat seat0 changes active session to
[+18.33s] DEBUG: Got signal 10 from process 1215
[+18.33s] DEBUG: XServer 0: Got signal from X server :0
[+18.33s] DEBUG: XServer 0: Connecting to XServer :0
[+18.35s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+18.35s] DEBUG: Session pid=1232: Started with service 'lightdm-greeter', username 'lightdm'
[+18.53s] DEBUG: Session pid=1232: Authentication complete with return value 0: Success
[+18.53s] DEBUG: Seat seat0: Session authenticated, running command
[+18.53s] DEBUG: Session pid=1232: Running command /usr/bin/lightdm-gtk-greeter
[+18.53s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+18.53s] DEBUG: Session pid=1232: Logging to /var/log/lightdm/seat0-greeter.log
[+18.64s] DEBUG: Activating VT 7
[+18.64s] DEBUG: Activating login1 session c2
[+18.64s] DEBUG: Seat seat0 changes active session to c2
[+18.64s] DEBUG: Session c2 is already active
[+18.72s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+18.75s] DEBUG: Greeter start authentication for rob
[+18.75s] DEBUG: Session pid=1289: Started with service 'lightdm', username 'rob'
[+18.75s] DEBUG: Session pid=1289: Got 1 message(s) from PAM
[+18.75s] DEBUG: Prompt greeter with 1 message(s)
[+22.82s] DEBUG: Seat seat0 changes active session to
[+27.45s] DEBUG: Seat seat0 changes active session to 5
[+279.46s] DEBUG: Seat seat0 changes active session to
[+283.09s] DEBUG: Seat seat0 changes active session to 7

Here's /var/log/lightdm/seat0-greeter.log

** Message: 23:01:48.938: Starting lightdm-gtk-greeter 2.0.8 (Sep  6 2022, 14:12:08)
** Message: 23:01:48.939: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf

(lightdm-gtk-greeter:1247): Gtk-WARNING **: 23:01:49.033: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:1247): Gtk-WARNING **: 23:01:49.065: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

Can anybody point me to the right direction?
Thanks!

Last edited by robotux (2023-03-17 23:04:20)

Offline

#2 2023-03-18 16:47:16

snakeroot
Member
Registered: 2012-10-06
Posts: 165

Re: can't login via lightdm into sway

You may wish to switch away from lightdm.

From personal experience, SDDM works. There's also a list of known-good login managers in the Sway wiki.

Note that Swaywm does not officially support display managers and Sway devs will close any display-manager-based bug reports.

Offline

Board footer

Powered by FluxBB