SDDM fails on boot because I switched to ZRAM?

I recently deleted my swap-partition and switched to ZRAM using systemd-swap. I don’t know why but after doing so I experienced that SDDM fails on boot several times and I have to ssh into my computer to reboot it. After three times it finally worked like normal and showed me a desktop instead of a black screen with a cursor.

Here’s the full journalctl log of today. I guess there were at least to reboots in between the logs that are not listed.

-- Reboot --
Nov 18 12:15:29 Desktop systemd-modules-load[404]: Failed to find module 'platform-integrity'
Nov 18 12:15:29 Desktop kernel: sp5100-tco sp5100-tco: Watchdog hardware is disabled
Nov 18 12:16:20 Desktop systemd[1]: avahi-daemon.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 18 12:16:20 Desktop systemd[1]: systemd-logind.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 18 12:16:20 Desktop systemd[1]: NetworkManager.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 18 12:16:20 Desktop systemd[1]: ModemManager.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 18 12:16:20 Desktop systemd[1]: polkit.service: Unexpected error response from GetNameOwner(): Connection terminated
Nov 18 12:16:20 Desktop sddm-helper[1379]: pam_systemd(sddm-autologin:session): Failed to create session: Message recipient disconnected from message bus w>
Nov 18 12:16:22 Desktop sddm[1181]: Failed to read display number from pipe
Nov 18 12:16:22 Desktop sddm[1181]: Display server failed to start. Exiting
Nov 18 12:16:22 Desktop systemd-coredump[1509]: Process 1181 (sddm) of user 0 dumped core.
                                                
                                                Stack trace of thread 1181:
                                                #0  0x00007fa8c7d66615 raise (libc.so.6 + 0x3d615)
                                                #1  0x00007fa8c7d4f862 abort (libc.so.6 + 0x26862)
                                                #2  0x00007fa8c817b9ac _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x909ac)
                                                #3  0x00005586aee9d0c8 n/a (sddm + 0x290c8)
                                                #4  0x00005586aeedf4b1 _ZN4SDDM4SeatC2ERK7QStringP7QObject (sddm + 0x6b4b1)
                                                #5  0x00005586aeee1081 _ZN4SDDM11SeatManager10createSeatERK7QString (sddm + 0x6d081)
                                                #6  0x00005586aeee1ec3 n/a (sddm + 0x6dec3)
                                                #1  0x00007fa8c7d4f862 abort (libc.so.6 + 0x26862)
                                                #2  0x00007fa8c817b9ac _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x909ac)
                                                #3  0x00005586aee9d0c8 n/a (sddm + 0x290c8)
                                                #4  0x00005586aeedf4b1 _ZN4SDDM4SeatC2ERK7QStringP7QObject (sddm + 0x6b4b1)
                                                #5  0x00005586aeee1081 _ZN4SDDM11SeatManager10createSeatERK7QString (sddm + 0x6d081)
                                                #6  0x00005586aeee1ec3 n/a (sddm + 0x6dec3)
                                                #5  0x00005586aeee1081 _ZN4SDDM11SeatManager10createSeatERK7QString (sddm + 0x6d081)
                                                #6  0x00005586aeee1ec3 n/a (sddm + 0x6dec3)
                                                #7  0x00007fa8c83d6036 n/a (libQt5Core.so.5 + 0x2eb036)
                                                #8  0x00005586aeee0080 _ZN4SDDM10LogindSeat19canGraphicalChangedEb (sddm + 0x6c080)
                                                #9  0x00007fa8c83d6036 n/a (libQt5Core.so.5 + 0x2eb036)
                                                #10 0x00007fa8c8d359f0 _ZN23QDBusPendingCallWatcher8finishedEPS_ (libQt5DBus.so.5 + 0x649f0)
                                                #11 0x00007fa8c83cb7e2 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e07e2)
                                                #12 0x00007fa8c839ecb0 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b3cb0)
                                                #13 0x00007fa8c83a17d3 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x2b67d3)
                                                #14 0x00007fa8c83f8304 n/a (libQt5Core.so.5 + 0x30d304)
                                                #15 0x00007fa8c6ed0914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                                #16 0x00007fa8c6f247d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                                #17 0x00007fa8c6ecf121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                                #18 0x00007fa8c83f7941 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30c941)
                                                #19 0x00007fa8c839d65c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b265c)
                                                #20 0x00007fa8c83a5af4 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2baaf4)
                                                #21 0x00005586aee9ff31 main (sddm + 0x2bf31)
                                                #22 0x00007fa8c7d51152 __libc_start_main (libc.so.6 + 0x28152)
                                                #23 0x00005586aeea023e _start (sddm + 0x2c23e)
                                                
                                                Stack trace of thread 1189:
                                                #0  0x00007fa8c7e1e46f __poll (libc.so.6 + 0xf546f)
                                                #1  0x00007fa8c6f2475f n/a (libglib-2.0.so.0 + 0xa675f)
                                                #2  0x00007fa8c6ecf121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                                #3  0x00007fa8c83f7941 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30c941)
                                                #4  0x00007fa8c839d65c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b265c)
                                                #5  0x00007fa8c81b7ca2 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccca2)
                                                #6  0x00007fa8c8ce8098 n/a (libQt5DBus.so.5 + 0x17098)
                                                #7  0x00007fa8c81b8e8f n/a (libQt5Core.so.5 + 0xcde8f)
                                                #8  0x00007fa8c7d103e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #9  0x00007fa8c7e29293 __clone (libc.so.6 + 0x100293)
