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

vblank_mode=0 primusrun glxspheres seg faults #663

Closed ehelms closed 9 years ago

ehelms commented 9 years ago

Fedora 21

Linux war.eagle 3.19.7-200.fc21.x86_64 #1 SMP Thu May 7 22:00:21 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

baseboard-manufacturer: LENOVO baseboard-product-name: 20EGS0R600 baseboard-version : Not Defined system-manufacturer : LENOVO system-product-name : 20EGS0R600 system-version : ThinkPad W541 bios-vendor : LENOVO bios-version : GNET71WW (2.19 ) bios-release-date : 02/05/2015

optirun (Bumblebee) 3.2.1 Copyright (C) 2011 The Bumblebee Project License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

[root@war Diablo III]# yum list installed | grep nvidia akmod-nvidia.x86_64 1:346.47-2.fc21 @rpmfusion-nonfree-updates bumblebee-nvidia.x86_64 346.47-1.fc21 @bumblebee-nonfree kmod-nvidia-3.19.7-200.fc21.x86_64.x86_64 1:346.47-2.fc21 @/kmod-nvidia-3.19.7-200.fc21.x86_64-346.47-2.fc21.x86_64 xorg-x11-drv-nvidia-kmodsrc.x86_64 1:346.47-1.fc21 @rpmfusion-nonfree-updates

Issue

I followed https://fedoraproject.org/wiki/Bumblebee to install and configure Bumblebee. I also installed the RPM fusion akmod-nvidia drivers to the same version as the Bumblebee client. Whenever I attempt to either test vblank_mode=0 primusrun glxspheres or run Diablo 3/Battlenet (optirun wine Diablo III.exe) I end up with a core dump.

journalctl

May 15 19:23:08 war.eagle kernel: vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
May 15 19:23:08 war.eagle kernel: [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
May 15 19:23:08 war.eagle kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  346.47  Thu Feb 19 18:56:03 PST 2015
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: removing GPU device /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1 /dev/dri/card1
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) config/udev: Adding drm device (/dev/dri/card1)
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) xfree86: Adding drm device (/dev/dri/card1)
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) LoadModule: "modesetting"
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) Module modesetting: vendor="X.Org Foundation"
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: compiled for 1.16.0, module version = 0.9.0
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: Module class: X.Org Video Driver
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: ABI class: X.Org Video Driver, version 18.0
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) UnloadModule: "modesetting"
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) Unloading modesetting
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: (II) Failed to load module "modesetting" (already loaded, 0)
May 15 19:23:08 war.eagle gdm-Xorg-:0[1366]: xf86: found device 1
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:08 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:09 war.eagle acpid[1377]: client connected from 4066[0:1001]
May 15 19:23:09 war.eagle acpid[1377]: 1 client rule loaded
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.953988] [ERROR][XORG] (EE) systemd-logind: failed to get session: PID 4066 does not belong to any known session
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.953997] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.954017] [WARN][XORG] (WW) Warning, couldn't open module mouse
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.954020] [ERROR][XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.954025] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.954028] [WARN][XORG] (WW) Warning, couldn't open module mouse
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.954030] [ERROR][XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
May 15 19:23:09 war.eagle bumblebeed[895]: [  874.954033] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
May 15 19:23:09 war.eagle kernel: glxspheres[4058]: segfault at 87095b01 ip 00000000f77626bd sp 00000000ffe5c940 error 4 in libnvidia-tls.so.346.47[f7760000+4000]
May 15 19:23:09 war.eagle gdm-Xorg-:0[1366]: removing GPU device /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1 /dev/dri/card1
May 15 19:23:09 war.eagle kernel: [drm] Module unloaded
May 15 19:23:09 war.eagle kernel: bbswitch: disabling discrete graphics
May 15 19:23:09 war.eagle kernel: ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
May 15 19:23:09 war.eagle bumblebeed[895]: [  875.151107] [WARN]Unable to disable discrete card.[  875.151136] [ERROR][XORG] (EE) Server terminated successfully (0). Closing log file.
May 15 19:23:09 war.eagle kernel: pci 0000:01:00.0: Refused to change power state, currently in D0
May 15 19:23:09 war.eagle abrt-server[4069]: Deleting problem directory ccpp-2015-05-15-19:23:09-4058 (dup of ccpp-2015-05-15-19:16:23-3965)
May 15 19:23:09 war.eagle dbus[927]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
May 15 19:23:09 war.eagle dbus[927]: [system] Successfully activated service 'org.freedesktop.problems'
May 15 19:23:09 war.eagle gnome-session[1958]: abrt-applet: repeated problem in VirtualGL-2.3.3-5.fc21, not showing the notification
May 15 19:23:16 war.eagle acpid[1377]: client 4066[0:1001] has disconnected

dmesg

[ 1385.521969] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
[ 1385.522821] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
[ 1385.522833] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  346.47  Thu Feb 19 18:56:03 PST 2015
[ 1385.550020] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.550089] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.550136] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.550181] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.550226] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.550390] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.550536] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.550600] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.676549] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1385.931278] glxspheres[4343]: segfault at 60b909d5 ip 00000000f77306bd sp 00000000ffecd480 error 4 in libnvidia-tls.so.346.47[f772e000+4000]
[ 1386.094367] [drm] Module unloaded
[ 1386.112109] bbswitch: disabling discrete graphics
[ 1386.112119] ACPI Warning: \_SB_.PCI0.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
[ 1386.123304] pci 0000:01:00.0: Refused to change power state, currently in D0

Xorg.8.log

[  1470.089]
X.Org X Server 1.16.3
Release Date: 2014-12-20
[  1470.089] X Protocol Version 11, Revision 0
[  1470.089] Build Operating System:  3.17.8-300.bz1178975.fc21.x86_64
[  1470.089] Current Operating System: Linux war.eagle 3.19.7-200.fc21.x86_64 #1 SMP Thu May 7 22:00:21 UTC 2015 x86_64
[  1470.089] Kernel command line: BOOT_IMAGE=/vmlinuz-3.19.7-200.fc21.x86_64 root=/dev/mapper/fedora--server_war-root ro rd.luks.uuid=luks-8805aa8c-0216-4b29-96a1-fc79bee9da0e rd.lvm.lv=fedora-server_war/root rd.lvm.lv=fedora-server_war/swap rhgb quiet LANG=en_US.UTF-8 nouveau.modeset=0 rd.driver.blacklist=nouveau
[  1470.089] Build Date: 31 January 2015  11:23:27PM
[  1470.089] Build ID: xorg-x11-server 1.16.3-2.fc21
[  1470.089] Current version of pixman: 0.32.6
[  1470.089]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  1470.089] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1470.089] (==) Log file: "/var/log/Xorg.8.log", Time: Fri May 15 19:33:04 2015
[  1470.090] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[  1470.090] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[  1470.090] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1470.090] (==) ServerLayout "Layout0"
[  1470.090] (**) |-->Screen "Default Screen" (0)
[  1470.090] (**) |   |-->Monitor "<default monitor>"
[  1470.090] (**) |   |-->Device "DiscreteNvidia"
[  1470.090] (==) No monitor specified for screen "Default Screen".
        Using a default monitor configuration.
[  1470.090] (**) Option "AutoAddDevices" "false"
[  1470.090] (**) Option "AutoAddGPU" "false"
[  1470.090] (**) Not automatically adding devices
[  1470.090] (==) Automatically enabling devices
[  1470.090] (**) Not automatically adding GPU devices
[  1470.090] (==) FontPath set to:
        catalogue:/etc/X11/fontpath.d,
        built-ins
[  1470.090] (++) ModulePath set to "/usr/lib64/nvidia-bumblebee/xorg,/usr/lib64/xorg/modules"
[  1470.090] (==) |-->Input Device "<default pointer>"
[  1470.090] (==) |-->Input Device "<default keyboard>"
[  1470.090] (==) The core pointer device wasn't specified explicitly in the layout.
        Using the default mouse configuration.
[  1470.090] (==) The core keyboard device wasn't specified explicitly in the layout.
        Using the default keyboard configuration.
