Bumblebee & Nvidia Proprietary on SolydXK 64bit

Post your tutorials and howtos here.
User avatar
just
Posts: 297
Joined: 07 Nov 2013 08:06
Location: Rovaniemi, Finland

Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby just » 07 Nov 2013 15:27

edit 2018-03-14:
edit 2017-06-21:
edit 2015-07-18:
edit 2015-07-12:
  • if you install both bumblebee and firmware on fully dist-upgraded siduction indian summer, then following these steps, in order, may help to avoid problems with installed but not working bumblebee
    1. install bumblebee and virtualgl first. firmware must not be installed (yet)
    2. check that they work correctly and backup the system
    3. proceed with firmware installation now
    4. do not install firmware-linux-nonfree package. install only firmware really required by computer's hardware
    5. use fw-detect tool to detect, install and activate it. it were only atheros and realtek drivers here.

edit 2015-07-08:
  • Tanglu 3 Chromodoris willani RC2 Gnome and Kde 64bit daily builds added to the list of e) distros the guide was tested on
  • the three-months pause, when it was impossible to install bumblebee on Debian kernels higher than 3.17 and a recent software, is over. Tanglu 3 uses kernel 4.0, Gnome 3.16, Kde Plasma 5.3.
  • to install bumblebee, simply follow the steps from b.04 to b.09. no other steps are required, as no problems were encountered during bumblebee installation on Tanglu 3.
  • as usual on debian, remember to install separately the latest VirtualGL (currently 2.4.1), to get the most from bumblebee on nvidia-optimus

edit 2015-06-08:
  • the shiny new SolydXK-201506 stable release, the wonderful mother-distro of this guide, is tested, works and added to the list of e) distros the guide was tested on
  • DDM is the preferred way to install bumblebee on SolydXK. use this guide only if the computer freezes during the installation. make by hand two more steps, done by DDM:
  • as always on debian, remember to install separately the latest VirtualGL package (currently 2.4). bumblebee is useless without it. DDM doesn't install VirtualGL.
  • debian's wiki erroneously suggests to use glxgears to test bumblebee. glxgears is for mesa testing on single-GPU video cards. double-GPUs cards may be tested with glxspheres64 only. the utility is automagically installed along with the VirtualGL package.

edit 2015-04-30:
  • Debian 8.0.0 Jessie Mate, Cinnamon, Gnome, Kde 64bit (full and live images) added to the list of e) distros the guide was tested on
  • debian by default doesn't include standard user(s) to the sudoers file, so all commands must be executed by root (without sudo)
  • as on all debian systems, remember to install separately the latest VirtualGL (currently 2.4), to get the full bumblebee's graphical acceleration power

edit 2015-04-10:
  • Linux Mint LMDE 2 Betsy Cinnamon and Mate 64bit added to the list of e) distros the guide was tested on
  • seems like the final release suffers from alternate optirun problem: failure-success-failure-success... add one parameter to the kernel's boot line to cure it:

    Code: Select all

    rcutree.rcu_idle_gp_delay=1 


edit 2015-04-03:
  • siduction Indian Summer 14.1.0 amd64 2014-11-23 Cinnamon, Gnome, Kde added to the e) distros the guide was tested on section
  • to access bumblebee packages, contrib and non-free components must be added to default siduction's debian repo:

    Code: Select all

    /etc/apt/sources.list.d/debian.list
    
    # debian loadbalancer
    deb http://http.debian.net/debian/ unstable main contrib non-free
    #deb-src http://http.debian.net/debian/ unstable main contrib non-free
  • for siduction only, both primus and primus-libs:i386 packages must be installed explicitely. so they turn back to the main installation command, step b.04. installation is done by the full command:

    Code: Select all

    $ sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia primus primus-libs:i386
  • the full installation command works equally well in all tested distros: SolydXK, LMDE, KWheezy, Tanglu, siduction, Debian
  • for siduction only, bumblebee installation must be done on the default, stock kernel

    Code: Select all

    3.17-4.towo-siduction-amd64
    once bumblebee is installed, the kernel may be upgraded to more recent version, currently

    Code: Select all

    3.19.3-towo.1-siduction-amd64
    bumblebee will continue to work on the upgraded kernel. installing bumblebee on non-default, upgraded kernels results in bumblebee's configuration (still unresolved) problems


edit 2015-03-27:
  • Tanglu 2.0 Bartholomea annulata GNOME and KDE 64bit editions added to the e) distros the guide was tested on section
  • Differently from SolydXK, Tanglu 2.0 offers slightly older Nvidia and Bumblebee packages. In modern SolydXK Bumblebee installation is finished by executing steps b.01 through b.09. Tanglu users must complete the Bumblebee configuration by hand, simply executing steps b.10 through b.14 as well.


edit 2015-03-21:

edit 2015-01-31:

edit 2015-01-31:
  • regularly tested on and works with all SolydXK Nightly builds of:
    • 2015.01, 02, 03, 04, 05, 06, 07
  • primus and primus-libs:i386 packages are removed from the installation command, step b.04. both are installed as dependencies in SolydXK, LMDE, Tanglu. there's no need to install them explicitely. the installation command is abbreviated to:

    Code: Select all

    $ sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia


edit 2015-01-08:
  • the guide works even better for SolydXK Nightly builds. on NVIDIA GeForce GT 555M and NVIDIA GeForce GT 750M video cards installation ends up successfully at step b.09. no additional steps are needed.


edit 2014-11-26:

edit 2014-07-31:

edit 2014-06-01:
  • the broken link to glxspheres in f) useful links is fixed
  • nvidia optimus video cards the guide was tested on are added to the e) distros the guide was tested on section


edit 2014-05-06:
  • new entry added to f) useful links: install bumblebee on solydxk using ddm


edit 2014-05-03:
  • minor changes in few commands in the b) bumblebee: short guide section
  • new entries added to the section e) distros the guide was tested on:
    • solydx-201405
    • solydk-201405
    • kwheezy-1.4
    • kwheezy-1.5


edit 2014-03-20:
  • a) do i have an optimus card? - added
  • b) bumblebee: short guide - added
  • c) bumblebee: detailed guide - the original one; code blocks formatted
  • d) tribute to linuxmint - added
  • e) distros the guide was tested on - added
  • f) useful links - added



a) do i have an optimus card?

first things first. an excerpt from https://github.com/Bumblebee-Project/Bu ... leshooting :
Are you really using an nVidia Optimus card?

Only laptops have these kind of nVidia Optimus card, so this project won't apply to desktops (for now). Cards from the 4xxM and newer series are all Optimus-enabled. The M stands for "Mobile". But having a 4xxM card isn't enough to be sure that you're having an Optimus laptop. There must also be an integrated video controller in your processor. To check that, run this command in a terminal:

Code: Select all

lspci -vnn | grep '\''[030[02]\]'
If it outputs two lines, then you're likely having an Optimus laptop. Else...
...close this guide. it's of no use with your video card.



b) bumblebee: short guide

same as c) below. excessive wording removed. twitter style.



01. boot the system



02. close the Device Driver Manager (ddm) popup window, if it appears. do not install bumblebee from within it.



