You are not logged in.

#1 2015-11-11 18:56:55

Fuxino
Member
From: Slovakia
Registered: 2014-09-26
Posts: 198

Bumblebee+Nvidia+Bbswitch problem

So, I have a laptop with hybrid graphics:

$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)
04:00.0 3D controller: NVIDIA Corporation GK208M [GeForce 920M] (rev ff)

I installed bumblebee and bbswitch with the proprietary nvidia driver and all seems to work fine (I'm able to successfully run applications with optirun). Still, I'm getting some error messages in the logs. After running "optirun glxgears" (or any other application for that matter), I get this in the journal:

kernel: vgaarb: this pci device is not a vga device
kernel: ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
kernel: ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
kernel: ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
kernel: ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
kernel: ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
kernel: ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
kernel: ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150619/nsarguments-95)
kernel: vgaarb: this pci device is not a vga device

and

bumblebeed[488]: [  500.142637] [ERROR][XORG] (EE) systemd-logind: failed to get session: PID 1317 does not belong to any known session
bumblebeed[488]: [  500.142653] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
bumblebeed[488]: [  500.142664] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
bumblebeed[488]: [  500.142674] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

Nvidia card seems to be running:

$ cat /proc/acpi/bbswitch
0000:04:00.0 ON

After stopping the program running with optirun the same command gives:

 $ cat /proc/acpi/bbswitch
0000:04:00.0 OFF

but I have this in the journal:

kernel: pci 0000:04:00.0: Refused to change power state, currently in D0

Doesn't D0 means it is actually on? What should I believe?

My configuration files and logs:
/etc/bumblebee/bumblebee.conf

# 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=auto
# 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=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
# 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.nouveau

/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:04: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

/var/log/Xorg.8.log

[   498.440] 
X.Org X Server 1.17.4
Release Date: 2015-10-28
[   498.440] X Protocol Version 11, Revision 0
[   498.440] Build Operating System: Linux 4.2.5-1-ARCH x86_64 
[   498.440] Current Operating System: Linux Fux-PC 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64
[   498.440] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=/dev/mapper/Arch-rootvol quiet rw
[   498.440] Build Date: 01 November 2015  10:36:50AM
[   498.440]  
[   498.440] Current version of pixman: 0.32.8
[   498.440] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   498.440] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   498.440] (==) Log file: "/var/log/Xorg.8.log", Time: Wed Nov 11 19:32:49 2015
[   498.459] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[   498.459] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[   498.459] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   498.475] (==) ServerLayout "Layout0"
[   498.475] (==) No screen section available. Using defaults.
[   498.475] (**) |-->Screen "Default Screen Section" (0)
[   498.475] (**) |   |-->Monitor "<default monitor>"
[   498.475] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[   498.475] (**) |   |-->Device "DiscreteNvidia"
[   498.475] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   498.475] (**) Option "AutoAddDevices" "false"
[   498.475] (**) Option "AutoAddGPU" "false"
[   498.475] (**) Not automatically adding devices
[   498.475] (==) Automatically enabling devices
[   498.475] (**) Not automatically adding GPU devices
[   498.476] (==) 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/
[   498.476] (++) ModulePath set to "/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules"
[   498.476] (==) |-->Input Device "<default pointer>"
[   498.476] (==) |-->Input Device "<default keyboard>"
[   498.476] (==) The core pointer device wasn't specified explicitly in the layout.
	Using the default mouse configuration.
[   498.476] (==) The core keyboard device wasn't specified explicitly in the layout.
	Using the default keyboard configuration.
