Longtime Fedora Silverblue user here, who recently jumped over to Kinoite (Atomic KDE). I typically enable autologin on my display managers because I use whole disk encryption and already need to enter my passphrase to decrypt and start the OS.

I discovered pretty quickly that SDDM’s autologin feature isn’t working under Fedora 40. LightDM also failed to start under Wayland on F40, regardless of which greeter I tried.

Long story short, I opted to use GDM since I knew its automatic login feature worked fine under Wayland. It’s worth noting that KDE has it’s own lockscreen mechanism, so you won’t even see GDM unless you manually logout of your session. To try this yourself:

  1. Install GDM: rpm-ostree install --apply-live gdm

  2. Disable SDDM: sudo systemctl disable sddm

  3. Enable GDM: sudo systemctl enable gdm

  4. Reboot and select the Plasma session before logging in; this is required only once in order to establish to the default, otherwise GDM will load a broken GNOME session when autologin is enabled

  5. Edit /etc/gdm/custom.conf and add the following under [daemon] (replacing username with your own):

     AutomaticLoginEnable = true
     AutomaticLogin = username
    

Voila! You will no longer need to enter your user credentials before loading the desktop.

    • thayer@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      6 months ago

      Interesting. I followed the documentation from the various distros (Arch, Debian, and openSUSE), and added the following to /etc/sddm.conf.d/10-autologin.conf:

      [Autologin]
      Relogin=false
      Session=plasma (I've also tried plasma.desktop here)
      User=thayer
      

      I’ve confirmed that plasma.desktop exists in /usr/share/wayland-sessions/ and it’s the session I normally select regardless of DM used.

      I’ve also tried placing the autologin text in /etc/sddm.conf, /etc/sddm.conf.d/autologin, and the default /etc/sddm.conf.d/kde_settings.conf. No matter where it’s saved, the settings are ignored and I’m brought right back to the greeter upon reboot. Nothing is logged in journald and SDDM doesn’t write to its own log in /var/log.

      I’ve also tried the above with and without the KDE Wallet service enabled (I normally keep it disabled).

      If I use the System Settings GUI to set the above details (via Colors & Themes > Login Screen (SDDM) > Behavior), the System Settings app crashes upon close. I’ve had multiple updates since rebasing to Kinoite, so the chance of a corrupted package is nil.

      Something is definitely afoot.