03. open terminal. all commands are executed by a standard user - at the $ prompt. not by the root user (# prompt).



04. install bumblebee
  • in SolydXK, LMDE, Tanglu, Debian

    Code: Select all

    $ sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia
    
  • in siduction

    Code: Select all

    $ sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia primus primus-libs:i386
    

05. one (solydxk up to 201401, kwheezy) or two (solydxk from 201405, debian, lmde, tanglu) terminal popup window(s) will appear. hit [OK] to close it and continue.



06. check / create the groups needed by bumblebee:

Code: Select all

$ sudo groupadd bumblebee
groupadd: group 'bumblebee' already exists

$ sudo groupadd video
groupadd: group 'video' already exists

07. check / add the standard user to both groups:

Code: Select all

$ sudo usermod -a -G bumblebee,video $USER
$

08. reboot computer. a simple X server restart is not enough.



09. check the installation:

Code: Select all

$ optirun pwd
if the command prints your current working directory - all done. installation is finished successfully. this will most probably be the case for SolydXK-201501-64bit and SolydXK Nightly builds users. before closing this guide, uninstall nvidia-xconfig package:

Code: Select all

$ sudo apt-get purge nvidia-xconfig
nvidia-xconfig is nothing else than a perfect bumblebee killer on Optimus computers.

to get the most from bumblebee's graphical acceleration capabilities, install the latest (currently 2.4) VirtualGL support package, virtualgl_2.4_amd64.deb. without this package installed 90% of bumblebee's power is lost.



the users of older SolydXK editions may need to follow the steps below.

if the command fails on the first run and returns an error, like this one:

Code: Select all

...[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
then edit the /etc/bumblebee/bumblebee.conf file with any simple text editor (mousepad, gedit):

Code: Select all

$ sudo mousepad /etc/bumblebee/bumblebee.conf

10. search for the line that reads:

Code: Select all

KernelDriver=nvidia
there is only one such line in the file. change it to:

Code: Select all

KernelDriver=nvidia-current
save the file. close the editor.



11. restart the bumblebeed service with one of the two following commands (note the final d in the service name):

Code: Select all

$ sudo service bumblebeed restart
the second command works only if systemd is installed:

Code: Select all

$ sudo systemctl restart bumblebeed

12. check the service status with one of the two following commands:

Code: Select all

$ sudo service bumblebeed status
[ ok ] bumblebeed is running.
$
the second command works only if systemd is installed:

Code: Select all

$ sudo systemctl status bumblebeed
the service must be:
- enabled
- active




13. the final check of bumblebee with nvidia proprietary drivers:

Code: Select all

$ optirun pwd
after about a 5 sec delay it should print the current working direcory. the delay is caused by switching the optimus from intel gpu to nvidia one.

if the command still fails, simply re-run it again the second time. if the second execution is successful, see the Alternate Optirun topic for how to fix this issue.

if you didn't already do it, uninstall nvidia-xconfig package:

Code: Select all

$ sudo apt-get purge nvidia-xconfig
on Optimus computers nvidia-xconfig serves only to destroy bumblebee configuration.



14. reboot computer the 2nd time


15. done


remember to install the latest (2.4 currently) VirtualGL support package. without it, you'll get less than 10% from bumblebee's graphical acceleration capabilities.

the final note. avoid to install and, if installed, never use the nviida-xconfig package for nvidia OPTIMUS video cards. it ruins the card's configuration.




c) bumblebee: detailed guide

hi all,

this short guide describes - hopefully, in clean and simple way - how to install Bumblebee and Nvidia Priprietary video driver on SolydXK running on Nvidia Optimus video card. it was written primarily for myself, but i think it could be helpful for someone else.

just
--


despite of my initial unsuccessful attempts to install bumblebee on solydxk, made two weeks ago, i've finally managed to successfully install it. all bumblebee, nvidia-proprietary drivers, bbswitch, optirun run just perfectly.

this short guide is heavily based on the official debian wiki article: https://wiki.debian.org/Bumblebee

so you may read it instead of this note. which is simply adapted for solydxk, and not for plain debian, as the original article.

the contest is: freshly installed and NOT yet updated solydx-201309-64bit and solydk-201309-64bit. repeat: both are 64bit, freshly installed, backed up, NOT updated.

not updated, firstly, because i'm waiting for 2013-11-08 update pack right now. secondly, i wanted to make a direct, clean test installation of bumblebee on out-of-the-box solydxk-201309-64bit system.

four preliminary notes.

1) the most important one. please, ignore device driver manager (ddm) popup window, which appears on solydxk startup. don't install - repeat, DO NOT install - nvidia proprietary driver for your nvidia OPTIMUS card from within ddm. just close the ddm window, without doing anything. ddm will be "satisfied" later, when we'll have the job done.

2) being based on debian testing, solydxk already has in its own repos all packages needed for bumblebee installation. there's absolutely NO need to add any additional repo(s). simply don't touch the default solydxk repos, automatically configured during the distro install. they are ok.

3) don't use synaptic package manager during bumblebee installation. all commands must be executed from terminal. they are very simple, so don't be afraid using it. just copy&paste them from here into your terminal.

4) all commands in the terminal must be executed by a standard, normal user - you. NOT by root user. you should always be at $ prompt, not at # one.

solydx were used in this installation. for solydk the procedure is exactly the same.

