GDM Autologin
GDM Autologin
Skip the GDM login screen after LUKS unlock at boot. The screen lock on suspend/idle still requires your password.
Boot behavior:
- Power on → LUKS password prompt → desktop (no second login)
- Suspend / screen lock → password required as normal
Configuration
Edit the GDM config:
sudo nano /etc/gdm/custom.confAdd AutomaticLoginEnable and AutomaticLogin under [daemon]:
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=stenFull example for reference:
# GDM configuration storage
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=sten
[security]
[xdmcp]
[chooser]
[debug]Save with Ctrl+X, y then reboot:
sudo rebootVerification
After reboot, LUKS will prompt for a password. Once entered, the desktop should load immediately without a GDM login screen.
To confirm autologin is active:
sudo cat /etc/gdm/custom.conf | grep -i autoExpected output:
AutomaticLoginEnable=True
AutomaticLogin=stenNotes
- Autologin only applies to the initial boot session. GDM does not trigger when resuming from suspend.
- The GNOME screen lock (Super+L, lid close, idle timeout) is handled by
gnome-screensaver/gnome-shell, not GDM. It always requires your user password regardless of autologin settings. - If you have a second user account on the system, only the configured user gets autologin. Other accounts always get a GDM prompt.
Troubleshooting
Autologin not working after config change
Verify the config file is correct:
sudo cat /etc/gdm/custom.confEnsure AutomaticLoginEnable=True is under [daemon] and the username matches exactly:
whoamiAlso check that GDM is the active display manager:
systemctl status gdmDisable autologin
sudo nano /etc/gdm/custom.confRemove or comment out the two lines:
#AutomaticLoginEnable=True
#AutomaticLogin=stenReboot to apply.