1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

NVIDIA Optimus Unofficially Comes To Linux

NVIDIA

Published on 08 May 2011 03:21 PM EDT
Written by Michael Larabel in NVIDIA
14 Comments

NVIDIA's Optimus multi-GPU technology now works under Linux. Well, at least for some notebooks, it's been hacked together by an open-source developer and in fact is working to use both Intel and NVIDIA graphics processors simultaneously with the respective drivers. This is the best Linux implementation we've seen yet with NVIDIA Corp still not announcing plans to officially support this technology under non-Microsoft operating systems.

Back in early 2010 we learned that NVIDIA had no plans to bring this support to Linux that provides seamless switching for notebooks between Intel and NVIDIA graphics, depending upon workload and power requirements to provide the best overall experience while hopefully extending your laptop's battery life.

There was then a hacked-up proof-of-concept called multi-GPU PRIME rendering written by Red Hat's David Airlie. That work though to this day has remained experimental and is not maintained.

As last year progressed, hybrid graphics support under Linux was still bad. There is though VGA/ASUS Switcheroo for providing some GPU switching support under Linux, but it's far from being seamless and requires manually restarting the X.Org Server, etc. It's also not working with all hardware.

Near the end of April we were beginning to wonder whether NVIDIA Optimus would inevitably come to Linux with NVIDIA expected to announce their Synergy technology at Computex Taipei in June. This upcoming NVIDIA technology is expected to be like Optimus for notebooks, but on desktops instead. When this technology is deployed, NVIDIA may have to deliver on Linux support if their sales volumes under Linux ramp up and this technology becomes much more widespread.

However, an open-source community developer has took things into his own hands and began hacking on some "open-source Optimus" code. He's released the code over the weekend as prime-ng 2.0.

The prime-ng 2.0 code isn't about graphics switching, but rather offloading of work between Intel / NVIDIA GPUs. It's even working on NVIDIA Optimus laptops that don't have the graphics multi-plexer common to other laptops for switching between the graphics processors. This prime-ng code enables 3D acceleration to be used with Intel and NVIDIA graphics simultaneously.

With prime-ng 2.0, the Intel GPU is powering the display and basic desktop while any application(s) the user wishes to run through the NVIDIA GPU can be done by simply running optirun64 [the-application-name] to direct it through the NVIDIA GPU. So this implementation still is not seamless nor does it use any profiles or anything like is found with NVIDIA's Optimus implementation on Windows, but it's a big step forward.

At this point, the code also doesn't power-down the NVIDIA GPU when not in use, so it will continue burning through your battery. So far this prime-ng code has been confirmed to work on several ASUS, Alienware, Acer, and Dell notebooks.

On the plus side, it appears this code works when using the NVIDIA binary driver and just not the open-source Nouveau driver. While the Nouveau driver is nice for some, its usually lacking in terms of power management and other features, the actual ASIC support can be a hit-or-miss between Mesa and Linux kernel releases, and it doesn't provide serious 3D performance for most. This also means though that this implementation isn't sharing GEM/TTM buffers directly or anything in regards to the two drivers actually communicating and interacting with one another.

Another limitation though of this currently implementation is that NVIDIA's VDPAU video acceleration isn't working when the Intel IGP is powering the display, but there may be some ways to work around it.

This prime-ng support was written by a Danish developer, Martin Juhl, and its actual implementation involves using multiple X.Org Servers (one for each GPU) and VirtualGL to make everything work. So it's far from being a polished implementation, but hopefully this will be suitable as an interim solution until NVIDIA decides to officially support Optimus/Synergy in all of its glory under Linux. Even the official implementation though may not be as pleasant as the Microsoft Windows experience due to shortcomings with X.Org, but will eventually be fixed in Wayland.

The project's code is found on GitHub and more information is available via the developer's blog.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. MSI X99S SLI PLUS On Linux
  2. NVIDIA GeForce GTX 970 Offers Great Linux Performance
  3. CompuLab Intense-PC2: An Excellent, Fanless, Mini PC Powered By Intel's i7 Haswell
  4. From The Atom 330 To Haswell ULT: Intel Linux Performance Benchmarks
Latest Linux Articles
  1. RunAbove: A POWER8 Compute Cloud With Offerings Up To 176 Threads
  2. 6-Way Ubuntu 14.10 Linux Desktop Benchmarks
  3. Ubuntu 14.10 XMir System Compositor Benchmarks
  4. Btrfs RAID HDD Testing On Ubuntu Linux 14.10
Latest Linux News
  1. Fedora 21 Beta & Final Release Slip Further
  2. Mesa 10.3.2 Has A Couple Bug-Fixes
  3. RadeonSI/R600g HyperZ Support Gets Turned Back On
  4. openSUSE Factory & Tumbleweed Are Merging
  5. More Fedora Delays: Fedora 21 Beta Slips
  6. Mono Brings C# To The Unreal Engine 4
  7. Coreboot Now Has Support For Intel Broadwell Hardware
  8. Enlightenment's EFL 1.12 Alpha Has Evas GL-DRM Engine, OpenGL ES 1.1 Support
  9. GTK+ Lands Experimental Backend For Mir Display Server
  10. Ubuntu 14.10 Officially Released
Latest Forum Discussions
  1. AMD Radeon VDPAU Video Performance With Gallium3D
  2. HOPE: The Ease Of Python With The Speed Of C++
  3. Updated and Optimized Ubuntu Free Graphics Drivers
  4. Ubuntu 16.04 Might Be The Distribution's Last 32-Bit Release
  5. Linux hacker compares Solaris kernel code:
  6. Advertisements On Phoronix
  7. Users/Developers Threatening Fork Of Debian GNU/Linux
  8. AMD Releases UVD Video Decode Support For R600 GPUs