let's go.


01. boot your solydx



02. fire up the terminal



03. we:

- are on 64bit system
- want to use nvidia proprietary driver, instead of nouveau one
- be able to run 32bit apps (skype, steam games) on bumblebee with optirun

so we will:

- add 32bit architecture support to our system
- update repos
- install nvidia proprietary driver
- disable nouveau video driver
- install bumblebee stuff
- install some additional 32bit libs for bumblebee
- configure bumblebee

our first and the main command is (copy$paste in terminal):

Code: Select all

$ sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia primus primus-libs:i386
respond Y to download ALL packages included by default; it's slightly below 17M. just hit <enter>. it assumes the Yes answer by default.



04. during packages installation, two terminal popup windows will appear. that's ok. continue reading.



05. the first one informs us that:

- the current nouveau driver conflicts with newly installed nvidia proprietary one
- the conflict will be automatically resolved after reboot

the only button present in the window is [OK]. just hit it. the window disappears, installation proceeds.



06. the second popup window informs us that newly installed nvidia proprietary driver is not configured yet, and should be configured lately, implying the use of nvidia-xconfig script/utility...

---===<<< ATTENTION ATTENTION ATTENTION >>>===---

for optimus cards it is NOT true. it's simply wrong. never run nvidia-xconfig on optimus nvidia cards! fortunately, nvidia-xconfig package is NOT installed by default on solydxk. do NOT install it, do NOT run it later. read more at:

https://github.com/Bumblebee-Project/Bu ... leshooting

if, by mistake, you did it, your linux just doesn't boot into X. try to delete /etc/X11/xorg.conf file, generated by nvidia-xconig. and hope it will help.

turning back to the second popup terminal window - it has the only one [OK] button as well. just hit it. the installation proceeds WITHOUT trying to configure nvidia card. and you will NEVER try to do so with nvidia-xconfig later. right?



07. packages installation is finished now. bumblebee configuration - not yet. we're at the command prompt, in the terminal.



08. during installation, the bumblebee group should be created. our normal, standard user should be added to it, as well as to the video group (well, that's done during distro installation :-).

to be honest, i've just forgot to do it on solydxk. some other distros are not as smart as solydxk is, so these commands are mandantory there. here, in solydxk, this step is optional. repeat, solydxk is smart enough to automatically create bumblebee group and add your user to it.

anyway, check and ensure that it's ok on solydx:

Code: Select all

$ sudo groupadd bumblebee
groupadd: group 'bumblebee' already exists

$ sudo groupadd video
groupadd: group 'video' already exists

$ sudo usermod -a -G bumblebee,video just    (where just is my user)
$
everything is ok.



08a. reboot

this step was missing in original post. sorry for inconvenience.

the reboot is needed to get new nvidia kernel modules in effect, and to let the linux "see" new user's groups (specifically, the "bumblebee" one).



09. check your installation - try to run with optirun any most simple command you know, say:

Code: Select all

$ optirun ls -l
if you get an expected result - the directory listing - you're done. reboot and enjoy your optimus controlled by bumblebee.

but most likely you'll get the following:

Code: Select all

...[ERROR]Cannot access secondary GPU - error: Could not load GPU driver
damn!

it could sound strange, but that's ok :-) . we're only two small but important steps away from the final victory! continue reading.



10. as root, edit the /etc/bumblebee/bumblebee.conf file.

search for the line that reads:

Code: Select all

KernelDriver=nvidia
change it to:

Code: Select all

KernelDriver=nvidia-current

11. as the bumblebee config file is changed, we need to restart the bumblebee daemon. note the final "d" (daemon) in the service name below. we are still in the terminal, so just copy&paste:

Code: Select all

$ sudo service bumblebeed restart

12. reboot



13. note that solydx device driver manager (ddm) is quite happy now with our new video driver. it doesn't suggest anymore to install nvidia proprietary driver. we already have it installed. as well as bbswitch, optirun, primus, all that stuff needed to get the max from our nvidia optimus.



14. done.





just
enjoy
2013-11-06





d) tribute to linuxmint

