You are not logged in.

#1 2014-09-01 07:21:09

Modeler
Member
From: United Kingdom
Registered: 2011-07-28
Posts: 70

Does Optimus actually work on Linux?

I have a Lenovo Z50 with hybrid Intel / NVIDIA graphics, using the proprietary NVIDIA driver from extra and bumblebee. The actual hardware is:

Intel HD Graphics 4400
NVIDIA GeForce 820M

The switching part seems to work fine, but the NVIDIA performance is dreadful. Had some disappointing results when running GPU-intensive apps; the Intel GPU producing visibly better results – hardly the point right? glmark2 was returning a score of roughly one tenth of that of the Intel GPU when launched with optirun. It wouldn't work at all with primusrun.

I would be interested to hear other people's experience with this sort of laptop; I can't help feeling that we're losing out because I've seen many a stand-alone NVIDIA card (i.e. its own frame buffer) working beautifully under Linux in the past. Why couldn't Intel and NVIDIA sort it out between them as they did for Windows? As if I don't know the answer already...


Wirth's law: "Software is getting slower more rapidly than hardware becomes faster"

Offline

#2 2014-09-01 08:29:13

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Does Optimus actually work on Linux?

Yes, bumblebee does work, in general at least. It's certainly a pain to set up.

It would be best to check your logfiles (e.g. dmesg, /var/log/Xorg.0.log) for anything suspicious, and post your /etc/bumblebee/* files, so we can check them.

Offline

#3 2014-09-01 10:16:54

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Does Optimus actually work on Linux?

I use bumblebee for quite a while now. it sometimes needs to be kicked in its ass to make it run but when it runs it works good with nvidia drivers.

Regarding glmark2 score, I think the score is just wrong wink
I get lower score when using optirun instead of integrated intel too.
When playing any game (e.g. supertuxkart) using optirun gives A LOT better performance than integrated intel graphics. Therefore I just don't trust glmark2 in this case.


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#4 2014-09-02 10:05:37

Modeler
Member
From: United Kingdom
Registered: 2011-07-28
Posts: 70

Re: Does Optimus actually work on Linux?

Thank you both, that gives me a bit more confidence. I'll try supertuxkart and see if I still have an issue.


Wirth's law: "Software is getting slower more rapidly than hardware becomes faster"

Offline

#5 2014-09-06 23:58:36

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: Does Optimus actually work on Linux?

brebs wrote:

Yes, bumblebee does work, in general at least. It's certainly a pain to set up.

It would be best to check your logfiles (e.g. dmesg, /var/log/Xorg.0.log) for anything suspicious, and post your /etc/bumblebee/* files, so we can check them.

Never had an issue , what do you mean?

PS: you should use bumblebee with primus its mutch faster


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#6 2014-09-08 02:46:39

faiz
Member
Registered: 2014-07-06
Posts: 7

Re: Does Optimus actually work on Linux?

Yep, it certainly does, although I haven't determined the performance differences yet. Certainly it runs glxspheres much better than my integrated unit (using primusrun) and of course you have to fiddle with all the libraries to work correctly together

Aside from all that manual labor, its pretty awesome in terms of power efficiency.

Offline

#7 2014-09-08 10:16:31

Modeler
Member
From: United Kingdom
Registered: 2011-07-28
Posts: 70

Re: Does Optimus actually work on Linux?

faiz wrote:

Certainly it runs glxspheres much better than my integrated unit (using primusrun) and of course you have to fiddle with all the libraries to work correctly together

I followed the steps here:

https://wiki.archlinux.org/index.php/bumblebee

Got bumblebee running with the NVIDIA drivers without any headaches as such, but pacman seemed to do the legwork. There wasn't any fiddling with libraries to speak of, could you elaborate on this at all please?

Thanks.


Wirth's law: "Software is getting slower more rapidly than hardware becomes faster"

Offline

#8 2014-09-08 15:26:47

faiz
Member
Registered: 2014-07-06
Posts: 7

Re: Does Optimus actually work on Linux?

Hey Modeler,

You really only need to fiddle if you're having issues. For ex, with Steam I needed to use the opensource mesa 32bit libs to get their platform to run correctly.

I ended up pairing nvidia's closed-source driver with lib32-mesa-libgl and found that work pretty well with Steam (32-bit app?), where other games like Xonotic worked out of the box. Mainly, I think you should be prepared to install 32-bit libraries as relevant, but otherwise (as long as you're booting X with your intel driver) everything is pretty well explained on that wiki.

If you're having problems with a specific platform, I think you could post the errors here and we could debug, if that helps

Offline

Board footer

Powered by FluxBB