The objective is to install the NVIDIA drivers on Manjaro 18 Linux. This article will discuss two methods of Nvidia driver installation in the following order:
  • Automatic Install using the standard Manjaro Repository.
  • Manual Install using the Official nvidia.com driver.
Installed NVIDIA drivers on Manjaro 18 Linux.
Installed NVIDIA drivers on Manjaro 18 Linux. After installation, optionally run Nvidia graphic card test by following our Benchmark Your Graphics Card On Linux guide.

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Criteria Requirements
System Manjaro 18 Linux
Software Existing Desktop installation such as Xfce, GNOME, KDE etc.
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

Automatic Install using the standard Ubuntu Repository

The first method is the easiest to perform and in most cases it is the recommended approach. In fact there is not much to write about as the entire installation consists of a single command:

  1. Open up terminal and execute the following command:


    $ sudo mhwd -a pci nonfree 0300
    
    The above command will auto detect and install an appropriate proprietary Nvidia driver on your Manjaro 18 Linux system.
  2. Once the installation is concluded, reboot your system and you are done:
    $ sudo reboot
    
  3. Start Nvidia Settings application to further configure your graphic card:
    $ nvidia-settings
    

Manual Install using the Official Nvidia.com driver

The previous Nvidia drivers installation was rather easy. In the case that you wish to install latest Nvidia drivers or perhaps install a specific Nvidia drivers version directly downloaded from Nvidia.com this is how you can get your hands dirty.

  1. Identify your NVIDIA VGA card.The below commands will allow you to identify your Nvidia card model:
    $ lspci -vnn | grep VGA
    
  2. Download the Official Nvidia Driver. Using your web browser navigate to the official Nvidia website and download an appropriate driver for your Nvidia graphic card. Save the file into your home directory. Example:
    $ ls
    NVIDIA-Linux-x86_64-410.73.bin
    
  3. Install Prerequisites. Development tools and kernel headers are required to compile and install Nvidia driver. Let' s start by installation of kernel headers. First, we need to detect currently loaded kernel. For example:
    $ uname -r
    4.19.0-3-MANJARO
    
    The kernel headers we need to install are linux419-headers:
    $ sudo pacman -S linux419-headers
    
    Next task is to install development tools. Execute the bellow command and hit ENTER to install all:
    $ sudo pacman -S base-devel dkms
    
  4. In this step we will disable the default nouveau drivers. To do so we need to open and edit the /etc/default/grub Grub configuration file.

    Locate the line starting with GRUB_CMDLINE_LINUX and include the following code nouveau.modeset=0.

    Example:


    $ sudo nano /etc/default/grub
    
    Alter the GRUB_CMDLINE_LINUX line:
    GRUB_CMDLINE_LINUX="nouveau.modeset=0"
    
    Once you have made the change update GRUB:
    $ sudo update-grub
    
    WARNING
    After reboot, your display manager may NOT start. Do not panic when you are greeted with black screen! Simply change to TTY using ALT+CTRL+F2 key combination or SSH to your Manajaro System remotely and proceed with the next step.
    Reboot your system:
    $ sudo reboot
    
  5. Login and begin the actual installation of Nvidia driver by executing the following linux command and following the wizard:
    $ bash NVIDIA-Linux-x86_64-410.73.bin
    
    You may also be asked questions like:
    The distribution-provided pre-install script failed!
    Install NVIDIA's 32-bit compatibility libraries? -> YES
    Would you like to run the nvidia-xconfig utility? -> YES 
    
    The Nvidia driver is now installed.
  6. Reboot your system:
    $ sudo reboot
    
  7. Configure NVIDIA X Server Settings. After reboot you should be able to start NVIDIA X Server Settings app from the Activities menu.
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME or create a JOB ALERT on LinuxCareers.com job portal.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions