Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: ultimate tutorial installing Bumblebee driver for SUSE

  1. #1

    Exclamation ultimate tutorial installing Bumblebee driver for SUSE

    There are always this or that problems installing Bumblebee optimus driver under SUSE. Here are some useful steps towards this isssue and some solutions were propsed for frequent and headache problems. I wish this will help SUSE users for configurating their system well.

    Nowadays, it is quite common and popular to have two dedicated graphic cards in laptop: usually, one is intergrated (eg: intel HD4xxx ) and the other is indepedent (eg: Nvidia GTX xxx). Such strategy can save laptop energy if we use integrated card for document task; while we can switch to independent one if dedicated CG work needed.
    Neither downloading nvidia.run driver file from official website nor install from Linux distribution repository works for nvidia graphic cards. Those old methods usually lead to xserver behave abnormally even one cannot enter GUI anymore. Here showed some useful steps towards installing NVIDIA optimus driver for openSUSE in Dell M3800 laptop:

    Environment
    graphic card: Intel HD4600+Nvidia K1100M
    OS: openSUSE 13.2, SLE 12


    Steps
    Update the system via Yast or zypper up -- it is important to make sure that the system is fully updated before continuing. If you are using Virtualbox and other tools need to recompile Linux kernel, it is better to install them before the following steps.
    Make sure Optimus is *enabled* in the laptop's BIOS setting
    1. Get rid of all NVIDIA-related packages:
    Code:
    > zypper se nvidia
    
    > zypper rm ...
    Get rid of
    bumblebee, primus, dkms, dkms-nvidia, dkms-bbswitch
    if you've installed before
    2. Get rid of all mentions of nvidia in
    /etc/sysconfig/kernel
    3. Make sure xf86-video-intel package is installed
    Code:
    > zypper if xf86-video-intel
    4. add the line "blacklist nouveau" to /etc/modprobe.d/50-blacklist.conf
    add option "nouveau.modeset=0" to the end of boot loader option from "Yast-->boot loader-->Boot Loader option-->optional kernel command line parameter"

    5. mkinitrd
    6. reboot your system


    At this stage, we are running on Intel HD integrated card and we should login into the SUSE GUI environment KDE/GNOME without any problem.

    7.Install 'powertop' package and note power consumption (must be on battery for power consumption to be shown)
    Code:
       > zypper in powertop
    Code:
    
    
    8. Install the 'devel_kernel' pattern
    Code:
        >  zypper in -t pattern devel_kernel
    Code:
    
    
    9. Add bumblebee repository through YAST or zypper command:

    SUSE Linux Enterprise 12 users can add the following repository:
    10. install necessary software:
    Code:
         > zypper in bbswitch bumblebee dkms nvidia-bumblebee nvidia-bumblebee-32bit primus VirtualGL-devel  VirtualGL-32bit 
    
    11. enable dkms and bumblebeed at booting
    Code:
        > systemctl enable dkms 
    
        > systemctl enable bumblebeed
    

    12. Add current user to video and bumblebee groups through YAST or command line


    Code:
      > usermod -A video your_user_name
    
         > usermod -A bumblebee your_user_name
    13. reboot your system
    14. check the status of your bumblebee services

    Code:
      > systemctl status bumblebeed
    
    bumblebeed.service - Bumblebee C Daemon
       Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
       Active: active (running) since Thu 2014-05-22 20:31:08 CEST; 46min ago
     Main PID: 1693 (bumblebeed)
       CGroup: /system.slice/bumblebeed.service
               ├─1693 /usr/sbin/bumblebeed
               └─2763 Xorg :8 -config /etc/bumblebee/xorg.conf.nvidia -configdir...
    15. run your software for testing:
    Code:
        > optirun ~/bin/pymol
    
     This Executable Build integrates and extends Open-Source PyMOL 1.7.0.5.
     Detected OpenGL version 2.0 or greater. Shaders available.
     Detected GLSL version 4.40.
     OpenGL graphics engine:
      GL_VENDOR:   NVIDIA Corporation
      GL_RENDERER: Quadro K1100M/PCIe/SSE2
      GL_VERSION:  4.4.0 NVIDIA 334.21
     Adapting to Quadro hardware.
    tips: Dell M3800 uses QHD screen and the resolution is 3200x1800 which lead to window icon and font unvisuable. It is better to install "xrandr" to scale the screen.
    Code:
      > xrandr --output eDP1 --mode "3200x1800" --scale "0.75x0.75"
    caution: It is highly recommened that update your system only once. If the OS is updated frequently especially updating the keneral, it will destroy dkms and bumblebee. In this case, one have to reinstall nvidia optimus driver again.


    issuse:
    (1)if the kernerl was updated, reinstallation of bumblebee I got an error saying something about nvidia.ko missing,just ingore it.


    editing /etc/modprobe.d/50-bbswitch.conf load_state from 0 to -1:
    Code:
    cat /etc/modprobe.d/50-bbswitch.conf options bbswitch load_state=-1 unload_state=1
    reboot the system, and bumblebee should work fine now.
    (2) some software may fail with messages:
    Code:
    libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast [VGL] WARNING: The OpenGL rendering context obtained on X display [VGL] :8 is indirect, which may cause performance to suffer. [VGL] If :8 is a local X display, then the framebuffer device [VGL] permissions may be set incorrectly.
    this problem can be solved by making soft link of libGL**.** pointing to the latest Nvidia library:

    Code:
    sudo ln -s /usr/lib/nvidia/libGL.so.346.35 /usr/local/lib/libGL.so.1
    
    sudo ln -s /usr/lib/nvidia/libGL.so.346.35 /usr/local/lib/libGL.so
    
    sudo ln -s /usr/lib64/nvidia/libGL.so.346.35 /usr/local/lib64/libGL.so.1
    sudo ln -s /usr/lib64/nvidia/libGL.so.346.35 /usr/lib64/lib64/libGL.so.

  2. #2

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    everything went smooth until step 14.
    systemctl status bumblebeed -l
    bumblebeed.service - Bumblebee C Daemon
    Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
    Active: active (running) since czw 2015-02-19 12:26:17 GMT; 8min ago
    Main PID: 1314 (bumblebeed)
    CGroup: /system.slice/bumblebeed.service
    └─1314 /usr/sbin/bumblebeed

    lut 19 12:26:52 linux-ga04 bumblebeed[1314]: [ 29.645153] [INFO]/usr/sbin/bumblebeed 3.2.1 started
    lut 19 12:26:52 linux-ga04 bumblebeed[1314]: rmmod: ERROR: Module nvidia is in use by: nvidia_uvm
    lut 19 12:26:52 linux-ga04 bumblebeed[1314]: [ 32.652547] [ERROR]Unloading nvidia driver timed out.
    any clues?

  3. #3
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,760

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    Had you installed the regular NVIDIA driver?? If so you must remove it before installing any of bumblebee.

    If this is so then to fix is to again install the regular NVIDIA driver then remove it to be sure to get all of it gone. Then install NVIDIA-bumblebee Once done remove/disable the NVIDIA repo so you don't get update from it

    If you never installed the NVIDIA driver don't do the above

  4. #4

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    Hi!

    First time posting and kind of new to opensuse. First I would like to thank the OP for this very detailed tutorial.

    I have been trying to install nvidia drivers in my laptop using this tutorial. I face a problem in step 10, when trying to install
    nvidia-bumblebee and nvidia-bumblebee-32bit. I get the following errors:

    Installation of nvidia-bumblebee-352.55-1.1 failed:
    Erro: Subprocess failed. Error: RPM failed: Error in checksums 3610339061 486335404
    error: %pre(nvidia-bumblebee-352.55-1.1.x86_64) scriptlet failed, exit status 254
    error: nvidia-bumblebee-352.55-1.1.x86_64: install failed

    same for the 32bit version

    Installation of nvidia-bumblebee-32bit-352.55-1.1 failed:
    Erro: Subprocess failed. Error: falha no RPM: Error in checksums 3610339061 486335404
    error: %pre(nvidia-bumblebee-32bit-352.55-1.1.x86_64) scriptlet failed, exit status 254
    error: nvidia-bumblebee-32bit-352.55-1.1.x86_64: install failed

    Is this a problem from the repositories? Can I instead use the drivers downloaded directly from the NVIDIA website?

    Any help would be greatly appreciated!

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,241

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    And which version of openSUSE are you using?
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,975
    Blog Entries
    14

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    Quote Originally Posted by BAmorim View Post
    Hi!

    First time posting and kind of new to opensuse. First I would like to thank the OP for this very detailed tutorial.

    I have been trying to install nvidia drivers in my laptop using this tutorial. I face a problem in step 10, when trying to install
    nvidia-bumblebee and nvidia-bumblebee-32bit. I get the following errors:

    Installation of nvidia-bumblebee-352.55-1.1 failed:
    Erro: Subprocess failed. Error: RPM failed: Error in checksums 3610339061 486335404
    error: %pre(nvidia-bumblebee-352.55-1.1.x86_64) scriptlet failed, exit status 254
    error: nvidia-bumblebee-352.55-1.1.x86_64: install failed

    same for the 32bit version

    Installation of nvidia-bumblebee-32bit-352.55-1.1 failed:
    Erro: Subprocess failed. Error: falha no RPM: Error in checksums 3610339061 486335404
    error: %pre(nvidia-bumblebee-32bit-352.55-1.1.x86_64) scriptlet failed, exit status 254
    error: nvidia-bumblebee-32bit-352.55-1.1.x86_64: install failed

    Is this a problem from the repositories? Can I instead use the drivers downloaded directly from the NVIDIA website?

    Any help would be greatly appreciated!
    You cannot use the drivers from the NVIDIA website directly ( unless you have a thorough knowledge of all the parameters you can pass through to the installer ).

    It looks like you're trying to install outdated packages, or the package download went wrong.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    I am using openSUSE 13.2. The kernel version is 3.16.7-24-desktop.

    I have tried to reinstall the packages: first I delete the downloaded packages at /etc/var/cache/zypp (if I tried to reinstall the packages, zypper would just use the downloaded but not installed packages found there) and then used zypper to reinstall the packages. I obtained the same warning messages. Using yast I obtain the same errors. So I think the problem should not be download going wrong and corrupting the files.

    In any case, is there a way to download the packages first and then to a check sum manually? (just to make really sure it is not the download that is corrupting the packages).

    Thanks for the help!

  8. #8

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    I have tried to download the two packages using the alternative metalinks found at

    http://download.opensuse.org/reposit...rpm.mirrorlist

    and

    http://download.opensuse.org/reposit...rpm.mirrorlist

    using the firefox Download Them All! and using the checksums MD5 and SHA-1. For both packages and both checksums I got the warning that the checksums did not match.

    Is this a problem with the repository or I am doing something wrong?

  9. #9
    Join Date
    Apr 2013
    Location
    Slovakia
    Posts
    145

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    Big thanks to author for this tutorial.
    Finally I managed to make functional bumblebee on my MSI GP70 2PE Leopard.

    One little question.
    Should there be command "mkinitrd" before point 13?

  10. #10
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,760

    Default Re: ultimate tutorial installing Bumblebee driver for SUSE

    Generally I don't think so but then it does not hurt you are just locking the settings into systemd more or less

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •