Best Intel/Nvidia hybrid solution
I just got a new laptop and I was wondering the best way to implement switchable hybrid graphics. The laptop has Intel HD Graphics 530 for integrated and a Nvidia Quadro M1000M as the discrete card.
On the Wiki, it seems like you can use Bumblebee with the proprietary drivers or PRIME with the Nouveau drivers. I am not entirely sure of the differences between Bumblebee or PRIME. It looks like PRIME handles automatic switching better but I am not sure I fully understand. I would appreciate any suggestions / opinions on which is better. I do CUDA programming every once in a while and I know that the proprietary blob is required but I have other machines that I can do that on if PRIME seems to be the better solution.
About this post
- Posted
- Archived
- Score
- 9 · 100% up
- Kind
- Text
- ID
- 672i06
14 comments
Open source Nvidia drivers perform awfully, so if you want to actually run things on it, Bumblebee or nvidia-xrun is the way to go.
Deleted before we saved it.
Thanks for the info!
I have a bumblebee solution for when I'm not plugged in at home, because I can easily turn off the gpu to save power. When I know I'll be at home, I'll use a xrandr offloading setup to get maximum performance (bumblebee copying is slower than copying the entire x-server).
So are you saying at home you use discrete for everything and then hand off to integrated just for the display?
Yeah, I've compared performance with bumblebee and just copying to integrated. It seems to make a large difference, so I prefer running on discrete if I can.
I use bumblebee with bbswitch using the primus bridge. Works great, this is on a laptop with a Xeon and M2000M.
With bbswitch do you have to manually set programs to use the discrete card?
Yes you do.
From the command line I precede the game with
optirun, e.g.:The thing I mentioned about the primus bridge is the method it uses to transport the video to the card, default is VirtualGL but primus seems to be quicker. You can either set that as the default in your
/etc/bumblebee/bumblebee.confor launch optirun using the -b option:Cool thing you can do in Steam is edit the properties then there's a button for launch options or something similar. All of my games are set as:
Forces those games in Steam with that setting to use the nvidia card.
Edit: spelling in places
+1 for bumblebee, it gives you a lot more performance while allowing you to specify what should be run with it (notice that it isn't something automatic, you need to start the application with optimusrun/primusrun to make use of the dedicated gpu)
Thanks for the info! Does bbswitch allow for the automatic handling or do you have to create a custom launcher no matter what with bumblebee?
Afaik, no, it doesn't, you have to manually create/edit your current launchers to start the resource intensive programs with the dedicated gpu. I'd love if someone could point me wrong though, it would make life easier for me lol
I finally got triple monitor to work, using:
bumblebee;
intel-virtual-output: this thing "routes" the frames generated by bumblebee into a virtual screen that xrandr and alike recognize;
nvidia drivers: I hadn't much success in the past with nouveau.
The nice thing about bumblebee is that I can run heavy weight software directly on the hdmi port by changing the DISPLAY environment to ":8" + optirun. Note that you should not let intel-virtual-output opened when you are using this aproach.
There is a lot of quirks for this to actually work, so expect a lot of googling :).