You are not logged in.

#1 2015-04-02 09:15:34

Alcasa
Member
Registered: 2013-05-18
Posts: 46

[Solved] [Thinkpad W520] Bumblebee randomly starts nvidia gpu

Hello forum,

my laptop has a nvidia optimus setup including with a nvidia quadro 2000m. I run it with the most recent stock kernel 3.19.2-1.
Here is the problem.
Some time after boot, the nvidia gpu will turn on, which is visible by monitoring bbswitch. I can turn it off again by rmmod nvidia_uvm and nvidia. But running primusrun/optirun afterwards will throw an error. Any help is greatly appreciated. I have already added i925 and bbswitch to mkinipcio to no effect.

 % optirun gnome-terminal
[ 6371.090462] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 23683 does not belong to any known session

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

I have tweaked my bumblebee setup for multi-monitoring with intel-virtual-output. Specifically I commented out UseEDID false and UseDisplayDevice.
Here is the changed file:
/etc/bumblebee/xorg.conf.nvidia

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

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

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

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 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"
EndSection

Edit:
I fixed the problem temporarily by setting UseDisplayDevice "none" in the xorg.conf.nvidia file.

Last edited by Alcasa (2015-04-06 10:39:19)

Offline

Board footer

Powered by FluxBB