SDDM: Difference between revisions

Phobos (talk | contribs)
m Added additional troubleshooting for fprint
Tsrk. (talk | contribs)
Add troubleshooting session blacking out when logging out with logind (loginctl, uwsm)
Line 57: Line 57:
=== SDDM does not unlock KWallet on KDE ===
=== SDDM does not unlock KWallet on KDE ===
This may be related to fprint. Using fprint to login cannot unlock KWallet since KWallet unlocks using the same password as your user, and does not support fingerprints to do so.
This may be related to fprint. Using fprint to login cannot unlock KWallet since KWallet unlocks using the same password as your user, and does not support fingerprints to do so.
=== Session freezes/leads to black screen after logging out ===
Some Desktop Sessions may rely on [[Systemd/logind|logind]] to terminate themselves (e.g.: [[UWSM]], <code>loginctl</code>, …), but SDDM currently fails at correctly handling signals from [[Systemd/logind|logind]], leaving it in a limbo state where it can't restart the greeter[https://github.com/sddm/sddm/issues/1908]. If it ever happens, SDDM can be manually restarted by logging into another TTY, and restarting the <code>display-manager.service</code> system service.
However, there are workarounds to avoid doing this altogether.
==== Killing the session instead of terminating ====
If you are using <code>loginctl</code> to log out, use the <code>kill-session</code> command instead of the <code>terminate-session</code>. This will force the greeter to restart. Some reports[https://github.com/Vladimir-csp/uwsm/issues/194#issue-3779478721] say that <code>uwsm stop</code> may work as well.
==== Patch SDDM to correctly handle signals from <code>logind</code> ====
An [https://patch-diff.githubusercontent.com/raw/sddm/sddm/pull/2103.patch upstream PR] fixing this issue is currently pending review. You can apply it by overriding SDDM to include the PR as a patch:
{{File|3={ pkgs, ... }:
{
  services.displayManager.sddm.package = pkgs.kdePackages.sddm.override {
    unwrapped = (
      pkgs.kdePackages.sddm.unwrapped.overrideAttrs (old: {
        patches = (old.patches or [ ]) ++ [
          (pkgs.fetchpatch {
            url = "https://patch-diff.githubusercontent.com/raw/sddm/sddm/pull/2103.patch";
            hash = "sha256-HxsurSuGJjkGnC8fAiwipadAgcTUhs7n6fQ1SmvMMGc=";
          })
        ];
      })
    );
  };
}|name=/etc/nixos/configuration.nix|lang=nix}}


== Installing themes ==
== Installing themes ==