@animan9: Please select the “Ubuntu” session at the login screen and log in to this session one time with a monitor attached. You can then try the instructions in #2. Good luck!
The difference between the two options is the “Unity” session being a home grown desktop developed by Canonical (Ubuntu sponsor) based on GNOME, while the “Ubuntu” session is the ‘real’ GNOME 3 shell. Starting from Ubuntu 18.04 Canonical has abandoned their Unity desktop in favor of the GNOME 3 shell.
If you find the memory usage of the solution in #2 as being too high (it adds ~400 MB) you can also try these steps:
- Attach a monitor, log into the “Ubuntu” session, go to
Settings -> Sharing -> Screen Sharing -> turn on screen sharing -> set ‘Access Options’ to ‘Require a password’ and set a password
Close all dialogs afterwards.
- Install the Xorg dummy:
$ sudo apt install xserver-xorg-video-dummy -y
- Modify the file “/etc/X11/xorg.conf” to look like this:
# Copyright (c) 2011-2013 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"
# Allow X server to be started even if no display devices are connected.
Option "AllowEmptyInitialConfiguration" "true"
# Suppress an error in Xorg log
Option "ConnectToAcpid" "Off"
EndSection
# Dummy for headless mode
Section "Device"
Identifier "Dummy0"
Driver "dummy"
VideoRam 16384
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 5.0-1000.0
VertRefresh 5.0-200.0
Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
EndSection
Section "Screen"
Identifier "Screen0"
Monitor "Monitor0"
Device "Dummy0"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 1280 800
EndSubSection
EndSection
- Disconnect the monitor, reboot the Jetson and try to connect to port 5900 with your favorite VNC viewer.
This way you can use the vino server. The downside is that you cannot attach a monitor to the Jetson after this modification. If you want to attach a monitor you have to comment out all the lines below the “# Dummy for headless mode” line.
I am still looking for a solution to have the two drivers (“nvidia” and “dummy”) coexist peacefully.