without changing any single word, this howto works for linuxmint debian edition as well. tested on linuxmint-201403-cinnamon-dvd-64bit.iso. bumblebee, installed on it by following this guide, works flawlessly.

edit 2015-04-10: the guide continues to work for Linux Mint LMDE 2 Betsy Cinnamon and Mate 64bit. tested on lmde-2-201503-cinnamon-64bit.iso and lmde-2-201503-mate-64bit.iso.

edit 2015-03-21: the guide continues to work for Linux Mint LMDE 2 Betsy Mate and Cinnamon 64bit RC. tested on lmde-2-201503-mate-64bit-rc.iso and lmde-2-201503-cinnamon-64bit-rc.iso.

lmde users, eventually reading this tutorial, may follow it with no fear.





e) distros the guide was tested on

so far, the tutorial was tested and successfully applied on the following distros: and on the following nvidia optimus video cards:
  • NVIDIA GeForce GT 555M
  • NVIDIA GeForce GT 750M


f) useful links
  1. VirtualGL graphical acceleration support (the must-have for bumbelee):
  2. check the bumblebee installation:
    http://forums.solydxk.com/viewtopic.php ... roprietary
  3. get and install glxspheres:
    http://forums.solydxk.com/viewtopic.php?f=9&t=3206
  4. official debian bumblebee wiki:
    https://wiki.debian.org/Bumblebee
  5. bumblebee project troubleshooting:
    https://github.com/Bumblebee-Project/Bu ... leshooting
  6. installing bumblebee on kwheezy 1.5 64bit (stable debian branch):
    http://www.kwheezy.com/en/weblog/2014/0 ... s-support/
  7. how to install bumblebee on solydxk using ddm:
    http://forums.solydxk.com/viewtopic.php?f=9&t=3751
  8. how to fix the erroneous alternate optirun behaviour:
    http://forums.solydxk.com/viewtopic.php?f=9&t=4459




just
2014-03-20

User avatar
Arjen Balfoort
Site Admin
Posts: 9514
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Arjen Balfoort » 07 Nov 2013 16:03

I'm trying to build the logic into DDM, and I have a few questions (I have no way of testing this):
  • Don't you need to install these packages: bumblebee, nvidia-kernel-dkms, and nvidia-settings?
  • Is primus-libs installed as a dependency on i386 systems, or do I need to install it explicitly?
  • Could you attach /etc/bumblebee/bumblebee.conf for me to test?


SolydXK needs you!
Development | Testing | Translations

User avatar
just
Posts: 297
Joined: 07 Nov 2013 08:06
Location: Rovaniemi, Finland

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby just » 07 Nov 2013 19:36

hi schoelje,

i have a better idea. i still have a spare partition with a virgin solydk-201309-64bit installed on it. i will follow the bumblebee installation guide (this one) step by step, and will privately email you the detailed output of every single command executed in terminal. this way, you'll be able to see what were happened during every single step.

please, give me a couple of hours to install bumblebee, and to prepare a detailed report to send to you. i think you'll get it around 23:00 (italy local time, GMT+1).



meanwhile, i'll try to respond in order to your questions.



1) sure, bumblebee, nvidia-kernel-dkms and nvidia-settings are all installed. as well as some other packages, not mentioned here.

but they are installed and configured by apt-get as dependencies. there's no need to explicitely ask any of them to be installed.

the difference between "bumblebee" and "bumblebee-nvidia" packages is a tricky thing.

if we ask apt-get to install "bumblebee" package, it installs optimus support for NOUVEAU video driver.

if we ask apt-get to install "bumblebee-nvidia" package, it installs optimus support for NVIDIA PROPRIETARY video driver. as well as the nvidia driver itself :-) .

even when we explicitely ask to install "bumblebee-nvidia" package, later in synaptic we'll see the "bumblebee" installed as well. these are two packages installed, as seen in synaptic:

Code: Select all

+ bumblebee             3.2.1-4  NVIDIA Optimus support for Linux
+ bumblebee-nvidia  3.2.1-4  NVIDIA Optimus support using proprietary NVIDIA driver
"nvidia-kernel-dkms" and nvidia video driver are all automatically installed by apt-get in the following way (as seen in synaptic):

Code: Select all

+ nvidia-driver                      304.108-1  NVIDIA metapackage
+ nvidia-kernel-dkms            304.108-1  NVIDIA binary kernel module DKMS source
+ nvidia-vdpau-driver           304.108-1  NVIDIA vdpau driver
+ xserver-xorg-video-nvidia  304.108-1  NVIDIA binary Xorg driver
"nvidia-settings" package is installed as well (synaptic):

Code: Select all

+ nvidia-settings            304.108-2  tool for configuring the NVIDIA graphics driver

2) i'm not using i386 systems from 2009, so i can't be absolutely sure with the answer to primus-related question. i'm sure though, that:

- "primus-libs" package is installed as dependency, on both i386 and x86_64 systems, when we ask to install the "primus" package.

there's no need to ask to install it explicitely, at least when we're doing a manual "primus" installation. not sure, though, how the "primus" installation will behave if done via some installation script.

in the guide i explicitely ask to install the i386 arch of the primus-libs package. the x86_64 version is installed by dependency, but the i386 is not. that is why i, firstly, enable 32bit support on a 64bit system, and then, secondly, explicitely ask to install primus-libs:i386 package.

in other words, "primus-libs" package is always installed by dependency, with the same architecture as the main "primus" package. i386 version of the "primus-libs" package is manually installed only on x86_64 systems, and only when 32bit support is REQUIRED.

primus-libs:i386 package is NOT required by bumblebee itself to function properly. it required by 32bit applications only, which could eventually run on our system. for example, by almost all steam games.

synaptic shows the following about primus packages installed:

Code: Select all

+ primus                         0-20130806-1 (testing)  client-side GPUoffloading for NVIDIA Optimus
+ primus-libs                  0-20130806-1 (testing)  Shared libraries for primus
+ primus-libs-ia32:i386  0-20130806-1 (testing)  Shared libraries for primus (32-bit)
+ primus-libs:i386          0-20130806-1 (testing)  Shared libraries for primus

3) /etc/bumblebee/bumblebee.conf file follows:

Code: Select all

# 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=
# 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:/usr/lib/primus:/usr/lib32/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/Bumblebee/wiki/Comparison-of-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-current
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia,/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

just
2013-11-07

User avatar
Arjen Balfoort
Site Admin
Posts: 9514
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Arjen Balfoort » 07 Nov 2013 22:07

Thanks just, I'll look into it after the UP.


SolydXK needs you!
Development | Testing | Translations

User avatar
Litux1516
Posts: 26
Joined: 08 Aug 2013 20:07

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Litux1516 » 17 Dec 2013 20:19

Just:
I love you! (not more than my wife, but close enough).

I was straggling with this problem for long time. I tried everything but I was always using Synaptic. I can't see the difference between installing the packages with Synaptic or through the terminal, but using the terminal worked for me.

Thank you very much.
Laptop Toshiba Satellite P850-30W
Quad core Intel Core i7-3610QM @ 2.9GHz - 8 GB RAM - 256 GB SSD Vertex 4
Card-1: Intel 3rd Gen Core processor Graphics Controller
Card-2: NVIDIA GK107M [GeForce GT 640M]
SolydK 64 Production

zariskij
Posts: 17
Joined: 29 Dec 2013 02:01

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby zariskij » 03 Jan 2014 13:17

Jesus! We should put it into the tutorial. I wasted the whole night struggling with bumblebee. Thank god I found this thread. :D

Lee
Posts: 2
Joined: 03 Feb 2014 11:33

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Lee » 03 Feb 2014 13:09

So I followed this tutorial, but it doesn't seem to work.
DDM &

Code: Select all

lspci | grep -i vga
only shows the Intel GPU.

Code: Select all

glxinfo | grep -i nvidia
Doesn't return anything.

Code: Select all

lspci | egrep 'VGA|3D'
Does return both the Intel and Nvidia GPU (GT520M).

Code: Select all

optirun ls -l
returns 4 .conf files.

Or is this normal behaviour?

User avatar
just
Posts: 297
Joined: 07 Nov 2013 08:06
Location: Rovaniemi, Finland

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby just » 03 Feb 2014 21:33

with your permission, let me disagree with you. i've tried to answer you here:

http://forums.solydxk.com/viewtopic.php?f=9&t=2811

it was written thoroughly following this tutorial. so i'd say that it works.


just
2014-02-03

Lee
Posts: 2
Joined: 03 Feb 2014 11:33

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Lee » 03 Feb 2014 21:40

just wrote:with your permission, let me disagree with you. i've tried to answer you here:

http://forums.solydxk.com/viewtopic.php?f=9&t=2811

it was written thoroughly following this tutorial. so i'd say that it works.


just
2014-02-03
Ah, I missed that. Thanks :)

nbi
Posts: 32
Joined: 10 Feb 2014 18:59

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby nbi » 17 Feb 2014 03:22

This does not work with the packages in the latest SolydX distro. Reports indicate that kernels 3.9, 3.10, 3.11 (SolydX) are afflicted with downgrades to 3.8 or use of 3.12-rc4 supposedly working. If anyone has this working for a NVIDIA GT750M with a 3.12 or newer kernel please let us hear from you. Both the nouveau and the NVIDIA 319 driver versions in the SolydX distro have trouble with Kepler cards. I squandered 2 days on nouveau before trying the NVIDIA driver which seems to have ACPI problems. At present I'm stuck with just the Intel 915 support. I'm really hacked off with NVIDIA. After hearing so often that they're more linux friendly than ATI I get a laptop specifically with a discrete NVIDIA card only to discover it's unusable. Linus was quite right in telling NVIDIA to f*ck off.

SOLVED.
See thread "SolydX strikes out with NVIDIA GT750M".
One needs to grab the latest 331.49 drivers from Sid.

Chaos99
Posts: 4
Joined: 27 Feb 2014 07:48

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Chaos99 » 27 Feb 2014 07:52

Thanks for the Tutorial.
I would gladly try it out, but unfortunately I was lured into using the DDM install option just yesterday and am now stuck
in console only mode after a reboot.

Can you give me a hint how to roll back to the state I had before?
Or would it be faster to install from scratch again?

Thx

User avatar
just
Posts: 297
Joined: 07 Nov 2013 08:06
Location: Rovaniemi, Finland

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby just » 27 Feb 2014 08:28

Chaos99 wrote:
Can you give me a hint how to roll back to the state I had before?
Or would it be faster to install from scratch again?
the second thing you've said - reinstall from scratch - is the fastest way to follow. it also assures that at the end of nvidia installation you'll get the most polished software / driver situation. without unused packages, strange / residual configurations, messed software, ecc.

i've reinstalled solyd 2 or 3 times, before the method described in tutorial was found. never tried to reinstall nvidia, trying to recover from unsuccessfull ddm runs.

i'd warmly suggest to use clonezilla before doing such (potentially dangerous) installations. it gets about 5..7 minutes to backup all the partition(s) with freshly installed solyd. it takes only 2..3 minutes to restore them in case of trouble.

just

Chaos99
Posts: 4
Joined: 27 Feb 2014 07:48

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Chaos99 » 27 Feb 2014 08:38

Ok, I will do that.
I also updated all packaged and the kernel first before I tried to install bumblebee/nvidia.

For the next install, I will follow your advice and first install drivers, then update.
(I never understood why I have to update for about 2h after installing from a new .iso that was released just recently.)

I will give feedback here on how it went. (Trying on a Thinkpad W520)
Now I just have to find my installation USB-Thumbdrive ....

Thx
Chaos

User avatar
just
Posts: 297
Joined: 07 Nov 2013 08:06
Location: Rovaniemi, Finland

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby just » 27 Feb 2014 09:47

Chaos99 wrote:
For the next install, I will follow your advice and first install drivers, then update.
(I never understood why I have to update for about 2h after installing from a new .iso that was released just recently.)
to be honest, i've always installed bumblebee on freshly published SolydXK ISOs, 2013.09 and 2014.01. there weren't much updates for them right after publishing. actually, there were NO updates to apply at all. they arrived later.

but now we're two months away from the last ISO (2014.01), so there ARE some updates to apply. i think though, that these updates are irrelevant from the bumblebee installation point of view, as the kernel and bumblebee-nvidia package versions are not changed since the iso was published. so it probably doesn't matter when to install bumblebee - before or after the global distro update.

however, updating the distro before any manual software installation (bumblebee included) is the most sane way to follow always. if i were installing 2014.01 right now, i would make it in six steps:

1. install solyd
2. backup it, with clonezilla
3. update it
4. backup it, with clonezilla. yes, again.
5. install bumblebee
6. if optirun works well, backup it, with clonezilla (optional)

this schema gives you two check points - 2 and 4 - where you can fastly rollback to and easly restart from, if something should go wrong.

just
backup your linux

Chaos99
Posts: 4
Joined: 27 Feb 2014 07:48

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Chaos99 » 27 Feb 2014 11:38

My fresh 2014.01 installation was based on a 3.10.x kernel.
The system upgrade I did imediately included a 3.11.y kernel image and a lot of other stuff.

I suspect there might have been a mix-up with the installation .isos during preparation of the bootable usb stick.
Maybe what I actually installed was the 2013.09 version. I'll double-check next time.

Is clonezilla part of the SolidK live install system or do I need to create yet another bootable drive for their own live system?

User avatar
just
Posts: 297
Joined: 07 Nov 2013 08:06
Location: Rovaniemi, Finland

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby just » 27 Feb 2014 12:52

Chaos99 wrote:
Is clonezilla part of the SolidK live install system or do I need to create yet another bootable drive for their own live system?
no, it is not. it's a standalone software: http://clonezilla.org/

personally, i prefer its debian-based stable version:
http://clonezilla.org/downloads/downloa ... nch=stable

normally, it's a live-cd. which can be put on usb stick, to speed up its bootup. so yes, if you want to use it, you must create another bootable media, with clonezilla on it.

it is included in some other specialized linux distros, like parted magic, for example. you can read about it on distrowatch.

we are going off topic, i'm afraid.

just

Chaos99
Posts: 4
Joined: 27 Feb 2014 07:48

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Chaos99 » 09 Mar 2014 18:45

Just wanted to post an update: After doing a clean install, doing a system update (only 4 packages, so the first try must have been the wrong .iso) and then following this tutorial, Nvidia drivers / bumblebee installed fine.

Manually switching modes works, I have yet to figure out if some automatic switches also do.
Sleeping/hibernating still works (was an issue for me on another laptop.)

So far I wasn't able to use the second monitor output. I think I've read that this only works when switched to the nvidia card, but I'm not sure for which program to switch manually (the systems monitor setup tool?). I need to look further into this.

Thanks for you help!

User avatar
just
Posts: 297
Joined: 07 Nov 2013 08:06
Location: Rovaniemi, Finland

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby just » 10 Mar 2014 07:37

Chaos99 wrote:
...and then following this tutorial, Nvidia drivers / bumblebee installed fine.
thanks for your feedback, it's important to know that tutorial works. i'm glad you have the problems solved and nvidia working now.

afaik, there's no way to switch optimus on and off automatically. neither for linux, nor for windows. if i remember well (don't have windows for ages), nvidia software there gives user the possibility to indicate which programs must be run on nvidia gpu, and which are not. and simply remembers the user choice.

it's exactly the same thing as adding "optirun..." in linux during a program invocation. either by hand, or to a .desktop file, or to menu entry.

i don't have a secondary monitor, so can't give you any suggestion here.

just
thanks again

ector62
Posts: 18
Joined: 02 May 2014 22:25

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby ector62 » 04 May 2014 01:14

hi,I am here again to break the eggs ..... I gave this command:

Code: Select all

sudo usermod-a-G bumblebee, video $ USER
but when I gave into the terminal:

Code: Select all

groups
was not part of the group:
bumblebee cdrom sudo ect ect, to be part of that group I gave the following command:

Code: Select all

sudo gpasswd -a $USER bumblebee

User avatar
Arjen Balfoort
Site Admin
Posts: 9514
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Bumblebee & Nvidia Proprietary on SolydXK 64bit

Postby Arjen Balfoort » 20 Jan 2015 15:44

A few questions:
  • Shouldn't "primus-libs:i386" only be installed on 64-bit systems?
  • Do you also need "primus-libs-ia32:i386"?


SolydXK needs you!
Development | Testing | Translations


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests