Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access secondary GPU: [drm] failed to set drm interface version: Permission denied #580

Closed
timfayz opened this issue May 9, 2014 · 59 comments

Comments

@timfayz
Copy link

timfayz commented May 9, 2014

I have the common issue. When I try to run something through optirun, I get the following:

[13395.278406] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[13395.278522] [ERROR]Aborting because fallback start is disabled.

Specification:

  • Ubuntu 14.04
  • NVIDIA Corporation GF108M [GeForce GT 630M](rev a1)
  • Nvidia 331 driver

I've tried to reinstall nvidia and bumblebee packages, to remove something related with nvidia within /usr/share/X11/xorg.conf.d, uncomment BudID in the xorg.conf.nvidia file

optirun -vv --debug bush
[13077.093918] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[13077.094673] [DEBUG]optirun version 3.2.1 starting...
[13077.094690] [DEBUG]Active configuration:
[13077.094698] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[13077.094705] [DEBUG] X display: :8
[13077.094711] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-331:/usr/lib32/nvidia-331
[13077.094717] [DEBUG] Socket path: /var/run/bumblebee.socket
[13077.094723] [DEBUG] Accel/display bridge: auto
[13077.094728] [DEBUG] VGL Compression: proxy
[13077.094734] [DEBUG] VGLrun extra options:
[13077.094740] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[13077.094813] [DEBUG]Using auto-detected bridge primus
[13079.358358] [INFO]Response: No - error: XORG intel(0): [drm] failed to set drm interface version: Permission denied [13].
[13079.358418] [ERROR]Cannot access secondary GPU - error: XORG intel(0): [drm] failed to set drm interface version: Permission denied [13].
[13079.358428] [DEBUG]Socket closed.
[13079.358457] [ERROR]Aborting because fallback start is disabled.
[13079.358465] [DEBUG]Killing all remaining processes.

What is wrong?

@circlingthesun
Copy link

Yep, I get the same with nvidia-304.

[  642.086760] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  642.087862] [DEBUG]optirun version 3.2.1 starting...
[  642.087916] [DEBUG]Active configuration:
[  642.087950] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  642.087985] [DEBUG] X display: :8
[  642.088080] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-304:/usr/lib32/nvidia-304
[  642.088099] [DEBUG] Socket path: /var/run/bumblebee.socket
[  642.088117] [DEBUG] Accel/display bridge: auto
[  642.088135] [DEBUG] VGL Compression: proxy
[  642.088153] [DEBUG] VGLrun extra options: 
[  642.088171] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[  642.088243] [DEBUG]Using auto-detected bridge virtualgl
[  644.367600] [INFO]Response: No - error: [XORG] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].

[  644.367651] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].

[  644.367666] [DEBUG]Socket closed.
[  644.367714] [ERROR]Aborting because fallback start is disabled.
[  644.367734] [DEBUG]Killing all remaining processes.

@circlingthesun
Copy link

Also running 14.04 but with a GeForce GT 620M and the xorg-edgers ppa.

@circlingthesun
Copy link

So I've purged the xorg-edgers ppa, no luck. Then purged the bumblebee ppa and reverted to the ubuntu packaged version, nope. I then removed all bumblebee settings and reinstalled it, with the ubuntu package and then with the bumblebee ppa, still no luck. Now I'm reinstalling xorg-edgers. Does anyone have idea what might cause this issue?

@jkwong888
Copy link

I was having this problem too. For me, it was loading the default system config directory, see /var/log/Xorg.8.log:

[  3193.759] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[  3193.759] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[  3193.759] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

xorg.conf.d contains 20-intel.conf which contains the intel card definition. But it seems the order of loading these devices was messed up and xorg attempted to load the intel card first before the nvidia card. since intel is already used by display :0 it barfs with the drm error.

I got around this by appending "Screen" section to /etc/bumblebee/xorg.conf.nvidia and force it to use the "DiscreteNvidia" device as defined at the top of this config file:

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

@jgolinowski
Copy link

I ran into this error today after a minor update of xserver-xorg-core and xserver-common. I'm glad I quickly found this workaround here because it works like a charm :)

@zekefast
Copy link

zekefast commented Sep 7, 2014

Have same error on Debian Jessie.
I tried to add Screen section as @jkwong888 suggested, but it did not helped.

Is there anybody who knows how to fix or wordaround the issue?

Thank you in advance!

P.S.:
Video: Nvidia GeForce GT 650M

@NicolaeGrigoriu
Copy link

Had the same error, on clean install on the ubuntu 14.04, Nvidia GeFroce GT 630 M and @jkwong888's advice have helped me. Thank you.

@arashtarafar
Copy link

Thanks, @jkwong888 ! Worked perfectly!

@shantanu-csedu
Copy link

I am having the same problem. I want to add more debug log
Ubuntu 14.04.1 64bit
nvidia-340 or nvidia-343
optirun (Bumblebee) 3.2.1