[   498.476] (II) Loader magic: 0x817d60
[   498.476] (II) Module ABI versions:
[   498.476] 	X.Org ANSI C Emulation: 0.4
[   498.476] 	X.Org Video Driver: 19.0
[   498.476] 	X.Org XInput driver : 21.1
[   498.476] 	X.Org Server Extension : 9.0
[   498.476] (EE) systemd-logind: failed to get session: PID 1317 does not belong to any known session
[   498.477] (II) xfree86: Adding drm device (/dev/dri/card0)
[   498.477] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[   498.477] (II) xfree86: Adding drm device (/dev/dri/card1)
[   498.478] (--) PCI:*(0:4:0:0) 10de:1299:1043:23ea rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288
[   498.478] (II) Open ACPI successful (/var/run/acpid.socket)
[   498.478] (II) LoadModule: "glx"
[   498.491] (II) Loading /usr/lib/nvidia/xorg/modules/extensions/libglx.so
[   499.075] (II) Module glx: vendor="NVIDIA Corporation"
[   499.075] 	compiled for 4.0.2, module version = 1.0.0
[   499.075] 	Module class: X.Org Server Extension
[   499.082] (II) NVIDIA GLX Module  355.11  Wed Aug 26 16:02:11 PDT 2015
[   499.095] (II) LoadModule: "nvidia"
[   499.095] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   499.187] (II) Module nvidia: vendor="NVIDIA Corporation"
[   499.187] 	compiled for 4.0.2, module version = 1.0.0
[   499.187] 	Module class: X.Org Video Driver
[   499.191] (II) LoadModule: "mouse"
[   499.191] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[   499.209] (II) Module mouse: vendor="X.Org Foundation"
[   499.209] 	compiled for 1.16.0, module version = 1.9.1
[   499.209] 	Module class: X.Org XInput Driver
[   499.209] 	ABI class: X.Org XInput driver, version 21.0
[   499.209] (II) LoadModule: "kbd"
[   499.209] (WW) Warning, couldn't open module kbd
[   499.209] (II) UnloadModule: "kbd"
[   499.209] (II) Unloading kbd
[   499.209] (EE) Failed to load module "kbd" (module does not exist, 0)
[   499.210] (II) NVIDIA dlloader X Driver  355.11  Wed Aug 26 15:38:55 PDT 2015
[   499.210] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   499.225] (--) using VT number 1

