âOfficialâ Optimus support by Nvidia vs. Bumblebee/Primusrun - Is it worth it?
Yesterday I wrote about how to use the ânewâ features of the proprietary Nvidia-driver, instead of Bumblebee, in order to get the most out of an Optimus-enabled laptop.
The interesting question: Was it worth the hassle?
Short answer: no it wasnât (except for finding new ways to break stuff).
To get some clarity about how the now âofficialâ way to do Optimus on Linux benefits the performance I get out of my card, I ran the Unigine Heaven Benchmark, once with Bumblebee and once with the Nvidia Method:
Results: Using the âofficialâ Nvidia method leads to a result (606 points), which is actually slightly worse than using Bumblebee (608 points), so Iâll probably stay with Bumblebee for quite some time. Thanks for getting my hopes up Nvidia >_<.
For some added trolling, I also tried to run the benchmark on my Intel card, the results werenât even all that bad:
Score-wise, my Intel GPU landed just below half of the performance of my Nvidia GPU, which is actually kinda impressive.
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
â Live Streamingâ Interactive Chatâ Private Showsâ HD Qualityâ Free Actions
Free to watch ⢠No registration required ⢠HD streaming
... but on a system, which is also using bumblebee because youâre too effing lazy (at least I was) to use a fresh install.
Starting everything off with the xorg.conf as found at http://http.download.nvidia.com/XFree86/Linux-x86/319.32/README/randr14.html.
Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" # Uncomment this line if your computer has no display devices connected to # the NVIDIA GPU. Leave it commented if you have display devices # connected to the NVIDIA GPU that you would like to use. Option "UseDisplayDevice" "none" #Option "AllowEmptyInitialConfiguration" "Yes" EndSection Section "Device" Identifier "intel" Driver "modesetting" Option "AccelMethod" "sna" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection Section "Files" ModulePath "/usr/lib/nvidia/,/usr/lib/xorg/modules/" EndSection
The last section (which is the main difference to the link before) makes sure Xorg actually finds the nvidia-driver (maybe necessary because of bumblebee?)
With this Xorg.conf you will see nothing but a black screen, when you start X, so enter .xinitrc:
The first line makes it so that applications can use the nvidia-driver. The xrandr-lines tell X to use the nvidia-card for rendering and set the resolution automatically. The last line starts i3, the objectively best window manager in every possible way.
Be warned that the changed xorg.conf will break graphical login-managers and stuff like that, because those don't execute your .xinitrc before logging in. Might wanna look into that one later.