Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.29k stars 142 forks source link

X did not start properly #963

Open gandriyko opened 6 years ago

gandriyko commented 6 years ago

After update to latest kernel and nvidia driver, Bumblebee not work.

ArchLinux Linux 4.16.8-1-ARCH bumblebee 3.2.1-17 nvidia 396.24-2

lspci

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (rev a1)
optirun -vv glxspheres
[  878.841316] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  878.841593] [INFO]Configured driver: nvidia
[  878.841863] [DEBUG]optirun version 3.2.1 starting...
[  878.841887] [DEBUG]Active configuration:
[  878.841903] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  878.841917] [DEBUG] X display: :8
[  878.841930] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
[  878.841966] [DEBUG] Socket path: /var/run/bumblebee.socket
[  878.841983] [DEBUG] Accel/display bridge: virtualgl
[  878.842003] [DEBUG] VGL Compression: proxy
[  878.842017] [DEBUG] VGLrun extra options: 
[  878.842026] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[  879.281499] [INFO]Response: No - error: X did not start properly

[  879.281522] [ERROR]Cannot access secondary GPU - error: X did not start properly

There are no errors in Xorg.8.log

dmesg

[   65.873220] nvidia: module license 'NVIDIA' taints kernel.
[   65.873222] Disabling lock debugging due to kernel taint
[   65.886497] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[   65.886819] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[   65.886974] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  396.24  Thu Apr 26 00:10:09 PDT 2018 (using threaded interrupts)
[   66.680159] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  396.24  Wed Apr 25 23:54:18 PDT 2018
[   66.681983] nvidia-modeset: Allocated GPU:0 (GPU-cb2652e8-4804-1353-7fbc-b13c8513c113) @ PCI:0000:01:00.0

bumblebee.conf

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d
[optirun]
Bridge=virtualgl
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false
[driver-nvidia]
KernelDriver=nvidia
PMMethod=bbswitch
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
XorgModulePath=/usr/lib/nvidia/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
[driver-nouveau]
KernelDriver=nouveau
PMMethod=bbswitch
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

xorg.conf.nvidia

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

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

    BusID "PCI:1:0:0"

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

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection
ihkN commented 6 years ago

Same problem with Arch Linux and nearly identical configuration my Xorg.8.log:

[    57.251] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    57.252] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    57.650] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    57.672] (WW) NVIDIA(0): Option "NoLogo" is not used

complete log: https://pastebin.com/csWiYT1w

reezer commented 6 years ago

I am still experiencing the same issues with slightly newer versions.

4.16.9-1-ARCH bumblebee 3.2.1-17 nvidia 396.24-3

philmmanjaro commented 6 years ago

Well, the issue is more that almost none of the drivers support xorg-server 1.20 yet ...

want20 commented 6 years ago

so how to solve?

want20 commented 6 years ago

I meet the same error.

ihkN commented 6 years ago

Guys i somehow managed to fix this. But i'm not sure how i did it. I simply ran through all wiki articles covered on the arch linux wiki. After the fourth try it started to work.

want20 commented 6 years ago

Can you tell me what was the fourth try you do to solve it?

want20 commented 6 years ago

@ihkN I need your help! Thank you!

want20 commented 6 years ago

I need use it to run my UE4 engine;

pietrondo commented 6 years ago

Same issue....

pietrondo commented 6 years ago

lspci | grep 3D

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)

optirun glxgears

[21772.124129] [ERROR]Cannot access secondary GPU - error: X did not start properly

[21772.124154] [ERROR]Aborting because fallback start is disabled.

/var/log/Xorg.8.log

X.Org X Server 1.20.0 X Protocol Version 11, Revision 0 [ 21771.834] Build Operating System: Linux Arch Linux [ 21771.834] Current Operating System: Linux indiano2 4.16.10-1-zen #1 ZEN SMP PREEMPT Mon May 21 07:57:36 UTC 2018 x86_64 [ 21771.834] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=008a46dc-1b05-4505-b9e5-bfcc97799728 rw quiet splash acpi_backlight=vendor pcie_port_pm=off [ 21771.834] Build Date: 16 May 2018 05:24:07PM [ 21771.834]
[ 21771.834] Current version of pixman: 0.34.0 [ 21771.834] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 21771.834] Markers: (--) probed, () from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 21771.834] (==) Log file: "/var/log/Xorg.8.log", Time: Wed May 23 16:34:56 2018 [ 21771.834] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia" [ 21771.834] (++) Using config directory: "/etc/bumblebee/xorg.conf.d" [ 21771.834] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 21771.834] (==) ServerLayout "Layout0" [ 21771.834] () |-->Screen "Default Screen" (0) [ 21771.834] () | |-->Monitor "" [ 21771.834] () | |-->Device "nvidiagpu1" [ 21771.834] (==) No monitor specified for screen "Default Screen". Using a default monitor configuration. [ 21771.834] () Option "AutoAddDevices" "false" [ 21771.834] () Option "AutoAddGPU" "false" [ 21771.834] () Not automatically adding devices [ 21771.834] (==) Automatically enabling devices [ 21771.834] () Not automatically adding GPU devices [ 21771.834] (==) Automatically binding GPU devices [ 21771.834] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 21771.834] (==) FontPath set to: /usr/share/fonts/misc, /usr/share/fonts/TTF, /usr/share/fonts/OTF, /usr/share/fonts/Type1, /usr/share/fonts/100dpi, /usr/share/fonts/75dpi [ 21771.834] (++) ModulePath set to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules" [ 21771.834] (==) |-->Input Device "" [ 21771.834] (==) |-->Input Device "" [ 21771.834] (==) The core pointer device wasn't specified explicitly in the layout. Using the default mouse configuration. [ 21771.834] (==) The core keyboard device wasn't specified explicitly in the layout. Using the default keyboard configuration. [ 21771.834] (II) Module ABI versions: [ 21771.834] X.Org ANSI C Emulation: 0.4 [ 21771.834] X.Org Video Driver: 24.0 [ 21771.834] X.Org XInput driver : 24.1 [ 21771.834] X.Org Server Extension : 10.0 [ 21771.835] (--) using VT number 1

[ 21771.835] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration [ 21771.835] (II) xfree86: Adding drm device (/dev/dri/card0) [ 21771.835] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied [ 21771.837] (--) PCI:*(1@0:0:0) 10de:139a:1043:177d rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288 [ 21771.837] (II) Open ACPI successful (/var/run/acpid.socket) [ 21771.837] (II) LoadModule: "glx" [ 21771.837] (II) Loading /usr/lib/nvidia/xorg/libglx.so [ 21771.841] (II) Module glx: vendor="NVIDIA Corporation" [ 21771.841] compiled for 4.0.2, module version = 1.0.0 [ 21771.841] Module class: X.Org Server Extension [ 21771.841] (II) NVIDIA GLX Module 396.24 Wed Apr 25 23:17:01 PDT 2018 [ 21771.841] (II) LoadModule: "nvidia" [ 21771.841] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so [ 21771.841] (II) Module nvidia: vendor="NVIDIA Corporation" [ 21771.841] compiled for 4.0.2, module version = 1.0.0 [ 21771.841] Module class: X.Org Video Driver [ 21771.841] (II) LoadModule: "mouse" [ 21771.841] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so [ 21771.841] (II) Module mouse: vendor="X.Org Foundation" [ 21771.841] compiled for 1.19.0, module version = 1.9.2 [ 21771.841] Module class: X.Org XInput Driver [ 21771.841] ABI class: X.Org XInput driver, version 24.1 [ 21771.841] (II) LoadModule: "kbd" [ 21771.841] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so [ 21771.842] (II) Module kbd: vendor="X.Org Foundation" [ 21771.842] compiled for 1.19.0, module version = 1.9.0 [ 21771.842] Module class: X.Org XInput Driver [ 21771.842] ABI class: X.Org XInput driver, version 24.1 [ 21771.842] (II) NVIDIA dlloader X Driver 396.24 Wed Apr 25 22:53:34 PDT 2018 [ 21771.842] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 21771.842] (II) Loading sub module "fb" [ 21771.842] (II) LoadModule: "fb" [ 21771.842] (II) Loading /usr/lib/xorg/modules/libfb.so [ 21771.842] (II) Module fb: vendor="X.Org Foundation" [ 21771.842] compiled for 1.20.0, module version = 1.0.0 [ 21771.842] ABI class: X.Org ANSI C Emulation, version 0.4 [ 21771.842] (II) Loading sub module "wfb" [ 21771.842] (II) LoadModule: "wfb" [ 21771.842] (II) Loading /usr/lib/xorg/modules/libwfb.so [ 21771.842] (II) Module wfb: vendor="X.Org Foundation" [ 21771.842] compiled for 1.20.0, module version = 1.0.0 [ 21771.842] ABI class: X.Org ANSI C Emulation, version 0.4 [ 21771.842] (II) Loading sub module "ramdac" [ 21771.842] (II) LoadModule: "ramdac" [ 21771.842] (II) Module "ramdac" already built-in [ 21771.842] (II) NVIDIA(0): Creating default Display subsection in Screen section "Default Screen" for depth/fbbpp 24/32 [ 21771.842] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32 [ 21771.842] (==) NVIDIA(0): RGB weight 888 [ 21771.842] (==) NVIDIA(0): Default visual is TrueColor [ 21771.842] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) [ 21771.842] () NVIDIA(0): Option "ProbeAllGpus" "false" [ 21771.842] () NVIDIA(0): Option "UseEDID" "false" [ 21771.842] () NVIDIA(0): Option "UseDisplayDevice" "none" [ 21771.842] () NVIDIA(0): Enabling 2D acceleration [ 21771.842] () NVIDIA(0): Ignoring EDIDs [ 21771.842] () NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout [ 21771.842] () NVIDIA(0): mode [ 21772.054] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 950M (GM107-A) at PCI:1:0:0 (GPU-0) [ 21772.054] (--) NVIDIA(0): Memory: 4194304 kBytes [ 21772.054] (--) NVIDIA(0): VideoBIOS: 82.07.79.00.0b [ 21772.054] (II) NVIDIA(0): Detected PCI Express Link width: 16X [ 21772.054] (II) NVIDIA(0): Validated MetaModes: [ 21772.054] (II) NVIDIA(0): "NULL" [ 21772.054] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480 [ 21772.054] (WW) NVIDIA(0): Unable to get display device for DPI computation. [ 21772.054] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default [ 21772.055] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory [ 21772.055] (II) NVIDIA: access. [ 21772.076] (II) NVIDIA(0): Setting mode "NULL" [ 21772.080] (==) NVIDIA(0): Disabling shared memory pixmaps [ 21772.080] (==) NVIDIA(0): Backing store enabled [ 21772.080] (==) NVIDIA(0): Silken mouse disabled [ 21772.080] (==) NVIDIA(0): DPMS enabled [ 21772.081] (WW) NVIDIA(0): Option "NoLogo" is not used [ 21772.081] (II) Loading sub module "dri2" [ 21772.081] (II) LoadModule: "dri2" [ 21772.081] (II) Module "dri2" already built-in [ 21772.081] (II) NVIDIA(0): [DRI2] Setup complete [ 21772.081] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia [ 21772.081] (II) Initializing extension Generic Event Extension [ 21772.081] (II) Initializing extension SHAPE [ 21772.081] (II) Initializing extension MIT-SHM [ 21772.081] (II) Initializing extension XInputExtension [ 21772.081] (II) Initializing extension XTEST [ 21772.081] (II) Initializing extension BIG-REQUESTS [ 21772.081] (II) Initializing extension SYNC [ 21772.081] (II) Initializing extension XKEYBOARD [ 21772.081] (II) Initializing extension XC-MISC [ 21772.081] (II) Initializing extension SECURITY [ 21772.081] (II) Initializing extension XFIXES [ 21772.081] (II) Initializing extension RENDER [ 21772.081] (II) Initializing extension RANDR [ 21772.082] (II) Initializing extension COMPOSITE [ 21772.082] (II) Initializing extension DAMAGE [ 21772.082] (II) Initializing extension MIT-SCREEN-SAVER [ 21772.082] (II) Initializing extension DOUBLE-BUFFER [ 21772.082] (II) Initializing extension RECORD [ 21772.082] (II) Initializing extension DPMS [ 21772.082] (II) Initializing extension Present [ 21772.082] (II) Initializing extension DRI3 [ 21772.082] (II) Initializing extension X-Resource [ 21772.082] (II) Initializing extension XVideo [ 21772.082] (II) Initializing extension XVideo-MotionCompensation [ 21772.082] (II) Initializing extension XFree86-VidModeExtension [ 21772.082] (II) Initializing extension XFree86-DGA [ 21772.082] (II) Initializing extension XFree86-DRI [ 21772.082] (II) Initializing extension DRI2 [ 21772.082] (II) Initializing extension GLX [ 21772.082] (II) Initializing extension GLX [ 21772.082] (II) Indirect GLX disabled. [ 21772.083] (II) Initializing extension NV-GLX [ 21772.083] (II) Initializing extension NV-CONTROL [ 21772.107] (II) Using input driver 'mouse' for '' [ 21772.107] () Option "CorePointer" "on" [ 21772.107] (**) : always reports core events

jmiskinis commented 6 years ago

Try removing the xf86-input-mouse module. That fixed things for me. Credit goes to V1del from Arch forums.

yohlane commented 6 years ago

Try removing the xf86-input-mouse module. That fixed things for me. Credit goes to V1del from Arch forums.

I can confirm, I just did it and it works ! Thanks, you're a savior !

gandriyko commented 6 years ago

Thanks a lot! It works!

pietrondo commented 6 years ago

thanks! It works!!

Pietro Capriata

http://www.pietrocapriata.me

CONFIDENTIALITY DISCLAIMER Le informazioni contenute in questo messaggio di posta elettronica e negli allegati sono riservate e confidenziali e ne sono vietate la lettura, l'uso, la copia, la comunicazione e la diffusione in qualunque modo eseguite. Qualora lei non fosse la persona destinataria del messaggio, la invitiamo ad eliminarlo, dando gentilmente comunicazione al mittente tramite e-mail di ritorno.

The information contained in this email message and any files transmitted with it are confidential and privileged and any reading, processing, distribution or copy of this material is strictly prohibited, in any form. If you are not the intended recipient of this message, please immediately delete it, giving the relevant communication to the sender by reply e-mail.

On Wed, May 23, 2018 at 10:36 PM, Andrew G notifications@github.com wrote:

Thanks a lot! It works!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Bumblebee-Project/Bumblebee/issues/963#issuecomment-391487866, or mute the thread https://github.com/notifications/unsubscribe-auth/AFzIlvHEdq-EYaSOW0SXTXkz8ugPJRg9ks5t1chdgaJpZM4UDfbM .

kcrmson commented 6 years ago

Just wanted to chime in and also mention that removing xf86-video-mouse-1.9.2-3 resolved the issue for me as well. Arch w/4.16.12 zen kernel, nvidia-dkms, bumblebee, nVidia M2000m + Intel P530 graphics.

On any xorg 1.20 (1.20-2, 1.20-5) I would get xorg to launch but bumblebee wouldn't work due to the DPI message errors as well as permission denied on /dev/dri/card0 like an earlier commenter. Bumbebee's status would say X did not start properly as well. Also similar logs in /var/log/Xorg.8.log as another commenter.

Re-upgraded xorg to 1.20-5, removed xf86-input-mouse, relaunched X and it's working like a charm (I made a block for i3blocks to show dGPU on/off status as well as the temperature, before removing xf86-input-mouse it would keep the card on but couldn't read the temp).

Jolly good and thanks!

tobiasBora commented 6 years ago

On debian I tried to remove instead the following package:

sudo apt remove xserver-xorg-input-mouse

and the result was much better, thanks. But now I have the error:

$ glxgears
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 140 requests (136 known processed) with 0 events remaining.

and if I enable the verbose mode:

$ optirun -vv glxgears
[ 3971.476092] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 3971.476736] [DEBUG]optirun version 3.2.1 starting...
[ 3971.476773] [DEBUG]Active configuration:
[ 3971.476791] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 3971.476808] [DEBUG] X display: :8
[ 3971.476824] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[ 3971.476841] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 3971.476857] [DEBUG] Accel/display bridge: auto
[ 3971.476873] [DEBUG] VGL Compression: proxy
[ 3971.476889] [DEBUG] VGLrun extra options: 
[ 3971.476905] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[ 3971.477160] [DEBUG]Using auto-detected bridge primus
[ 3971.963469] [INFO]Response: Yes. X is active.

[ 3971.963487] [INFO]Running application using primus.
[ 3971.963643] [DEBUG]Process glxgears started, PID 20743.
[ 3972.075164] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 3972.075192] [DEBUG]Socket closed.
[ 3972.075212] [DEBUG]Killing all remaining processes.
oen9 commented 6 years ago

Same for Gentoo quick fix:

emerge -C x11-drivers/xf86-input-mouse
elmig commented 6 years ago

On Debian unstable and with linux 4.16 and nvidia-driver 390.67-1 removing xserver-xorg-input-mouse works like a charm :+1:

tobiasBora commented 6 years ago

I updated my debian sid, still the same problem...

$ optirun -vv glxgears     
[  336.903628] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  336.904038] [DEBUG]optirun version 3.2.1 starting...
[  336.904054] [DEBUG]Active configuration:
[  336.904060] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  336.904069] [DEBUG] X display: :8
[  336.904078] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[  336.904088] [DEBUG] Socket path: /var/run/bumblebee.socket
[  336.904098] [DEBUG] Accel/display bridge: auto
[  336.904107] [DEBUG] VGL Compression: proxy
[  336.904117] [DEBUG] VGLrun extra options: 
[  336.904127] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[  336.904344] [DEBUG]Using auto-detected bridge primus
[  337.666959] [INFO]Response: Yes. X is active.

[  337.666982] [INFO]Running application using primus.
[  337.667150] [DEBUG]Process glxgears started, PID 3443.
[  337.768733] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  337.768787] [DEBUG]Socket closed.
[  337.768822] [DEBUG]Killing all remaining processes.

$ uname -a
Linux leodeb 4.16.0-2-amd64 #1 SMP Debian 4.16.16-2 (2018-06-22) x86_64 GNU/Linux
ghost commented 6 years ago

This is in the archwiki https://wiki.archlinux.org/index.php/bumblebee#.5BERROR.5DCannot_access_secondary_GPU_-_error:_X_did_not_start_properly

shadyalfred commented 9 months ago

Try removing the xf86-input-mouse module. That fixed things for me. Credit goes to V1del from Arch forums.

@jmiskinis

Removing this causes another problem: Failed to load module "mouse"