Nov 18 12:16:45 Desktop sddm-helper[1543]: pam_systemd_home(sddm-autologin:account): Failed to query user record: Failed to activate service 'org.freedesktop.home1': timed out (service_start_timeout=25000ms)
Nov 18 12:16:45 Desktop sshd[1449]: pam_systemd_home(sshd:account): Failed to query user record: Failed to activate service 'org.freedesktop.home1': timed out (service_start_timeout=25000ms)
Nov 18 12:16:45 Desktop sshd[1447]: pam_systemd_home(sshd:account): Failed to query user record: Failed to activate service 'org.freedesktop.home1': timed out (service_start_timeout=25000ms)
Nov 18 12:16:45 Desktop sshd[1545]: pam_systemd_home(sshd:account): Failed to query user record: Failed to activate service 'org.freedesktop.home1': timed out (service_start_timeout=25000ms)
Nov 18 12:16:49 Desktop systemd-coredump[1601]: Process 1597 (sddm) of user 1000 dumped core.
                                                
                                                Stack trace of thread 1597:
                                                #0  0x00007f4354fe7615 raise (libc.so.6 + 0x3d615)
                                                #1  0x00007f4354fd0862 abort (libc.so.6 + 0x26862)
                                                #2  0x00007f43553fc9ac _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x909ac)
                                                #3  0x0000557159c6f0c8 n/a (sddm + 0x290c8)
                                                #4  0x0000557159cb14b1 _ZN4SDDM4SeatC2ERK7QStringP7QObject (sddm + 0x6b4b1)
                                                #5  0x0000557159cb3081 _ZN4SDDM11SeatManager10createSeatERK7QString (sddm + 0x6d081)
                                                #6  0x0000557159cb3ec3 n/a (sddm + 0x6dec3)
                                                #7  0x00007f4355657036 n/a (libQt5Core.so.5 + 0x2eb036)
                                                #8  0x0000557159cb2080 _ZN4SDDM10LogindSeat19canGraphicalChangedEb (sddm + 0x6c080)
                                                #9  0x00007f4355657036 n/a (libQt5Core.so.5 + 0x2eb036)
                                                #10 0x00007f4355fb69f0 _ZN23QDBusPendingCallWatcher8finishedEPS_ (libQt5DBus.so.5 + 0x649f0)
                                                #11 0x00007f435564c7e2 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e07e2)
                                                #12 0x00007f435561fcb0 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b3cb0)
                                                #13 0x00007f43556227d3 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x2b67d3)
                                                #14 0x00007f4355679304 n/a (libQt5Core.so.5 + 0x30d304)
                                                #15 0x00007f4354151914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                                #16 0x00007f43541a57d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                                #17 0x00007f4354150121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                                #18 0x00007f4355678941 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30c941)
                                                #19 0x00007f435561e65c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b265c)
                                                #20 0x00007f4355626af4 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2baaf4)
                                                #21 0x0000557159c71f31 main (sddm + 0x2bf31)
                                                #22 0x00007f4354fd2152 __libc_start_main (libc.so.6 + 0x28152)
                                                #23 0x0000557159c7223e _start (sddm + 0x2c23e)
                                                
                                                Stack trace of thread 1598:
                                                #0  0x00007f435509f46f __poll (libc.so.6 + 0xf546f)
                                                #1  0x00007f43541a575f n/a (libglib-2.0.so.0 + 0xa675f)
                                                #2  0x00007f4354150121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                                #3  0x00007f4355678941 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30c941)
                                                #4  0x00007f435561e65c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b265c)
                                                #5  0x00007f4355438ca2 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccca2)
                                                #6  0x00007f4355f69098 n/a (libQt5DBus.so.5 + 0x17098)
                                                #7  0x00007f4355439e8f n/a (libQt5Core.so.5 + 0xcde8f)
                                                #8  0x00007f4354f913e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #9  0x00007f43550aa293 __clone (libc.so.6 + 0x100293)
