We do often include affiliate links to earn us some pennies. See more here.

Thanks to a little Twitter tip, we've learned today that NVIDIA are indeed working to provide better support for NVIDIA Optimus on Linux.

Currently, if you have a laptop with NVIDIA Optimus the official NVIDIA driver gives you the option between using the Intel GPU or switching over to the NVIDIA GPU. It doesn't handle it like you would expect it to on Windows, where it would offload the work to the more powerful NVIDIA GPU. Not an ideal situation, to switch between the two GPUs and from when I had a laptop with one (some time ago) it required logging out before it would take effect.

There's a forum topic talking about it on the official NVIDIA forum, which has been open since 2016. Aaron Plattner from NVIDIA said they were looking into it, but that was also back in 2016. A few hours ago, Plattner again gave an update in that post about it:

Hi folks,

Yes, it's still being worked on. Kyle laid the groundwork with the server-side vendor-neutral dispatch code that's in X.Org xserver 1.20. There's still some more work to be done there and support for it needs to be wired up inside our driver, but basic support for loading NVIDIA's GLX as a vendor in the server is in place. Kyle is putting together a proposal for the next steps.

Since I'm not currently up to speed on all the developments surrounding it, I thought it was quite interesting to learn. Hopefully some of you will too.

There are other ways to do it currently on Linux, like Bumblebee but having it done officially would be great. The less hassle Linux users and gamers have to go through, the better it is for everyone.

Hat tip to Luke.

Article taken from GamingOnLinux.com.
Tags: Drivers, NVIDIA
16 Likes
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly checked on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly.
See more from me
The comments on this article are closed.
37 comments
Page: «3/4»
  Go to:

edo Aug 16, 2018
At least now they are working on it, good prime support on linux has been in the dark since ever.
Arranmc182 Aug 16, 2018
Open Source the "NVIDIA X Server Settings" program at least that way distro's could start integrating better controller over the driver directly in to the OS.
FutureSuture Aug 16, 2018
It is great to read so many positive comments regarding AMD's open source efforts on Linux, these efforts pertaining to both desktops and laptops as well. My next laptop will definitely sport AMD hardware.
beniwtv Aug 16, 2018
Quoting: GuestIs this feature in place yet for AMD?

2-3 years ago I used it on an Intel IGP/AMD dGPU laptop, worked like a charm. It even powered off the dGPU when not in use automatically, to save battery power.

The only thing is you'd have to put DRI_PRIME=1 in front of the game in Steam, or the game's launcher, as it doesn't automatically offload to the dGPU without you telling it to via that environment variable. As I recall, at that time on Windows it was the same only that you got a popup-notification after you closed a game on which GPU you want to run it.

I am not even sure automatic switching could be done reliably, short of providing a list of games or applications within the driver (that's probably what Nvidia does on Windows).

Note also that DRI_PRIME works between all Mesa DRM drivers -> Intel to AMD, AMD to Intel, AMD to AMD (that's how people could use Vega pre-DC), etc...
burningserenity Aug 16, 2018
Quoting: 14I've messed up my display settings multiple times on my laptop that has both an IGP and discrete Nvidia graphics. Thank goodness I had other computers to search the internet for help! I'm afraid to try it again because of those experiences.

I've been there! Distro hopped all over the place trying to make it work consistently. Nvidia-xrun works okay if you don't mind using fluxbox or something basic to run a single game. This guide worked the best for me. Somehow I messed it up several times before getting it to work, but lately I made it work on both Manjaro and Kali Linux.
Thormack Aug 16, 2018
Quoting: TeqI just got a laptop with Optimus and was bummed to find out (the hard way) that bumblebee doesn't support Vulkan. Hopefully this solution will.


I just found about this after reading this article :(


Just realized why I could not get DXVK working.
Sad, sad...
Leopard Aug 16, 2018
Quoting: Thormack
Quoting: TeqI just got a laptop with Optimus and was bummed to find out (the hard way) that bumblebee doesn't support Vulkan. Hopefully this solution will.


I just found about this after reading this article :(


Just realized why I could not get DXVK working.
Sad, sad...

Vulkan works via Nvidia Prime but i highly recommend using it on a Ubuntu 16.04 based distro.

I can play Doom 2016 Vulkan via Wine , Gta5 , Witcher 3 via DXVK , Talos Principle , RoTR , Mad Max etc via Steam.

Looks like you didn't even try native Linux Vulkan titles before.
Leopard Aug 16, 2018
Quoting: HoriWill it work for older cards like a 610M?
I don't really care that much since Bumblebee works well enough and I'm not really using this old laptop anymore (not for gaming that is), but it would still be nice if it did.

Probably it will since Optimus is same since years. You will need X.org version that supports it and Nvidia driver that contains this support.
cc2600 Aug 16, 2018
Quoting: GuestMy 700 EUR, 24 inch, Ryzen 5 1600 and RX 560 gaming PC gives 3268 points in the Unigine Superposition benchmark at 1080p Medium. What your xxxx EUR intel/nv laptop gives?

So just for fun, my 1055 EUR 17 inch laptop (which i can pick up an plug into my tv whenever i want) scored 6813 on the Unigine benchmark at 1080p medium... Am I a serious gamer yet?! xD
14 Aug 17, 2018
View PC info
  • Supporter Plus
Quoting: burningserenity
Quoting: 14I've messed up my display settings multiple times on my laptop that has both an IGP and discrete Nvidia graphics. Thank goodness I had other computers to search the internet for help! I'm afraid to try it again because of those experiences.

I've been there! Distro hopped all over the place trying to make it work consistently. Nvidia-xrun works okay if you don't mind using fluxbox or something basic to run a single game. This guide worked the best for me. Somehow I messed it up several times before getting it to work, but lately I made it work on both Manjaro and Kali Linux.
Thanks. Maybe I'll get the guts to try again someday. It would be nice for the few games I play on my laptop to run smoother.


Last edited by 14 on 17 August 2018 at 12:30 am UTC
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
The comments on this article are closed.
Buy Games
Buy games with our affiliate / partner links: