How to install Nvidia Optimus Driver on Ubuntu 22.04?
Overview
The hybrid GPU solution known as Nvidia Optimus uses discrete switching and has a history of causing problems and having restrictions on Linux systems. After many years of waiting, Ubuntu was finally released with a sparkling new kernel that is compatible with proprietary drivers and is simple to install.
Within the same computer system, switching between two GPUs is made simple by Nvidia Optimus. It uses a hybrid GPU switching technique that uses the least amount of system power while yet delivering maximum performance. In the event of high workload overload, particularly when a more demanding program is running on the PC, it instantly switches to a dedicated graphics card.
This tutorial will show you how to install Nvidia Optimus Driver on Ubuntu 22.04.
Prerequisites
There are certain prerequisites that need to be met before you begin.
Server with Ubuntu 22.04
Non-root user (sudo-enabled)
Key
Red Color: Input
Green Color: Output
Common prompts
When using sudo to execute a command, you might be asked for your user password.
When a command is executed, you could be asked if you wish to carry it out further or not. Enter "Y" to proceed or "n" to end, and then press ENTER.
Get Started
Step 1: Update all dependencies
Run the below command to fetch the package information from all configured sources.
Step 2: Download installation package
Run the below command to download and install the package fetched above.
Step 3: Install Nvidia Optimus Driver
Execute the Nvidia Optimus Driver installation command as:
Step 4: Verify Nvidia Optimus Driver installation
To verify the installation of the Nvidia Optimus Driver, run the command below:
Conclusion
Ubuntu's repository has to be updated before installing the Nvidia Optimus Driver. To install the driver, use the apt command. Verify the drivers' installation to make sure everything went well.
Last updated