#result of sudo /usr/sbin/bumblebeed  -vv
[  710.749236] [DEBUG]Found card: 04:00.0 (discrete)
[  710.749284] [DEBUG]Found card: 00:02.0 (integrated)
[  710.749301] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  710.749681] [INFO]Configured driver: nvidia
[  710.749713] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[  710.749874] [DEBUG]Process /sbin/modprobe started, PID 3429.
[  710.749937] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  710.751699] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  710.751817] [DEBUG]bbswitch has been detected.
[  710.751825] [INFO]Switching method 'bbswitch' is available and will be used.
[  710.751831] [DEBUG]Active configuration:
[  710.751835] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  710.751850] [DEBUG] X display: :8
[  710.751854] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-340:/usr/lib32/nvidia-340
[  710.751859] [DEBUG] Socket path: /var/run/bumblebee.socket
[  710.751863] [DEBUG] pidfile: /var/run/bumblebeed.pid
[  710.751867] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[  710.751872] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d
[  710.751876] [DEBUG] ModulePath: /usr/lib/nvidia-340/xorg,/usr/lib/xorg/modules
[  710.751880] [DEBUG] GID name: bumblebee
[  710.751884] [DEBUG] Power method: auto
[  710.751889] [DEBUG] Stop X on exit: 1
[  710.751893] [DEBUG] Driver: nvidia
[  710.751897] [DEBUG] Driver module: nvidia-340
[  710.751901] [DEBUG] Card shutdown state: 1
[  710.752058] [DEBUG]Process /sbin/modprobe started, PID 3430.
[  710.752083] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[  710.753159] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  710.753174] [DEBUG]Configuration test passed.
[  710.753557] [INFO]/usr/sbin/bumblebeed 3.2.1 started
[  710.753700] [INFO]Unloading nvidia driver
[  710.753801] [DEBUG]Process rmmod started, PID 3431.
[  710.755568] [DEBUG]Process with PID 3431 returned code 0
[  710.755952] [INFO]Switching dedicated card OFF [bbswitch]
[  710.804570] [INFO]Initialization completed - now handling client requests
[  732.247510] [DEBUG]Accepted new connection
[  732.247655] [DEBUG]Socket closed.
[  748.518707] [DEBUG]Accepted new connection
[  748.518902] [INFO]Switching dedicated card ON [bbswitch]
[  748.956517] [INFO]Loading driver nvidia (module nvidia-340)
[  748.956850] [DEBUG]Process modprobe started, PID 3491.
[  748.977684] [DEBUG]Process with PID 3491 returned code 0
[  748.977784] [INFO]Starting X server on display :8.
[  748.977902] [DEBUG]Process Xorg started, PID 3497.
[  751.270013] [DEBUG][XORG] X.Org X Server 1.15.1
[  751.270051] [DEBUG][XORG] Release Date: 2014-04-13
[  751.270058] [DEBUG][XORG] X Protocol Version 11, Revision 0
[  751.270065] [DEBUG][XORG] Build Operating System: Linux 3.2.0-61-generic x86_64 Ubuntu
[  751.270072] [DEBUG][XORG] Current Operating System: Linux shantanu-dev 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
[  751.270080] [DEBUG][XORG] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-37-generic root=UUID=78cda98f-7265-453c-aeb9-5f780b8aa84f ro quiet splash acpi_osi=Linux
[  751.270087] [DEBUG][XORG] Build Date: 30 July 2014  12:21:54AM
[  751.270095] [DEBUG][XORG] xorg-server 2:1.15.1-0ubuntu2.1 (For technical support please see http://www.ubuntu.com/support) 
[  751.270103] [DEBUG][XORG] Current version of pixman: 0.30.2
[  751.270109] [DEBUG][XORG]    Before reporting problems, check http://wiki.x.org
[  751.270116] [DEBUG][XORG]    to make sure that you have the latest version.
[  751.270123] [DEBUG][XORG] Markers: (--) probed, (**) from config file, (==) default setting,
[  751.270129] [DEBUG][XORG]    (++) from command line, (!!) notice, (II) informational,
[  751.270139] [DEBUG][XORG]    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  751.270146] [DEBUG][XORG] (==) Log file: "/var/log/Xorg.8.log", Time: Mon Oct 20 02:47:20 2014
[  751.270154] [DEBUG][XORG] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[  751.270161] [DEBUG][XORG] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[  751.270168] [DEBUG][XORG] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  751.270175] [DEBUG][XORG] (==) ServerLayout "Layout0"
[  751.270181] [DEBUG][XORG] (==) No screen section available. Using defaults.
[  751.270188] [DEBUG][XORG] (**) |-->Screen "Default Screen Section" (0)
[  751.270195] [DEBUG][XORG] (**) |   |-->Monitor "<default monitor>"
[  751.270201] [DEBUG][XORG] (==) No device specified for screen "Default Screen Section".
[  751.270208] [DEBUG][XORG]    Using the first device section listed.
[  751.270215] [DEBUG][XORG] (**) |   |-->Device "card0"
[  751.270222] [DEBUG][XORG] (==) No monitor specified for screen "Default Screen Section".
[  751.270229] [DEBUG][XORG]    Using a default monitor configuration.
[  751.270237] [DEBUG][XORG] (**) Option "AutoAddDevices" "false"
[  751.270243] [DEBUG][XORG] (**) Option "AutoAddGPU" "false"
[  751.270250] [DEBUG][XORG] (**) Not automatically adding devices
[  751.270256] [DEBUG][XORG] (==) Automatically enabling devices
[  751.270263] [DEBUG][XORG] (**) Not automatically adding GPU devices
[  751.270271] [DEBUG][XORG] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  751.270277] [DEBUG][XORG]    Entry deleted from font path.
[  751.270291] [DEBUG][XORG] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  751.270298] [DEBUG][XORG]    Entry deleted from font path.
[  751.270306] [DEBUG][XORG] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  751.270313] [DEBUG][XORG]    Entry deleted from font path.
[  751.270320] [DEBUG][XORG] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[  751.270326] [DEBUG][XORG]    Entry deleted from font path.
[  751.270334] [DEBUG][XORG] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  751.270340] [DEBUG][XORG]    Entry deleted from font path.
[  751.270347] [DEBUG][XORG] (==) FontPath set to:
[  751.270353] [DEBUG][XORG]    /usr/share/fonts/X11/misc,
[  751.270360] [DEBUG][XORG]    /usr/share/fonts/X11/Type1,
[  751.270367] [DEBUG][XORG]    built-ins
[  751.270374] [DEBUG][XORG] (++) ModulePath set to "/usr/lib/nvidia-340/xorg,/usr/lib/xorg/modules"
[  751.270380] [DEBUG][XORG] (==) |-->Input Device "<default pointer>"
[  751.270388] [DEBUG][XORG] (==) |-->Input Device "<default keyboard>"
[  751.270394] [DEBUG][XORG] (==) The core pointer device wasn't specified explicitly in the layout.
[  751.270401] [DEBUG][XORG]    Using the default mouse configuration.
[  751.270408] [DEBUG][XORG] (==) The core keyboard device wasn't specified explicitly in the layout.
[  751.270415] [DEBUG][XORG]    Using the default keyboard configuration.
[  751.270422] [DEBUG][XORG] (II) Loader magic: 0x7f8c9d3b2d40
[  751.270428] [DEBUG][XORG] (II) Module ABI versions:
[  751.270434] [DEBUG][XORG]    X.Org ANSI C Emulation: 0.4
[  751.270441] [DEBUG][XORG]    X.Org Video Driver: 15.0
[  751.270448] [DEBUG][XORG]    X.Org XInput driver : 20.0
[  751.270455] [DEBUG][XORG]    X.Org Server Extension : 8.0
[  751.270462] [DEBUG][XORG] (II) xfree86: Adding drm device (/dev/dri/card0)
[  751.270469] [DEBUG][XORG] (II) xfree86: Adding drm device (/dev/dri/card1)
[  751.270476] [DEBUG][XORG] (--) PCI: (0:4:0:0) 10de:1292:1043:130d rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288
[  751.270486] [DEBUG][XORG] Initializing built-in extension Generic Event Extension
[  751.270495] [DEBUG][XORG] Initializing built-in extension SHAPE
[  751.270505] [DEBUG][XORG] Initializing built-in extension MIT-SHM
[  751.270514] [DEBUG][XORG] Initializing built-in extension XInputExtension
[  751.270524] [DEBUG][XORG] Initializing built-in extension XTEST
[  751.270534] [DEBUG][XORG] Initializing built-in extension BIG-REQUESTS
[  751.270541] [DEBUG][XORG] Initializing built-in extension SYNC
[  751.270548] [DEBUG][XORG] Initializing built-in extension XKEYBOARD
[  751.270554] [DEBUG][XORG] Initializing built-in extension XC-MISC
[  751.270560] [DEBUG][XORG] Initializing built-in extension SECURITY
[  751.270566] [DEBUG][XORG] Initializing built-in extension XINERAMA
[  751.270572] [DEBUG][XORG] Initializing built-in extension XFIXES
[  751.270578] [DEBUG][XORG] Initializing built-in extension RENDER
[  751.270584] [DEBUG][XORG] Initializing built-in extension RANDR
[  751.270590] [DEBUG][XORG] Initializing built-in extension COMPOSITE
[  751.270596] [DEBUG][XORG] Initializing built-in extension DAMAGE
[  751.270603] [DEBUG][XORG] Initializing built-in extension MIT-SCREEN-SAVER
[  751.270609] [DEBUG][XORG] Initializing built-in extension DOUBLE-BUFFER
[  751.270616] [DEBUG][XORG] Initializing built-in extension RECORD
[  751.270626] [DEBUG][XORG] Initializing built-in extension DPMS
[  751.270632] [DEBUG][XORG] Initializing built-in extension Present
[  751.270638] [DEBUG][XORG] Initializing built-in extension DRI3
[  751.270644] [DEBUG][XORG] Initializing built-in extension X-Resource
[  751.270650] [DEBUG][XORG] Initializing built-in extension XVideo
[  751.270656] [DEBUG][XORG] Initializing built-in extension XVideo-MotionCompensation
[  751.270663] [DEBUG][XORG] Initializing built-in extension SELinux
[  751.270669] [DEBUG][XORG] Initializing built-in extension XFree86-VidModeExtension
[  751.270675] [DEBUG][XORG] Initializing built-in extension XFree86-DGA
[  751.270681] [DEBUG][XORG] Initializing built-in extension XFree86-DRI
[  751.270688] [DEBUG][XORG] Initializing built-in extension DRI2
[  751.270696] [WARN][XORG] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere.
[  751.270702] [DEBUG][XORG] (II) "glx" will be loaded by default.
[  751.270710] [WARN][XORG] (WW) "xmir" is not to be loaded by default. Skipping.
[  751.270716] [DEBUG][XORG] (II) LoadModule: "glx"
[  751.270722] [DEBUG][XORG] (II) Loading /usr/lib/nvidia-340/xorg/libglx.so
[  751.270728] [DEBUG][XORG] (II) Module glx: vendor="NVIDIA Corporation"
[  751.270734] [DEBUG][XORG]    compiled for 4.0.2, module version = 1.0.0
[  751.270741] [DEBUG][XORG]    Module class: X.Org Server Extension
[  751.270748] [DEBUG][XORG] (II) NVIDIA GLX Module  340.46  Wed Sep 24 13:54:14 PDT 2014
[  751.270754] [DEBUG][XORG] Loading extension GLX
[  751.270760] [DEBUG][XORG] (II) LoadModule: "intel"
[  751.270767] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  751.270773] [DEBUG][XORG] (II) Module intel: vendor="X.Org Foundation"
[  751.270779] [DEBUG][XORG]    compiled for 1.15.1, module version = 2.99.916
[  751.270786] [DEBUG][XORG]    Module class: X.Org Video Driver
[  751.270792] [DEBUG][XORG]    ABI class: X.Org Video Driver, version 15.0
[  751.270799] [DEBUG][XORG] (II) LoadModule: "mouse"
[  751.270805] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[  751.270811] [DEBUG][XORG] (II) Module mouse: vendor="X.Org Foundation"
[  751.270817] [DEBUG][XORG]    compiled for 1.15.0, module version = 1.9.0
[  751.270824] [DEBUG][XORG]    Module class: X.Org XInput Driver
[  751.270830] [DEBUG][XORG]    ABI class: X.Org XInput driver, version 20.0
[  751.270838] [DEBUG][XORG] (II) LoadModule: "kbd"
[  751.270845] [DEBUG][XORG] (WW) Warning, couldn't open module kbd
[  751.270851] [DEBUG][XORG] (II) UnloadModule: "kbd"
[  751.270857] [DEBUG][XORG] (II) Unloading kbd
[  751.270863] [DEBUG][XORG] (EE) Failed to load module "kbd" (module does not exist, 0)
[  751.270870] [DEBUG][XORG] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
[  751.270876] [DEBUG][XORG]    i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
[  751.270883] [DEBUG][XORG]    915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
[  751.270890] [DEBUG][XORG]    Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
[  751.270897] [DEBUG][XORG]    GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[  751.270905] [DEBUG][XORG] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[  751.270911] [DEBUG][XORG] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[  751.270917] [DEBUG][XORG] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[  751.270924] [DEBUG][XORG] (--) using VT number 7
[  751.270930] [DEBUG][XORG] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20080730
[  751.270937] [DEBUG][XORG] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.916+git20141016.6b98f162-0ubuntu0sarvatt~trusty (Robert Hooker <sarvatt@ubuntu.com>)
[  751.270947] [DEBUG][XORG] (II) intel(0): SNA compiled for use with valgrind
[  751.270964] [ERROR][XORG] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[  751.270971] [DEBUG][XORG] (II) intel(0): [drm] Contents of '/sys/kernel/debug/dri/0/clients':
[  751.270978] [DEBUG][XORG] (II) intel(0): [drm] a dev pid    uid  magic     ioctls
[  751.270986] [DEBUG][XORG] (II) intel(0): [drm] 
[  751.270992] [DEBUG][XORG] (II) intel(0): [drm] y   0  3497     0          0       2004
[  751.270999] [DEBUG][XORG] (II) intel(0): [drm] y   0  2466  1000          5     353590
[  751.271005] [DEBUG][XORG] (II) intel(0): [drm] y   0  2053  1000          4    1683596
[  751.271011] [DEBUG][XORG] (II) intel(0): [drm] y   0  1342     0          0     145421
[  751.271021] [ERROR][XORG] (EE) intel(0): Failed to claim DRM device.
[  751.271027] [DEBUG][XORG] (II) UnloadModule: "intel"
[  751.271034] [ERROR][XORG] (EE) Screen(s) found, but none have a usable configuration.
[  751.271041] [ERROR][XORG] (EE) 
[  751.271047] [DEBUG][XORG] Fatal server error:
[  751.271053] [ERROR][XORG] (EE) no screens found(EE) 
[  751.271060] [ERROR][XORG] (EE) 
[  751.271065] [DEBUG][XORG] Please consult the The X.Org Foundation support 
[  751.271072] [DEBUG][XORG]     at http://wiki.x.org
[  751.271079] [DEBUG][XORG]  for help. 
[  751.271086] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[  751.271093] [ERROR][XORG] (EE) 
[  751.271100] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
[  751.274253] [DEBUG]Process with PID 3497 returned code 1
[  751.274295] [ERROR]X did not start properly
[  751.274474] [DEBUG]Socket closed.

