SDDM: Difference between revisions

Klinger (talk | contribs)
m Arch is the best moved page Sddm to SDDM: Misspelled title
 
(8 intermediate revisions by 2 users not shown)
Line 9: Line 9:
   wayland.enable = true;
   wayland.enable = true;
};|name=/etc/nixos/configuration.nix|lang=nix}}
};|name=/etc/nixos/configuration.nix|lang=nix}}
== Configuration ==
=== Wayland ===
{{File|3=services.displayManager.sddm = {
  enable = true;
  wayland = {
    enable = true;
    # default compositor is "weston", you can optionally change it to kwin
    #compositor = "kwin";
    };
  };
};|name=/etc/nixos/configuration.nix|lang=nix}}
=== Autologin ===
{{File|3=services.displayManager = {
  sddm = {
    enable = true;
    wayland.enable = true;
  };
  autoLogin = {
    enable = true;   
    user = "user"; # Replace with the desired user
  };
};|name=/etc/nixos/configuration.nix|lang=nix}}
=== Disable/Enable fprint ===
With fprint enabled on the system, SDDM will expect a fingerprint after entering any password. SDDM does not show any prompt for this and this will time out after some time and SDDM will attempt to use your entered password. If you have your fingerprints enrolled, you can press enter and use your fingerprint reader. You may find additional options for fprint as well as information on enrolling fingerprints on the [[Fingerprint scanner]] page.
KWallet cannot be unlocked using fprint.
==== Enable fprint system wide ====
You can enable this behavior by enabling fprint.
{{File|3=services.fprintd.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}}
==== Disable fprint for login ====
Stops SDDM from prompting for fingerprint.
{{File|3=security.pam.services.login.fprintAuth = false;|name=/etc/nixos/configuration.nix|lang=nix}}
== Troubleshooting ==
=== SDDM Hangs after entering password ===
With fprint enabled, SDDM will expect a fingerprint after entering any password. SDDM is likely waiting for a fingerprint without a prompt. You can disable this behavior by seeing the fprint configuration section of this article.
=== 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.
=== 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 ==