Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Wed May 29, 2013 9:46 pm

Optimus hybrid graphics (NVIDIA/Intel) using Bumblebee works fine on Linux Mint 15 Cinnamon 64bit - sweet!

Install Bumblebee using the default proprietary nvidia driver:

Open a Terminal and enter

Code: Select all
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia


Reboot
Enjoy

PS: If any problems, make sure nvidia is set as default in bumblebee.conf :
in Terminal
Code: Select all
gksu gedit /etc/bumblebee/bumblebee.conf

Edit the lines starting with
Driver=
KernelDriver=
PMMethod=

to read

Driver=nvidia
KernelDriver=nvidia
PMMethod=bbswitch

Save the file.
Last edited by mint-me on Fri May 31, 2013 7:13 am, edited 1 time in total.
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Linux Mint is funded by ads and donations.
 

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby Wiss on Thu May 30, 2013 12:47 am

Excellent news, I have a question: When using Bumblebee, is necessary also to install the standard NVIDIA drivers by using the "sudo apt-get install nvidia-current" command? If the answer is yes, do I have to do it before or after installing bumblebee?

Thanks
Wiss
Level 1
Level 1
 
Posts: 6
Joined: Sat Aug 18, 2012 9:49 pm
Location: Santiago, Chile

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Thu May 30, 2013 5:52 am

Nothing else is needed to install - that's it !

When using "optirun" command, the application graphics will be driven by Nvidia card.

Try it out:

Code: Select all
optirun glxgears
optirun glxspheres
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby Emilien76 on Fri May 31, 2013 6:21 am

Hi,

Is it possible to use Bumblebee with Nouveau driver (instead of Nvidia driver) on LM 15 Cinnamon 64bits ?
Emilien76
Level 1
Level 1
 
Posts: 1
Joined: Fri May 31, 2013 6:17 am

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Fri May 31, 2013 7:23 am

Emilien76 not sure if its worth it - I've tried running bumblebee with nouveau a few times, but performance was far below that of nvidia. An nvidia driver based install seems to work best...
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby ccheaton on Mon Jun 24, 2013 8:38 am

I have a Lenovo Y580 -- with Optimus -- and was running Linux Mint 14 using Bumblebee. All worked as expected. However, I upgraded to LM 15 and now, I only get a black screen once I pass GRUB. I've tried the various methods listed both here and in other threads (starting with this one viewtopic.php?f=46&t=122257), yet the only way that I can ever boot to the desktop (which looks fine, when I get there) is by adding nomodeset xforcevesa to the GRUB command.

Any ideas on what might be going wrong or on how to fix it? Bumblebee is installed and configured according to the suggestions in this thread. As mentioned, this worked in LM 14, prior to upgrading...
ccheaton
Level 1
Level 1
 
Posts: 2
Joined: Mon Jun 24, 2013 8:29 am

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Mon Jun 24, 2013 9:08 pm

ccheaton i can't really see your problem here, it boots ok after editing grub entry - did you add that entry permanently to grub config? then all will be fine:

Open as root /etc/default/grub
edit it as appropriate, then save.

make the change permanent by issue in terminal
Code: Select all
sudo update-grub


PS: never follow guides on installing Nvidia, when needing Bumblebee, they will ruin the graphics configs. better to remove and purge any Nvidia stuff first, then just add PPA/repository for bumblebee, and install the right way.
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby _John on Tue Jun 25, 2013 3:33 pm

I am running (trying to run rather) this on a very new laptop (Haswell i7 with Geforce GTX 765M) - do I need a newer nvidia driver than the 304?

mint-me wrote:in Terminal
Code: Select all
gksu gedit /etc/bumblebee/bumblebee.conf

Edit the lines starting with
Driver=
KernelDriver=
PMMethod=

to read

Driver=nvidia
KernelDriver=nvidia
PMMethod=bbswitch

Save the file.


Hi, couple of question as it does not work for me at the moment:

Code: Select all
Bumblebeed status:
[ 3832.722564] [INFO]Configured driver: nvidia-304
[color=#FF0000][b][ 3832.722989] [INFO]Loading driver bbswitch (module bbswitch)
ERROR: could not insert 'bbswitch': No such device[/b][/color]
[ 3832.729256] [ERROR]Module bbswitch could not be loaded (timeout?)
[ 3832.729282] [INFO]Skipping switcheroo PM method because it is not explicitly selected in the configuration.
[ 3832.729287] [WARN]No switching method available. [color=#FF00BF]The dedicated card will always be on.[/color]
[ 3832.732213] [ERROR]Daemon already running, pid 29842


how do I handle the bbswitch problem above, also I am unsure whether the statement dedicated card will always be on is right as:

Code: Select all
j@:$ glxheads
glxheads: exercise multiple GLX connections (any key = exit)
Usage:
  glxheads xdisplayname ...
Example:
  glxheads :0 mars:0 venus:1
Name: :0
  Display:     0x191f010
  Window:      0x3c00002
  Context:     0x192da50
  GL_VERSION:  3.0 Mesa 9.1.3
  GL_VENDOR:   Intel Open Source Technology Center
  GL_RENDERER: Mesa DRI Intel(R) Haswell Mobile


@:~/firefox-portable$ optirun glxheads
[ 3999.871602] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 3999.871623] [ERROR]Aborting because fallback start is disabled.


any help with this would be greatly appreciated.
_John
Level 1
Level 1
 
Posts: 13
Joined: Sun May 27, 2012 4:03 am

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Tue Jun 25, 2013 7:21 pm

Hi _John, yes something doesnt look right. The bbswitch module is not loaded and so the Nvidia card will always be ON. I'm not sure what customisations, if any, you have made - but I would try re-installing first:
Code: Select all
sudo apt-get autoremove bumblebee
sudo apt-get purge bumblebee
sudo apt-get install bumblebee bumblebee-nvidia


then check your bumblebee.conf is ok.
reboot
test again...
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Tue Jun 25, 2013 8:00 pm

On second thought, your card being so new may need the latest nvidia to run - http://www.phoronix.com/scan.php?page=n ... px=MTM5NTI

Use the PPA for latest Nvidia drivers:
Code: Select all
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install linux-source linux-headers-generic
sudo apt-get install bumblebee bumblebee-nvidia


if still no joy, try the latest available beta driver by adding PPA:
Code: Select all
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get dist-upgrade


also check this page for good info on installing latest 319 driver - http://askubuntu.com/questions/289659/u ... -bumblebee

good luck!
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby ccheaton on Wed Jun 26, 2013 9:08 am

mint-me wrote:ccheaton i can't really see your problem here, it boots ok after editing grub entry - did you add that entry permanently to grub config? then all will be fine:

Open as root /etc/default/grub
edit it as appropriate, then save.

make the change permanent by issue in terminal
Code: Select all
sudo update-grub


PS: never follow guides on installing Nvidia, when needing Bumblebee, they will ruin the graphics configs. better to remove and purge any Nvidia stuff first, then just add PPA/repository for bumblebee, and install the right way.


The problem is that the grub command causes it to boot using software rendering mode. I haven't been able to get LM 15 to boot using bumblebee. I'm somewhat of a linux noob -- assuming I boot into LM 15 using nomodeset and xforcevesa as GRUB commands, what steps would I then take to remove NVidia drivers, reinstall/confirm bumblebee, test that it works, and then edit the GRUB file so that it uses bumblebee as the default at launch?
ccheaton
Level 1
Level 1
 
Posts: 2
Joined: Mon Jun 24, 2013 8:29 am

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Wed Jun 26, 2013 9:29 am

As described in suggestions of my previous 2 posts...

Remove first:
Code: Select all
sudo apt-get autoremove bumblebee
sudo apt-get purge bumblebee


install latest stable:
Code: Select all
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install linux-source linux-headers-generic
sudo apt-get install bumblebee bumblebee-nvidia



if still no joy, try the latest available beta driver by adding PPA:

Code: Select all
sudo add-apt-repository ppa:xorg-edgers/ppa


then update:

Code: Select all
sudo apt-get update
sudo apt-get dist-upgrade
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby anandrkris on Wed Jun 26, 2013 9:57 am

Good, been using it in my Mint 13 KDE.
Have been waiting for HDMI display to work in a case Nvidia GPU is tied to HDMI display. Looks like it is not yet supported.
Cheers,
If there is a drive, there will be a path
User avatar
anandrkris
Level 5
Level 5
 
Posts: 772
Joined: Fri Nov 16, 2012 1:13 am
Location: Chennai

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby _John on Wed Jun 26, 2013 4:42 pm

Thank you kind sirs - I have managed to get there.

I need the nvidia-319 driver to get to work and I think in my previous attempts I had not fully purged everything.

Code: Select all
~$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Haswell Mobile
62.715357 frames/sec - 69.990338 Mpixels/sec
61.462208 frames/sec - 68.591824 Mpixels/sec


Code: Select all
$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GTX 765M/PCIe/SSE2
137.410038 frames/sec - 153.349602 Mpixels/sec
139.793009 frames/sec - 156.008998 Mpixels/sec


Now will just have to work out how to configure primus properly - also is there a way to monitor GPU temp and run nvidia settings in bumblebee?

thanks again
_John
Level 1
Level 1
 
Posts: 13
Joined: Sun May 27, 2012 4:03 am

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Wed Jun 26, 2013 7:54 pm

Nice to see John, pretty fast card that one. I know little about Primus, just that it is half finished - I stick to Nvidia.

For nvidia-settings:

Install
Code: Select all
sudo apt-get install nvidia-settings


Run like so (create shortcut for launcher)
Code: Select all
optirun nvidia-settings -c :8


I have been there since the beginning of bumblebee development, waiting for proper linux optimus support to arrive - firstly from nvidia themselves, then from primus project, which promised a lot but not delivered yet. I would avoid anything "primus" for now, as its only half-baked...

PS: for monitor GPU temp constantly, there is an applet for cinnamon, though Ive never tried it
http://cinnamon-spices.linuxmint.com/applets/view/111
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Wed Jun 26, 2013 8:35 pm

@anandrkris yes HDMI and multi-monitor support are still experimental (many guides online). If you really need to, you can get it running by customise the bumblebee config files in /etc/bumblebee/, keeping a backup of normal settings to swap over as required.

The recent Bumblebee Configurator GUI makes changing settings easier...
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby _John on Thu Jun 27, 2013 2:39 pm

mint-me wrote:Nice to see John, pretty fast card that one. I know little about Primus, just that it is half finished - I stick to Nvidia.

For nvidia-settings:

Install
Code: Select all
sudo apt-get install nvidia-settings


Run like so (create shortcut for launcher)
Code: Select all
optirun nvidia-settings -c :8


I have been there since the beginning of bumblebee development, waiting for proper linux optimus support to arrive - firstly from nvidia themselves, then from primus project, which promised a lot but not delivered yet. I would avoid anything "primus" for now, as its only half-baked...

PS: for monitor GPU temp constantly, there is an applet for cinnamon, though Ive never tried it
http://cinnamon-spices.linuxmint.com/applets/view/111
_John
Level 1
Level 1
 
Posts: 13
Joined: Sun May 27, 2012 4:03 am

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby _John on Fri Jun 28, 2013 2:45 pm

Hi all, I got a question about how I got the system to work with my new nvidia card:

purge all of bumblebee and nvidida drivers:
Code: Select all
sudo apt-get autoremove bumblebee
sudo apt-get purge bumblebee
sudo apt-get remove --purge nvidia*


rebooted and installed bumblebee afresh:
Code: Select all
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install linux-source linux-headers-generic
sudo apt-get install bumblebee bumblebee-nvidia


installed nvidia-319 driver from edgers:
Code: Select all
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get install nvidia-319*


installed primus as an alternative backend:
Code: Select all
sudo apt-get install primus
sudo apt-get install primus-libs-ia32:i386


went into /etc/bumblebee/bumblebee.conf and ensured it looked like the attached, ie with nvidia-319 everywhere
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
# bbswitch - new in BB 3, recommended if available
# switcheroo - vga_switcheroo method, use at your own risk
# none - disable PM completely
# https://github.com/Bumblebee-Project/Bu ... PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-319
PMMethod=bbswitch #auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-319:/usr/lib32/nvidia-319
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-319/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau


rebooted

and then it worked
_John
Level 1
Level 1
 
Posts: 13
Joined: Sun May 27, 2012 4:03 am

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby cornleader on Sat Jun 29, 2013 6:18 pm

1 Do I have to unload the nouveau drivers first before installing?
2 do I have to stop mdm before installing?
cornleader
Level 2
Level 2
 
Posts: 58
Joined: Fri Mar 01, 2013 11:39 pm
Location: East Coast Canada

Re: Linux Mint 15 on Optimus - Bumblebee works NVIDIA/Intel

Postby mint-me on Sat Jun 29, 2013 7:20 pm

@cornleader no and no.

just install, and let bumblebee do its magic...
LMDE 64b Cinnamon | LMDE 64b Mate | Debian 7 64b | Mint 15 Cinnamon 64b
Dell Inspiron 15R(N5110) Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express HM67
GeForce GT525M, 500G SATA, 15.6" HD 1366x768 Optimus on Bumblebee
mint-me
Level 2
Level 2
 
Posts: 82
Joined: Sat May 26, 2012 2:25 am
Location: australia

Linux Mint is funded by ads and donations.
 
Next

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 28 guests