[   499.233] (II) Loading sub module "fb"
[   499.233] (II) LoadModule: "fb"
[   499.233] (II) Loading /usr/lib/xorg/modules/libfb.so
[   499.246] (II) Module fb: vendor="X.Org Foundation"
[   499.246] 	compiled for 1.17.4, module version = 1.0.0
[   499.246] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   499.246] (II) Loading sub module "wfb"
[   499.246] (II) LoadModule: "wfb"
[   499.246] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   499.258] (II) Module wfb: vendor="X.Org Foundation"
[   499.258] 	compiled for 1.17.4, module version = 1.0.0
[   499.258] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   499.258] (II) Loading sub module "ramdac"
[   499.258] (II) LoadModule: "ramdac"
[   499.258] (II) Module "ramdac" already built-in
[   499.279] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   499.279] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   499.279] (==) NVIDIA(0): RGB weight 888
[   499.279] (==) NVIDIA(0): Default visual is TrueColor
[   499.279] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   499.279] (**) NVIDIA(0): Option "NoLogo" "true"
[   499.279] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[   499.279] (**) NVIDIA(0): Option "UseEDID" "false"
[   499.279] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[   499.279] (**) NVIDIA(0): Enabling 2D acceleration
[   499.279] (**) NVIDIA(0): Ignoring EDIDs
[   499.279] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[   499.279] (**) NVIDIA(0):     mode
[   499.507] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20150116)
[   499.508] (II) NVIDIA(0): NVIDIA GPU GeForce 920M (GK208) at PCI:4:0:0 (GPU-0)
[   499.508] (--) NVIDIA(0): Memory: 2097152 kBytes
[   499.508] (--) NVIDIA(0): VideoBIOS: 80.28.8d.00.08
[   499.508] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   499.508] (II) NVIDIA(0): Validated MetaModes:
[   499.508] (II) NVIDIA(0):     "NULL"
[   499.508] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[   499.508] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[   499.508] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[   499.508] (--) Depth 24 pixmap format is 32 bpp
[   499.508] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[   499.508] (II) NVIDIA:     access.
[   499.561] (II) NVIDIA(0): Setting mode "NULL"
[   499.566] (==) NVIDIA(0): Disabling shared memory pixmaps
[   499.566] (==) NVIDIA(0): Backing store enabled
[   499.566] (==) NVIDIA(0): Silken mouse enabled
[   499.566] (==) NVIDIA(0): DPMS enabled
[   499.566] (II) Loading sub module "dri2"
[   499.566] (II) LoadModule: "dri2"
[   499.566] (II) Module "dri2" already built-in
[   499.566] (II) NVIDIA(0): [DRI2] Setup complete
[   499.566] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   499.566] (--) RandR disabled
[   499.569] (II) Initializing extension GLX
[   499.569] (II) Indirect GLX disabled.(II) Using input driver 'mouse' for '<default pointer>'
[   499.788] (**) Option "CorePointer" "on"
[   499.788] (**) <default pointer>: always reports core events
[   499.788] (WW) <default pointer>: No Device specified, looking for one...
[   499.813] (II) <default pointer>: Setting Device option to "/dev/input/mice"
[   499.813] (--) <default pointer>: Device: "/dev/input/mice"
[   499.813] (==) <default pointer>: Protocol: "Auto"
[   499.813] (**) <default pointer>: always reports core events
[   499.813] (**) Option "Device" "/dev/input/mice"
[   499.840] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
[   499.840] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
[   499.840] (**) <default pointer>: Buttons: 9
[   499.840] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
[   499.840] (**) <default pointer>: (accel) keeping acceleration scheme 1
[   499.840] (**) <default pointer>: (accel) acceleration profile 0
[   499.840] (**) <default pointer>: (accel) acceleration factor: 2.000
[   499.840] (**) <default pointer>: (accel) acceleration threshold: 4
[   499.840] (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
[   500.133] (II) <default pointer>: ps2EnableDataReporting: succeeded
[   500.133] (II) LoadModule: "kbd"
[   500.133] (WW) Warning, couldn't open module kbd
[   500.133] (II) UnloadModule: "kbd"
[   500.133] (II) Unloading kbd
[   500.133] (EE) Failed to load module "kbd" (module does not exist, 0)
[   500.133] (EE) No input driver matching `kbd'
[   500.137] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[   500.137] (II) AutoAddDevices is off - not adding device.
[   500.137] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[   500.137] (II) AutoAddDevices is off - not adding device.
[   500.138] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[   500.138] (II) AutoAddDevices is off - not adding device.
[   500.138] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[   500.138] (II) AutoAddDevices is off - not adding device.
[   500.138] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[   500.138] (II) AutoAddDevices is off - not adding device.
[   500.138] (II) config/udev: Adding drm device (/dev/dri/card0)
[   500.138] (II) xfree86: Adding drm device (/dev/dri/card0)
[   500.138] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[   500.138] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event9)
[   500.138] (II) AutoAddDevices is off - not adding device.
[   500.138] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event7)
[   500.138] (II) AutoAddDevices is off - not adding device.
[   500.139] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event8)
[   500.139] (II) AutoAddDevices is off - not adding device.
[   500.139] (II) config/udev: Adding input device USB Camera (/dev/input/event13)
[   500.139] (II) AutoAddDevices is off - not adding device.
[   500.139] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event6)
[   500.139] (II) AutoAddDevices is off - not adding device.
[   500.139] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event11)
[   500.139] (II) AutoAddDevices is off - not adding device.
[   500.139] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[   500.139] (II) AutoAddDevices is off - not adding device.
[   500.140] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event12)
[   500.140] (II) AutoAddDevices is off - not adding device.
[   500.140] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0)
[   500.140] (II) AutoAddDevices is off - not adding device.
[   500.140] (II) config/udev: Adding input device PC Speaker (/dev/input/event10)
[   500.140] (II) AutoAddDevices is off - not adding device.
[   896.884] (II) UnloadModule: "mouse"
[   896.908] (II) NVIDIA(GPU-0): Deleting GPU-0
[   896.909] (II) Server terminated successfully (0). Closing log file.

Thanks in advance for any help. smile

Offline

Board footer

Powered by FluxBB