Issue with setting VNC on Drive OS

Please provide the following info (tick the boxes after creating this topic):
Software Version
[*] DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
[*] other

Hardware Platform
[*] DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
[*] other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
[*] native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

I am following the Drive OS Linux SDK Developer Guide link:

I am having issues with setting up VNC Remote on Drive AGX Orin Developer Kit.

When I put the code from the section " Enabling VNC Remote Access" :

“sudo x11vnc -display :0 -noxrecord -noxfixes -noxdamage -forever -loop –nopw”

It goes to never ending loop with the following messages shown on the images below:

Could you let help me in sorting this issue out?

Thanks

Dear @kevin.kal,
After you run the commands, do you see x11vnc started running on target and able to open a connection using vnc client viewer?

Thanks for replying back.

All I see in the terminal is looping the screenshots I shared earlier over and over until I manually stop it. I don’t see any another applications opened after I executed the code. Just the looping lines of code on terminal. Where is VNC client viewer? Is on drive agx or host computer?

Dear @kevin.kal,
grep for x11vnc in process list if it running on target. VNC client needs to be installed on host and used to launch VNC connection to target using IP

Dear @kevin.kal,
Also, see if Headless Mode setup failed helps?

I have installed the x11vnc on host computer, logged into target PC (Drive Agx Orin) via ssh. Removed the -forever and -loop command on the code shown in the image bellow to stop from looping. After executing the code

“sudo x11vnc -display :0 -noxrecord -noxfixes -noxdamage -nopw -auth /run/user/1000/gdm/Xauthority”

I get this error message as shown in the image:

Dear @kevin.kal,
I could repro the never ending loop issue with the commands you have shared. I am looking into it.

If you are looking to run the samples remotely and get GUI output. You can do that using below steps.
On First ssh terminal

sudo service gdm3 stop
sudo service gdm stop
sudo -b X -ac -noreset
export DISPLAY=:0
sudo xrandr --fb 1920x1080 #may fail
sudo x11vnc -geometry 1920x1080 -display :0 &

I tested with VNC viewer on windows machine to connect to Orin target.
Open VNC connection from host using VNC viewer. I would expect to see blank screen on VNC connection.
Now, launch any application on ssh terminal which has GUI to see if it opens in VNC viewer window. Let me know if that works for you

I opened a terminal on host PC, started ssh by logging in to Target PC (Drive AGX Orin), inserted the following commands:

sudo service gdm3 stop
sudo service gdm stop
sudo -b X -ac -noreset
export DISPLAY=:0
sudo xrandr --fb 1920x1080 #may fail
sudo x11vnc -geometry 1920x1080 -display :0 &

The target PC display stopped. I had to then restart gpm3 and gpm services to see the screen again.

Below are the screenshots of what I did for reference:

Could you look at the images I sent and see if there are any issues when I execute the commands you mentioned?

I need some clarification with regarding VNC viewer. You mentioned “Open VNC connection from host using VNC viewer” - How do you do this?

I found x11vnc server app, should I be using this? image below:

You also mentioned to launch any application on another ssh terminal? like what? could you specifiy?

Thanks

Dear @kevin.kal,
I see DRIVE OS 6.0.8.1 installs Desktop FS.

nvidia@tegra-ubuntu:/etc/nvidia/rootfilesystem-manifest$ ls
driveos-oobe-desktop-ubuntu-20.04-rfs.MANIFEST.json  driveos-rfs.MANIFEST.json

So x11vnc is installed by default. Please follow the steps in VNC | NVIDIA Docs to configure based on the requirement mode(Check steps for headeless/non-headless).

I need some clarification with regarding VNC viewer. You mentioned “Open VNC connection from host using VNC viewer” - How do you do this? I found x11vnc server app, should I be using this?

x11VNC is VNC server application which is launched to accept VNC connections on that machine. You can install any VNC viewer client application like RealVNC, tightVNC etc…

The above topic I provided helped to fix a customer issue when they are trying to set to headless mode. You can check the discussion incase you notice any issue with headless mode.

You also mentioned to launch any application on another ssh terminal? like what? could you specifiy?

You can verify if the GUI is coming with any application like below
cd /opt/nvidia/drive-linux/samples/opengles2/bubble
DISPLAY=:0 ./x11/bubble

Dear @kevin.kal,
Could you provide any update? Is the issue resolved?

I am not able to get it working. If my understanding is correct VNC is one of the ways to connect to target device from host pc. Since I wasn’t able to get it to work, I used SSH to log into target device instead.

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