Confused on Steam Play and Proton? Be sure to check out our guide.
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
15 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. You can also follow my personal adventures on Bluesky.
See more from me
The comments on this article are closed.
All posts need to follow our rules. For users logged in: please hit the Report Flag icon on any post that breaks the rules or contains illegal / harmful content. Guest readers can email us for any issues.
37 comments Subscribe
Page: «2/2
  Go to:

edo 16 Aug 2018
At least now they are working on it, good prime support on linux has been in the dark since ever.
Arranmc182 16 Aug 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 16 Aug 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 16 Aug 2018
Is 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 16 Aug 2018
I'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 16 Aug 2018
I 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 16 Aug 2018
I 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 16 Aug 2018
Will 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 16 Aug 2018
My 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 17 Aug 2018
View PC info
  • Supporter Plus
I'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 Aug 2018 at 12:30 am UTC
slaapliedje 17 Aug 2018
Gnome 3.28.x has added detection for Optimus, when I right click on an icon in the gnome-shell it has an option that says "Launch using Dedicated Graphics Card" Haven't actually tried it yet, since I haven't set up bumblebee or whatever on my laptop.
poisond 17 Aug 2018
I really don't understand the concept of "serious gaming".

Also, @debianxfce. the objects you play with are commonly called toys, hence your "gaming" desktop is a toy desktop.

@TemplarGR While buying laptops solely for gaming certainly is more expensive and you won't get anywhere near desktop-like performance (unless you buy one of those silly laptops that weigh 10kg and have two power bricks), I can imagine portability beeing an argument. Even if portability means moving from the living room desk to the bedroom desk because you're not living alone and want some privacy for your hentai game.


Last edited by poisond on 17 Aug 2018 at 3:30 pm UTC
stretch611 17 Aug 2018
My gaming laptop is a beast. Yes, it was expensive. Yes it is heavy compared to other laptops. (7lbs/3.2kg + power brick)

My earlier post explained why I need/desire a laptop over a desktop. It essentially lets me bring my laptop to my clients to show them demos. It also allows me to visit relatives and continue to be productive and work while away; as well as feed my gaming addiction while away.

My specs are outlined on my profile (updated today only to change to open source driver now that I am using AMD). And yes, they are higher than specs already mentioned in the comments from this article (both desktop as well as laptop.) And while the specs of my laptop can give me a huge e-peen rating, I really don't care. I buy high end when I get it because it lasts longer and means I do not need to replace it as soon; as long as it handles all my gaming and development needs.

I do not know what my benchmark rating is... I have not installed any benchmark utility on a computer since well before I completely dropped windows over 10 years ago. I know I can have a virtual machine(s) running servers in the background while playing my games at the same time. I care that my computer handles what I throw at it, not whether or not a number derived from a test of implied performance based on bs datapoints is higher than someone else's number. I may be on top now, but my laptop was bought less than one month ago... next year I will not be on top (realistically, next month.) I care that it does what I want it to, not that I paid more than someone I never met over the internet.

Yes, my laptop is classified as gaming/desktop replacement. Yes it is heavier. I don't care that the laptop is heavy... even with the powerbrick it is only about 10lbs/4.5kg. As my handle implies, I am 6'11" (2.11m) tall; what part of that laptop weight seems to be a burden... honestly, even a normal sized wimp shouldn't have a problem carrying that much weight around.

Again, I am a serious gamer. I DON'T GIVE A DAMN HOW OTHER PEOPLE DEFINE THAT. In order, the 3 games I have spent the most time on have been Rimworld, Factorio, and Prison Architect for a total of 3600 hours according to steam. If that isn't proof of gaming addiction, I am not sure what is; not to mention the other games I play. Being a serious gamer doesn't mean that I need to have to play the flavor of the month first person shooter, or require a certain OS/platform. Hell, I can be a serious gamer playing Nethack, Dwarf Fortress, or creeper world... and no one should care whether I get 5900 or 6000 frames per second playing those games; it really doesn't matter.
cc2600 17 Aug 2018
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

Less than 1000 EUR you can build the following gaming PC that is faster and better than your toy. Prices include 24% VAT except 3 last items are from aliexpress and are tax free.

Samsung 24" S24F350H 109
Gigabyte Radeon RX 570 Gaming, 4GB GDDR5 259
Corsair 8GB (1 x 8GB) Value Select, DDR4 2666MHz, CL18 97
Asus PRIME B350M-K 85.9
AMD Ryzen 5 2600 179
Antec VSK-3000B-U3/U2, mATX 29.9
Chieftec 500W 42.9
Kingspec m.2 nvme 512GB 96.57
Motospeed K70 16.52
Professional Wired Gaming Mouse 7 Button 5500 DPI LED Optical USB  6.48

922.27 EUROs

Thanks for the build! It's very nice, but a serious gamer should be using a 32 inch monitor and windows.
RafaelDoge 18 Aug 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.
I'm pretty sure it already is open-source, see here: https://github.com/NVIDIA/nvidia-settings
cc2600 18 Aug 2018
[quote=Guest][quote=cc2600]
slow TV

hahahahaha
juliotux 28 Sep 2018
During the X.org Developer's Conference 2018, occurred one presentation about EGL extensions directed to device selection and a workshop with Kyle Brenneman from NVIDIA, also known as Kyle the Savior, who is cited in the NVIDIA forum post. So, they are still designing the proper Optimus support for Linux, but we rope they figure out a way soon.
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.