[  1470.090] (II) Loader magic: 0x81de40
[  1470.090] (II) Module ABI versions:
[  1470.090]    X.Org ANSI C Emulation: 0.4
[  1470.090]    X.Org Video Driver: 18.0
[  1470.090]    X.Org XInput driver : 21.0
[  1470.090]    X.Org Server Extension : 8.0
[  1470.091] (EE) systemd-logind: failed to get session: PID 4479 does not belong to any known session
[  1470.091] (II) xfree86: Adding drm device (/dev/dri/card1)
[  1470.091] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1470.091] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[  1470.094] (--) PCI:*(0:1:0:0) 10de:0ff6:17aa:221e rev 161, Mem @ 0xb0000000/16777216, 0x80000000/268435456, 0x90000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[  1470.094] (II) LoadModule: "glx"
[  1470.094] (II) Loading /usr/lib64/nvidia-bumblebee/xorg/modules/extensions/libglx.so
[  1470.100] (II) Module glx: vendor="NVIDIA Corporation"
[  1470.100]    compiled for 4.0.2, module version = 1.0.0
[  1470.100]    Module class: X.Org Server Extension
[  1470.100] (II) NVIDIA GLX Module  346.47  Thu Feb 19 18:09:07 PST 2015
[  1470.100] (II) LoadModule: "nvidia"
[  1470.101] (II) Loading /usr/lib64/nvidia-bumblebee/xorg/modules/drivers/nvidia_drv.so
[  1470.101] (II) Module nvidia: vendor="NVIDIA Corporation"
[  1470.101]    compiled for 4.0.2, module version = 1.0.0
[  1470.101]    Module class: X.Org Video Driver
[  1470.101] (II) LoadModule: "mouse"
[  1470.101] (WW) Warning, couldn't open module mouse
[  1470.101] (II) UnloadModule: "mouse"
[  1470.101] (II) Unloading mouse
[  1470.101] (EE) Failed to load module "mouse" (module does not exist, 0)
[  1470.101] (II) LoadModule: "kbd"
[  1470.101] (WW) Warning, couldn't open module kbd
[  1470.101] (II) UnloadModule: "kbd"
[  1470.101] (II) Unloading kbd
[  1470.101] (EE) Failed to load module "kbd" (module does not exist, 0)
[  1470.101] (II) NVIDIA dlloader X Driver  346.47  Thu Feb 19 17:47:18 PST 2015
[  1470.101] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  1470.101] (--) using VT number 1

[  1470.101] (II) Loading sub module "fb"
[  1470.101] (II) LoadModule: "fb"
[  1470.101] (II) Loading /usr/lib64/xorg/modules/libfb.so
[  1470.101] (II) Module fb: vendor="X.Org Foundation"
[  1470.101]    compiled for 1.16.3, module version = 1.0.0
[  1470.101]    ABI class: X.Org ANSI C Emulation, version 0.4
[  1470.101] (II) Loading sub module "wfb"
[  1470.101] (II) LoadModule: "wfb"
[  1470.101] (II) Loading /usr/lib64/nvidia-bumblebee/xorg/modules/libwfb.so
[  1470.101] (II) Module wfb: vendor="X.Org Foundation"
[  1470.101]    compiled for 1.16.3, module version = 1.0.0
[  1470.101]    ABI class: X.Org ANSI C Emulation, version 0.4
[  1470.101] (II) Loading sub module "ramdac"
[  1470.101] (II) LoadModule: "ramdac"
[  1470.101] (II) Module "ramdac" already built-in
[  1470.102] (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen" for depth/fbbpp 24/32
[  1470.102] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  1470.102] (==) NVIDIA(0): RGB weight 888
[  1470.102] (==) NVIDIA(0): Default visual is TrueColor
[  1470.102] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  1470.102] (**) NVIDIA(0): Option "NoLogo" "true"
[  1470.102] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[  1470.102] (**) NVIDIA(0): Option "UseEDID" "false"
[  1470.102] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[  1470.102] (**) NVIDIA(0): Enabling 2D acceleration
[  1470.102] (**) NVIDIA(0): Ignoring EDIDs
[  1470.102] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[  1470.102] (**) NVIDIA(0):     mode
[  1470.424] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20150116)
[  1470.425] (II) NVIDIA(0): NVIDIA GPU Quadro K1100M (GK107GL) at PCI:1:0:0 (GPU-0)
[  1470.425] (--) NVIDIA(0): Memory: 2097152 kBytes
[  1470.425] (--) NVIDIA(0): VideoBIOS: 80.07.ac.00.20
[  1470.425] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  1470.425] (--) NVIDIA(0): Valid display device(s) on Quadro K1100M at PCI:1:0:0
[  1470.425] (--) NVIDIA(0):     none
[  1470.425] (II) NVIDIA(0): Validated MetaModes:
[  1470.425] (II) NVIDIA(0):     "NULL"
[  1470.425] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[  1470.425] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[  1470.425] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[  1470.425] (--) Depth 24 pixmap format is 32 bpp
[  1470.425] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[  1470.425] (II) NVIDIA:     access.
[  1470.432] (II) NVIDIA(0): Setting mode "NULL"
[  1470.450] (==) NVIDIA(0): Disabling shared memory pixmaps
[  1470.450] (==) NVIDIA(0): Backing store enabled
[  1470.450] (==) NVIDIA(0): Silken mouse enabled
[  1470.450] (==) NVIDIA(0): DPMS enabled
[  1470.450] (II) Loading sub module "dri2"
[  1470.450] (II) LoadModule: "dri2"
[  1470.450] (II) Module "dri2" already built-in
[  1470.450] (II) NVIDIA(0): [DRI2] Setup complete
[  1470.450] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[  1470.450] (--) RandR disabled
[  1470.453] (II) SELinux: Disabled on system
[  1470.453] (II) Initializing extension GLX
[  1470.469] (II) LoadModule: "mouse"
[  1470.469] (WW) Warning, couldn't open module mouse
[  1470.469] (II) UnloadModule: "mouse"
[  1470.469] (II) Unloading mouse
[  1470.469] (EE) Failed to load module "mouse" (module does not exist, 0)
[  1470.469] (EE) No input driver matching `mouse'
[  1470.469] (II) LoadModule: "kbd"
[  1470.469] (WW) Warning, couldn't open module kbd
[  1470.469] (II) UnloadModule: "kbd"
[  1470.469] (II) Unloading kbd
[  1470.469] (EE) Failed to load module "kbd" (module does not exist, 0)
[  1470.469] (EE) No input driver matching `kbd'
[  1470.470] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[  1470.470] (II) AutoAddDevices is off - not adding device.
[  1470.470] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[  1470.470] (II) AutoAddDevices is off - not adding device.
[  1470.470] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[  1470.470] (II) AutoAddDevices is off - not adding device.
[  1470.470] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[  1470.470] (II) AutoAddDevices is off - not adding device.
[  1470.470] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[  1470.470] (II) AutoAddDevices is off - not adding device.
[  1470.470] (II) config/udev: Adding drm device (/dev/dri/card0)
[  1470.470] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1470.470] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[  1470.470] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event9)
[  1470.470] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event10)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event8)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device Integrated Camera (/dev/input/event14)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event12)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event13)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event6)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/event7)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/mouse1)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.471] (II) config/udev: Adding input device ThinkPad Extra Buttons (/dev/input/event11)
[  1470.471] (II) AutoAddDevices is off - not adding device.
[  1470.649] (II) NVIDIA(GPU-0): Deleting GPU-0
[  1470.649] (EE) Server terminated successfully (0). Closing log file.
gsgatlin commented 9 years ago

AFAIK the rpmfusion nvidia packages do not support optimus hybrid graphics laptops. They are only suitable for desktop PCs. I created my own solution called "bumblebee-nvidia"

It is mentioned in the instructions you referred to.

gsgatlin commented 9 years ago

Also, just to be thorough in my explanation. The bumblebee-nvidia package referred to handles the client and the kernel module. It is rebuilt by systemd every time there is a kernel update and you reboot into the new kernel. (/usr/sbin/bumblebee-nvidia)

ehelms commented 9 years ago

@gsgatlin to make sure I understand, bumble-nvidia is essentially the same as the RPMfusion packages in how it works except that its built with the hybrid graphics support? I did install that package, but sounds like I made the bad assumption that it was simply some sort of "driver" for Bumblebee to use the nvidia drivers installed from somewhere else.

gsgatlin commented 9 years ago

Hmnn. Well, it doesn't work the same way. Its not pre compiled or anything. It runs the "blob" with special arguments and safeguards to keep nvidia's installer from trashing the system libraries. It also blacklists nvdia and nouveau which is required. I would suggest you remove the rpmfusion akmod and reboot. Then if its still not working you can run:

bumblebee-nvidia --check

And it may give clues as to what has gone wrong.

This should give clues about what has gone wrong.

ehelms commented 9 years ago

I ran: yum remove xorg-x11-drv-nvidia and rebooted. So now I have:

[ehelms@war Downloads]$ yum list installed | grep nvidia
bumblebee-nvidia.x86_64                    346.47-1.fc21                @bumblebee-nonfree
kmod-nvidia-3.19.7-200.fc21.x86_64.x86_64  1:346.47-2.fc21              @/kmod-nvidia-3.19.7-200.fc21.x86_64-346.47-2.fc21.x86_64
[ehelms@war Downloads]$ 

Same issue running optirun or primusrun.

[ehelms@war Downloads]$ bumblebee-nvidia --check

nvidia.ko compiled into in the kernel tree ok.
modinfo output for NVIDIA:

filename:       /lib/modules/3.19.7-200.fc21.x86_64/kernel/drivers/video/nvidia.ko
alias:          char-major-195-*
version:        346.47
supported:      external
license:        NVIDIA
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        drm
vermagic:       3.19.7-200.fc21.x86_64 SMP mod_unload 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_RemapLimit:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

Check bbswitch kernel module...

bbswitch is loaded into the current kernel ok.

All checks completed successfully! NVIDIA driver appears to have compiled ok.
gsgatlin commented 9 years ago

Ok, remove any rpmfusion nvidia driver such as xorg-x11-drv-nvidia-kmodsrc which I did not see before. There should be no rpms from rpmfusion that do driver stuff. Hope we are clear on that.

If it still fails after a reboot run the check again. If it gives the everything is ok message then please provide logs on pastebin or fpaste.org or similar sites from

/var/log/messages

and

/var/log/Xorg.8.log

after trying to run

optirun glxgears -info

and

primusrun glxgears -info

gsgatlin commented 9 years ago

remove kmod-nvidia

gsgatlin commented 9 years ago

Here is what it looks like on my box. [gsgatlin@t540p ~]$ rpm -qa | grep nvidia bumblebee-nvidia-346.47-1.fc21.x86_64 [gsgatlin@t540p ~]$

ehelms commented 9 years ago

The RPMFusion site was a little misleading, I had to do a yum remove kmod-nvidia* to get it to remove that package. And I am happy to report, everything works after I also reinstalled the bumlebee-nvidia package and rebooted! @gsgatlin thanks so much for your help!

I would suggest adding a note (and if its there and I missed it, shame on me) to the Fedora wiki page to remove the nvidia drivers and to not install them.

gsgatlin commented 9 years ago

Yeah. I'm going to try to figure out how to edit that site next week. I'll make sure to add that. I actually didn't write any of it. I kind of suck at documentation. But out techies wiki has died at NCSU (php 5.6 killed it) so I'll also try to recreate the docs in wordpress. But first I'll try to get the fedora wiki updated. Glad its working for you.

ehelms commented 9 years ago

Was this developed at NCSU?

gsgatlin commented 9 years ago

Well, I mostly worked on it in my spare time because there was no RHEL/fedora solution at the time for my laptop. And I did not want to have to compile bumbleee, primus, etc by hand every time I re-install. And the person who ran install.linux.ncsu.edu at the time did not object to my placing yum repos there. I am required to spend some time at my job to develop Linux desktop solutions (chromium, firefox from rawhide, etc) and laptops are pretty important these days. So we'll just says its that. Mostly we have to worry about stuff like openAFS on Linux and lots of closed source software. OpenAFS is another of those "out of tree kernel modules" things. Cheers.