Success!(?) I restarted 3 times and it worked all 3. Logs were still empty though…
This is the config so far
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# Test
services.displayManager.sddm.wayland.enable = false;
services.displayManager.ly.enable = false;
great. So it is wayland related.
If you want more infos this is the Github issue.
opened 07:26PM - 13 May 24 UTC
closed 08:28PM - 15 Aug 24 UTC
0.kind: bug
6.topic: nixos
6.topic: qt/kde
### Describe the bug
If kwin is the compositor of sddm you only get a black scr… een after boot. It worked fine before I updated my nixos flake.
### Steps To Reproduce
Steps to reproduce the behavior:
1. Enable sddm like this:
```nix
service.displayManager.sddm = {
enable = true;
wayland = {
enable = true;
compositor = "kwin";
};
autoNumlock = true;
};
```
2. Build config `nixos-rebuild boot`
3. Reboot system
### Expected behavior
The Login screen should appear and `CTRL + F1` - `CTRL + F6` should give an terminal output.
### Additional context
output of `journalctl -b -1 -u display-manager.service`:
```console
Mai 13 21:06:33 Yon systemd[1]: Started Display Manager.
Mai 13 21:06:33 Yon sddm[1545]: Initializing...
Mai 13 21:06:33 Yon sddm[1545]: Starting...
Mai 13 21:06:33 Yon sddm[1545]: Logind interface found
Mai 13 21:06:33 Yon sddm[1545]: Adding new display...
Mai 13 21:06:33 Yon sddm[1545]: Loaded empty theme configuration
Mai 13 21:06:33 Yon sddm[1545]: Using VT 7
Mai 13 21:06:33 Yon sddm[1545]: Display server started.
Mai 13 21:06:33 Yon sddm[1545]: Socket server starting...
Mai 13 21:06:33 Yon sddm[1545]: Socket server started.
Mai 13 21:06:33 Yon sddm[1545]: Loading theme configuration from "/run/current-system/sw/share/sddm/themes/breeze/theme.conf"
Mai 13 21:06:33 Yon sddm[1545]: Greeter starting...
Mai 13 21:06:33 Yon sddm-helper[1550]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Mai 13 21:06:33 Yon sddm-helper[1550]: [PAM] Starting...
Mai 13 21:06:33 Yon sddm-helper[1550]: [PAM] Authenticating...
Mai 13 21:06:33 Yon sddm-helper[1550]: [PAM] returning.
Mai 13 21:06:33 Yon sddm[1545]: Greeter session started successfully
Mai 13 21:06:35 Yon sddm[1545]: Message received from greeter: Connect
Mai 13 21:06:56 Yon sddm[1545]: Error from greeter session: "Process crashed"
Mai 13 21:06:56 Yon sddm[1545]: Auth: sddm-helper (--socket /tmp/sddm-auth-28334843-3453-40d7-b871-f96a6180049c --id 2 --start /nix/store/4vr0hbjmbnmr8k5gv4mdwfvc36csr6pr-sddm-wrapped/bin/sddm-greeter-qt6 --socket /tmp/sddm--UJfsPi --theme /run/current-system/sw/share/sddm/themes/breeze --user sddm --display-server /nix/store/rizf7g8a5w26lxamz1f5d41knd01pivk-kwin-6.0.4.1/bin/kwin_wayland --no-global-shortcuts --no-kactivities --no-lockscreen --locale1 --greeter) crashed (exit code 1)
Mai 13 21:06:56 Yon sddm[1545]: Error from greeter session: "Process crashed"
Mai 13 21:06:56 Yon sddm[1545]: Auth: sddm-helper exited with 1
Mai 13 21:06:56 Yon sddm[1545]: Greeter stopped. SDDM::Auth::HELPER_AUTH_ERROR
Mai 13 21:06:56 Yon systemd[1]: Stopping Display Manager...
Mai 13 21:06:56 Yon sddm[1545]: Signal received: SIGTERM
Mai 13 21:06:56 Yon sddm[1545]: Socket server stopping...
Mai 13 21:06:56 Yon sddm[1545]: Socket server stopped.
Mai 13 21:06:56 Yon systemd[1]: display-manager.service: Deactivated successfully.
Mai 13 21:06:56 Yon systemd[1]: Stopped Display Manager.
```
### Notify maintainers
@SuperSandro2000
@abbradar
@ttuegel
@k900
@
### Metadata
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.8.9, NixOS, 24.05 (Uakari), 24.05.20240512.2057814`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.23.0pre20240502_00ca2b05`
- channels(root): `"nixos"`
- nixpkgs: `/nix/store/vsbi6gfwf2bdamw0d0d9xndb1rrxfnbk-source`
```
---
Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc
Maybe something with the localisation.
But if it works that is great. No need to run sddm in wayland
1 Like
Thank you so much for your help and dedication. You’ve solved quite the problem for me.
Which of our posts should I select as solution from this topic?
no problem. The solve is sddm.wayland.enable = false
1 Like