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

Thread: optirun glxgears: [ERROR]Cannot access secondary GPU

  1. #1
    Join Date
    Jun 2009
    Beans
    14

    optirun glxgears: [ERROR]Cannot access secondary GPU

    Solution:
    1. Uninstall bumblebee, bumble-nvidia, nvidia-current
    2. Reinstall clean versions of the above packages
    3. Create a skeleton xorg.conf file in /etc/X11/
    https://wiki.ubuntu.com/X/Config/
    4. Force ACPI on by editing /etc/default/grub and then running update-grub
    Code:
    GRUB_CMDLINE_LINUX="acpi=force"
    https://help.ubuntu.com/community/Grub2

    ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ +++
    Hello,

    +Description:

    I have an NVIDIA Optimus setup that I am trying to manage with bumblebee. The glxgears displays perfectly with the Intel graphics card prior to and after any installation of nvidia/bumblebee packages. The optirun command does not seem to be able to find the NVIDIA GPU. I am stumped about what is going wrong causing modprobe nvidia to fail. I think there is a link that is pointing in the wrong direction somewhere, but I do not know where to look.

    I followed the bumblebee installation instructions given here:
    http://askubuntu.com/questions/36930...a-optimus-work

    Essentially the instructions were add the bumblebee repository and install bumblebee along with bumblebee-nvidia.

    I am very stumped by how to proceed and would appreciate any suggestions. Thank you.

    WORKS: $ glxgears
    BROKEN: $ optirun glxgears
    Code:
    [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
    
    [ERROR]Aborting because fallback start is disabled.
    +System Info:
    Ubuntu 12.04
    optirun (Bumblebee) 3.0.1
    Dell 702X GeForce 500M

    3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    +Hardware Info: $ lspci -k
    Code:
    VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
        Subsystem: Dell Device 0571
        Kernel driver in use: i915
        Kernel modules: i915
    
    VGA compatible controller: NVIDIA Corporation Device 1246 (rev a1)
        Subsystem: Dell Device 0571
        Kernel driver in use: nvidia
        Kernel modules: nvidia_current, nouveau, nvidiafb
    +Module Info: $ modprobe nvidia
    Code:
    FATAL: Module nvidia not found.
    +Module Info: $ modprobe nvidia-current
    +Log: /var/log/kern.log relevant output
    Code:
    NVRM: failed to register with the ACPI subsystem!
    NVRM: failed to copy vbios to system memory.
    NVRM: RmInitAdapter failed! (0x30:0xffffffff:858)
    NVRM: rm_init_adapter(0) failed
    NVRM: failed to unregister from the ACPI subsystem!


    +Log: /var/log/Xorg.8.log relevant output
    Code:
    [] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
    [] (EE) NVIDIA(0):     check your system's kernel log for additional error
    [] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
    [] (EE) NVIDIA(0):     README for additional information.
    [] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
    [] (EE) NVIDIA(0): Failing initialization of X screen 0


    +Log: /var/log/Xorg.0.log relevant output

    Code:
    [] (II) LoadModule: "nvidia"
    [] (WW) Warning, couldn't open module nvidia
    [] (II) UnloadModule: "nvidia"
    [] (II) Unloading nvidia
    [] (EE) Failed to load module "nvidia" (module does not exist, 0)
    +Driver Info: jockey-text -l
    Code:
    xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
    xorg:nvidia_current_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
    +Configuration File: /etc/bumblebee/bumblebee.conf modifications:
    Code:
    Driver=
    CHANGED TO
    Driver=nvidia
    +Library Info: ldd $(which optirun) output:
    Code:
    linux-vdso.so.1 =>  (0x00007fff9a5ff000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f036c255000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f036c04d000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f036bc8f000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f036ba52000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f036b835000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f036c56b000)
    +Library Info: ldd $(which glxgears) output:
    Code:
    linux-vdso.so.1 =>  (0x00007fffcd861000)
        libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007ffed3f2e000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ffed3c34000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007ffed38ff000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffed3542000)
        libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007ffed331d000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007ffed310b000)
        libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007ffed2f08000)
        libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007ffed2d02000)
        libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007ffed2aff000)
        libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007ffed28e8000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007ffed26ca000)
        libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007ffed24c4000)
        libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007ffed22b9000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ffed209c000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ffed1e97000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ffed41af000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007ffed1c94000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007ffed1a8d000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ffed1885000)
    +Attempted Solution:
    1. Added to /etc/modprobe.d/blacklist.conf:
    Code:
    blacklist nvidia-current
    blacklist nvidia
    based on this suggestion:
    https://lists.launchpad.net/bumblebee/msg00093.html

    2. Additionally I tried installing the package nvidia-common.

    3. Since modprobe finds nvidia-current, tried to change /etc/bumblebee/bumblebee.conf:
    Code:
    MODULE=nvidia
    CHANGED TO
    MODULE=nvidia-current
    however the /var/log/Xorg.8.log still says:
    Code:
    (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
    (EE) NVIDIA(0):     check your system's kernel log for additional error
    (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
    (EE) NVIDIA(0):     README for additional information.
    (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
    (EE) NVIDIA(0): Failing initialization of X screen 0
    +Additional Information:
    I do not have a xorg.conf file. I do not want to generate one with nvidia-xconfig since my experience agrees with this post:
    nvidia-xconfig is going to break your desktop.
    http://askubuntu.com/questions/13607...lution-problem


    Thank you once again
    Last edited by Curvature_Tensor; August 4th, 2012 at 08:07 PM.

  2. #2
    Join Date
    Nov 2010
    Location
    Foshan, China
    Beans
    437
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    You have to blacklist nouveau, not nvidia-current. Try again without touching anything else, to blacklist nouveau first. This is NOT correct:

    VGA compatible controller: NVIDIA Corporation Device 1246 (rev a1)
    Subsystem: Dell Device 0571
    Kernel driver in use: nvidia
    Kernel modules: nvidia_current, nouveau, nvidiafb

    The red ones above should not be there, they interfere with nvidia official driver.

  3. #3
    Join Date
    Jun 2009
    Beans
    14

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    Thank you so much for reading through that long post.

    1. I have had nouveau blacklisted for every attempted solution. I should have mentioned that.

    /etc/modeprobe.d/blacklist.conf
    : blacklist nouveau
    $ modprobe nouveau

    Code:
    FATAL: Module off not found.
    2. Perhaps my problem is display related?
    If I run with /etc/bumblebee/bumblee.conf given by:
    Code:
    KernelDriver=nvidia-current
    Module=nvidia-current
    Yields:
    +/var/log/Xorg.8.log: relevant output
    Code:
    (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
    (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    (==) NVIDIA(0): RGB weight 888
    (==) NVIDIA(0): Default visual is TrueColor
    (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
     (**) NVIDIA(0): Option "NoLogo" "true"
    (**) NVIDIA(0): Option "UseEDID" "true"
    (**) NVIDIA(0): Option "ConnectedMonitor" "DFP"
    (**) NVIDIA(0): Enabling 2D acceleration
    (**) NVIDIA(0): ConnectedMonitor string: "DFP"
    (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
    (EE) NVIDIA(0):     check your system's kernel log for additional error
    (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
     (EE) NVIDIA(0):     README for additional information.
    (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
    (EE) NVIDIA(0): Failing initialization of X screen 0
    (II) UnloadModule: "nvidia"
    (II) Unloading nvidia
    (II) UnloadModule: "wfb"
    (II) Unloading wfb
    (II) UnloadModule: "fb"
     (II) Unloading fb
    (EE) Screen(s) found, but none have a usable configuration.

  4. #4
    Join Date
    Jun 2009
    Beans
    14

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    bump.

    Any ideas?

  5. #5
    Join Date
    Jun 2009
    Beans
    14

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    I solved the problem, but am confused as to why forcing ACPI to be on was necessary. Does anyone care to educate me?

  6. #6
    Join Date
    Nov 2010
    Location
    Foshan, China
    Beans
    437
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    Quote Originally Posted by Curvature_Tensor View Post
    I solved the problem, but am confused as to why forcing ACPI to be on was necessary. Does anyone care to educate me?
    You mean removing the force has solved the problem ?

  7. #7
    Join Date
    Dec 2008
    Location
    St. Louis, MO
    Beans
    81
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    Curvature_Tensor,
    can you share how you solved the problem? Marking a thread a SOLVED without posting the solution is a bit frustrating for folks who are having the same problem
    Lutz

  8. #8
    Join Date
    Jun 2009
    Beans
    14

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    Quote Originally Posted by landersohn View Post
    Curvature_Tensor,
    can you share how you solved the problem? Marking a thread a SOLVED without posting the solution is a bit frustrating for folks who are having the same problem
    It is in the original post. I updated it after solving the problem.

    I had to force ACPI on to solve the problem.

  9. #9
    Join Date
    Jul 2009
    Beans
    110
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    I have a Toshiba M645-S4080. If I change the /etc/defaults/grub to include
    Code:
    GRUB_CMDLINE_LINUX="acpi=force"
    It will not boot. It just goes to a black screen with a blinking cursor that allows me to type but not actually do anything. Besides creating the xorg.conf, was there something I was supposed to add to it beyond that example skeleton? Thanks

    Edit: Scratch that. I changed the xorg.conf permissions to 777 and now it boots. Maybe I just needed to make it executable?
    Code:
    optirun glxgears
    Still doesn't work though. It returns:
    Code:
    joseph@M645:~$ optirun glxspheres
    [   24.780377] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.
    
    [   24.780419] [ERROR]Aborting because fallback start is disabled.
    Any ideas?
    Last edited by JoeGoalie; November 27th, 2012 at 03:14 PM.

  10. #10
    Join Date
    Dec 2012
    Beans
    2

    Re: optirun glxgears: [ERROR]Cannot access secondary GPU

    Hello everyone!

    Have the same problem and I've done how it is shown in the solution but it has not still work!

    Laptop: Lenovo Y570 (CPU
    Core i5-2450M with Sandybridge Mobile x86/MMX/SSE2 and NVidia GeForce GT555M).
    System: Ubuntu 12.04.1 LTS 32bit.

    After installing Ubuntu and exactly after that I ran these commands to install nvidia driver and bumbbelle (http://help.ubuntu.ru/wiki/bumblebee):

    sudo add-apt-repository ppa:bumblebee/stable
    sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
    sudo apt-get update
    udo apt-get install bumblebee bumblebee-nvidia nvidia-current
    restart

    Then

    sudo apt-get install mesa-utils

    optirun --status

    Bumblebee status: Ready (3.0.1). X inactive. Discrete video card is likely on.
    optirun glxgears [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.

    I tried
    Solution:
    1. Uninstall bumblebee, bumble-nvidia, nvidia-current
    2. Reinstall clean versions of the above packages
    3. Create a skeleton xorg.conf file in /etc/X11/
    4. Force ACPI on by editing /etc/default/grub and then running update-grub

    but it did not help. What did I do wrong? I cannot see Grafics in Details (System settings).


    Sometimes I cannot see the list of drivers in System Settings > Additional Drivers but in
    Details I can see Intel® Sandybridge Mobile x86/MMX/SSE2. And when I cannot see this Sandybridge... in details I can see the names of the drivers in Additional Drivers.

    Thank you in advance for your answers.
    Last edited by Kamigor; December 10th, 2012 at 01:02 PM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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