GDM autologin doesn't work

I enabled autologin but it doesn’t work with gdm. It does login automatic on start but after several seconds it will switch to tty1. Genally gdm will show up after several seconds but sometimes it will stuck on the tty and I have to reboot it. LighdDM works well for me. This is my configuration. Do I miss something? Thanks for any help!

services.xserver = {
      enable = true;
      desktopManager.gnome.enable = true;
      displayManager = {
          gdm.enable = true;
          defaultSession = "gnome";
          autoLogin = {
              enable = true;
              user = "xxx";
          };
      };
};
2 Likes

It works now. Don’t know why.

2 Likes

I’m finding that it now auto-logs me in correctly … but then if I let GDM put up its lock screen on idle subsequently, it won’t accept my password to resume my login session.