BumblebeeonUbuntu13.04 solution for no graphic device detected [same for dual-graphics cards]

Source: Internet
Author: User
Scenario: [ERROR] CannotaccesssecondaryGPU-error: [XORG] (EE) Nodevicesdetected. [ERROR] Abortingbecausefallbackstartisdisabled. nvidia driver case: root@www.linuxidc.com :~ # Lspci | grepVGA00: 02.0VG

Situation:
[ERROR] Cannot access secondary GPU-error: [XORG] (EE) No devices detected.
[ERROR] Aborting because fallback start is disabled.

Nvidia DRIVER:
Root @ www.linuxidc.com :~ # Lspci | grep VGA
00:02. 0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
. 0 VGA compatible controller: NVIDIA Corporation gfw.m [GeForce GT 630 M] (rev ff)

Obtain your exclusive BUSID... that is,. 0.

Next, modify vim/etc/bumblebee/xorg. conf. nvidia

Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection

Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"

# If the X server does not automatically detect your VGA device,
# You can manually set it here.
# To get the BusID prop, run 'lspci | egrep 'vga | 3D ''and input the data
# As you see in the commented example.
# This Setting may be needed in some platforms with more than one
# Nvidia card, which may confuse the proprietary driver (e.g .,
# Trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
BusID "PCI: 01: 00: 0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# Instance spawned to try to control the integrated graphics card,
# Which is already being managed outside bumblebee.
# This option doesn' t hurt and it is required on platforms running
# More than one nvidia graphics card with the proprietary driver.
# (E. g. Macbook Pro pre-2010 with nVidia 9400 M + 9600 m gt ).
# If this option is not set, the new Xorg may blacken the screen and
# Render it unusable (unless you have some way to run killall Xorg ).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection

Remove the comment of the BusID line and modify the PCI number (you have obtained the exclusive BUSID number). It is worth noting that the last digit of the obtained ID number must be a colon.

That is, PCI: 01: 00: 0

Modify the main configuration file of bumblebee

# Configuration file for Bumblebee. Values shoshould ** 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
# Shocould 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 already med. 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
# Shocould 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 ).
# P0000hod: 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
P1_hod = auto
# Colon-separated path to the nvidia libraries
LibraryPath =/usr/lib/nvidia-current:/usr/lib32/nvidia-current
# Comma-separated path of the directory containing into dia_drv.so and
# Default Xorg modules path
XorgModulePath =/usr/lib/nvidia-current/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
P1_hod = auto
XorgConfFile =/etc/bumblebee/xorg. conf. nouveau

Modify
Driver = nvidia
KernelDriver = nvidia-current
Module = nvidia-current
Module = nvidia

Related reading:

Use Bumblebee to control NVIDIA dual graphics card (Ubuntu) http://www.linuxidc.com/Linux/2012-09/70418.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.