@kewitz
Copy link

kewitz commented Nov 12, 2014

Thanks @jkwong888! It worked for me too.

Dell Vostro 5470
Xubuntu Trusty 14.04 Linux 3.13.0-39-generic x86_64
3D controller: NVIDIA Corporation GK208M [GeForce GT 740M]

@theocrite
Copy link

I have the same bug on Debian/Jessie, using bumblebee 3.2.1 and primus 20140711.

$ lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller])
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 860M] [10de:1392] (rev ff) (prog-if ff)

When running optirun, I see the following in dmesg:

[ 1536.341360] bbswitch: enabling discrete graphics
[ 1567.443307] bbswitch: disabling discrete graphics
[ 1567.443317] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)

@jkwong888's suggestion didn't help.

$ optirun -vv bash
[14269.997546] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[14269.997740] [DEBUG]optirun version 3.2.1 starting...
[14269.997747] [DEBUG]Active configuration:
[14269.997761] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[14269.997765] [DEBUG] X display: :8
[14269.997768] [DEBUG] LD_LIBRARY_PATH: 
[14269.997772] [DEBUG] Socket path: /var/run/bumblebee.socket
[14269.997776] [DEBUG] Accel/display bridge: auto
[14269.997780] [DEBUG] VGL Compression: proxy
[14269.997788] [DEBUG] VGLrun extra options: 
[14269.997792] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[14269.997826] [DEBUG]Using auto-detected bridge primus
[14270.002013] [INFO]Response: No - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[14270.002035] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[14270.002051] [DEBUG]Socket closed.
[14270.002069] [ERROR]Aborting because fallback start is disabled.
[14270.002077] [DEBUG]Killing all remaining processes.
# bumblebeed 
[14260.288076] [INFO]bumblebeed 3.2.1 started
[14265.764608] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[14265.764636] [ERROR][XORG] (EE) [drm] KMS not enabled
[14265.764640] [ERROR][XORG] (EE) No devices detected.
[14265.764644] [ERROR][XORG] (EE) 
[14265.764647] [ERROR][XORG] (EE) no screens found(EE) 
[14265.764651] [ERROR][XORG] (EE) 
[14265.764655] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[14265.764658] [ERROR][XORG] (EE) 
[14265.764662] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
[14265.764665] [ERROR]X did not start properly
[14270.001983] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[14270.001993] [ERROR][XORG] (EE) [drm] KMS not enabled
[14270.001995] [ERROR][XORG] (EE) No devices detected.
[14270.001996] [ERROR][XORG] (EE) 
[14270.001997] [ERROR][XORG] (EE) no screens found(EE) 
[14270.001999] [ERROR][XORG] (EE) 
[14270.002000] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[14270.002002] [ERROR][XORG] (EE) 
[14270.002003] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
[14270.002004] [ERROR]X did not start properly

@dbkblk
Copy link

dbkblk commented Nov 28, 2014

@theocrite I've reported the bug days ago into libdrm-intel1, but it seems linked to bumblebee:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768045

Unfortunately, i don't know how to link bug to another package in debian bug report system.

@KMHouk
Copy link

KMHouk commented Dec 17, 2014

@jkwong888's solution worked for me

NVIDIA GeForce GT 650M

@dbkblk
Copy link

dbkblk commented Dec 17, 2014

@KMHouk jkwong solution does not work on Debian Jessie. It still fail to set the drm interface 1.4. It work with libdrm 2.4.56 but not with libdrm 2.4.58

@shantanu-csedu
Copy link

If you install intel driver using linux-intel-graphics-installer then new
drm is the problem.

Fix:

  1. Remove intel driver repository from sources.list (deb
    https://download.01.org something like this)
  2. sudo apt-get update && sudo apt-get purge i915-3.15-3.13-dkms (version
    number may vary)
  3. sudo apt-get install --reinstall xserver-xorg-video-intel
    libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
  4. sudo dpkg-reconfigure xserver-xorg
  5. remove ppa:xorg-edgers/ppa
  6. sudo apt-get update && sudo apt-get purge bumblebee bumblebee-nvidia
    nvidia-340 (nvidia driver version may vary)
  7. Now follow ubuntu help page to install bumbleebee again.
  8. add ppa:xorg-edgers/ppa for latest nvidia driver.

Ref:
http://askubuntu.com/questions/507095/nvidia-bumblebee-failed-to-load-after-install-latest-intel-driver/507275#507275
https://wiki.ubuntu.com/Bumblebee#Installation

On Thu, Dec 18, 2014 at 3:58 AM, dbkblk notifications@github.com wrote:

@KMHouk https://github.com/KMHouk jkwong solution does not work on
Debian Jessie. It still fail to set the drm interface 1.4.


Reply to this email directly or view it on GitHub
#580 (comment)
.

@dbkblk
Copy link

dbkblk commented Dec 26, 2014

Some news: On Debian Jessie, the bug has been fixed by the latest Nvidia driver (changelog here: http://metadata.ftp-master.debian.org/changelogs//non-free/n/nvidia-graphics-drivers/nvidia-graphics-drivers_340.65-2_changelog)
" - Fixed a regression that caused displays to be detected incorrectly on
some notebook systems. (Closes: #770798, #765726)"

This has nothing to do with bumblebee. It is just an incompatibility between the intel and nvidia drivers.

@merkur04
Copy link

No, for me it still doesn't work. I use nvidia-driver-bin version 340.65-2. But the problem persists. I use bumblebee version 3.2.1-7 and my nvidia-card is a GeForce 840M on a HP Pavilion 15-p020ng laptop with Debian Jessie.

@machta
Copy link

machta commented Dec 29, 2014

Same here. Geforce GT 540M and the latest Debian 8 Jessie.

@shantanu-csedu
Copy link

Step 1 and 5 are very important, you must correctly remove the repository.
Reboot the system after step 3. Also careful about nvidia and 915-3.15-x.x.dkms
version number. You must purge(completely remove) bumblebee before start
this process.

On Mon, Dec 29, 2014 at 6:53 AM, Martin Bárta notifications@github.com
wrote:

Same here. Geforce GT 540M and the latest Debian 8 Jessie.


Reply to this email directly or view it on GitHub
#580 (comment)
.

@dbkblk
Copy link

dbkblk commented Dec 29, 2014

@shantanucse18 they use Debian Jessie, i don't think they've used this ubuntu repository.
@machta @merkur04 Did you unmarked the update of libdrm ? You should have all the latest (and exclusively) debian packages for this to work. I have a 540M so it should work at least for this one.

@merkur04
Copy link

Hello,

I solved the problem, but it is a bit unclear to me why it now works:

I use the nvidia-driver and added the following lines into the /etc/bumblebee/xorg.conf.nvidia, as was still mentioned above and seemed to work on some Debian-Jessie machines:

Section "Screen"
Identifier "Default Screen"
Device "DiscreteNvidia"
EndSection

But at first this doesn't help. I got the solution, by simply commenting IN the BUS ID parameter. I UNcommented it first and put the ID of my nvidia card there. After deleting (commenting) it a "vblank_mode=0 optirun -b primus glxgears -info" gives me 945fps instead of the 60fps. A "cat /proc/acpi/bbswitch" shows me the card is "ON" and the "Permission denied" message didn't appear again.

Maybe by using this parameter on my machine creates a confusion of the correct card numbers..?? Don't know why it now works.

@dbkblk
Copy link

dbkblk commented Dec 29, 2014

Maybe that was just the settings to workaround the problem that effectively caused new problems now the fix is out.
I've tried to remove the "Section "Screen"" fix and it works for me.

@merkur04
Copy link

I always used exclusively Debian Packages. But I am not sure which version of libdrm I used when I tried to launch bumblebee the first time when it produced the "Permission Denied" Error. I didn't find any hint about libdrm** packages Update in my apt-history log since the end of Nov.

But I'm quite sure, that I tried deleting the "BusID:xtx" line once and it didn' help then. Now, obviously, with the latest nvidia-driver it works. But as soon as I set this parameter again, the error message returned...

@ArchangeGabriel
Copy link
Member

Are there people still facing this issue here with the added section? Can someone for which adding the section solves the issue post Xorg.8.log with and without the section?

Thanks

@mingjunyang
Copy link

openSUSE13.2 kernel 3.16.7-13-desktop gnome 3.14.0

 sudo lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller])
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 860M] [10de:1392] (rev a2)
optirun -vv --debug bush
[ 1323.850875] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1323.851138] [DEBUG]optirun version 3.2.1 starting...
[ 1323.851151] [DEBUG]Active configuration:
[ 1323.851156] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1323.851161] [DEBUG] X display: :8
[ 1323.851166] [DEBUG] LD_LIBRARY_PATH: 
[ 1323.851170] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1323.851175] [DEBUG] Accel/display bridge: auto
[ 1323.851180] [DEBUG] VGL Compression: proxy
[ 1323.851184] [DEBUG] VGLrun extra options: 
[ 1323.851189] [DEBUG] Primus LD Path: /usr/lib64/primus:/usr/lib/primus
[ 1323.851211] [DEBUG]Using auto-detected bridge virtualgl
[ 1323.856806] [INFO]Response: No - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[ 1323.856832] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[ 1323.856837] [DEBUG]Socket closed.
[ 1323.856847] [ERROR]Aborting because fallback start is disabled.
[ 1323.856854] [DEBUG]Killing all remaining processes.

I add the code to /etc/bumblebee/xorg.conf.nvidia

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

but it didnot work.....

@Nargren
Copy link

Nargren commented Apr 18, 2015

I am also getting this error on OpenSUSE 13.2, kernel 3.16.7-7-desktop, KDE environment.

lspci
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)

optirun -vv --debug bush
[ 872.676248] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 872.676537] [DEBUG]optirun version 3.2.1 starting...
[ 872.676546] [DEBUG]Active configuration:
[ 872.676550] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 872.676554] [DEBUG] X display: :8
[ 872.676558] [DEBUG] LD_LIBRARY_PATH:
[ 872.676561] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 872.676564] [DEBUG] Accel/display bridge: auto
[ 872.676566] [DEBUG] VGL Compression: proxy
[ 872.676568] [DEBUG] VGLrun extra options:
[ 872.676570] [DEBUG] Primus LD Path: /usr/lib64/primus:/usr/lib/primus
[ 872.676594] [DEBUG]Using auto-detected bridge virtualgl
[ 872.684014] [INFO]Response: No - error: XORG /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 872.684030] [ERROR]Cannot access secondary GPU - error: XORG /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 872.684034] [DEBUG]Socket closed.
[ 872.684046] [ERROR]Aborting because fallback start is disabled.
[ 872.684050] [DEBUG]Killing all remaining processes.

@ArchangeGabriel
Copy link
Member

@Nargren @mingjunyang Can you open a new (one for both of you) issue and post Xorg.8.log and dmesg output there (or in a gist)? Thanks.

@mingjunyang
Copy link

@ArchangeGabriel I format my os and reinstall opensuse 13.2,update to now . and I install the bumblebee,it's works.
DId you want to see this bumblebee-bugreport-20150416_175034.tar.gz.this file created by the bumblebee-bugreport ,when it not work.
我的英文好low(my english so low ),我用中文重新描述一遍(我认为这样对与我们交流可能有帮助)。我格式化掉 / 分区以后,重装了opensuse13.2,并更新到最新,然后重新安装了bumblebee,它就正常工作了。
在出现那个问题的时候我用bumblebee-bugreport创建了一份报告``bumblebee-bugreport-20150416_175034.tar.gz`。

@ArchangeGabriel
Copy link
Member

No, if reinstall fixed it, that means it was a config issue, so bugreport
isn’t needed.
Le 25 avr. 2015 12:53, "MinjgunYang" notifications@github.com a écrit :

@ArchangeGabriel https://github.com/ArchangeGabriel I format my os and
reinstall opensuse 13.2,update to now . and I install the bumblebee,it's
works.
DId you want to see this bumblebee-bugreport-20150416_175034.tar.gz.this
file created by the bumblebee-bugreport ,when it not work.
我的英文好low(my english so low ),我用中文重新描述一遍(我认为这样对与我们交流可能有帮助)。我格式化掉 /
分区以后,重装了opensuse13.2,并更新到最新,然后重新安装了bumblebee,它就正常工作了。
在出现那个问题的时候我用bumblebee-bugreport创建了一份报告`
bumblebee-bugreport-20150416_175034.tar.gz。


Reply to this email directly or view it on GitHub
#580 (comment)
.

@jdutriaux
Copy link

Hi, I have the same issue under Ubuntu 15.04.

$ dkms status                                   
bbswitch, 0.7, 3.19.0-15-generic, x86_64: installed
nvidia-346, 346.59, 3.19.0-15-generic, x86_64: installed
vboxhost, 4.3.16, 3.13.0-37-generic, x86_64: installed
vboxhost, 4.3.16, 3.16.0-22-generic, x86_64: installed
vboxhost, 4.3.16, 3.16.0-34-generic, x86_64: installed
vboxhost, 4.3.16, 3.19.0-15-generic, x86_64: installed
$ optirun -vv glxgears -info                    
[ 1273.947005] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1273.947404] [INFO]Configured driver: nvidia
[ 1273.947607] [DEBUG]optirun version 3.2.1 starting...
[ 1273.947650] [DEBUG]Active configuration:
[ 1273.947669] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1273.947688] [DEBUG] X display: :8
[ 1273.947706] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-346:/usr/lib32/nvidia-346
[ 1273.947724] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1273.947743] [DEBUG] Accel/display bridge: auto
[ 1273.947762] [DEBUG] VGL Compression: proxy
[ 1273.947781] [DEBUG] VGLrun extra options: 
[ 1273.947799] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 1273.947870] [DEBUG]Using auto-detected bridge primus
[ 1276.196889] [INFO]Response: No - error: [XORG] (EE) No devices detected.

[ 1276.196916] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

[ 1276.196923] [DEBUG]Socket closed.
[ 1276.196952] [ERROR]Aborting because fallback start is disabled.
[ 1276.196963] [DEBUG]Killing all remaining processes.
$ lspci
VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
$ uname -srv
Linux 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015

I also have this in my logs :

[ 1654.149545] [ERROR][XORG] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[ 1654.149558] [ERROR][XORG] (EE) intel(0): Failed to claim DRM device.
[ 1654.149566] [ERROR][XORG] (EE) Screen(s) found, but none have a usable configuration.
[ 1654.149574] [ERROR][XORG] (EE)
[ 1654.149581] [ERROR][XORG] (EE) no screens found(EE)
[ 1654.149589] [ERROR][XORG] (EE)
[ 1654.149601] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[ 1654.149609] [ERROR][XORG] (EE)
[ 1654.149619] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
[ 1654.154051] [ERROR]X did not start properly

I tried to add the Section given by @merkur04 but it doesn't change anything and I can't reinstall my system as for now 😒.

Tell me if you want more informations. Thanks for your help.

@michalzubkowicz
Copy link

For a few days I have this problem on Ubuntu 14.04, tried downgrading backports, changing driver from 331 to 331-updates.

@e00dan
Copy link

e00dan commented Sep 8, 2015

I'm also encountering this error but I don't have bumblebee...

@dawidm
Copy link

dawidm commented Oct 6, 2015

I have this problem on Debian Jessie (nvidia driver version 340.65-2, bumblebee 3.2.1-7).
Xorg.8.log:

[ 20872.500] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[ 20872.500] X Protocol Version 11, Revision 0
[ 20872.500] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
[ 20872.500] Current Operating System: Linux dawid-laptop 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) x86_64
[ 20872.500] Kernel command line: BOOT_IMAGE=/vmlinuz-3.16.0-4-amd64 root=UUID=a2f3b2a9-b796-46ee-966c-b6cf53a54a83 ro quiet splash
[ 20872.500] Build Date: 11 February 2015  12:32:02AM
[ 20872.500] xorg-server 2:1.16.4-1 (http://www.debian.org/support) 
[ 20872.500] Current version of pixman: 0.32.6
[ 20872.500]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[ 20872.500] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 20872.500] (==) Log file: "/var/log/Xorg.8.log", Time: Tue Oct  6 22:47:56 2015
[ 20872.500] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[ 20872.500] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d"
[ 20872.500] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 20872.501] (==) ServerLayout "Layout0"
[ 20872.501] (**) |-->Screen "Default Screen" (0)
[ 20872.501] (**) |   |-->Monitor "<default monitor>"
[ 20872.501] (**) |   |-->Device "DiscreteNvidia"
[ 20872.501] (==) No monitor specified for screen "Default Screen".
    Using a default monitor configuration.
[ 20872.501] (**) Option "AutoAddDevices" "false"
[ 20872.501] (**) Option "AutoAddGPU" "false"
[ 20872.501] (**) Not automatically adding devices
[ 20872.501] (==) Automatically enabling devices
[ 20872.501] (**) Not automatically adding GPU devices
[ 20872.501] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 20872.501]    Entry deleted from font path.
[ 20872.501] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/Type1,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
    built-ins
[ 20872.501] (++) ModulePath set to "/usr/lib/nvidia,/usr/lib/xorg/modules"
[ 20872.501] (==) |-->Input Device "<default pointer>"
[ 20872.501] (==) |-->Input Device "<default keyboard>"
[ 20872.501] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
[ 20872.501] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
[ 20872.501] (II) Loader magic: 0x7f6fa0ce3d80
[ 20872.501] (II) Module ABI versions:
[ 20872.501]    X.Org ANSI C Emulation: 0.4
[ 20872.501]    X.Org Video Driver: 18.0
[ 20872.501]    X.Org XInput driver : 21.0
[ 20872.501]    X.Org Server Extension : 8.0
[ 20872.501] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 20872.501] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 20872.501] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 20872.502] (--) PCI:*(0:1:0:0) 10de:0df4:144d:c0a5 rev 161, Mem @ 0xf4000000/16777216, 0xd0000000/268435456, 0xe0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288
[ 20872.502] (II) LoadModule: "glx"
[ 20872.502] (II) Loading /usr/lib/nvidia/libglx.so
[ 20872.509] (II) Module glx: vendor="NVIDIA Corporation"
[ 20872.509]    compiled for 4.0.2, module version = 1.0.0
[ 20872.509]    Module class: X.Org Server Extension
[ 20872.509] (II) NVIDIA GLX Module  340.65  Tue Dec  2 09:10:06 PST 2014
[ 20872.509] (II) LoadModule: "nvidia"
[ 20872.509] (II) Loading /usr/lib/nvidia/nvidia_drv.so
[ 20872.510] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 20872.510]    compiled for 4.0.2, module version = 1.0.0
[ 20872.510]    Module class: X.Org Video Driver
[ 20872.510] (II) LoadModule: "mouse"
[ 20872.510] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[ 20872.510] (II) Module mouse: vendor="X.Org Foundation"
[ 20872.510]    compiled for 1.16.1, module version = 1.9.1
[ 20872.510]    Module class: X.Org XInput Driver
[ 20872.510]    ABI class: X.Org XInput driver, version 21.0
[ 20872.510] (II) LoadModule: "kbd"
[ 20872.510] (WW) Warning, couldn't open module kbd
[ 20872.510] (II) UnloadModule: "kbd"
[ 20872.510] (II) Unloading kbd
[ 20872.510] (EE) Failed to load module "kbd" (module does not exist, 0)
[ 20872.510] (II) NVIDIA dlloader X Driver  340.65  Tue Dec  2 08:47:36 PST 2014
[ 20872.510] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 20872.510] (--) using VT number 7

[ 20872.510] (II) Loading sub module "fb"
[ 20872.510] (II) LoadModule: "fb"
[ 20872.511] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 20872.511] (II) Module fb: vendor="X.Org Foundation"
[ 20872.511]    compiled for 1.16.4, module version = 1.0.0
[ 20872.511]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 20872.511] (WW) Unresolved symbol: fbGetGCPrivateKey
[ 20872.511] (II) Loading sub module "wfb"
[ 20872.511] (II) LoadModule: "wfb"
[ 20872.511] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 20872.511] (II) Module wfb: vendor="X.Org Foundation"
[ 20872.511]    compiled for 1.16.4, module version = 1.0.0
[ 20872.511]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 20872.511] (II) Loading sub module "ramdac"
[ 20872.511] (II) LoadModule: "ramdac"
[ 20872.511] (II) Module "ramdac" already built-in
[ 20872.511] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen" for depth/fbbpp 24/32
[ 20872.511] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 20872.511] (==) NVIDIA(0): RGB weight 888
[ 20872.511] (==) NVIDIA(0): Default visual is TrueColor
[ 20872.511] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 20872.511] (**) NVIDIA(0): Option "NoLogo" "true"
[ 20872.511] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[ 20872.511] (**) NVIDIA(0): Option "UseEDID" "false"
[ 20872.511] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[ 20872.511] (**) NVIDIA(0): Enabling 2D acceleration
[ 20872.511] (**) NVIDIA(0): Ignoring EDIDs
[ 20872.511] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[ 20872.511] (**) NVIDIA(0):     mode
[ 20875.999] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[ 20875.999] (II) NVIDIA(0): NVIDIA GPU GeForce GT 540M (GF108) at PCI:1:0:0 (GPU-0)
[ 20875.999] (--) NVIDIA(0): Memory: 1048576 kBytes
[ 20875.999] (--) NVIDIA(0): VideoBIOS: 70.08.58.00.03
[ 20875.999] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 20875.999] (--) NVIDIA(0): Valid display device(s) on GeForce GT 540M at PCI:1:0:0
[ 20875.999] (--) NVIDIA(0):     none
[ 20875.999] (II) NVIDIA(0): Validated MetaModes:
[ 20875.999] (II) NVIDIA(0):     "NULL"
[ 20875.999] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[ 20875.999] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[ 20875.999] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[ 20875.999] (--) Depth 24 pixmap format is 32 bpp
[ 20875.999] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[ 20875.999] (II) NVIDIA:     access.
[ 20876.002] (II) NVIDIA(0): Setting mode "NULL"
[ 20876.014] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 20876.014] (==) NVIDIA(0): Backing store enabled
[ 20876.014] (==) NVIDIA(0): Silken mouse enabled
[ 20876.015] (==) NVIDIA(0): DPMS enabled
[ 20876.015] (II) Loading sub module "dri2"
[ 20876.015] (II) LoadModule: "dri2"
[ 20876.015] (II) Module "dri2" already built-in
[ 20876.015] (II) NVIDIA(0): [DRI2] Setup complete
[ 20876.015] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[ 20876.015] (--) RandR disabled
[ 20876.018] (II) SELinux: Disabled on system
[ 20876.019] (II) Initializing extension GLX
[ 20876.019] (II) Indirect GLX disabled.(II) Using input driver 'mouse' for '<default pointer>'
[ 20876.050] (**) Option "CorePointer" "on"
[ 20876.050] (**) <default pointer>: always reports core events
[ 20876.050] (WW) <default pointer>: No Device specified, looking for one...
[ 20876.136] (II) <default pointer>: Setting Device option to "/dev/input/mice"
[ 20876.136] (--) <default pointer>: Device: "/dev/input/mice"
[ 20876.136] (==) <default pointer>: Protocol: "Auto"
[ 20876.136] (**) <default pointer>: always reports core events
[ 20876.136] (**) Option "Device" "/dev/input/mice"
[ 20876.212] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
[ 20876.212] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
[ 20876.212] (**) <default pointer>: Buttons: 9
[ 20876.212] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
[ 20876.212] (**) <default pointer>: (accel) keeping acceleration scheme 1
[ 20876.212] (**) <default pointer>: (accel) acceleration profile 0
[ 20876.212] (**) <default pointer>: (accel) acceleration factor: 2.000
[ 20876.212] (**) <default pointer>: (accel) acceleration threshold: 4
[ 20876.212] (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
[ 20876.506] (II) <default pointer>: ps2EnableDataReporting: succeeded
[ 20876.506] (II) LoadModule: "kbd"
[ 20876.506] (WW) Warning, couldn't open module kbd
[ 20876.506] (II) UnloadModule: "kbd"
[ 20876.506] (II) Unloading kbd
[ 20876.506] (EE) Failed to load module "kbd" (module does not exist, 0)
[ 20876.506] (EE) No input driver matching `kbd'
[ 20876.507] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[ 20876.507] (II) AutoAddDevices is off - not adding device.
[ 20876.507] (II) config/udev: Adding input device Video Bus (/dev/input/event8)
[ 20876.507] (II) AutoAddDevices is off - not adding device.
[ 20876.507] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[ 20876.507] (II) AutoAddDevices is off - not adding device.
[ 20876.507] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 20876.507] (II) AutoAddDevices is off - not adding device.
[ 20876.507] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[ 20876.507] (II) AutoAddDevices is off - not adding device.
[ 20876.508] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
[ 20876.508] (II) AutoAddDevices is off - not adding device.
[ 20876.508] (II) config/udev: Adding drm device (/dev/dri/card0)
[ 20876.508] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 20876.508] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 20876.508] (II) config/udev: Adding input device WebCam SCB-1100N (/dev/input/event14)
[ 20876.508] (II) AutoAddDevices is off - not adding device.
[ 20876.508] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event11)
[ 20876.508] (II) AutoAddDevices is off - not adding device.
[ 20876.508] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event12)
[ 20876.508] (II) AutoAddDevices is off - not adding device.
[ 20876.508] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event13)
[ 20876.508] (II) AutoAddDevices is off - not adding device.
[ 20876.508] (II) config/udev: Adding input device 2.4G Wireless Keyboard&Mouse (/dev/input/event5)
[ 20876.509] (II) AutoAddDevices is off - not adding device.
[ 20876.509] (II) config/udev: Adding input device 2.4G Wireless Keyboard&Mouse (/dev/input/event6)
[ 20876.509] (II) AutoAddDevices is off - not adding device.
[ 20876.509] (II) config/udev: Adding input device 2.4G Wireless Keyboard&Mouse (/dev/input/mouse0)
[ 20876.509] (II) AutoAddDevices is off - not adding device.
[ 20876.509] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[ 20876.509] (II) AutoAddDevices is off - not adding device.
[ 20876.509] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event10)
[ 20876.509] (II) AutoAddDevices is off - not adding device.
[ 20876.509] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[ 20876.509] (II) AutoAddDevices is off - not adding device.
[ 20876.509] (II) config/udev: Adding input device PC Speaker (/dev/input/event9)
[ 20876.509] (II) AutoAddDevices is off - not adding device.
[ 20893.452] (II) UnloadModule: "mouse"
[ 20893.471] (II) NVIDIA(GPU-0): Deleting GPU-0
[ 20893.472] (EE) Server terminated successfully (0). Closing log file.

Fragment of dmesg:

[19253.614825] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 1
[19253.614830] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  340.65  Tue Dec  2 09:50:34 PST 2014
[19253.629500] vgaarb: this pci device is not a vga device
[19253.629967] nvidia 0000:01:00.0: irq 51 for MSI/MSI-X
[19253.632138] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19253.632191] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19253.632219] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19253.632245] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19253.632281] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19253.632307] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19253.632343] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19253.632368] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19257.509421] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19257.908744] vgaarb: this pci device is not a vga device
[19298.336278] [drm] Module unloaded
[19298.338047] bbswitch: disabling discrete graphics
[19298.338059] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140424/nsarguments-95)
[19298.350782] pci 0000:01:00.0: Refused to change power state, currently in D0

@bremme
Copy link

bremme commented Nov 15, 2015

I also had this problem on a fresh install of Debian Jessie. My dedicated GPU is a GeForce GT 650M. I tried pretty much all of the recommended fixes.

Appending to /etc/bumblebee/xorg.conf.nvidia:

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

Uncommenting and commenting BusID "PCI:01:00:0" in /etc/bumblebee/xorg.conf.nvidia.

Downgrading the following packages from 2.4.58 to 2.4.56:

libdrm2
libdrm-dev
libdrm-intel1
libdrm-nouveau2
libdrm-radeon1

But nothing worked, kept getting the ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied error.

Finally I tried altering /etc/default/grub by adding an additional command line switch (as described here: https://bbs.archlinux.org/viewtopic.php?id=169742):

GRUB_CMDLINE_LINUX_DEFAULT="quiet rcutree.rcu_idle_gp_delay=1" (don' t forget to update grub)

Finally:

vblank_mode=0 optirun -vv glxgears -info
13405 frames in 5.0 seconds = 2680.953 FPS

update: did a apt-get upgrade which upgraded the libdrm package's to 2.4.56 again, and optirun does still work.

@mamantoha
Copy link

Thanks @jkwong888. It's works for me on Ubuntu 15.10.

@ArchangeGabriel
Copy link
Member

On kernel version lower than 3.19 you indeed need the rcutree.rcu_idle_gp_delay=1 kernel parameter. No longer needed as of 3.19.

@aerique
Copy link

aerique commented Dec 29, 2015

Since this issue and #580 are some of the top Google hits (even the Arch Wiki links to #580 ) for the permission denied issues I'm going to write down my solution for Debian Jessie: downgrade to libdrm*_2.4.56 which can be gotten here http://snapshot.debian.org/archive/debian/20140810T163814Z/pool/main/libd/libdrm/

I downgraded all libdrm* packages I had installed which were, from memory: libdrm-intel1, libdrm-nouveau2, libdrm-radeon1 and libdrm2.

@ArchangeGabriel
Copy link
Member

@aerique What is this solving? You’re having optirun not working with newer version of libdrm or is it only this message that scares you and you want to make disappear?

@aerique
Copy link

aerique commented Dec 29, 2015

@ArchangeGabriel I'm sorry I should have mentioned that as well. optirun did indeed not work (for example with glxgears, glxspheres or Steam) and now it does :-)

@ArchangeGabriel
Copy link
Member

@aerique Well then please open a new bug report with log in both cases.

@pik
Copy link

pik commented Jan 30, 2016

Hello, I'm having this same problem when I've used acpi_call to disable my GPU and then turn it back on again.

@louisgv
Copy link

louisgv commented Dec 22, 2016

I solved this problem by setting my driver manually, thanks to this s.o answer's suggestion: http://askubuntu.com/questions/450467/ubuntu-14-04-nvidia-optimus-bumblebee-error

Since I'm using Nvidia proprietary driver, I'm using 367. But in your case, just search /usr/lib/nvidia-*** to find your version. Then in your '/etc/bumblebee/bumblebee.conf', set it up using that path/version:

Driver=nvidia

...

[driver-nvidia]
KernelDriver=nvidia-367
LibraryPath=/usr/lib/nvidia-367:/usr/lib32/nvidia-367
XorgModulePath=/usr/lib/nvidia-367/xorg,/usr/lib/xorg/modules

@Chronos2011
Copy link

Thanks to @bremme , I finally got rid of the issue as well. As with him, none of the other suggestions fixed my Debian Jessie running a Geforce GT 650M / "Intel Corporation 3rd Gen Core processor Graphics Controller", but applying GRUB_CMDLINE_LINUX_DEFAULT="quiet rcutree.rcu_idle_gp_delay=1" in /etc/default/grub.
Interestingly, after applying the fix, another issue (the GPU fan running wildly) was fixed as well.

I have

  • libdrm2:amd64 2.4.58-2
  • bumblebee 3.2.1-7
  • bumblebee-nvidia 3.2.1-7
  • nvidia-driver 340.101-1

@pet89
Copy link

pet89 commented Feb 19, 2017

little angel, you're closing the issue but it is the first google result for "failed set drm cannot access secondary GPU" ... you're very embarassed by other conditions than
Ubuntu 14.04
NVIDIA Corporation GF108M [GeForce GT 630M](rev a1)
Nvidia 331 driver
ah i understand little angel computers are like biological systems, we have to calm down the patients :)

@drgr33n
Copy link

drgr33n commented Aug 8, 2017

Try this.
RUN sudo update-glx --config glx

and choose /usr/lib/nvidia/bumblebee in auto mode

@RobKehl
Copy link

RobKehl commented Jan 10, 2018

@drgr33n That was it on my Debian 9.3 (Stretch) with a rather old Nvidia GT 630M (Optimus) driven by the 475 stable Debian nvidia non-free packages - thanks a lot!

@someonewithpc
Copy link

Still having this error on Arch Linux with a 960M. Tried adding to the xorg config as mentioned above, but still have the same error in the log. However, optirun glxinfo | fgrep -i opengl does show the nvidia info. (My problem is video acceleration isn't working, thought this might be related)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests