Bug 479359 - sddm-helper-start-wayland fails/exits after manually turn on monitors
Summary: sddm-helper-start-wayland fails/exits after manually turn on monitors
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.91.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2024-01-03 15:17 UTC by Jean-Francois Roy
Modified: 2024-03-10 00:47 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Roy 2024-01-03 15:17:22 UTC
# Summary

I turned off my 2 monitors overnight with the computer at SDDM waiting for login and turned them back on in the morning. This led to `sddm-helper-start-wayland` to fail and SDDM to exit, leaving me with a broken/empty TTY.

Logs:

```
Jan 03 06:53:58 wave5 sddm-helper-start-wayland[44348]: "kwin_core: Parse error in tiles configuration for monitor \"92e842d7-5928-5c43-884a-4912e7cc82ed\" : \"illegal value\" Creating default setup\n"
Jan 03 06:53:58 wave5 sddm-greeter[44353]: Creating a fake screen in order for Qt not to crash
Jan 03 06:53:58 wave5 sddm-greeter[44353]: Loading file:///usr/share/sddm/themes/breeze/Main.qml...
Jan 03 06:53:58 wave5 sddm-greeter[44353]: Failed to find a Kirigami platform plugin
Jan 03 06:53:58 wave5 sddm-greeter[44353]: Adding view for "" QRect(0,0 0x0)
Jan 03 06:53:59 wave5 sddm-helper-start-wayland[44348]: "kwin_core: Could not find any suitable output for a layer surface\n"
Jan 03 06:53:59 wave5 sddm-helper-start-wayland[44348]: wayland greeter finished 0 QProcess::NormalExit
Jan 03 06:53:59 wave5 sddm-helper-start-wayland[44348]: quitting helper-start-wayland
Jan 03 06:53:59 wave5 sddm-helper-start-wayland[44348]: Stopping... "kwin_wayland"
Jan 03 06:53:59 wave5 sddm-helper-start-wayland[44348]: "QtDBus: cannot relay signals from parent QObject(0x55ad50323b20 \"\") unless they are emitted in the object's thread QThread(0x55ad50183238 \"libinput-connection\"). Current thread is QThread(0x55ad501328f0 \"\").\n"
Jan 03 06:53:59 wave5 xdg-desktop-por[44492]: Error reading events from display: Broken pipe
Jan 03 06:53:59 wave5 systemd[44295]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Jan 03 06:53:59 wave5 systemd[44295]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Jan 03 06:53:59 wave5 sddm-helper-start-wayland[44348]: wayland compositor finished 15 QProcess::NormalExit
Jan 03 06:53:59 wave5 sddm-helper-start-wayland[44348]: quitting helper-start-wayland
Jan 03 06:53:59 wave5 sddm-helper[44279]: [PAM] Closing session
Jan 03 06:53:59 wave5 sddm-helper[44279]: pam_unix(sddm-greeter:session): session closed for user sddm
Jan 03 06:53:59 wave5 sddm-helper[44279]: [PAM] Ended.
Jan 03 06:53:59 wave5 sddm[1193]: Auth: sddm-helper exited successfully
Jan 03 06:53:59 wave5 systemd-logind[1050]: Session c6 logged out. Waiting for processes to exit.
Jan 03 06:53:59 wave5 sddm[1193]: Greeter stopped. SDDM::Auth::HELPER_SUCCESS
Jan 03 06:53:59 wave5 systemd[1]: session-c6.scope: Deactivated successfully.
```

I had to open a console session in another TTY and restart `sddm.service`.

# Configuration

/etc/sddm.conf.d/10-wayland.conf 
```
[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell

[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1
```

/etc/sddm.conf.d/kde_settings.conf
``` 
[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=/usr/bin/systemctl poweroff
RebootCommand=/usr/bin/systemctl reboot

[Theme]
Current=breeze
CursorSize=
CursorTheme=breeze_cursors
Font=Noto Sans,10,-1,0,400,0,0,0,0,0,0,0,0,0,0,1

[Users]
MaximumUid=60513
MinimumUid=1000
```

# System info

Arch Linux
Linux: 6.6.9-arch1-1
Nvidia: 545.29.06 (open dkms)
sddm: 0.20.0-3

Running KDE Plasma 6.0 Beta 2 from Arch kde-unstable.

See also https://github.com/sddm/sddm/issues/1847
Comment 1 Martin 2024-03-10 00:47:31 UTC
Likely has the same root cause as https://bugs.kde.org/show_bug.cgi?id=482399