You are not logged in.

#1 2016-09-13 18:12:13

archalex6
Member
From: Bangkok, Thailand
Registered: 2016-09-13
Posts: 18

Bumblebee suddenly broken after update - Cannot Access Secondary GPU

Hi guys, this is my first post in this forums as I'm relatively new with Arch Linux but familiar with Linux in general. I'm facing a problem that I've been spending hours on, and hope someone can help me out. That's the version I'm using:

# uname -a
Linux ghost6 4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 x86_64 GNU/Linux

Revelant info:
- MSI gaming laptop with nvidia GTX 960M graphics, proprietary drivers
- Module "nouveau" is blacklisted
- Using UEFI boot (efibootmgr) with full disk encryption

Today, I ran a full system update using "pacman -Syu" and updated all packages. I suddenly found out that bumblebee wouldn't start anymore. Here's my output:

# sudo bumblebeed -vvv
[ 1613.927139] [DEBUG]Found card: 01:00.0 (discrete)
[ 1613.927152] [DEBUG]Found card: 00:02.0 (integrated)
[ 1613.927155] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1613.927241] [INFO]Configured driver: nvidia
[ 1613.927247] [DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[ 1613.927299] [DEBUG]Process /sbin/modprobe started, PID 10011.
[ 1613.927405] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[ 1613.928115] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 1613.928149] [DEBUG]bbswitch has been detected.
[ 1613.928154] [INFO]Switching method 'bbswitch' is available and will be used.
[ 1613.928157] [DEBUG]Active configuration:
[ 1613.928160] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1613.928163] [DEBUG] X display: :8
[ 1613.928165] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[ 1613.928167] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1613.928170] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[ 1613.928171] [DEBUG] xorg.conf.d dir: /etc/bumblebee/xorg.conf.d
[ 1613.928173] [DEBUG] ModulePath: /usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
[ 1613.928175] [DEBUG] GID name: bumblebee
[ 1613.928177] [DEBUG] Power method: auto
[ 1613.928178] [DEBUG] Stop X on exit: 1
[ 1613.928180] [DEBUG] Driver: nvidia
[ 1613.928182] [DEBUG] Driver module: nvidia
[ 1613.928183] [DEBUG] Card shutdown state: 1
[ 1613.928267] [DEBUG]Process /sbin/modprobe started, PID 10012.
[ 1613.928293] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[ 1613.928920] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 1613.928925] [DEBUG]Configuration test passed.
[ 1613.929063] [INFO]bumblebeed 3.2.1 started
[ 1613.929397] [INFO]Unloading UVM/DRM/MODESET driver
[ 1613.929455] [DEBUG]Process modprobe started, PID 10013.
[ 1613.965537] [DEBUG]Process with PID 10013 returned code 0
[ 1613.966314] [INFO]Switching dedicated card OFF [bbswitch]
[ 1614.108345] [INFO]Initialization completed - now handling client requests

That's my bumblebee.conf, minus the comments:

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d

[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false

[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

The 10-dummy.conf included with Bumblebee is just an empty file. And that's the xorg.conf.nvidia included with Bumblebee (yes, I have tripled-checked the BusID everywhere):

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 "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Instead of xorg.conf, I'm using multiple conf files in /etc/X11/xorg.conf.d, here's the concatenation of all the files:

Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard00" "CoreKeyboard"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "MSI"
        ModelName    "Integrated Monitor"
EndSection

Section "Device"
        Identifier "Card0"
        Driver "intel"
        BusID "PCI:0:2:0"
        Option "AccelMethod" "sna"
EndSection

Section "InputDevice"
        Identifier  "Keyboard00"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "ca,th"
        Option "XkbVariant" ","
EndSection

When I'm trying to run a program, here's what I get:

# optirun -vvv glxgears

  704.360129] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  704.360518] [INFO]Configured driver: nvidia
[  824.684253] [DEBUG]optirun version 3.2.1 starting...
[  824.684288] [DEBUG]Active configuration:
[  824.684297] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  824.684304] [DEBUG] X display: :8
[  824.684312] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[  824.684320] [DEBUG] Socket path: /var/run/bumblebee.socket
[  824.684328] [DEBUG] Accel/display bridge: auto
[  824.684342] [DEBUG] VGL Compression: proxy
[  824.684356] [DEBUG] VGLrun extra options:
[  824.684374] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[  824.684447] [DEBUG]Using auto-detected bridge virtualgl
[  824.713585] [INFO]Response: No - error: [XORG] (EE) kbd: Keyboard00: failed to set us as foreground pgrp (Inappropriate ioctl for device)
[  824.713601] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) kbd: Keyboard00: failed to set us as foreground pgrp (Inappropriate ioctl for device)
[  824.713605] [DEBUG]Socket closed.
[  824.713619] [ERROR]Aborting because fallback start is disabled.
[  824.713622] [DEBUG]Killing all remaining processes.

This evil message has been plaguing every application that I'm trying to run on optirun, and primusrun gives me roughly the same output. The problem started after the latest upgrade, despite having kept the configuration files intact.

No amount of Googling or wiki-ing gave me any clue on what this issue might be.

Anyone has an idea what's going on?
Thanks

Last edited by archalex6 (2016-09-13 18:15:28)

Offline

Board footer

Powered by FluxBB