Jetson nano 2gb cannot open display error

I have a Jetson nano 2gb and I am in the ubuntu 18.04 terminal and trying to display my live camera feed and other applications, but opening a display fails. For example if I do a simple command such as: xclock
the following error message is shown: Invalid MIT-MAGIC-COOKIE-1 keyError: Can’t open display: :0

Hi,
You may try display 1:

$ DISPLAY=:1 xrandr

If you can see HDMI out it should be wrong index.

Tip: There are logs in “/var/log/”. Among those will be these:
ls -ltr /var/log/Xorg.*.log

Note that this reverse lists them based on timestamp, so the very last one (bottom) is the most recently touched log. If you have an X server using a DISPLAY context of “:0”, then this will use log “Xorg.0.log”; if the context is “:1”, then the log will be “Xorg.1.log”. Any time you are using a terminal within X you can find this with “echo $DISPLAY”. If you are outside of a graphics setting, e.g., logged in via regular console, ssh, or serial console, then you can “export DISPLAY=:0” or “export DISPLAY=:1”, so on.

There are extensions for remote systems, but those will fail unless you have security set up to allow it.

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