Jetson Nano Autologin Fails

Hi,
Our Nano module seems to have an issue with the autologin. After flashing the p3449-0000+p3448-0002 profile on our module, and selecting autologin during the initial setup, the autologin will fail intermittently when rebooting. We have observed this on JetPack 4.4.1 and 4.5. This is our /etc/gdm3/custom.conf file:

# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=n

# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=false

# Enabling automatic login

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true

We have also tried editing /etc/lightdm/lightdm.conf.d/50-nvidia.conf to include:

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

Looking at the output of “sudo journalctl -b” I found that when auto login failed, the following appeared:

Mar 23 15:39:13 n-desktop /usr/lib/gdm3/gdm-x-session[5142]: (II) Loading /usr/lib/xorg/modules/extensions/libglxserver_nvidia.so
   Mar 23 11:22:13 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) Loading sub module "glxserver_nvidia"
Mar 23 11:22:13 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) LoadModule: "glxserver_nvidia"
Mar 23 11:22:13 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) Loading /usr/lib/xorg/modules/extensions/libglxserver_nvidia.so
Mar 23 11:22:13 n-desktop NetworkManager[4235]: <info>  [1616512933.9710] devices added (path: /sys/devices/virtual/net/lo, iface: lo)
Mar 23 11:22:13 n-desktop NetworkManager[4235]: <info>  [1616512933.9711] device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
Mar 23 11:22:14 n-desktop NetworkManager[4235]: <info>  [1616512934.0000] devices added (path: /sys/devices/virtual/net/dummy0, iface: dummy0)
Mar 23 11:22:14 n-desktop NetworkManager[4235]: <info>  [1616512934.0001] device added (path: /sys/devices/virtual/net/dummy0, iface: dummy0): no ifupdown configuration found.
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]:         compiled for 4.0.2, module version = 1.0.0
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]:         Module class: X.Org Server Extension
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) NVIDIA GLX Module  32.5.0  Release Build  (integ_stage_rel)  (buildbrain@mobile-u64-4415)  Fri Jan 15 14:43:01 PST 2021
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE) NVIDIA(0): Failing initialization of X screen 0
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) UnloadModule: "nvidia"
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) UnloadSubModule: "glxserver_nvidia"
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) Unloading glxserver_nvidia
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) UnloadSubModule: "wfb"
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (II) UnloadSubModule: "fb"
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE) Screen(s) found, but none have a usable configuration.
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE)
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: Fatal server error:
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE) no screens found(EE)
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE)
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: Please consult the The X.Org Foundation support
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]:          at http://wiki.x.org
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]:  for help.
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Mar 23 11:22:14 n-desktop /usr/lib/gdm3/gdm-x-session[5251]: (EE)

I did not see the “Failed to initialize the NVIDIA graphics device!” message when the autologin succeeded. The output of “/var/log/Xorg.0.log” (well, “/var/log/Xorg.0.log.old” actually, as the non-autologin session created a new “/var/log/Xorg.0.log” right after this one failed) was:
xorg.txt (8.0 KB)

Could someone investigate why this happens? Thank you.

Why you need to change this? Is it a custom carrier board? Will you see same issue if you don’t change the DT?

We started with a custom carrier board, but then moved back to the devkit to see if the issue persisted. p3449-0000+p3448-0002.conf is the file pointed to by jetson-nano-emmc.conf. It’s not modified by us.

Ok, so will modifying same things on devkit with pure jetpack release hit this error?

I believe so. I should probably mention that we’re using a production module nano (the one without the SD card slot, and uses the internal eMMC). It might take a few tries, and seems to happen more often when soft rebooting.

Do you still have nvgpu kernel module in the lsmod list?

Yes.

Can you help

  1. Confirm is this issue really can reproduced with devkit? It sounds like you cannot confirm it yet.

  2. It seems not 100% reproduced in each boot. How is the reproduce rate here? For example, 10 times reboot with how many times error would happen?

I am using the devkit right now? I don’t know what gave you the impression otherwise. I’m seeing the error happen probably 9/10 times.

Sorry about that. I just thought you also had devkit when you said “I believe so”.
We will try to reproduce this issue on our side.

Okay thank you.

Hi Eadams,

What’s username on your devkit?
Check your first comments, your AutomaticLogin username set ‘n’, is it correct?

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=n

We check r32.5 / Nano, edit ‘/etc/gdm3/custom.conf’, the autologin function is working.

Yes I set the username to ‘n’. How often did you test the autologin?

Note that the user have to belong to video group for running the GUI.

Here’s the groups my username is in:

n@n-desktop:~$ id -nG n
n adm cdrom sudo audio dip video plugdev i2c lpadmin gdm lightdm gpio weston-launch sambashare