Xlib: extension "nv-glx" missing on display 0

Hello,
I am facing some issue with My Jetson Nano. jetpack 4.5.1.

I rebooted my jetson nano and got
“xlib: extension “nv-glx” missing on display 0”
When I clicked OK,
“unable to launch /usr/bin/startlxde x session”
comes.
How can I fix this issue?
I tried to install lxde over ssh session and now I am able to get lxde desktop but still problem at reboot and cant get default green desktop

Hi,

This is our method for installing lxde. Please take it as a reference.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/window_system_lxde.html


I am having this screen but recently it was like:



These are screen I am facing at reboot.

Please reconfigure your window system from gdm to lightdm too. This was how we setup lxde on jetson nano 2gb.

•Use a lightweight display manager like LightDM. The LightDM service takes about 3 to 5 seconds to start.

To install and configure lightdm display manager, enter the commands:

sudo apt-get update
sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm

NVIDIA recommends LightDM GTK+ Greeter as the default LightDM login greeter. To install this component, enter the commands:

sudo apt-get update
sudo apt-get install lightdm-gtk-greeter

All of them are at newest version. I am using jetson nano 4gb, not 2gb

What was your command to cause your system look like this so far?

I actually dont know, I was trying to run my detection script at reboot and use display to show output. I just put
@reboot /bin/bash /home/rrnivida/runner.sh to crontab
my runner.sh:

export DISPLAY=:0
cd /home/rrnvidia/jetson-inference/python/examples
python3.6 my-detection.py

I have just rebooted.

edit:
before trying my runner.sh, I tried to export DISPLAY=:0 from ssh.

So do you want to install the lxde or not?

I think I couldnt explain my point. my main problem is
“Xlib: extension “nv-glx” missing on display 0” error after reboot that I put some screenshot above.
After facing that error, I was able to install lxde to get some desktop but I want to fix the error and return to default desktop of jetson nano 4gb

We are not able to fix your main problem. The command you are using should not cause such problem. I would suggest you can directly reflash your board. Currently issue looks like one library is probably pointing to non- NV lib but however we are not sure.

What is runner.sh here?

It will be very hard for me to install and build everything again if I start from fresh sdcard.

runner.sh:

export DISPLAY=:0
cd /home/rrnvidia/jetson-inference/python/examples
python3.6 my-detection.py

I am using runner.sh to start detection and use display.

Please see what I have installed since previous reboot:

root@rrnvidia-desktop:/home/rrnvidia# grep " install " /var/log/dpkg.log
2021-06-07 10:36:32 install tk8.6-blt2.5:arm64 <none> 2.5.3+dfsg-4
2021-06-07 10:36:33 install blt:arm64 <none> 2.5.3+dfsg-4
2021-06-07 10:36:33 install libpng-dev:arm64 <none> 1.6.34-1ubuntu0.18.04.2
2021-06-07 10:36:33 install libfreetype6-dev:arm64 <none> 2.8.1-2ubuntu2.1
2021-06-07 10:36:34 install libpng-tools:arm64 <none> 1.6.34-1ubuntu0.18.04.2
2021-06-07 10:36:34 install libprotoc10:arm64 <none> 3.0.0-9.1ubuntu1
2021-06-07 10:36:35 install python-bs4:all <none> 4.6.0-1
2021-06-07 10:36:35 install python-chardet:all <none> 3.0.4-1
2021-06-07 10:36:36 install python-webencodings:all <none> 0.5-2
2021-06-07 10:36:36 install python-html5lib:all <none> 0.999999999-1
2021-06-07 10:36:36 install python-lxml:arm64 <none> 4.2.1-1ubuntu0.4
2021-06-07 10:36:37 install python-olefile:all <none> 0.45.1-1
2021-06-07 10:36:37 install python-pil:arm64 <none> 5.1.0-1ubuntu0.6
2021-06-07 10:36:37 install python-tk:arm64 <none> 2.7.17-1~18.04
2021-06-07 10:36:38 install protobuf-compiler:arm64 <none> 3.0.0-9.1ubuntu1
2021-06-07 12:01:50 install libpython3.7-minimal:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:01:50 install python3.7-minimal:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:01:51 install libpython3.7-stdlib:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:01:52 install python3.7:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:10:54 install xml-core:all <none> 0.18
2021-06-07 12:10:57 install sgml-data:all <none> 2.0.10
2021-06-07 12:10:58 install docbook-xml:all <none> 4.5-8
2021-06-07 12:10:58 install libept1.5.0:arm64 <none> 1.1+nmu3build1
2021-06-07 12:10:58 install libpango-perl:arm64 <none> 1.227-2build1
2021-06-07 12:10:59 install libgtk2-perl:arm64 <none> 2:1.24992-1build1
2021-06-07 12:10:59 install librarian0:arm64 <none> 0.8.1-6build1
2021-06-07 12:11:00 install rarian-compat:arm64 <none> 0.8.1-6build1
2021-06-07 12:11:00 install synaptic:arm64 <none> 0.84.3ubuntu1
2021-06-07 12:23:15 install python3.7:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:27:52 install python3.6:arm64 <none> 3.6.9-1~18.04ubuntu1.4
2021-06-07 12:27:52 install python3:arm64 <none> 3.6.7-1~18.04
2021-06-07 12:27:52 install python3-dbus:arm64 <none> 1.2.6-1
2021-06-07 12:27:52 install python3-gi:arm64 <none> 3.26.1-2ubuntu1
2021-06-07 12:27:53 install python3-lib2to3:all <none> 3.6.9-1~18.04
2021-06-07 12:27:53 install python3-distutils:all <none> 3.6.9-1~18.04
2021-06-07 12:27:53 install dh-python:all <none> 3.20180325ubuntu2
2021-06-07 12:27:54 install python3-asn1crypto:all <none> 0.24.0-1
2021-06-07 12:27:54 install python3-cffi-backend:arm64 <none> 1.11.5-1
2021-06-07 12:27:54 install python3-crypto:arm64 <none> 2.6.1-8ubuntu2
2021-06-07 12:27:55 install python3-idna:all <none> 2.6-1
2021-06-07 12:27:55 install python3-six:all <none> 1.11.0-2
2021-06-07 12:27:55 install python3-cryptography:arm64 <none> 2.1.4-1ubuntu1.4
2021-06-07 12:27:56 install python3.6-dev:arm64 <none> 3.6.9-1~18.04ubuntu1.4
2021-06-07 12:27:56 install python3-dev:arm64 <none> 3.6.7-1~18.04
2021-06-07 12:27:56 install python3-secretstorage:all <none> 2.3.1-2
2021-06-07 12:27:56 install python3-keyring:all <none> 10.6.0-1
2021-06-07 12:27:57 install python3-keyrings.alt:all <none> 3.0-1
2021-06-07 12:27:57 install python3-pip:all <none> 9.0.1-2.3~ubuntu1.18.04.4
2021-06-07 12:27:57 install python3-pkg-resources:all <none> 39.0.1-2
2021-06-07 12:27:57 install python3-setuptools:all <none> 39.0.1-2
2021-06-07 12:27:58 install python3-wheel:all <none> 0.30.0-0.2
2021-06-07 12:27:58 install python3-xdg:all <none> 0.25-4ubuntu1.1
2021-06-07 12:41:54 install libpython3.7:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:41:55 install libpython3.7-dev:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:42:03 install python3.7-dev:arm64 <none> 3.7.5-2~18.04.4
2021-06-07 12:57:13 install cython:arm64 <none> 0.26.1-0.4
2021-06-15 17:30:03 install lsb-release:all <none> 9.20170808ubuntu1
2021-06-15 17:30:03 install lxsession:arm64 <none> 0.5.3-2ubuntu1
2021-06-15 17:30:04 install openbox-lxde-session:all <none> 0.99.2-3
2021-06-15 17:54:20 install python3-apt:arm64 <none> 1.6.5ubuntu0.6
2021-06-15 17:54:21 install python3-httplib2:all <none> 0.9.2+dfsg-1ubuntu0.3
2021-06-15 17:54:21 install python3-problem-report:all <none> 2.20.9-0ubuntu7.24
2021-06-15 17:54:21 install python3-certifi:all <none> 2018.1.18-2
2021-06-15 17:54:22 install python3-chardet:all <none> 3.0.4-1
2021-06-15 17:54:22 install python3-urllib3:all <none> 1.22-1ubuntu0.18.04.2
2021-06-15 17:54:22 install python3-requests:all <none> 2.18.4-2ubuntu0.1
2021-06-15 17:54:22 install python3-requests-unixsocket:all <none> 0.1.5-3
2021-06-15 17:54:23 install python3-apport:all <none> 2.20.9-0ubuntu7.24
2021-06-15 17:54:23 install apport:all <none> 2.20.9-0ubuntu7.24
2021-06-15 17:54:24 install libuser1:arm64 <none> 1:0.62~dfsg-0.1ubuntu2
2021-06-15 17:54:24 install lxde-core:all <none> 10
2021-06-15 17:54:24 install lxde:all <none> 10
2021-06-15 17:54:25 install python3-systemd:arm64 <none> 234-1build1
2021-06-15 17:54:25 install usermode:arm64 <none> 1.109-1build1
2021-06-15 17:54:26 install xserver-xorg:arm64 <none> 1:7.7+19ubuntu7.1

Please try to reproduce this error and share me the /var/log/Xorg.0.log.

Please check.
Xorg.0.log (25.5 KB)

There is tons of
(EE) FBDEV(0): FBIOPUTCMAP: Invalid argument

This log file gives me some hints.

Your xorg does not use our normal driver. It is using the fbdev driver, which will not use graphic drivers that provided by jetpack.

For example, this is from your log. You can see that it is using the fbdev and modesetting driver.

[ 11.864] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 11.866] (II) Module glx: vendor=“X.Org Foundation”
[ 11.866] compiled for 1.19.6, module version = 1.0.0
[ 11.866] ABI class: X.Org Server Extension, version 10.0
[ 11.866] (==) Matched modesetting as autoconfigured driver 0
[ 11.866] (==) Matched fbdev as autoconfigured driver 1
[ 11.866] (==) Assigned the driver to the xf86ConfigLayout
[ 11.866] (II) LoadModule: “modesetting”
[ 11.866] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 11.867] (II) Module modesetting: vendor=“X.Org Foundation”
[ 11.867] compiled for 1.19.6, module version = 1.19.6
[ 11.867] Module class: X.Org Video Driver
[ 11.867] ABI class: X.Org Video Driver, version 23.0
[ 11.867] (II) LoadModule: “fbdev”
[ 11.867] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 11.867] (II) Module fbdev: vendor=“X.Org Foundation”
[ 11.867] compiled for 1.19.3, module version = 0.4.4
[ 11.867] Module class: X.Org Video Driver
[ 11.867] ABI class: X.Org Video Driver, version 23.0
[ 11.867] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 11.867] (II) FBDEV: driver for framebuffer: fbdev
[ 11.870] (WW) Falling back to old probe method for modesetting
[ 11.870] (EE) open /dev/dri/card0: No such file or directory
[ 11.870] (WW) Falling back to old probe method for fbdev
[ 11.870] (II) Loading sub module “fbdevhw”
[ 11.870] (II) LoadModule: “fbdevhw”
[ 11.871] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 11.871] (II) Module fbdevhw: vendor=“X.Org Foundation”
[ 11.871] compiled for 1.19.6, module version = 0.0.2
[ 11.871] ABI class: X.Org Video Driver, version 23.0

However, it is from default jetpack log.

[ 10.025] (II) LoadModule: “glx”
[ 10.031] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 10.068] (II) Module glx: vendor=“X.Org Foundation”
[ 10.068] compiled for 1.19.6, module version = 1.0.0
[ 10.068] ABI class: X.Org Server Extension, version 10.0
[ 10.068] (II) LoadModule: “nvidia”
[ 10.069] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 10.108] (II) Module nvidia: vendor=“NVIDIA Corporation”
[ 10.108] compiled for 4.0.2, module version = 1.0.0
[ 10.108] Module class: X.Org Video Driver
[ 10.116] (II) NVIDIA dlloader X Driver 32.5.1 Release Build (integ_stage_rel) (buildbrain@mobile-u64-5285-d7000) Fri Feb 19 08:41:46 PST 2021
[ 10.116] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 10.117] (WW) Falling back to old probe method for NVIDIA
[ 10.117] (II) Loading sub module “fb”
[ 10.117] (II) LoadModule: “fb”
[ 10.117] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 10.120] (II) Module fb: vendor=“X.Org Foundation”
[ 10.120] compiled for 1.19.6, module version = 1.0.0
[ 10.120] ABI class: X.Org ANSI C Emulation, version 0.4
[ 10.120] (II) Loading sub module “wfb”
[ 10.120] (II) LoadModule: “wfb”
[ 10.120] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 10.124] (II) Module wfb: vendor=“X.Org Foundation”
[ 10.124] compiled for 1.19.6, module version = 1.0.0
[ 10.124] ABI class: X.Org ANSI C Emulation, version 0.4
[ 10.124] (II) Loading sub module “ramdac”
[ 10.124] (II) LoadModule: “ramdac”
[ 10.124] (II) Module “ramdac” already built-in

You can see that your xorg does not load nvidia_drv.so, which is necessary for jetson graphic.

Thus, you can firstly check whether there is really nvidia_drv.so exist on your system now.

If it exists, then check what does your xorg.conf look like.

I see,
I think I made this while trying to run yolov5 with GPU which I couldnt succeed.
let me the drivers.

This is the only xorg.conf I can found in /etc/X11/xrdp/:
xorg.conf (1.4 KB)

And there is nvidia_drv.so in /usr/lib/xorg/modules/drivers/

What should I do with them?

Then the truth is you probably already removed the old xorg setting.

By default, this file should be under /etc/X11 and we also don’t install xrdp by default. It looks like there is great change on your device from the default jetpack.

Try to add this back to /etc/X11 as xorg.conf. If even this cannot work, then we have no idea about your device. Reflash it maybe a quick one.

# Copyright (c) 2017, NVIDIA CORPORATION.  All Rights Reserved.
#
# This is the minimal configuration necessary to use the Tegra driver.
# Please refer to the xorg.conf man page for more configuration
# options provided by the X server, including display-related options
# provided by RandR 1.2 and higher.

# Disable extensions not useful on Tegra.
Section "Module"
    Disable     "dri"
    SubSection  "extmod"
    Option  "omit xfree86-dga"
    EndSubSection
EndSection

Section "Device"
    Identifier  "Tegra0"
    Driver      "nvidia"
    Option      "AllowEmptyInitialConfiguration" "true"
EndSection

There is a file /etc/X11/xorg.conf.jetson_e which is same as default.
I need to install xrdp to use VNC with headless jetson.

I made the changes you recommanded. my screen stays at:

Log:
Xorg.0.log (14.0 KB)

Now the issue seems from the kernel. Your xorg now is able to read the nv driver. But later it gets terminated.

Please share the dmesg.