You are not logged in.

#1 2017-01-15 21:35:41

lexikon
Member
Registered: 2017-01-15
Posts: 10

Again bumblebee + nvidia

Hello. Can any help me with my trouble?
I spent many times on configuration my laptop N550JV. I tried install Nvidia drivers 375.26 with bumblebee from community repository.
I have previously launched bumblebee with nvidia on my laptop and it worked. But now I cannot start any application with optirun.
Kernel:

[roman@n550jv ~]$ uname -a
Linux n550jv 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux

lspci:

[roman@n550jv ~]$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
        Subsystem: ASUSTeK Computer Inc. Device 11cd
        Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 11cd
        Kernel driver in use: nvidia

Output from "optirun -vvv glxgears" (I wait 1 minuts to get error message):

[roman@n550jv ~]$ optirun -vvv glxgears
[ 2204.126662] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 2204.127026] [DEBUG]optirun version 3.2.1-45-gc322bd8 starting...
[ 2204.127037] [DEBUG]Active configuration:
[ 2204.127040] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 2204.127042] [DEBUG] X display: :8
[ 2204.127044] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[ 2204.127047] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 2204.127049] [DEBUG] Accel/display bridge: auto
[ 2204.127051] [DEBUG] VGL Compression: proxy
[ 2204.127055] [DEBUG] VGLrun extra options: 
[ 2204.127061] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[ 2204.127078] [DEBUG]Using auto-detected bridge primus
[ 2334.443381] [INFO]Response: No - error: X unresponsive after 10 seconds - aborting

[ 2334.443407] [ERROR]Cannot access secondary GPU - error: X unresponsive after 10 seconds - aborting

[ 2334.443411] [DEBUG]Socket closed.
[ 2334.443430] [ERROR]Aborting because fallback start is disabled.
[ 2334.443434] [DEBUG]Killing all remaining processes.
[roman@n550jv ~]$ 

or another error message:

[ 2469.270057] [INFO]Response: No - error: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)
[ 2469.270082] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)

Optirun --status:

[roman@n550jv ~]$ optirun --status
Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is on.

Nouveau is blacklisted.
Full Xorg.8.log: https://gist.github.com/romanlex/706ad0 … c5418e29d8

Please help me ^( I tried any bumblebee versions and  remove all packages with purge configuration - its not help me

Sorry for bad english

Offline

#2 2017-01-15 23:35:55

TheEzekielProject
Member
Registered: 2017-01-15
Posts: 5

Re: Again bumblebee + nvidia

Because you make no mention, I will ask: Did you try alternative usage options listed here?

Offline

#3 2017-01-16 08:33:44

lexikon
Member
Registered: 2017-01-15
Posts: 10

Re: Again bumblebee + nvidia

TheEzekielProject wrote:

Because you make no mention, I will ask: Did you try alternative usage options listed here?

All command with optirun not work( I wait 1 minuts when get output. I dont see any window or any output from "optirun glxgears -info"

Offline

#4 2017-01-16 09:08:56

verge-36
Member
Registered: 2016-08-26
Posts: 11

Re: Again bumblebee + nvidia

Tried primusrun? Optirun doesn't work for me either. Also could you try to see if nvidia modules are loaded when you try to use the nvidia card?

Offline

#5 2017-01-16 09:21:37

lexikon
Member
Registered: 2017-01-15
Posts: 10

Re: Again bumblebee + nvidia

verge-36 wrote:

Tried primusrun? Optirun doesn't work for me either. Also could you try to see if nvidia modules are loaded when you try to use the nvidia card?

I tried primusrun and it not work.
Nvida module is loaded properly.

[roman@n550jv ~]$ primusrun glxspheres64
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) kbd: <default keyboard>: failed to set us as foreground pgrp (Inappropriate ioctl for device)

[roman@n550jv ~]$ 
[roman@n550jv ~]$ lsmod | grep nvidia
nvidia_drm             49152  0
nvidia_modeset        782336  1 nvidia_drm
nvidia              11870208  1 nvidia_modeset
drm_kms_helper        126976  2 i915,nvidia_drm
drm                   294912  20 i915,nvidia_drm,drm_kms_helper

Offline

#6 2017-01-16 09:46:29

lexikon
Member
Registered: 2017-01-15
Posts: 10

Re: Again bumblebee + nvidia

I removed all the packages and install them again
Log: https://gist.github.com/romanlex/56a745 … e38e934997
Reboot system and trying start optirun:

[roman@n550jv ~]$ lsmod | grep nvidia
[roman@n550jv ~]$ optirun --status
Bumblebee status: Ready (3.2.1-2016-05-20-Format:%h$). X inactive. Discrete video card is off.

[roman@n550jv ~]$ glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xb5
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Haswell Mobile 
60.855504 frames/sec - 67.914743 Mpixels/sec
[roman@n550jv ~]$ optirun -vvv glxspheres64
[   64.444360] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   64.444703] [DEBUG]optirun version 3.2.1-2016-05-20-Format:%h$ starting...
[   64.444715] [DEBUG]Active configuration:
[   64.444718] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   64.444721] [DEBUG] X display: :8
[   64.444723] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[   64.444726] [DEBUG] Socket path: /var/run/bumblebee.socket
[   64.444729] [DEBUG] Accel/display bridge: auto
[   64.444731] [DEBUG] VGL Compression: proxy
[   64.444736] [DEBUG] VGLrun extra options: 
[   64.444743] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[   64.444814] [DEBUG]Using auto-detected bridge virtualgl
[  194.283666] [INFO]Response: No - error: X unresponsive after 10 seconds - aborting

