Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: OpenSUSE 12.1 on a Optimus Laptop

  1. #1

    Default OpenSUSE 12.1 on a Optimus Laptop

    I wrote this howto tonight and when I came here to post it I saw that Pickle236 already made a Bumblebee guide... well, I post this one as well there might be a difference



    Optimus Laptop with nVIDIAS proprietary driver.


    Nvidia Optimus - Wiki



    So what is Bumblebee? It is experimental Optimus support for Linux.
    With the use of Bumblebee, 3D can be enabled on both the Intel and the nVIDIA card.
    Currently there is no way to disable the Intel card with the use of Bumblebee.
    The Intel card is running the Desktop and the nVIDIA card can be used, for
    applications that need more OpenGL power, with the command "optirun <PROGRAM>".

    Other options, if your interest are mainly powermanegment, is using vga-switcheroo or Bumblebee from
    the 2.4.1 repository:

    Index of /repositories/home:/Bumblebee-Project:/Bumblebee-develop/openSUSE_12.1

    With that version I was never able to get both the "Nvidia blob" and Intel 3D working at same time. But it works
    like a charm with the Nouveau driver and is perfect if your only goal is powermanegment.

    This howto is only made for getting the propitary nvidia driver working while at same time keeping a fancy desktop...
    And it is only meant to show what worked for me... might mess up your system totally


    Laptop model I used: Asus U36JC

    I started with a absolute fresh, no extra packages - OpenSUSE 12.1, 64bit, kde, kernel desktop - install with all the updates made.
    Not one config file or packet manually altered.



    First install the nvidia driver.

    Code:
    zypper ar -f ftp://download.nvidia.com/opensuse/12.1/ nvidia
    
    zypper in nvidia-computeG02 nvidia-gfxG02-kmp-desktop x11-video-nvidiaG02
    
    reboot
    If you use the kernel-default you should use "zypper in x11-video-nvidiaG02" but that didn't work for me because it then automaticly added
    the kernel-default packages for some reason.



    Then we install Bumblebee

    Code:
    zypper ar -f http://download.opensuse.org/reposit...-unstable.repo
    
    zypper in bumblebee acpi_call-kmp-desktop hdjmod-kmp-desktop
    
    reboot
    Again if you use kernel-default use "zypper in bumblebee"...



    At this point we broken the Intel/Mesa driver and this is how I fixed it, somebody might have sorted out wich of this rpms actually
    is needed to fix it... I gave up and went for the overkill.

    Fix the Intel/Mesa driver

    Code:
    zypper in --force Mesa xorg-x11 xorg-x11-driver-video xorg-x11-driver-video-intel-legacy xorg-x11-libX11 xorg-x11-server
    
    reboot

    Now you need to add yourself to the bumblebee group so you don't have to give root pswd everytime you use "optirun"

    Code:
    usermod -A bumblebee USERNAME

    This step next is for making power management work and to choose the default image transport from nVIDIA to Intel, standard is xv but I chose "proxy"
    because it is faster and has proven stable on my system.

    Code:
    bumblebee-configuration


    Reboot and cross your fingers


    Verify that things are working.

    The Intel part:

    Code:
    glxinfo | grep OpenGL
    
    OpenGL vendor string: Tungsten Graphics, Inc
    OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
    OpenGL version string: 2.1 Mesa 7.11


    The nVIDIA part:

    Code:
    optirun glxinfo | grep OpenGL
    
    OpenGL vendor string: NVIDIA Corporation
    OpenGL renderer string: GeForce 310M/PCI/SSE2
    OpenGL version string: 3.3.0 NVIDIA 290.10

    I am not sure that all the reboots are needed but I tried without them and it got fuxed.

    Files to inspect if things doesnt work...

    Code:
    /etc/default/bumblebee
    /etc/X11/xorg.conf.nvidia
    /var/log/Xorg.0.log
    /var/log/Xorg.8.log


    Pardon if my English isn't correct, I'm a "Swede"

    Kind Regards Thermal

  2. #2

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    Hmm, no edit... wanted to remove the url-tags after the zypper commands...

  3. #3

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    Intel doesn't work

    glxinfo | grep OpenGL
    Xlib: extension "GLX" missing on display ":0".
    Xlib: extension "GLX" missing on display ":0".
    Xlib: extension "GLX" missing on display ":0".
    Error: couldn't find RGB GLX visual
    Xlib: extension "GLX" missing on display ":0".
    Xlib: extension "GLX" missing on display ":0".
    Xlib: extension "GLX" missing on display ":0".
    Xlib: extension "GLX" missing on display ":0".
    Xlib: extension "GLX" missing on display ":0".
    Xlib: extension "GLX" missing on display ":0".
    But nvidia's ok.
    optirun glxinfo | grep OpenGL
    OpenGL vendor string: NVIDIA Corporation
    OpenGL renderer string: GeForce GT 425M/PCI/SSE2
    OpenGL version string: 4.2.0 NVIDIA 290.10
    OpenGL extensions:
    zypper in --force Mesa xorg-x11 xorg-x11-driver-video xorg-x11-driver-video-intel-legacy xorg-x11-libX11 xorg-x11-server
    I have made it.

    What tha ****?

  4. #4
    Join Date
    Jun 2008
    Location
    Taichung city,Taiwan
    Posts
    114

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    Quote Originally Posted by frostmyname View Post
    Intel doesn't work



    But nvidia's ok.


    I have made it.

    What tha ****?
    Try
    mkdir -p /usr/lib64/nvidia/xorg/modules/updates/extensions
    mv /usr/X11R6/lib64/libGL* /usr/lib64/nvidia/
    mv /usr/lib64/xorg/modules/updates/extensions/libglx* /usr/lib64/nvidia/xorg/modules/updates/extensions/
    mkdir -p /usr/lib/nvidia
    mv /usr/X11R6/lib/libGL* /usr/lib/nvidia

  5. #5
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    25,767
    Blog Entries
    30

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    Quote Originally Posted by thermalgrease View Post
    I wrote this howto tonight and when I came here to post it I saw that Pickle236 already made a Bumblebee guide...
    Thankyou for this guide. For completeness, to help tie some 'related' threads together - Pickle236's Optimus Guide written from a slightly different perspective here : http://forums.opensuse.org/forums/en...ort-howto.html

    Now Optimus is for users with nVidia/Intel hybrid graphics. For users with Radeon/Intel hybrid graphics, we don't have a guide yet, although there is a recent thread with some useful information on Radeon/Intel hybrid graphics here: http://forums.opensuse.org/forums/en...cs-laptop.html

  6. #6

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    Quote Originally Posted by swyear View Post
    Try
    mkdir -p /usr/lib64/nvidia/xorg/modules/updates/extensions
    mv /usr/X11R6/lib64/libGL* /usr/lib64/nvidia/
    mv /usr/lib64/xorg/modules/updates/extensions/libglx* /usr/lib64/nvidia/xorg/modules/updates/extensions/
    mkdir -p /usr/lib/nvidia
    mv /usr/X11R6/lib/libGL* /usr/lib/nvidia
    After the done operation:
    Code:
    glxinfo | grep OpenGL                                                                                                                                                                  
    OpenGL vendor string: Tungsten Graphics, Inc
    OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
    OpenGL version string: 2.1 Mesa 7.11
    OpenGL extensions:
    Code:
    optirun glxinfo | grep OpenGL
    failed to create drawable
    OpenGL vendor string: Mesa Project
    OpenGL renderer string: Software Rasterizer
    OpenGL version string: 2.1 Mesa 7.11
    OpenGL extensions:

  7. #7
    Join Date
    Jun 2008
    Location
    Taichung city,Taiwan
    Posts
    114

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    Quote Originally Posted by frostmyname View Post
    After the done operation:
    Code:
    glxinfo | grep OpenGL                                                                                                                                                                  
    OpenGL vendor string: Tungsten Graphics, Inc
    OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
    OpenGL version string: 2.1 Mesa 7.11
    OpenGL extensions:
    Code:
    optirun glxinfo | grep OpenGL
    failed to create drawable
    OpenGL vendor string: Mesa Project
    OpenGL renderer string: Software Rasterizer
    OpenGL version string: 2.1 Mesa 7.11
    OpenGL extensions:
    make sure you have set
    DRIVER=nvidia
    in /etc/bumblebee/bumblebee.conf

    make sure your /etc/bumblee/xorg.conf.nvidia has the following
    Section "Files"
    ModulePath "/usr/lib64/nvidia/xorg/modules/updates,/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules"
    EndSection

    Code:
    glxinfo | grep OpenGL
    OpenGL vendor string: Tungsten Graphics, Inc
    OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
    OpenGL version string: 2.1 Mesa 7.11
    OpenGL extensions:
    Code:
    optirun glxinfo | grep OpenGL
    OpenGL vendor string: NVIDIA Corporation
    OpenGL renderer string: GeForce 610M/PCI/SSE2
    OpenGL version string: 4.2.0 NVIDIA 290.10
    OpenGL extensions:

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    10,434

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    Superb information in this thread. Thanks for the contributions everyone.

  9. #9

    Default Re: OpenSUSE 12.1 on a Optimus Laptop

    I agree this thread is useful and I think it has much more detailed info than I provided. So as long it covers anything I might have I believe this should be used going forward.

    FYI: Bumblebee 3.0 was released. [Phoronix] Bumblebee Has Tumbleweed For NVIDIA Optimus On Linux

  10. #10

    Thumbs up Re: OpenSUSE 12.1 on a Optimus Laptop

    Thank you very much!! Works great for me after I set

    DRIVER=nvidia
    in /etc/bumblebee/bumblebee.conf

    And did

    mkdir -p /usr/lib64/nvidia/xorg/modules/updates/extensions
    mv /usr/X11R6/lib64/libGL* /usr/lib64/nvidia/
    mv /usr/lib64/xorg/modules/updates/extensions/libglx* /usr/lib64/nvidia/xorg/modules/updates/extensions/
    mkdir -p /usr/lib/nvidia
    mv /usr/X11R6/lib/libGL* /usr/lib/nvidia

    Should edit orginal post, or add this to the official wiki graphic cards

    Code:
    glxinfo | grep OpenGL
    OpenGL vendor string: Tungsten Graphics, Inc
    OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
    OpenGL version string: 2.1 Mesa 7.11
    OpenGL extensions:
    
    optirun glxinfo | grep OpenGL
    OpenGL vendor string: NVIDIA Corporation
    OpenGL renderer string: GeForce GT 525M/PCI/SSE2
    OpenGL version string: 4.2.0 NVIDIA 290.10
    OpenGL extensions:

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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