Headless No display error with vino

We did a new installation on our Jetson serial 1422019xxxx with SDK 4.5.1
after successfully installation we connect a screen and finish the setup successfully
we opened ssh and configure vino and added the following commands
export DISPLAY=:1 # also we tried 0
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
gconftool-2 --set --type=bool /desktop/gnome/remote_access/enabled true
sudo nano /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
// add enabled key
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
gsettings set org.gnome.Vino authentication-methods “[‘vnc’]”
gsettings set org.gnome.Vino vnc-password $(echo -n ‘abcd1234’|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true

Reboot done before running the following command

/usr/lib/vino/vino-server &
also tried
/usr/lib/vino/vino-server --display=:0

Unable to init server: Could not connect: Connection refused
Cannot open display:
Run ‘vino-server --help’ to see a full list of available command line options

Unfortunately, if there is no monitor case, then VNC cannot work

Its working with our 2nd Jetson

What is the result of “xrandr” on your second jetson?

Make it more easier to understand, if xorg is ON and xrandr can give out a monitor info, then VNC sever can launch too.

I cannot make sure what you would see from VNC if xrandr is able to work but with empty initialization (no monitor info).

The second Jeston xrandr is giving
“Can’t open display”

Then the vino sever cannot work even in the same terminal you are using over that 2nd nano…

Did you really run it manually and it could work?

xxxxxxx@xxxxx:~$ xrandr
Screen 0: minimum 8 x 8, current 640 x 480, maximum 16384 x 16384
HDMI-0 disconnected primary (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)

this is the outbut after we logged in via VNC

the first result was from ssh

Before doing xrandr, you need to give DISPLAY environment variable and this variable is with the console.

For example, if I export DISPLAY=:0 in terminal. Then it will only take effect in terminal 1. It won’t work on terminal 2.

Also, xorg has to be enabled so that export DISPLAY variable can work… On jetson, it would be gdm if 4GB nano is in use and lightdm for 2gb nano.

Could you see any issue down here ?
The below is the output of “sudo systemctl status gdm3”
● gdm.service - GNOME Display Manager
Loaded: loaded (/lib/systemd/system/gdm.service; static; vendor preset: enabled)
Active: active (running) since Wed 2022-02-16 10:46:33 +03; 37s ago
Process: 6459 ExecStartPre=/usr/share/gdm/generate-config (code=exited, status=0/SUCCESS)
Main PID: 6486 (gdm3)
Tasks: 3 (limit: 4182)
CGroup: /system.slice/gdm.service
└─6486 /usr/sbin/gdm3

فبراير 16 10:46:48 linkers-desktop gdm3[6486]: Unable to kill session worker process
فبراير 16 10:46:48 linkers-desktop gdm-launch-environment][7927]: pam_unix(gdm-launch-environment:session): session opened for user gdm
فبراير 16 10:46:49 linkers-desktop gdm3[6486]: GdmDisplay: display lasted 1.427721 seconds
فبراير 16 10:46:49 linkers-desktop gdm3[6486]: Child process -7949 was already dead.
فبراير 16 10:46:49 linkers-desktop gdm3[6486]: Child process 7927 was already dead.
فبراير 16 10:46:49 linkers-desktop gdm3[6486]: Unable to kill session worker process
فبراير 16 10:46:49 linkers-desktop gdm-launch-environment][8017]: pam_unix(gdm-launch-environment:session): session opened for user gdm
فبراير 16 10:46:51 linkers-desktop gdm3[6486]: GdmDisplay: display lasted 1.421866 seconds
فبراير 16 10:46:51 linkers-desktop gdm3[6486]: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log
فبراير 16 10:46:51 linkers-desktop gdm3[6486]: Child process -8038 was already dead.

It asks to check X sever log. So you can share the xorg.0.log out…

/var/log/Xorg.0.log

[  1271.386] (--) Log file renamed from "/var/log/Xorg.pid-8040.log" to "/var/log/Xorg.0.log"
[  1271.387]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[  1271.387] X Protocol Version 11, Revision 0
[  1271.387] Build Operating System: Linux 4.15.0-109-generic aarch64 Ubuntu
[  1271.387] Current Operating System: Linux linkers-desktop 4.9.201-tegra #1 SMP PREEMPT Fri Feb 19 08:40:32 PST 2021 aarch64
[  1271.387] Kernel command line: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,4 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1125 core_edp_ma=4000 gpt  earlycon=uart8250,mmio32,0x70006000  root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0
[  1271.387] Build Date: 15 September 2020  07:46:13AM
[  1271.387] xorg-server 2:1.19.6-1ubuntu4.7 (For technical support please see http://www.ubuntu.com/support)
[  1271.387] Current version of pixman: 0.34.0
[  1271.387]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  1271.387] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1271.387] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Feb 16 10:46:50 2022
[  1271.388] (==) Using config file: "/etc/X11/xorg.conf"
[  1271.388] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1271.388] (==) No Layout section.  Using the first Screen section.
[  1271.388] (==) No screen section available. Using defaults.
[  1271.388] (**) |-->Screen "Default Screen Section" (0)
[  1271.388] (**) |   |-->Monitor "<default monitor>"
[  1271.389] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[  1271.389] (**) |   |-->Device "Tegra0"
[  1271.389] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[  1271.389] (==) Automatically adding devices
[  1271.389] (==) Automatically enabling devices
[  1271.389] (==) Automatically adding GPU devices
[  1271.389] (==) Automatically binding GPU devices
[  1271.389] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1271.389] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  1271.389]    Entry deleted from font path.
[  1271.389] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  1271.389]    Entry deleted from font path.
[  1271.389] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  1271.389]    Entry deleted from font path.
[  1271.389] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[  1271.389]    Entry deleted from font path.
[  1271.389] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  1271.389]    Entry deleted from font path.
[  1271.389] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[  1271.389] (==) ModulePath set to "/usr/lib/xorg/modules"
[  1271.389] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1271.389] (II) Loader magic: 0x55639bd010
[  1271.389] (II) Module ABI versions:
[  1271.389]    X.Org ANSI C Emulation: 0.4
[  1271.389]    X.Org Video Driver: 23.0
[  1271.389]    X.Org XInput driver : 24.1
[  1271.389]    X.Org Server Extension : 10.0
[  1271.391] (++) using VT number 1

[  1271.396] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c7
[  1271.398] (II) no primary bus or device found
[  1271.398] (WW) "dri" will not be loaded unless you've specified it to be loaded elsewhere.
[  1271.398] (II) "glx" will be loaded by default.
[  1271.398] (II) LoadModule: "extmod"
[  1271.398] (II) Module "extmod" already built-in
[  1271.398] (II) LoadModule: "glx"
[  1271.398] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1271.400] (II) Module glx: vendor="X.Org Foundation"
[  1271.400]    compiled for 1.19.6, module version = 1.0.0
[  1271.400]    ABI class: X.Org Server Extension, version 10.0
[  1271.401] (II) LoadModule: "nvidia"
[  1271.401] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  1271.402] (II) Module nvidia: vendor="NVIDIA Corporation"
[  1271.402]    compiled for 4.0.2, module version = 1.0.0
[  1271.402]    Module class: X.Org Video Driver
[  1271.402] (II) NVIDIA dlloader X Driver  32.5.1  Release Build  (integ_stage_rel)  (buildbrain@mobile-u64-5294-d8000)  Fri Feb 19 08:40:14 PST 2021
[  1271.402] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  1271.402] (WW) Falling back to old probe method for NVIDIA
[  1271.402] (II) Loading sub module "fb"
[  1271.402] (II) LoadModule: "fb"
[  1271.402] (II) Loading /usr/lib/xorg/modules/libfb.so
[  1271.403] (II) Module fb: vendor="X.Org Foundation"
[  1271.403]    compiled for 1.19.6, module version = 1.0.0
[  1271.403]    ABI class: X.Org ANSI C Emulation, version 0.4
[  1271.403] (II) Loading sub module "wfb"
[  1271.403] (II) LoadModule: "wfb"
[  1271.403] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  1271.403] (II) Module wfb: vendor="X.Org Foundation"
[  1271.403]    compiled for 1.19.6, module version = 1.0.0
[  1271.403]    ABI class: X.Org ANSI C Emulation, version 0.4
[  1271.404] (II) Loading sub module "ramdac"
[  1271.404] (II) LoadModule: "ramdac"
[  1271.404] (II) Module "ramdac" already built-in
[  1271.405] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1271.405] (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[  1271.405] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  1271.405] (==) NVIDIA(0): RGB weight 888
[  1271.405] (==) NVIDIA(0): Default visual is TrueColor
[  1271.405] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  1271.405] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[  1271.405] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration" "true"
[  1271.405] (**) NVIDIA(0): Enabling 2D acceleration
[  1271.405] (II) Loading sub module "glxserver_nvidia"
[  1271.405] (II) LoadModule: "glxserver_nvidia"
[  1271.406] (II) Loading /usr/lib/xorg/modules/extensions/libglxserver_nvidia.so
[  1271.406] (EE) Failed to load /usr/lib/xorg/modules/extensions/libglxserver_nvidia.so: libnvidia-tls.so.32.5.1: cannot open shared object file: No such file or directory
[  1271.406] (II) UnloadModule: "glxserver_nvidia"
[  1271.406] (II) Unloading glxserver_nvidia
[  1271.406] (EE) NVIDIA: Failed to load module "glxserver_nvidia" (loader failed, 7)
[  1271.406] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[  1271.406] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[  1271.406] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[  1271.406] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[  1271.406] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.
[  1271.410] (--) NVIDIA(0): Valid display device(s) on GPU-0 at SoC
[  1271.410] (--) NVIDIA(0):     DFP-0
[  1271.410] (--) NVIDIA(0):     DFP-1
[  1271.410] (II) NVIDIA(0): NVIDIA GPU NVIDIA Tegra X1 (nvgpu) (GM20B) at SoC (GPU-0)
[  1271.410] (--) NVIDIA(0): Memory: 4059388 kBytes
[  1271.410] (--) NVIDIA(0): VideoBIOS:
[  1271.410] (==) NVIDIA(0):
[  1271.410] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[  1271.410] (==) NVIDIA(0):     will be used as the requested mode.
[  1271.410] (==) NVIDIA(0):
[  1271.410] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[  1271.410] (--) NVIDIA(0):     AllowEmptyInitialConfiguration is enabled
[  1271.411] (II) NVIDIA(0): Validated MetaModes:
[  1271.411] (II) NVIDIA(0):     "NULL"
[  1271.411] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[  1271.411] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[  1271.411] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[  1271.411] (--) Depth 24 pixmap format is 32 bpp
[  1271.411] (II) NVIDIA: Reserving 6144.00 MB of virtual memory for indirect memory
[  1271.411] (II) NVIDIA:     access.
[  1271.414] (EE) NVIDIA(0): Failed to allocate NVIDIA Error Handler
[  1271.414] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[  1271.414] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[  1271.414] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[  1271.414] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[  1271.414] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[  1271.414] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[  1271.414] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[  1271.414] (II) NVIDIA(0):     Config Options in the README.
[  1271.465] (II) NVIDIA(0): Setting mode "NULL"
[  1271.469] (==) NVIDIA(0): Disabling shared memory pixmaps
[  1271.469] (==) NVIDIA(0): Backing store enabled
[  1271.469] (==) NVIDIA(0): Silken mouse enabled
[  1271.469] (==) NVIDIA(0): DPMS enabled
[  1271.469] (II) Loading sub module "dri2"
[  1271.469] (II) LoadModule: "dri2"
[  1271.469] (II) Module "dri2" already built-in
[  1271.469] (II) NVIDIA(0): [DRI2] Setup complete
[  1271.469] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[  1271.470] (--) RandR disabled
[  1271.477] (II) SELinux: Disabled on system
[  1271.478] (II) AIGLX: Screen 0 is not DRI2 capable
[  1271.478] (EE) AIGLX: reverting to software rendering
[  1271.532] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[  1271.541] (II) IGLX: Loaded and initialized swrast
[  1271.541] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  1271.628] (II) config/udev: Adding input device tegra-hda HDMI/DP,pcm=3 (/dev/input/event0)
[  1271.628] (II) No input driver specified, ignoring this device.
[  1271.628] (II) This device may have been added with another device file.
[  1271.629] (II) config/udev: Adding input device gpio-keys (/dev/input/event1)
[  1271.629] (**) gpio-keys: Applying InputClass "libinput keyboard catchall"
[  1271.629] (II) LoadModule: "libinput"
[  1271.629] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[  1271.633] (II) Module libinput: vendor="X.Org Foundation"
[  1271.633]    compiled for 1.19.6, module version = 0.27.1
[  1271.633]    Module class: X.Org XInput Driver
[  1271.633]    ABI class: X.Org XInput driver, version 24.1
[  1271.633] (II) Using input driver 'libinput' for 'gpio-keys'
[  1271.635] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 33 paused 0
[  1271.635] (**) gpio-keys: always reports core events
[  1271.635] (**) Option "Device" "/dev/input/event1"
[  1271.635] (**) Option "_source" "server/udev"
[  1271.636] (II) event1  - gpio-keys: is tagged by udev as: Keyboard
[  1271.636] (II) event1  - gpio-keys: device is a keyboard
[  1271.637] (II) event1  - gpio-keys: device removed
[  1271.637] (**) Option "config_info" "udev:/sys/devices/gpio-keys/input/input1/event1"
[  1271.637] (II) XINPUT: Adding extended input device "gpio-keys" (type: KEYBOARD, id 6)
[  1271.637] (**) Option "xkb_model" "pc105"
[  1271.637] (**) Option "xkb_layout" "us"
[  1271.639] (II) event1  - gpio-keys: is tagged by udev as: Keyboard
[  1271.639] (II) event1  - gpio-keys: device is a keyboard
[  1272.521] (**) Option "fd" "33"
[  1272.521] (II) event1  - gpio-keys: device removed
[  1272.522] (II) UnloadModule: "libinput"
[  1272.522] (II) systemd-logind: releasing fd for 13:65
[  1272.548] (II) NVIDIA(GPU-0): Deleting GPU-0
[  1272.551] (II) Server terminated successfully (0). Closing log file.```

Hi,

Which jetapck version are you using here?

sudo apt-cache show nvidia-jetpack
Package: nvidia-jetpack
Version: 4.5.1-b17
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-cuda (= 4.5.1-b17), nvidia-opencv (= 4.5.1-b17), nvidia-cudnn8 (= 4.5.1-b17), nvidia-tensorrt (= 4.5.1-b17), nvidia-visionworks (= 4.5.1-b17), nvidia-container (= 4.5.1-b17), nvidia-vpi (= 4.5.1-b17), nvidia-l4t-jetson-multimedia-api (>> 32.5-0), nvidia-l4t-jetson-multimedia-api (<< 32.6-0)
Homepage: http://developer.nvidia.com/jetson
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_4.5.1-b17_arm64.deb
Size: 29390
SHA256:  
SHA1:  
MD5sum: 
Description: NVIDIA Jetpack Meta Package
Description-md5: 

Package: nvidia-jetpack
Version: 4.5-b129
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-cuda (= 4.5-b129), nvidia-opencv (= 4.5-b129), nvidia-cudnn8 (= 4.5-b129), nvidia-tensorrt (= 4.5-b129), nvidia-visionworks (= 4.5-b129), nvidia-container (= 4.5-b129), nvidia-vpi (= 4.5-b129), nvidia-l4t-jetson-multimedia-api (>> 32.5-0), nvidia-l4t-jetson-multimedia-api (<< 32.6-0)
Homepage: http://developer.nvidia.com/jetson
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_4.5-b129_arm64.deb
Size: 29358
SHA256: 
SHA1: 
MD5sum: a551bbc8ff653c8983ce1804082bbcab
Description: NVIDIA Jetpack Meta Package

No, please directly share below result.

cat /etc/nv_tegra_release.

# R32 (release), REVISION: 5.2, GCID: 27767740, BOARD: t210ref, EABI: aarch64, DATE: Fri Jul  9 16:01:52 UTC 2021```

This is a known issue that you may already notice… Your BSP is already 32.5.2 but some files in your file system are still 32.5.1… and the xorg tries to load libraries and those files don’t exist.

Are you able to move to 32.6.1 and it shall not have such problem?

Our second jetson that works well having the below result, how can we install the same environment ?

# R32 (release), REVISION: 5.1, GCID: 27362550, BOARD: t210ref, EABI: aarch64, DATE: Wed May 19 18:07:59 UTC 2021```

Hi,

I am not sure how you are familiar with those jetpack version and BSP . If you don’t know what I am talking about and you don’t know why this issue would happen, my suggestion is you directly upgrade both your devices to 32.6.1 with sdkmanager.

Your second board will hit same issue one day as your first board if you stay on 32.5.1.

Appreciate your support and thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.