You are not logged in.
Hi everyone !
I have a laptop with an integrated Intel graphic card and a NVIDIA GeForce GTX 760M dedicated one.
I installed the nvidia driver according to the wiki wiki and then took a look at the Optimus page.
My computer is a Aspire V3-772G (64 bits, for the record) which doesn't seem to have an option to disable one of the graphic cards in the BIOS.
I first tried to follow the Optimus page of the wiki, but I couldn't get the X server to start without first deleting the /etc/X11/xorg.conf file (generated by nvidia-xconfig) and the command :
glxinfo | grep NVIDIAdoesn't return anything. I read somewhere that a xorg.conf may not be necessary anymore, so I gave up the idea of using one since it prevents my X server to start.
Then I decided to use Bumblebee instead. I installed the bumblebee, mesa, xf86-video-intel and bbswitch packages, add my user to the bumblebee group and enabled the bumblebeed service. Finally, I installed the mesa-demos package to test my setup.
Unfortunately, here's the output of the
$ optirun glxgears -infoand
$ optirun glxspheres64commands :
[ 465.629732] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ 465.629764] [ERROR]Aborting because fallback start is disabled.I tried what is said in this topic with no luck.
Here's the output of
lsmod | grep nvidia:
nvidia 13840384 0The output of
lspci | grep VGA(isn't it weird that my NVIDIA card doesn't appear here ?):
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)The command
lspci | grep "VGA|3D"doesn't return anything but the
lspci | grep NVIDIAdoes :
01:00.0 3D controller: NVIDIA Corporation GK106M [GeForce GTX 760M] (rev a1)Here's the output of
dmesg | grep NVIDIA:
[ 41.610626] nvidia: module license 'NVIDIA' taints kernel.
[ 41.618874] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 387.22 Wed Oct 25 23:13:21 PDT 2017 (using threaded interrupts)The logs of
sudo systemctl status bumblebeed:
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628637] [ERROR][XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics devic
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628640] [ERROR][XORG] (EE) NVIDIA(0): Failing initialization of X screen 0
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628643] [ERROR][XORG] (EE) Screen(s) found, but none have a usable configuration.
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628645] [ERROR][XORG] (EE)
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628648] [ERROR][XORG] (EE) no screens found(EE)
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628650] [ERROR][XORG] (EE)
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628653] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for a
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628655] [ERROR][XORG] (EE)
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.628658] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
nov. 11 15:28:04 Saya bumblebeed[10367]: [ 465.629703] [ERROR]X did not start properlyMy /etc/bumblee/bumblebee.conf file :
# 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=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=virtualgl
# 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/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
PMMethod=bbswitch
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/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
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveauMy /etc/bumblee/xorg.conf.nvidia file :
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 9400M + 9600M 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"
EndSectionMy /etc/default/grub file :
GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_osi=Linux acpi_backlight=vendor resume=/dev/mapper/MyVol-swap rcutree.rcu_idle_gp_delay=1"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda1:cryptolvm"
GRUB_RECORDFAIL_TIMOUT=0
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"
GRUB_TERMINAL_INPUT=at_keyboard
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"
GRUB_ENABLE_CRYPTODISK=yMy modules from /etc/mkinitcpio.conf :
MODULES="i915 bbswitch"Of course, I ran
sudo grub-mkconfig -o /boot/grub/grub.cfgand
sudo mkinitcpio -p linuxand rebooted, several times, but with no luck as well.
I hope someone can help me with this. I struggled with this for days now and nothing seems to work.
Thank you for your time. ![]()
Last edited by Denshou (2017-11-11 15:26:33)
Offline
Are you sure you removed the nvidia-xconfig config? What's the output of
tree /etc/X11 #Needs the tree packagepost any config files you find there, post the contents of /var/log/Xorg.8.log
Online
Are you sure you removed the nvidia-xconfig config? What's the output of
tree /etc/X11 #Needs the tree packagepost any config files you find there, post the contents of /var/log/Xorg.8.log
Thank you for your answer.
Here's what you asked for :
/etc/X11
├── xinit
│ ├── xinitrc
│ ├── xinitrc.d
│ │ ├── 40-libcanberra-gtk-module.sh
│ │ └── 50-systemd-user.sh
│ └── xserverrc
├── xorg.conf.backup
├── xorg.conf.d
│ └── 10-keyboard-layout.conf
└── xorg.conf.nvidia-xconfig-original
3 directories, 7 filesShould I remove xorg.conf.nvidia-xconfig-original file ? There's nothing in it.
As for /var/log/Xorg.8.log :
[ 3793.395]
X.Org X Server 1.19.5
Release Date: 2017-10-12
[ 3793.395] X Protocol Version 11, Revision 0
[ 3793.395] Build Operating System: Linux 4.9.54-1-lts x86_64
[ 3793.395] Current Operating System: Linux Saya 4.13.11-1-ARCH #1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017 x86_64
[ 3793.396] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/mapper/MyVol-root rw cryptdevice=/dev/sda1:cryptolvm quiet acpi_osi=Linux acpi_backlight=vendor resume=/dev/mapper/MyVol-swap rcutree.rcu_idle_gp_delay=1
[ 3793.396] Build Date: 12 October 2017 09:59:53PM
[ 3793.396]
[ 3793.396] Current version of pixman: 0.34.0
[ 3793.396] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 3793.396] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 3793.396] (==) Log file: "/var/log/Xorg.8.log", Time: Sat Nov 11 16:23:32 2017
[ 3793.396] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[ 3793.396] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[ 3793.396] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 3793.396] (==) ServerLayout "Layout0"
[ 3793.396] (==) No screen section available. Using defaults.
[ 3793.396] (**) |-->Screen "Default Screen Section" (0)
[ 3793.396] (**) | |-->Monitor "<default monitor>"
[ 3793.396] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 3793.396] (**) | |-->Device "DiscreteNvidia"
[ 3793.396] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 3793.396] (**) Option "AutoAddDevices" "false"
[ 3793.396] (**) Option "AutoAddGPU" "false"
[ 3793.396] (**) Not automatically adding devices
[ 3793.396] (==) Automatically enabling devices
[ 3793.396] (**) Not automatically adding GPU devices
[ 3793.396] (==) Automatically binding GPU devices
[ 3793.396] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 3793.396] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 3793.396] Entry deleted from font path.
[ 3793.396] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 3793.396] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 3793.396] Entry deleted from font path.
[ 3793.396] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 3793.396] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/Type1/
[ 3793.396] (++) ModulePath set to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[ 3793.396] (==) |-->Input Device "<default pointer>"
[ 3793.396] (==) |-->Input Device "<default keyboard>"
[ 3793.396] (==) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
[ 3793.396] (==) The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
[ 3793.396] (II) Loader magic: 0x556dfe966d60
[ 3793.396] (II) Module ABI versions:
[ 3793.396] X.Org ANSI C Emulation: 0.4
[ 3793.396] X.Org Video Driver: 23.0
[ 3793.396] X.Org XInput driver : 24.1
[ 3793.396] X.Org Server Extension : 10.0
[ 3793.397] (--) using VT number 1
[ 3793.397] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 3793.397] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 3793.397] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 3793.399] (--) PCI:*(0:1:0:0) 10de:11e3:1025:0781 rev 161, Mem @ 0xd2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[ 3793.399] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 3793.399] (II) LoadModule: "glx"
[ 3793.399] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[ 3793.402] (II) Module glx: vendor="NVIDIA Corporation"
[ 3793.402] compiled for 4.0.2, module version = 1.0.0
[ 3793.402] Module class: X.Org Server Extension
[ 3793.402] (II) NVIDIA GLX Module 387.22 Wed Oct 25 22:41:23 PDT 2017
[ 3793.402] (II) LoadModule: "nvidia"
[ 3793.402] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 3793.402] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 3793.402] compiled for 4.0.2, module version = 1.0.0
[ 3793.402] Module class: X.Org Video Driver
[ 3793.402] (II) LoadModule: "mouse"
[ 3793.403] (WW) Warning, couldn't open module mouse
[ 3793.403] (II) UnloadModule: "mouse"
[ 3793.403] (II) Unloading mouse
[ 3793.403] (EE) Failed to load module "mouse" (module does not exist, 0)
[ 3793.403] (II) LoadModule: "kbd"
[ 3793.403] (WW) Warning, couldn't open module kbd
[ 3793.403] (II) UnloadModule: "kbd"
[ 3793.403] (II) Unloading kbd
[ 3793.403] (EE) Failed to load module "kbd" (module does not exist, 0)
[ 3793.403] (II) NVIDIA dlloader X Driver 387.22 Wed Oct 25 22:14:47 PDT 2017
[ 3793.403] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 3793.403] (II) Loading sub module "fb"
[ 3793.403] (II) LoadModule: "fb"
[ 3793.403] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 3793.403] (II) Module fb: vendor="X.Org Foundation"
[ 3793.403] compiled for 1.19.5, module version = 1.0.0
[ 3793.403] ABI class: X.Org ANSI C Emulation, version 0.4
[ 3793.403] (II) Loading sub module "wfb"
[ 3793.403] (II) LoadModule: "wfb"
[ 3793.403] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 3793.403] (II) Module wfb: vendor="X.Org Foundation"
[ 3793.403] compiled for 1.19.5, module version = 1.0.0
[ 3793.403] ABI class: X.Org ANSI C Emulation, version 0.4
[ 3793.403] (II) Loading sub module "ramdac"
[ 3793.403] (II) LoadModule: "ramdac"
[ 3793.403] (II) Module "ramdac" already built-in
[ 3793.403] (II) NVIDIA(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 3793.403] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 3793.403] (==) NVIDIA(0): RGB weight 888
[ 3793.403] (==) NVIDIA(0): Default visual is TrueColor
[ 3793.403] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 3793.403] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[ 3793.403] (**) NVIDIA(0): Option "UseEDID" "false"
[ 3793.403] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[ 3793.404] (**) NVIDIA(0): Enabling 2D acceleration
[ 3793.404] (**) NVIDIA(0): Ignoring EDIDs
[ 3793.404] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[ 3793.404] (**) NVIDIA(0): mode
[ 3793.489] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ 3793.489] (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
[ 3793.489] (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
[ 3793.489] (EE) NVIDIA(GPU-0): README for additional information.
[ 3793.489] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[ 3793.489] (EE) NVIDIA(0): Failing initialization of X screen 0
[ 3793.489] (II) UnloadModule: "nvidia"
[ 3793.489] (II) UnloadSubModule: "wfb"
[ 3793.489] (II) UnloadSubModule: "fb"
[ 3793.489] (EE) Screen(s) found, but none have a usable configuration.
[ 3793.489] (EE)
Fatal server error:
[ 3793.489] (EE) no screens found(EE)
[ 3793.489] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 3793.489] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[ 3793.489] (EE)
[ 3793.489] (EE) Server terminated with error (1). Closing log file.Last edited by Denshou (2017-11-11 16:14:09)
Offline
Offline
I said in the first post that I already tried this. Unfortunately, doesn't work. ![]()
Offline