


For example, launch SuperTuxkart (a kart racing game) via command: _NV_PRIME_RENDER_OFFLOAD=1 _GLX_VENDOR_LIBRARY_NAME=nvidia supertuxkart You can do this by launching apps from command line. Then there’ll be application-specific menu to tell it which device to use.Ģ.) For other apps, just use the following environment variables. Run certain apps via NVIDIA GPU while rendering desktop via integrated graphicsīy setting GPU mode to “NVIDIA On-Demand”, you may run certain apps via NVIDIA GPU, while others handled by the integrated GPU.ġ.) For CUDA apps, you need to run command in terminal (Ctrl+Alt+T) to install the nvidia-cuda-toolkit package. As a workaround, choose Intel graphics card by running sudo prime-select intel in terminal.Ĭhanging GPU mode however needs log out and back in to apply changes. In my case, the “Intel (Power Saving Mode)” is somehow grayed out. Intel (Power Saving Mode) – use integrated graphics to render Ubuntu desktop.NVIDIA On-Demand – use integrated graphics to render desktop, but possible to offload specific apps via dedicated GPU.NVIDIA (Performance Mode) – use dedicated NVIDIA GPU to render Ubuntu desktop.Then you’ll see three options available in the right: When the app opens, navigate to ‘ PRIME Profiles‘. To switch GPU mode, search for and open ‘ NVIDIA X Server Settings‘.
/ubuntu-nvidia-5c7857eb46e0fb00011bf29d.jpg)
When done, restart your computer! Switch between NVIDIA and Intel Graphics:Īfter restart, your machine will be on performance mode with the dedicated GPU. There will be a little bar indicates the installing process. Then re-launch the ‘Software & Updates’ utility.Ĭhoose one of the drivers from the list and click on ‘ Apply Changes‘ to install it. If it shows nothing, press Ctrl+Alt+T to open terminal and run command sudo apt update to refresh package cache. There it should list all available graphics drivers. Make sure ‘restricted’ repository enabledĢ.) Next, navigate to ‘ Additional Drivers‘ tab.
