5

I've set in lightdm.conf these 2 settings (under the Seat:* section) and the autologin doesn't work. It still ask me for user and password

autologin-user=user
autologin-user-timeout=0

I've tried with this setting in addition, but it still doesn't work

user-session=default

In addition, the checkbox "Don't ask for password on login" is disabled and not checked.

fixer1234
  • 28,064
DSX
  • 151

3 Answers3

6

The section is probably wrong/missing. Create /usr/share/lightdm/lightdm.conf.d/02_user.conf with the following content:

[SeatDefaults]
autologin-user=<user>
autologin-user-timeout=0
moestly
  • 256
1

My last answer worked only one time. I had to edit /usr/share/lightdm/lightdm.conf.d/01_debian.conf

[Seat:*]
greeter-session=lightdm-greeter
greeter-hide-users=false
autologin-session=true
#autologin-user=username
autologin-user-timeout=1
session-wrapper=/etc/X11/Xsession

(If greeter-hide-users=true I ever had to type my username. )

And Also in /etc/lightdm/lightdm.conf

greeter-session=lightdm-gtk-greeter
autologin-user= username
Asklep
  • 147
-1

Find a solution which works for me. Adding this setting in lightdm.conf :

greeter-session=lightdm-xsession

The value name is from

ls /usr/share/xgreeters/*.desktop

Pick the one you use.

DSX
  • 151