You are not logged in.

#1 2013-12-30 08:43:56

labotsirc
Member
Registered: 2013-08-21
Posts: 108

nvidia GPU with optirun not working

*** UPDATE: It seems that libGL is the problem because non-graphical CUDA programs work well. ***
I have upgraded the laptop to the latest packages (as of today) and the Nvidia GPU does not work anymore. I have the Intel HD graphics card and a dedicated Nvidia card.

[cristobal@orion ~]$ optirun -vv glxgears
[   65.205067] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   65.205254] [INFO]Configured driver: nvidia
[   65.205399] [DEBUG]optirun version 3.2.1 starting...
[   65.205408] [DEBUG]Active configuration:
[   65.205410] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   65.205413] [DEBUG] X display: :8
[   65.205415] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[   65.205417] [DEBUG] Socket path: /var/run/bumblebee.socket
[   65.205420] [DEBUG] Accel/display bridge: primus
[   65.205422] [DEBUG] VGL Compression: proxy
[   65.205424] [DEBUG] VGLrun extra options: 
[   65.205426] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[   68.995929] [INFO]Response: Yes. X is active.

[   68.995942] [INFO]Running application using primus.
[   68.996046] [DEBUG]Process glxgears started, PID 879.
[   69.309278] [DEBUG]SIGCHILD received, but wait failed with No child processes
[   69.309303] [DEBUG]Socket closed.
[   69.309321] [DEBUG]Killing all remaining processes.

The bbswitch status was this:

[cristobal@orion ~]$ dmesg | grep bbswitch
[    2.162645] bbswitch: version 0.8
[    2.162647] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[    2.162650] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[    2.162717] bbswitch: detected an Optimus _DSM function
[    2.162759] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[    2.163583] bbswitch: disabling discrete graphics
[   65.264282] bbswitch: enabling discrete graphics
[   69.531260] bbswitch: disabling discrete graphics

Bumblebee output seems to be throwing useful information.

