Error when using xinit command (I just start the L4T Accelerated Gstreamer user guide)

Hi,

I have recently started the “L4T Accelerated GStreamer User Guide” to be familiar with this API that I need for my university’s project. Before starting the examples, they ask us to execute these commands :

export DISPLAY=:0
Start the X server with xinit &, if it is not already running.

After typing these commands :
export DISPLAY=":0"
xinit ( I try also xinit &), I obtained this error :

(EE)
Fatal server error:
(EE) Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server “:0”
after 7 requests (7 known processed) with 0 events remaining.

Someone can help me to resolve this error and to explain what is the source of the error,

Thanks in advance.

Regards,

The default is to have the server running. Did you stop X prior to starting it? Is there more than one display? It is more difficult to disable lightdm as a default startup program on the Jetson than on some other Linux distributions (apparently a side effect of transitions from old init style scripts to systemd modules).

It is run by default as @linuxdev said, so please skip ‘xinit’.

Hi,
Thank u for ur answers : @linuxdev and @DaneLLL.

If you want to leave the default display “:0” running and start a second display try this:

startx -- :1