[  194.283688] [ERROR]Cannot access secondary GPU - error: X unresponsive after 10 seconds - aborting

[  194.283693] [DEBUG]Socket closed.
[  194.283716] [ERROR]Aborting because fallback start is disabled.
[  194.283726] [DEBUG]Killing all remaining processes.
[roman@n550jv ~]$ 

System log:

16.01.17 12:47	bbswitch	enabling discrete graphics
16.01.17 12:47	nvidia-nvlink	Nvlink Core is being initialized, major device number 244
16.01.17 12:47	NVRM	loading NVIDIA UNIX x86_64 Kernel Module 375.26 Thu Dec 8 18:36:43 PST 2016 (using threaded interrupts)
16.01.17 12:47	vgaarb	this pci device is not a vga device
16.01.17 12:47	ACPI Warning	\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
16.01.17 12:47	ACPI Warning	\_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
16.01.17 12:47	vgaarb	this pci device is not a vga device
16.01.17 12:47	nvidia-modeset	Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 375.26 Thu Dec 8 18:04:14 PST 2016

Nvidia module is loaded:

[roman@n550jv ~]$ lsmod | grep nvidia
nvidia_modeset        782336  0
nvidia              11870208  1 nvidia_modeset
[roman@n550jv ~]$ 

xorg.conf.nvidia:

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddGPU" "false"
    
#   When using `intel-virtual-output`, the X-server for the second monitor
#   uses its own screensaver settings for the built-in screensaver of X. If
#   any application like e.g. a video player suppresses the screensaver, the
#   external screen will still turn black after 10 minutes without any
#   keyboard or mouse input. The following settings suppress this behaviour 
#   by completely disabling the built-in screensaver.

#   Note that this does not affect the screensaver of your desktop
#   environment, as they usually do their own screensaving. Also locking
#   the workstation works just fine. However, power saving features will not
#   work on the external monitor, it will never go to powersaving mode.

#   This is a workaround for issue #93562 against `intel-virtual-output`:
#   https://bugs.freedesktop.org/show_bug.cgi?id=93562

#   Option          "BlankTime"     "0"
#   Option          "StandbyTime"   "0"
#   Option          "SuspendTime"   "0"
#   Option          "OffTime"       "0"
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"

#   If your NVIDIA drivers are version 331.13 or newer, and you have a laptop
#   where some of the video outputs such as HDMI or DisplayPort are connected
#   to the NVIDIA GPU, and you sometimes connect an external monitor to those
#   ports, comment out the above two options and instead uncomment the option
#   below to allow using the external monitor when it is connected while also
#   allowing the X server to start when the monitor is disconnected.

#   Option "AllowEmptyInitialConfiguration"
EndSection

X11 20-intel.conf:

Section "Device"
	Identifier  "Intel Graphics"
	Driver      "intel"
	BusID       "PCI:0:2:0"
	Option 	    "TearFree" "true"
	Option      "AccelMethod" "SNA"
EndSection
 
Section "DRI"
        Group  "video"
        Mode   0660
EndSection
 
 
Section "Extensions"
	Option "Composite" "Enable"
	Option "RENDER"    "Enable"
EndSection
 
 
 

Last edited by lexikon (2017-01-16 09:57:29)

Offline

#7 2017-01-16 13:41:38

lexikon
Member
Registered: 2017-01-15
Posts: 10

Re: Again bumblebee + nvidia

I open source from bumblebee and go to line with error "Cannot access secondary GPU ...". I see whta bumblebee write and read Xorg socket...and Socket return false((( Whats wrong?

r = snprintf(buffer, BUFFER_SIZE, "Connect %s", bb_config.no_xorg ? "NoX" : "");
  socketWrite(&bb_status.bb_socket, buffer, r + 1);
  while (bb_status.bb_socket != -1) {
    r = socketRead(&bb_status.bb_socket, buffer, BUFFER_SIZE);
    if (r > 0) {
      r = ensureZeroTerminated(buffer, r, BUFFER_SIZE);
      bb_log(LOG_INFO, "Response: %s\n", buffer);
      switch (buffer[0]) {
        case 'N': //No, run normally.
          // buffer should contain "No, ..." or "No - ..."
          bb_log(LOG_ERR, "Cannot access secondary GPU%s\n", r > 2 ? buffer+2 : "");
          socketClose(&bb_status.bb_socket);
          if (!bb_config.fallback_start) {
            bb_log(LOG_ERR, "Aborting because fallback start is disabled.\n");
          }
          break;
        case 'Y': //Yes, run through vglrun
          bb_log(LOG_INFO, "Running application using %s.\n", back->name);
          ranapp = 1;
          exitcode = back->run(argc, argv);
          socketClose(&bb_status.bb_socket);
          break;
        default: //Something went wrong - output and exit.
          bb_log(LOG_ERR, "Problem: %s\n", buffer);
          socketClose(&bb_status.bb_socket);
          break;
      }
    }
  }

Offline

#8 2017-01-16 14:03:05

lexikon
Member
Registered: 2017-01-15
Posts: 10

Re: Again bumblebee + nvidia

I spent two days on this error sad And I run optirun application!!!!
If I start Xorg on another terminal as sudo - all work perfect!

[roman@n550jv ~]$ sudo Xorg :8 -config /etc/bumblebee/xorg.conf.nvidia -configdir /etc/bumblebee/xorg.conf.d -sharevts -nolisten tcp -noreset -verbose 3 -isolateDevice PCI:01:00:0 -modulepath /usr/lib/nvidia/xorg/,/usr/lib/xorg/modules

I get this command from log, but remove all [DEBUG] string

[ 3290.621959] [DEBUG]X server command line:[ 3290.621961] [DEBUG] Xorg[ 3290.621964] [DEBUG] :8[ 3290.621966] [DEBUG] -config[ 3290.621968] [DEBUG] /etc/bumblebee/xorg.conf.nvidia[ 3290.621970] [DEBUG] -configdir[ 3290.621972] [DEBUG] /etc/bumblebee/xorg.conf.d[ 3290.621974] [DEBUG] -sharevts[ 3290.621979] [DEBUG] -nolisten[ 3290.621981] [DEBUG] tcp[ 3290.621986] [DEBUG] -noreset[ 3290.621990] [DEBUG] -verbose[ 3290.621993] [DEBUG] 3[ 3290.621997] [DEBUG] -isolateDevice[ 3290.622002] [DEBUG] PCI:01:00:0[ 3290.622005] [DEBUG] -modulepath[ 3290.622010] [DEBUG] /usr/lib/nvidia/xorg/,/usr/lib/xorg/modules[ 3290.622014] [DEBUG]
[ 3290.622155] [DEBUG]Process Xorg started, PID 8716.

Offline

#9 2017-01-17 09:45:42

lexikon
Member
Registered: 2017-01-15
Posts: 10

Re: Again bumblebee + nvidia

Why bumblebee cannot start Xorg properly? And I dont have eny errors in logs(

Offline

Board footer

Powered by FluxBB