You are not logged in.

#1 2015-07-26 06:42:09

ZhKSteaL
Member
From: Omsk City, Russia
Registered: 2015-01-07
Posts: 10

Sony VAIO Intel/Nvidia Bumblebee/Xorg issue

Hi, friends!
First of all, I'm sorry for my English and another one topics related to Intel/Nvidia Bumblebee/Xorg issue.
I read a lot of topics but can't manage with it sad
I don't want to give up. So I hope you can help me.

What I have and what I have done already:

1. /etc/X11/xorg.conf.d is empty

[zhksteal@ZhKSteaL usb]$ ls /etc/X11/xorg.conf.d/
[zhksteal@ZhKSteaL usb]

2. /etc/bumblebee contains

[zhksteal@ZhKSteaL usb]$ ls /etc/bumblebee/
bumblebee.conf	xorg.conf.d	xorg.conf.nvidia

[zhksteal@ZhKSteaL usb]$ ls /etc/bumblebee/xorg.conf.d/
10-dummy.conf

3. I changed in bumblebee.conf according to recommendation on forum
Driver=nvidia
Bridge=virtualgl

[zhksteal@ZhKSteaL usb]$ cat /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
Bridge=virtualgl
# 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

4. Add BusID in Section Device accroding to lspci output

[zhksteal@ZhKSteaL usb]$ cat /etc/bumblebee/xorg.conf.nvidia 
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 352.21  (buildmeister@swio-display-x64-rhel04-13)  Tue Jun  9 22:44:03 PDT 2015


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

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "nvidiagpu"
    Driver         "nvidia"
    BusID          "PCI:04:00.0"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "nvidiagpu"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

5. lspci output

 zhksteal@ZhKSteaL usb]$ lspci -v
..
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Sony Corporation Device 90be
	Flags: bus master, fast devsel, latency 0, IRQ 45
	Memory at b3000000 (64-bit, non-prefetchable) [size=4M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 5000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915
..
04:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
	Subsystem: Sony Corporation Device 90be
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at b2000000 (32-bit, non-prefetchable) [size=16M]
	Memory at a0000000 (64-bit, prefetchable) [size=256M]
	Memory at b0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 3000 [size=128]
	Expansion ROM at <ignored> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia

6. Add rcutree.rcu_idle_gp_delay=1 to gummiboot options

[zhksteal@ZhKSteaL usb]$ ls /boot/loader/
entries/     loader.conf  
[zhksteal@ZhKSteaL usb]$ cat /boot/loader/loader.conf 
timeout 3
default arch
[zhksteal@ZhKSteaL usb]$ cat /boot/loader/entries/arch.conf 
title	Arch Linux
linux	/vmlinuz-linux
initrd	/initramfs-linux.img
options	root=/dev/sda6 rw rcutree.rcu_idle_gp_delay=1

7. Add MODULES="i915 nouveau bbswitch" to /etc/mkinitcpio.conf and re-run mkinitcpio -p linux

[zhksteal@ZhKSteaL usb]$ cat /etc/mkinitcpio.conf 
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="i915 nouveau bbswitch"

8. bumblebee service is running

[zhksteal@ZhKSteaL usb]$ systemctl status bumblebeed
bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: [1;32mactive (running)[0m since Sun 2015-07-26 17:38:01 OMST; 22min ago
 Main PID: 361 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           `-361 /usr/bin/bumblebeed

Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338564] [ERROR][XORG] (EE) systemd-logind: failed to get session: PID 589 does not belong to any known session
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338571] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338581] [ERROR][XORG] (EE) No devices detected.
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338586] [ERROR][XORG] (EE)
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338590] [ERROR][XORG] (EE) no screens found(EE)
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338595] [ERROR][XORG] (EE)
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338600] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338605] [ERROR][XORG] (EE)
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.338610] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
Jul 26 17:58:58 ZhKSteaL bumblebeed[361]: [ 1269.368606] [ERROR]X did not start properly

9. when I enter "optirun glxgears --info" I get

[zhksteal@ZhKSteaL usb]$ optirun glxgears --info
[ 1269.368664] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 589 does not belong to any known session

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

10. /var/log/Xorg.8.log output

[zhksteal@ZhKSteaL usb]$ cat /var/log/Xorg.8.log
[  1268.343] 
X.Org X Server 1.17.2
Release Date: 2015-06-16
[  1268.343] X Protocol Version 11, Revision 0
[  1268.343] Build Operating System: Linux 4.0.4-2-ARCH x86_64 
[  1268.343] Current Operating System: Linux ZhKSteaL 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64
[  1268.343] Kernel command line: initrd=\initramfs-linux.img root=/dev/sda6 rw rcutree.rcu_idle_gp_delay=1
[  1268.343] Build Date: 17 July 2015  05:38:19PM
[  1268.343]  
[  1268.343] Current version of pixman: 0.32.6
[  1268.343] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  1268.343] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1268.344] (==) Log file: "/var/log/Xorg.8.log", Time: Sun Jul 26 17:58:57 2015
[  1268.363] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[  1268.363] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[  1268.363] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1268.369] (==) ServerLayout "Layout0"
[  1268.369] (**) |-->Screen "Screen0" (0)
[  1268.369] (**) |   |-->Monitor "Monitor0"
[  1268.384] (**) |   |-->Device "nvidiagpu"
[  1268.384] (**) |-->Input Device "Keyboard0"
[  1268.384] (**) |-->Input Device "Mouse0"
[  1268.384] (==) Automatically adding devices
[  1268.384] (==) Automatically enabling devices
[  1268.384] (==) Automatically adding GPU devices
[  1268.408] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  1268.408] 	Entry deleted from font path.
[  1268.408] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  1268.408] 	Entry deleted from font path.
[  1268.408] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  1268.408] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  1268.408] 	Entry deleted from font path.
[  1268.408] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  1268.408] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[  1268.408] (++) ModulePath set to "/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules"
[  1268.408] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  1268.408] (WW) Disabling Keyboard0
[  1268.408] (WW) Disabling Mouse0
[  1268.414] (II) Loader magic: 0x817d60
[  1268.414] (II) Module ABI versions:
[  1268.414] 	X.Org ANSI C Emulation: 0.4
[  1268.414] 	X.Org Video Driver: 19.0
[  1268.414] 	X.Org XInput driver : 21.1
[  1268.414] 	X.Org Server Extension : 9.0
[  1268.415] (EE) systemd-logind: failed to get session: PID 589 does not belong to any known session
[  1268.415] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1268.416] (II) xfree86: Adding drm device (/dev/dri/card1)
[  1268.417] (--) PCI: (0:4:0:0) 10de:1292:104d:90be rev 161, Mem @ 0xb2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128
[  1268.417] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1268.418] (II) LoadModule: "glx"
[  1268.419] (II) Loading /usr/lib/nvidia/xorg/modules/extensions/libglx.so
[  1269.190] (II) Module glx: vendor="NVIDIA Corporation"
[  1269.190] 	compiled for 4.0.2, module version = 1.0.0
[  1269.190] 	Module class: X.Org Server Extension
[  1269.199] (II) NVIDIA GLX Module  352.21  Tue Jun  9 21:22:54 PDT 2015
[  1269.212] (II) LoadModule: "nvidia"
[  1269.232] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  1269.320] (II) Module nvidia: vendor="NVIDIA Corporation"
[  1269.320] 	compiled for 4.0.2, module version = 1.0.0
[  1269.320] 	Module class: X.Org Video Driver
[  1269.337] (II) NVIDIA dlloader X Driver  352.21  Tue Jun  9 20:58:55 PDT 2015
[  1269.337] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  1269.338] (--) using VT number 2

[  1269.338] (EE) No devices detected.
[  1269.338] (EE) 
Fatal server error:
[  1269.338] (EE) no screens found(EE) 
[  1269.338] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  1269.338] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[  1269.338] (EE) 


I understand that I do something wrong, but I don't understant what exactly sad

Offline

#2 2015-07-27 10:18:26

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Sony VAIO Intel/Nvidia Bumblebee/Xorg issue

Why do you load the nouveau module, if you want to use the closed nvidia driver?

Offline

#3 2015-07-27 13:47:31

ZhKSteaL
Member
From: Omsk City, Russia
Registered: 2015-01-07
Posts: 10

Re: Sony VAIO Intel/Nvidia Bumblebee/Xorg issue

Awebb wrote:

Why do you load the nouveau module, if you want to use the closed nvidia driver?

Do you mean MODULES="i915 nouveau bbswitch"?
It was some forum topic with that suggest.
Should I change nouveau to nvidia and re-run mkinitcpio ?

Offline

#4 2015-07-27 21:18:29

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Sony VAIO Intel/Nvidia Bumblebee/Xorg issue

Just remove nouveau and rebuild the image.

Offline

#5 2015-07-29 15:22:57

ZhKSteaL
Member
From: Omsk City, Russia
Registered: 2015-01-07
Posts: 10

Re: Sony VAIO Intel/Nvidia Bumblebee/Xorg issue

Awebb wrote:

Just remove nouveau and rebuild the image.

Unfortunately result is the same sad

#     MODULES="piix ide_disk reiserfs"
MODULES="i915 bbswitch"
[zhksteal@ZhKSteaL ~]$ optirun glsxgears --info
[   73.275554] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) systemd-logind: failed to get session: PID 646 does not belong to any known session

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

Last edited by ZhKSteaL (2015-07-30 05:18:48)

Offline

#6 2015-08-04 04:54:19

ZhKSteaL
Member
From: Omsk City, Russia
Registered: 2015-01-07
Posts: 10

Re: Sony VAIO Intel/Nvidia Bumblebee/Xorg issue

Can anybody help me?

Offline

#7 2015-08-04 20:46:52

cj360
Member
Registered: 2013-10-12
Posts: 67

Re: Sony VAIO Intel/Nvidia Bumblebee/Xorg issue

Afaik bumblebee looks and reads xorg.conf first / default if it is there in /etc/X11 so try making that file in /etc/X11/xorg.conf with your config in the 1st post. Also in your config use semicolons instead of periods like: 04:00:0 instead of 04:00.0.

I have an Asus laptop with similar hybrid graphics with intel having a set with the cpu and nvida having their own card as well. Asus K53SD is the specific model, here's my xorg configs that I have:  https://github.com/cj360/archlinux-conf … er/etc/X11.

Offline

Board footer

Powered by FluxBB