Configuring NVIDIA Mosaic on Ubuntu can enhance your multi-display setup, allowing seamless use of multiple screens as one large desktop. This guide will provide a detailed walkthrough of the steps necessary to successfully install, configure, and troubleshoot NVIDIA Mosaic on Ubuntu.
Disable Wayland: Edit the GDM configuration file to disable Wayland. Open the terminal and run:
sudo nano /etc/gdm3/custom.conf
Uncomment or add the line:
WaylandEnable=false
Blacklist Nouveau Driver: Prevent the Nouveau driver from loading by adding it to the blacklist. Run:
sudo bash -c 'echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf'
Additionally, blacklist other NVIDIA modules:
sudo bash -c 'echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf'
sudo bash -c 'echo "blacklist nvidia-drm" >> /etc/modprobe.d/blacklist.conf'
sudo bash -c 'echo "blacklist nvidia-modeset" >> /etc/modprobe.d/blacklist.conf'
Update the initial RAM filesystem:
sudo update-initramfs -u
And then reboot your system:
sudo reboot
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
<version>
with the appropriate version, for example:sudo apt install nvidia-driver-525
Reboot your system again:
sudo reboot
nvidia-settings
utility is installed:sudo apt install nvidia-settings
After installation, you can configure the displays in Mosaic mode:
nvidia-settings
sudo nvidia-xconfig
If finer control over the settings is desired, you may want to manually edit the Xorg configuration:
/etc/X11/xorg.conf
file:sudo nano /etc/X11/xorg.conf
Section "Device"
Identifier "NVIDIA Card"
Driver "nvidia"
Option "MetaModes" "1920x1080 +0+0, 1920x1080 +1920+0, 1920x1080 +0+1080, 1920x1080 +1920+1080"
Option "nvidiaXineramaInfo" "FALSE"
EndSection
Section "Extensions"
Option "RANDR" "Disable"
EndSection
CTRL + X
, then Y
, and Enter
.Once done, reboot your system again:
sudo reboot
Once your system is back up:
nvidia-settings
Check that the displays are properly configured under the Mosaic setup.
/etc/X11/xorg.conf
.xorg.conf
./var/log/Xorg.0.log
for errors that may indicate problems with the NVIDIA drivers or display settings.By following these steps, you should be able to set up and configure NVIDIA Mosaic on your Ubuntu system successfully. Keep in mind that configurations may vary depending on the specific hardware in use and occasionally require adjustments. Always consult the latest NVIDIA documentation for up-to-date configuration and troubleshooting guidance.