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. ASRock X99 Extreme3 Is An Affordable Choice For Linux Users
  2. A Walkthrough Of The New 32 System Open-Source Linux Benchmarking Test Farm
  3. Habey MITX-6771: Mini-ITX Board With Quad-Core J1900 Bay Trail
  4. OCZ Vector 150 SSD On Linux
Latest Linux Articles
  1. 2014 Year-End NVIDIA Linux Benchmark Comparison
  2. 2014 Catalyst Linux Graphics Benchmarks Year-In-Review
  3. 17-Way Linux Graphics Card Comparison With Civilization Beyond Earth
  4. AMD Kaveri: Open-Source Radeon Gallium3D vs. Catalyst 14.12 Omega Driver
Latest Linux News
  1. Valve Optimizations, D3D9 & GL4 Topped Mesa This Year
  2. Minetest 0.4.11 Released As Open-Source Alternative To Minecraft
  3. SPI Hasn't Yet Voted On X.Org As An Associated Project
  4. The Most Controversial Systemd Stories This Year
  5. Mode-Setting Driver Now Supports VBlanks With Present
  6. Marvell Releases New Open-Source 802.11ac WiFi Driver
  7. The Most Popular Ubuntu News Of 2014
  8. GNU Binutils 2.25 Released With Port To Andes NDS32
  9. Merry Christmas & Happy Holidays 2014
  10. OpenMW 0.34 Released With Many Changes
Latest Forum Discussions
  1. Why is it that Radeon cannot run good old (ancient) Doom 3 engine games?
  2. MONITORed values : possible to force the time interval between two measurements ?
  3. Debian init discussion in Phoenix Wright format
  4. Need some hand holding with upgrading xserver
  5. Aliens vs predator for Linux
  6. FPS capped on Linux (AMD fglrx drivers)
  7. Speeding up systemd networking service
  8. Storm Engine 2 (Doom 3 BFG GPL fork) got entry on IndieDb