[cristobal@orion ~]$ sudo systemctl status bumblebeed.service 
[sudo] password for cristobal: 
bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since Mon 2013-12-30 16:33:13 CLST; 7min ago
 Main PID: 290 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           `-290 /usr/bin/bumblebeed

Dec 30 16:34:46 orion bumblebeed[290]: [   69.573465] [ERROR][XORG] (EE) 3: /usr/lib/libc.so.6 (malloc_usable_size+0x26) [0x7f5e8bd3d766]
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573468] [ERROR][XORG] (EE) 4: /usr/lib/nvidia/libGL.so.1 (0x7f5e88a3e000+0xb4564) [0x7f5e88af2564]
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573473] [ERROR][XORG] (EE)
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573477] [ERROR][XORG] (EE) Segmentation fault at address 0x0
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573479] [ERROR][XORG] (EE)
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573482] [ERROR][XORG] (EE) Caught signal 11 (Segmentation fault). Server aborting
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573484] [ERROR][XORG] (EE)
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573485] [ERROR][XORG] (EE)
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573487] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
Dec 30 16:34:46 orion bumblebeed[290]: [   69.573489] [ERROR][XORG] (EE)

There is a segmentation fault being originated by libGL.so.1. I do not know why. Lastly, the output of /var/log/Xorg.8.log is:

[cristobal@orion ~]$ cat /var/log/Xorg.8.log
[    65.757] 
X.Org X Server 1.14.5
Release Date: 2013-12-12
[    65.757] X Protocol Version 11, Revision 0
[    65.757] Build Operating System: Linux 3.12.5-1-ARCH x86_64 
[    65.757] Current Operating System: Linux orion 3.12.5-1-razer-beta #1 SMP PREEMPT Sat Dec 21 17:32:25 CLST 2013 x86_64
[    65.757] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-razer-beta root=UUID=648942da-038e-478b-a87c-1445a18480aa rw quiet pcie_aspm=force
[    65.757] Build Date: 13 December 2013  03:11:42PM
[    65.757]  
[    65.757] Current version of pixman: 0.32.4
[    65.757] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    65.757] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    65.757] (==) Log file: "/var/log/Xorg.8.log", Time: Mon Dec 30 16:34:17 2013
[    65.757] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[    65.757] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[    65.757] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    65.757] (==) ServerLayout "Layout0"
[    65.757] (==) No screen section available. Using defaults.
[    65.757] (**) |-->Screen "Default Screen Section" (0)
[    65.757] (**) |   |-->Monitor "<default monitor>"
[    65.757] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    65.757] (**) |   |-->Device "DiscreteNvidia"
[    65.757] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    65.758] (**) Option "AutoAddDevices" "false"
[    65.758] (**) Option "AutoAddGPU" "false"
[    65.758] (**) Not automatically adding devices
[    65.758] (==) Automatically enabling devices
[    65.758] (**) Not automatically adding GPU devices
[    65.758] (==) 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/
[    65.758] (++) ModulePath set to "/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules"
[    65.758] (==) |-->Input Device "<default pointer>"
[    65.758] (==) |-->Input Device "<default keyboard>"
[    65.758] (==) The core pointer device wasn't specified explicitly in the layout.
	Using the default mouse configuration.
[    65.758] (==) The core keyboard device wasn't specified explicitly in the layout.
	Using the default keyboard configuration.
[    65.758] (II) Loader magic: 0x7fec20
[    65.758] (II) Module ABI versions:
[    65.758] 	X.Org ANSI C Emulation: 0.4
[    65.758] 	X.Org Video Driver: 14.1
[    65.758] 	X.Org XInput driver : 19.1
[    65.758] 	X.Org Server Extension : 7.0
[    65.758] (II) xfree86: Adding drm device (/dev/dri/card1)
[    65.758] (II) xfree86: Adding drm device (/dev/dri/card0)
[    65.758] setversion 1.4 failed
[    65.759] (--) PCI:*(0:1:0:0) 10de:11e2:1a58:6748 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    65.759] Initializing built-in extension Generic Event Extension
[    65.759] Initializing built-in extension SHAPE
[    65.759] Initializing built-in extension MIT-SHM
[    65.759] Initializing built-in extension XInputExtension
[    65.759] Initializing built-in extension XTEST
[    65.759] Initializing built-in extension BIG-REQUESTS
[    65.759] Initializing built-in extension SYNC
[    65.759] Initializing built-in extension XKEYBOARD
[    65.759] Initializing built-in extension XC-MISC
[    65.759] Initializing built-in extension SECURITY
[    65.759] Initializing built-in extension XINERAMA
[    65.759] Initializing built-in extension XFIXES
[    65.759] Initializing built-in extension RENDER
[    65.759] Initializing built-in extension RANDR
[    65.759] Initializing built-in extension COMPOSITE
[    65.759] Initializing built-in extension DAMAGE
[    65.759] Initializing built-in extension MIT-SCREEN-SAVER
[    65.759] Initializing built-in extension DOUBLE-BUFFER
[    65.759] Initializing built-in extension RECORD
[    65.759] Initializing built-in extension DPMS
[    65.759] Initializing built-in extension X-Resource
[    65.759] Initializing built-in extension XVideo
[    65.759] Initializing built-in extension XVideo-MotionCompensation
[    65.759] Initializing built-in extension XFree86-VidModeExtension
[    65.759] Initializing built-in extension XFree86-DGA
[    65.759] Initializing built-in extension XFree86-DRI
[    65.759] Initializing built-in extension DRI2
[    65.759] (II) "glx" will be loaded by default.
[    65.759] (II) LoadModule: "dri2"
[    65.759] (II) Module "dri2" already built-in
[    65.759] (II) LoadModule: "glamoregl"
[    65.760] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    65.832] (II) Module glamoregl: vendor="X.Org Foundation"
[    65.832] 	compiled for 1.14.2, module version = 0.5.1
[    65.832] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    65.832] (II) LoadModule: "glx"
[    65.832] (II) Loading /usr/lib/nvidia/xorg/modules/extensions/libglx.so
[    65.876] (II) Module glx: vendor="NVIDIA Corporation"
[    65.876] 	compiled for 4.0.2, module version = 1.0.0
[    65.876] 	Module class: X.Org Server Extension
[    65.876] (II) NVIDIA GLX Module  331.20  Wed Oct 30 17:36:48 PDT 2013
[    65.876] Loading extension GLX
[    65.876] (II) LoadModule: "nvidia"
[    65.876] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    65.884] (II) Module nvidia: vendor="NVIDIA Corporation"
[    65.884] 	compiled for 4.0.2, module version = 1.0.0
[    65.884] 	Module class: X.Org Video Driver
[    65.884] (II) LoadModule: "mouse"
[    65.884] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[    65.885] (II) Module mouse: vendor="X.Org Foundation"
[    65.885] 	compiled for 1.14.0, module version = 1.9.0
[    65.885] 	Module class: X.Org XInput Driver
[    65.885] 	ABI class: X.Org XInput driver, version 19.1
[    65.885] (II) LoadModule: "kbd"
[    65.885] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[    65.886] (II) Module kbd: vendor="X.Org Foundation"
[    65.886] 	compiled for 1.14.4, module version = 1.8.0
[    65.886] 	Module class: X.Org XInput Driver
[    65.886] 	ABI class: X.Org XInput driver, version 19.1
[    65.886] (II) NVIDIA dlloader X Driver  331.20  Wed Oct 30 17:16:53 PDT 2013
[    65.886] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    65.887] (--) using VT number 1

[    65.887] (II) Loading sub module "fb"
[    65.887] (II) LoadModule: "fb"
[    65.887] (II) Loading /usr/lib/xorg/modules/libfb.so
[    65.888] (II) Module fb: vendor="X.Org Foundation"
[    65.888] 	compiled for 1.14.5, module version = 1.0.0
[    65.888] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    65.888] (WW) Unresolved symbol: fbGetGCPrivateKey
[    65.888] (II) Loading sub module "wfb"
[    65.888] (II) LoadModule: "wfb"
[    65.888] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    65.890] (II) Module wfb: vendor="X.Org Foundation"
[    65.890] 	compiled for 1.14.5, module version = 1.0.0
[    65.890] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    65.890] (II) Loading sub module "ramdac"
[    65.890] (II) LoadModule: "ramdac"
[    65.890] (II) Module "ramdac" already built-in
[    65.892] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    65.892] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    65.892] (==) NVIDIA(0): RGB weight 888
[    65.892] (==) NVIDIA(0): Default visual is TrueColor
[    65.892] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    65.892] (**) NVIDIA(0): Option "NoLogo" "true"
[    65.892] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[    65.892] (**) NVIDIA(0): Option "UseEDID" "false"
[    65.892] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[    65.892] (**) NVIDIA(0): Enabling 2D acceleration
[    65.892] (**) NVIDIA(0): Ignoring EDIDs
[    65.892] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[    65.892] (**) NVIDIA(0):     mode
[    68.520] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
[    68.521] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 765M (GK106) at PCI:1:0:0 (GPU-0)
[    68.521] (--) NVIDIA(0): Memory: 2097152 kBytes
[    68.521] (--) NVIDIA(0): VideoBIOS: 80.06.51.00.18
[    68.521] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    68.521] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 765M at PCI:1:0:0
[    68.521] (--) NVIDIA(0):     none
[    68.521] (II) NVIDIA(0): Validated MetaModes:
[    68.521] (II) NVIDIA(0):     "NULL"
[    68.521] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    68.521] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    68.521] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    68.521] (--) Depth 24 pixmap format is 32 bpp
[    68.521] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[    68.521] (II) NVIDIA:     access.
[    68.526] (II) NVIDIA(0): Setting mode "NULL"
[    68.526] (EE) NVIDIA(0): Failed to initiate mode change.
[    68.526] (EE) NVIDIA(0): Failed to complete mode change
[    68.534] Loading extension NV-GLX
[    68.538] (==) NVIDIA(0): Disabling shared memory pixmaps
[    68.538] (==) NVIDIA(0): Backing store disabled
[    68.538] (==) NVIDIA(0): Silken mouse enabled
[    68.538] (==) NVIDIA(0): DPMS enabled
[    68.538] Loading extension NV-CONTROL
[    68.538] (II) Loading sub module "dri2"
[    68.538] (II) LoadModule: "dri2"
[    68.538] (II) Module "dri2" already built-in
[    68.538] (II) NVIDIA(0): [DRI2] Setup complete
[    68.538] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    68.538] (--) RandR disabled
[    68.541] (II) Initializing extension GLX
[    68.590] (II) Using input driver 'mouse' for '<default pointer>'
[    68.590] (**) Option "CorePointer" "on"
[    68.590] (**) <default pointer>: always reports core events
[    68.590] (WW) <default pointer>: No Device specified, looking for one...
[    68.650] (II) <default pointer>: Setting Device option to "/dev/input/mice"
[    68.650] (--) <default pointer>: Device: "/dev/input/mice"
[    68.650] (==) <default pointer>: Protocol: "Auto"
[    68.650] (**) <default pointer>: always reports core events
[    68.650] (**) Option "Device" "/dev/input/mice"
[    68.696] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
[    68.696] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
[    68.696] (**) <default pointer>: Buttons: 9
[    68.696] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
[    68.696] (**) <default pointer>: (accel) keeping acceleration scheme 1
[    68.696] (**) <default pointer>: (accel) acceleration profile 0
[    68.697] (**) <default pointer>: (accel) acceleration factor: 2.000
[    68.697] (**) <default pointer>: (accel) acceleration threshold: 4
[    68.697] (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
[    68.989] (II) <default pointer>: ps2EnableDataReporting: succeeded
[    68.990] (II) Using input driver 'kbd' for '<default keyboard>'
[    68.990] (**) Option "CoreKeyboard" "on"
[    68.990] (**) <default keyboard>: always reports core events
[    68.990] (**) <default keyboard>: always reports core events
[    68.990] (**) Option "Protocol" "standard"
[    68.990] (**) Option "XkbRules" "base"
[    68.990] (**) Option "XkbModel" "pc105"
[    68.990] (**) Option "XkbLayout" "us"
[    68.990] (II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 7)
[    68.991] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[    68.991] (II) AutoAddDevices is off - not adding device.
[    68.991] (II) config/udev: Adding input device Video Bus (/dev/input/event15)
[    68.991] (II) AutoAddDevices is off - not adding device.
[    68.991] (II) config/udev: Adding input device Video Bus (/dev/input/event14)
[    68.991] (II) AutoAddDevices is off - not adding device.
[    68.991] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    68.991] (II) AutoAddDevices is off - not adding device.
[    68.991] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[    68.991] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding drm device (/dev/dri/card1)
[    68.992] (II) config/udev: Adding drm device (/dev/dri/card0)
[    68.992] (II) xfree86: Adding drm device (/dev/dri/card0)
[    68.992] setversion 1.4 failed
[    68.992] (II) config/udev: Adding input device HDA Intel MID HDMI/DP,pcm=3 (/dev/input/event18)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding input device HDA Intel MID HDMI/DP,pcm=7 (/dev/input/event17)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding input device HDA Intel MID HDMI/DP,pcm=8 (/dev/input/event16)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/event9)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/mouse0)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/event10)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.992] (II) config/udev: Adding input device Razer Razer Blade (/dev/input/event11)
[    68.992] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event5)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event8)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event7)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/event12)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/mouse1)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device SC-20FHL11149M (/dev/input/event13)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device AT Raw Set 2 keyboard (/dev/input/event0)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    68.993] (II) config/udev: Adding input device PC Speaker (/dev/input/event6)
[    68.993] (II) AutoAddDevices is off - not adding device.
[    69.398] (II) UnloadModule: "kbd"
[    69.398] (II) UnloadModule: "mouse"
[    69.419] (II) NVIDIA(GPU-0): Deleting GPU-0
[    69.422] (EE) Server terminated successfully (0). Closing log file.

The graphical UI restarted when this error occurs. Any ideas on how to solve this issue?

Last edited by labotsirc (2013-12-30 09:50:01)

Offline

#2 2014-03-24 14:07:36

hardikj
Member
Registered: 2014-03-23
Posts: 7

Re: nvidia GPU with optirun not working

Hi there,

I am having exactly same issue.
Were able to solve it?
Can you tell me how you did it?

Offline

Board footer

Powered by FluxBB