Nov 18 12:20:08 Desktop systemd-cryptsetup[1811]: Device luks-14ab5635-177f-4285-a1bc-67a452dca803 is still in use.
Nov 18 12:20:08 Desktop systemd-cryptsetup[1811]: Failed to deactivate: Device or resource busy
-- Reboot --
Nov 18 12:20:56 Desktop systemd-modules-load[412]: Failed to find module 'platform-integrity'
Nov 18 12:20:56 Desktop kernel: sp5100-tco sp5100-tco: Watchdog hardware is disabled
Nov 18 12:21:06 Desktop pulseaudio[1629]: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.service not found.

Here’s my system:

inxi -F
System:    Host: Desktop Kernel: 5.9.3-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.20.3 Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK MAX (MS-7C02) v: 1.0 serial: <superuser/root required> 
           UEFI: American Megatrends v: 3.70 date: 06/09/2020 
CPU:       Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP L2 cache: 3072 KiB 
           Speed: 2030 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2030 2: 2053 3: 2081 4: 3590 5: 2795 6: 2715 7: 2124 
           8: 2142 9: 2268 10: 1952 11: 2575 12: 2769 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] driver: amdgpu 
           v: kernel 
           Display: x11 server: X.Org 1.20.9 driver: amdgpu resolution: 2560x1440~60Hz 
           OpenGL: renderer: AMD Radeon RX 5700 (NAVI10 DRM 3.39.0 5.9.3-1-MANJARO LLVM 11.0.0) v: 4.6 Mesa 20.2.2 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 HDMI Audio driver: snd_hda_intel 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio driver: snd_hda_intel 
           Device-3: Yamaha Steinberg UR22mkII type: USB driver: snd-usb-audio 
           Sound Server: ALSA v: k5.9.3-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp34s0 state: up speed: 100 Mbps duplex 
           Device-2: Microsoft Xbox 360 Wireless Adapter type: USB driver: usbfs 
