Skip to content

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.

9 points13 comments
Open on Reddit
About this post
Posted
Archived
Score
9 · 100% up
Kind
Text
ID
672i06

Author

8
posts
32
comments
4
media
View profile

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.

7 points
unknown author

Deleted before we saved it.

1 points

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).

4 points

So are you saying at home you use discrete for everything and then hand off to integrated just for the display?

1 points

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.

3 points

I use bumblebee with bbswitch using the primus bridge. Works great, this is on a laptop with a Xeon and M2000M.

3 points

With bbswitch do you have to manually set programs to use the discrete card?

2 points

Yes you do.

From the command line I precede the game with optirun, e.g.:

optirun minecraft

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.conf or launch optirun using the -b option:

optirun -b primus minecraft

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:

optirun %command%

Forces those games in Steam with that setting to use the nvidia card.

Edit: spelling in places

5 points

+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)

3 points

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?

1 points

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

2 points

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 :).

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.