Drives:    Local Storage: total: 10.34 TiB used: 6.46 TiB (62.4%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
           ID-2: /dev/sdb vendor: Samsung model: SSD 840 EVO 120GB size: 111.79 GiB 
           ID-3: /dev/sdc vendor: Seagate model: ST4000DM004-2CV104 size: 3.64 TiB 
           ID-4: /dev/sdd vendor: Western Digital model: WD30EZRX-00D8PB0 size: 2.73 TiB 
           ID-5: /dev/sde vendor: Western Digital model: WD10EADS-00M2B0 size: 931.51 GiB 
           ID-6: /dev/sdf vendor: Seagate model: ST2000DM008-2FR102 size: 1.82 TiB 
           ID-7: /dev/sdg type: USB vendor: Seagate model: Expansion+ size: 931.51 GiB 
Partition: ID-1: / size: 211.60 GiB used: 46.30 GiB (21.9%) fs: ext4 dev: /dev/dm-0 
Swap:      ID-1: swap-1 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram0 
           ID-2: swap-2 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram1 
           ID-3: swap-3 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram2 
           ID-4: swap-4 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram3 
           ID-5: swap-5 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram4 
           ID-6: swap-6 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram5 
           ID-7: swap-7 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram6 
           ID-8: swap-8 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram7 
           ID-9: swap-9 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram8 
           ID-10: swap-10 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram9 
           ID-11: swap-11 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram10 
           ID-12: swap-12 type: zram size: 333.8 MiB used: 0 KiB (0.0%) dev: /dev/zram11 
Sensors:   System Temperatures: cpu: 39.6 C mobo: N/A gpu: amdgpu temp: 45.0 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 0 
Info:      Processes: 336 Uptime: 20m Memory: 15.65 GiB used: 3.55 GiB (22.7%) Shell: Bash inxi: 3.1.08

Try if sddm-0.19.0-2.1 fixes it for you.

Thanks for your answer, but I’m not sure where to get the sddm package from?

Just update your system.

sudo pacman -Syyu

:wink:

Haha, well, that update must’ve been pushed while writing my question, because I just updated before today. One reboot worked fine, I hope it stays that way and will report back if not. Thanks to both of you. :slight_smile:

Yesterday I had the same problem and it took two reboots to get to the desktop with sddm 0.19.0.2-1.
I just updated to sddm 0.19.0-2.2 and the problem unfortunately persisted.

To specifiy what’s happening, I start my computer and see a black screen with a grey cursor and white outlines. After a while the cursor disappears and reappears with the all-white design that I choose. Than nothing is happening anymore and I have to reboot using ssh from my laptop.

EDIT: Nevermind about the error log, the new lines where just about my broken iPod.

EDIT #2: For some reason I can’t even get to the desktop, but always get stuck at the black screen with a cursor.

EDIT #3: I just installed LightDM using a Manjaro USB-Stick and got to the desktop, but the systemd-error “Unexpected error response from GetNameOwner(): Connection terminated” is still there causing several services to fail, including lightdm and accounts-daemon. This seems to be the main issue.

EDIT #4: Now according to this post I commented out the two lines, uninstalled/disabled LightDM and enabled the sddm.service and I was able to boot to my desktop without any issue. Journalctl shows no errors anymore. This is only a workaround and actually I have no clue what I did in the config-file I just edited. But maybe someone can have a deeper look into it.

The same thing just happened on my laptop running Arch!
I know this is the Manjaro forum, but I thought this might still be interesting and could affect more users with similar systems. The same workaround worked to be able to boot to my desktop again.
Here’s the error log from journalctl:

Nov 26 12:24:24 laptop systemd[1]: Failed to start Network Manager Wait Online.
Nov 26 12:24:24 laptop systemd[1]: avahi-daemon.service: Unexpected error response from GetName>
Nov 26 12:24:24 laptop systemd[1]: bluetooth.service: Unexpected error response from GetNameOwn>
Nov 26 12:24:24 laptop systemd[1]: NetworkManager.service: Unexpected error response from GetNa>
Nov 26 12:24:24 laptop systemd[1]: systemd-logind.service: Unexpected error response from GetNa>
Nov 26 12:24:24 laptop systemd[1]: wpa_supplicant.service: Unexpected error response from GetNa>
Nov 26 12:24:24 laptop sddm-helper[960]: pam_systemd(sddm-autologin:session): Failed to create >
Nov 26 12:24:27 laptop sddm[869]: Failed to read display number from pipe
Nov 26 12:24:27 laptop sddm[869]: Could not start Display server on vt 1

I had similar issue and after investigating systemd-swap.service logs it seems like zswap is enabled by default which makes collisions with zram.

Try explicitly disable zswap by adding following line in /etc/systemd/swap.conf

zswap_enabled=1

before configuring zram there. Might help.

Also might be related to a known issue

Thanks, but isn’t this going to enable it and it should be “0” to be disabled?

zswap_enabled=1

Also I already linked this known issue in one of my replies.

EDIT:
Besides that, this seems to be the solution.
I uncommented the two lines in /etc/nsswitch.conf and also uncommented the line zswap_enabled=1 and set it to 0.

EDIT #2:
Aaand it wasn’t the solution. After another reboot I had the same errors and had to comment out the lines in nsswitch.conf to boot to DE.