After additional fixing stack_cookie Xorg is started.
The problem is that gbd stops response to ctrl-C.
So it is working but not working.
ps -m 10674
10674 ? - 0:00 Xorg.nz :8 -config /usr/local/etc/bumblebee/xorg.conf.nvidia -configdir /usr/local/etc/bumblebee/xorg.conf.d -sharevts -noliste
- - Ssl 0:00 -
- - Ssl 0:00 -
Xorg uses 2 additional threads but when I fixed context it is logged in Xorg conf.
And it is fixed only once. So fixing context in global sense is not a problem.
There are more problem in nvidia driver.
I tried bumblebeed and primus. Running application glxinfo.
[root@nzasf sbin]# ./bumblebeed --debug -C /usr/local/etc/bumblebee/bumblebee.conf
[566303.799089] [INFO]PM is disabled, not performing detection.
[566303.799101] [DEBUG]Active configuration:
[566303.799103] [DEBUG] bumblebeed config file: /usr/local/etc/bumblebee/bumblebee.conf
[566303.799105] [DEBUG] X display: :8
[566303.799106] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/nvidia:/usr/lib/nvidia
[566303.799108] [DEBUG] Socket path: /var/run/bumblebee.socket
[566303.799109] [DEBUG] pidfile: /var/run/bumblebeed.pid
[566303.799111] [DEBUG] xorg.conf file: /usr/local/etc/bumblebee/xorg.conf.nvidia
[566303.799112] [DEBUG] xorg.conf.d dir: /usr/local/etc/bumblebee/xorg.conf.d
[566303.799114] [DEBUG] ModulePath: /usr/lib64/xorg/modules/extensions/nvidia,/usr/lib64/xorg/modules,/usr/lib64/xorg/modules/extensions,/usr/lib64/xorg/modules/input
[566303.799116] [DEBUG] GID name: bumblebee
[566303.799117] [DEBUG] Power method: none
[566303.799119] [DEBUG] Stop X on exit: 1
[566303.799120] [DEBUG] Driver: nvidia
[566303.799122] [DEBUG] Driver module: nvidia
[566303.799123] [DEBUG] Card shutdown state: 1
[566303.799206] [DEBUG]Process /sbin/modprobe started, PID 10321.
[566303.799251] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[566303.800090] [DEBUG]SIGCHILD received, but wait failed with No child processes
[566303.800103] [DEBUG]Configuration test passed.
[566303.800445] [INFO]./bumblebeed 3.2.1 started
[566303.800619] [INFO]Initialization completed - now handling client requests
[566319.057734] [DEBUG]Accepted new connection
[566319.057955] [INFO]Starting X server on display :8.
[566319.058222] [DEBUG]Process Xorg.nz started, PID 10332.
[566319.059072] [DEBUG]Process with PID 10332 returned code 2
[566449.119088] [DEBUG][XORG] [566319.058507] [ERROR]Error running “Xorg.nz”: No such file or directory
[566449.219263] [ERROR]X did not start properly
[566449.219617] [DEBUG]Socket closed.
^C[566548.986746] [WARN]Received Interrupt signal.
[566548.986773] [DEBUG]Socket closed.
[566548.987285] [DEBUG]Killing all remaining processes.
[root@nzasf sbin]# ./bumblebeed --debug -C /usr/local/etc/bumblebee/bumblebee.conf
[566552.441208] [INFO]PM is disabled, not performing detection.
[566552.441248] [DEBUG]Active configuration:
[566552.441258] [DEBUG] bumblebeed config file: /usr/local/etc/bumblebee/bumblebee.conf
[566552.441269] [DEBUG] X display: :8
[566552.441277] [DEBUG] LD_LIBRARY_PATH: /usr/lib64/nvidia:/usr/lib/nvidia
[566552.441287] [DEBUG] Socket path: /var/run/bumblebee.socket
[566552.441296] [DEBUG] pidfile: /var/run/bumblebeed.pid
[566552.441306] [DEBUG] xorg.conf file: /usr/local/etc/bumblebee/xorg.conf.nvidia
[566552.441317] [DEBUG] xorg.conf.d dir: /usr/local/etc/bumblebee/xorg.conf.d
[566552.441325] [DEBUG] ModulePath: /usr/lib64/xorg/modules/extensions/nvidia,/usr/lib64/xorg/modules,/usr/lib64/xorg/modules/extensions,/usr/lib64/xorg/modules/input
[566552.441338] [DEBUG] GID name: bumblebee
[566552.441351] [DEBUG] Power method: none
[566552.441368] [DEBUG] Stop X on exit: 1
[566552.441419] [DEBUG] Driver: nvidia
[566552.441433] [DEBUG] Driver module: nvidia
[566552.441443] [DEBUG] Card shutdown state: 1
[566552.441654] [DEBUG]Process /sbin/modprobe started, PID 10668.
[566552.441759] [DEBUG]Hiding stderr for execution of /sbin/modprobe
[566552.443872] [DEBUG]SIGCHILD received, but wait failed with No child processes
[566552.443905] [DEBUG]Configuration test passed.
[566552.446262] [INFO]./bumblebeed 3.2.1 started
[566552.446416] [INFO]Initialization completed - now handling client requests
[566559.271055] [DEBUG]Accepted new connection
[566559.271284] [INFO]Starting X server on display :8.
[566559.271531] [DEBUG]Process Xorg.nz started, PID 10674.
[566690.783194] [DEBUG][XORG] X.Org X Server 1.19.3
[566690.783222] [DEBUG][XORG] Release Date: 2017-03-15
[566690.783229] [DEBUG][XORG] X Protocol Version 11, Revision 0
[566690.783239] [DEBUG][XORG] Build Operating System: nzasf 4.12.9-300.fc26.x86_64
[566690.783248] [DEBUG][XORG] Current Operating System: Linux nzasf 4.12.9-300.fc26.x86_64 #1 SMP Fri Aug 25 13:09:43 UTC 2017 x86_64
[566690.783259] [DEBUG][XORG] Kernel command line: BOOT_IMAGE=/vmlinuz-4.12.9-300.fc26.x86_64 root=UUID=4461fbcc-73f1-4905-816b-2082bea70cc6 ro rhgb quiet LANG=en_US.UTF-8 nouveau.blacklist=1 rd.driver.blacklist=nouveau nouveau.modeset=0
[566690.783269] [DEBUG][XORG] Build Date: 06 September 2017 01:10:09AM
[566690.783279] [DEBUG][XORG] Build ID: xorg-x11-server 1.19.3-4.fc26
[566690.783288] [DEBUG][XORG] Current version of pixman: 0.34.0
[566690.783297] [DEBUG][XORG] Before reporting problems, check http://wiki.x.org
[566690.783308] [DEBUG][XORG] to make sure that you have the latest version.
[566690.783322] [DEBUG][XORG] Markers: (–) probed, () from config file, (==) default setting,
[566690.783335] [DEBUG][XORG] (++) from command line, (!!) notice, (II) informational,
[566690.783348] [DEBUG][XORG] (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[566690.783361] [DEBUG][XORG] (==) Log file: “/var/log/Xorg.8.log”, Time: Sun Sep 10 04:38:02 2017
[566690.783370] [DEBUG][XORG] (++) Using config file: “/usr/local/etc/bumblebee/xorg.conf.nvidia”
[566690.783382] [DEBUG][XORG] (++) Using config directory: “/usr/local/etc/bumblebee/xorg.conf.d”
[566690.783396] [DEBUG][XORG] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
[566690.783406] [DEBUG][XORG] (==) ServerLayout “Layout0”
[566690.783418] [DEBUG][XORG] (==) No screen section available. Using defaults.
[566690.783432] [DEBUG][XORG] () |–>Screen “Default Screen Section” (0)
[566690.783441] [DEBUG][XORG] () | |–>Monitor “”
[566690.783449] [DEBUG][XORG] (==) No device specified for screen “Default Screen Section”.
[566690.783458] [DEBUG][XORG] Using the first device section listed.
[566690.783470] [DEBUG][XORG] () | |–>Device “DiscreteNvidia”
[566690.783483] [DEBUG][XORG] (==) No monitor specified for screen “Default Screen Section”.
[566690.783494] [DEBUG][XORG] Using a default monitor configuration.
[566690.783503] [DEBUG][XORG] () Option “AutoAddDevices” “false”
[566690.783511] [DEBUG][XORG] () Option “AutoAddGPU” “false”
[566690.783523] [DEBUG][XORG] () Option “IndirectGLX” “on”
[566690.783532] [DEBUG][XORG] () Not automatically adding devices
[566690.783541] [DEBUG][XORG] (==) Automatically enabling devices
[566690.783550] [DEBUG][XORG] () Not automatically adding GPU devices
[566690.783560] [DEBUG][XORG] (==) Automatically binding GPU devices
[566690.783572] [DEBUG][XORG] (==) Max clients allowed: 256, resource mask: 0x1fffff
[566690.783582] [DEBUG][XORG] (==) FontPath set to:
[566690.783593] [DEBUG][XORG] catalogue:/etc/X11/fontpath.d,
[566690.783609] [DEBUG][XORG] built-ins
[566690.783624] [DEBUG][XORG] (++) ModulePath set to “/usr/lib64/xorg/modules/extensions/nvidia,/usr/lib64/xorg/modules,/usr/lib64/xorg/modules/extensions,/usr/lib64/xorg/modules/input”
[566690.783638] [DEBUG][XORG] (==) |–>Input Device “”
[566690.783650] [DEBUG][XORG] (==) |–>Input Device “”
[566690.783662] [DEBUG][XORG] (==) The core pointer device wasn’t specified explicitly in the layout.
[566690.783674] [DEBUG][XORG] Using the default mouse configuration.
[566690.783686] [DEBUG][XORG] (==) The core keyboard device wasn’t specified explicitly in the layout.
[566690.783696] [DEBUG][XORG] Using the default keyboard configuration.
[566690.783705] [DEBUG][XORG] (II) Loader magic: 0x824e00
[566690.783716] [DEBUG][XORG] (II) Module ABI versions:
[566690.783729] [DEBUG][XORG] X.Org ANSI C Emulation: 0.4
[566690.783747] [DEBUG][XORG] X.Org Video Driver: 23.0
[566690.783762] [DEBUG][XORG] X.Org XInput driver : 24.1
[566690.783775] [DEBUG][XORG] X.Org Server Extension : 10.0
[566690.783789] [DEBUG][XORG] (–) using VT number 1
[566690.783799] [DEBUG][XORG] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[566690.783809] [DEBUG][XORG] (II) xfree86: Adding drm device (/dev/dri/card1)
[566690.783831] [ERROR][XORG] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
[566690.783841] [DEBUG][XORG] (II) xfree86: Adding drm device (/dev/dri/card0)
[566690.783853] [ERROR][XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[566690.783864] [DEBUG][XORG] (–) PCI:*(0:1:0:0) 10de:1c82:1458:3746 rev 161, Mem @ 0xdc000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x???/524288
[566690.783876] [DEBUG][XORG] (II) LoadModule: “glx”
[566690.783886] [DEBUG][XORG] (II) Loading /usr/lib64/xorg/modules/extensions/nvidia/libglx.so
[566690.783895] [DEBUG][XORG] (II) Module glx: vendor=“NVIDIA Corporation”
[566690.783907] [DEBUG][XORG] compiled for 4.0.2, module version = 1.0.0
[566690.783924] [DEBUG][XORG] Module class: X.Org Server Extension
[566690.783936] [DEBUG][XORG] (II) NVIDIA GLX Module 384.69 Wed Aug 16 19:34:06 PDT 2017
[566690.783946] [DEBUG][XORG] (II) LoadModule: “nvidia”
[566690.783955] [DEBUG][XORG] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[566690.783964] [DEBUG][XORG] (II) Module nvidia: vendor=“NVIDIA Corporation”
[566690.783974] [DEBUG][XORG] compiled for 4.0.2, module version = 1.0.0
[566690.783985] [DEBUG][XORG] Module class: X.Org Video Driver
[566690.783999] [DEBUG][XORG] (II) LoadModule: “mouse”
[566690.784054] [WARN][XORG] (WW) Warning, couldn’t open module mouse
[566690.784061] [DEBUG][XORG] (II) UnloadModule: “mouse”
[566690.784072] [DEBUG][XORG] (II) Unloading mouse
[566690.784081] [ERROR][XORG] (EE) Failed to load module “mouse” (module does not exist, 0)
[566690.784090] [DEBUG][XORG] (II) LoadModule: “kbd”
[566690.784101] [DEBUG][XORG] (WW) Warning, couldn’t open module kbd
[566690.784115] [DEBUG][XORG] (II) UnloadModule: “kbd”
[566690.784125] [DEBUG][XORG] (II) Unloading kbd
[566690.784135] [DEBUG][XORG] (EE) Failed to load module “kbd” (module does not exist, 0)
[566690.784144] [DEBUG][XORG] (II) NVIDIA dlloader X Driver 384.69 Wed Aug 16 19:07:09 PDT 2017
[566690.784157] [DEBUG][XORG] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[566690.784170] [DEBUG][XORG] (II) Loading sub module “fb”
[566690.784180] [DEBUG][XORG] (II) LoadModule: “fb”
[566690.784191] [DEBUG][XORG] (II) Loading /usr/lib64/xorg/modules/libfb.so
[566690.784204] [DEBUG][XORG] (II) Module fb: vendor=“X.Org Foundation”
[566690.784215] [DEBUG][XORG] compiled for 1.19.3, module version = 1.0.0
[566690.784227] [DEBUG][XORG] ABI class: X.Org ANSI C Emulation, version 0.4
[566690.784242] [DEBUG][XORG] (II) Loading sub module “wfb”
[566690.784252] [DEBUG][XORG] (II) LoadModule: “wfb”
[566690.784262] [DEBUG][XORG] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[566690.784274] [DEBUG][XORG] (II) Module wfb: vendor=“X.Org Foundation”
[566690.784287] [DEBUG][XORG] compiled for 1.19.3, module version = 1.0.0
[566690.784301] [DEBUG][XORG] ABI class: X.Org ANSI C Emulation, version 0.4
[566690.784310] [DEBUG][XORG] (II) Loading sub module “ramdac”
[566690.784319] [DEBUG][XORG] (II) LoadModule: “ramdac”
[566690.784328] [DEBUG][XORG] (II) Module “ramdac” already built-in
[566690.784340] [DEBUG][XORG] (II) NVIDIA(0): Creating default Display subsection in Screen section
[566690.784353] [DEBUG][XORG] “Default Screen Section” for depth/fbbpp 24/32
[566690.784367] [DEBUG][XORG] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[566690.784379] [DEBUG][XORG] (==) NVIDIA(0): RGB weight 888
[566690.784391] [DEBUG][XORG] (==) NVIDIA(0): Default visual is TrueColor
[566690.784400] [DEBUG][XORG] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[566690.784412] [DEBUG][XORG] () NVIDIA(0): Option “ProbeAllGpus” “false”
[566690.784424] [DEBUG][XORG] () NVIDIA(0): Option “UseEDID” “false”
[566690.784436] [DEBUG][XORG] () NVIDIA(0): Option “UseDisplayDevice” “none”
[566690.784448] [DEBUG][XORG] () NVIDIA(0): Enabling 2D acceleration
[566690.784460] [DEBUG][XORG] () NVIDIA(0): Ignoring EDIDs
[566690.784471] [DEBUG][XORG] () NVIDIA(0): Option “UseDisplayDevice” set to “none”; enabling NoScanout
[566690.784485] [DEBUG][XORG] () NVIDIA(0): mode
[566690.784497] [DEBUG][XORG] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1050 Ti (GP107-A) at PCI:1:0:0 (GPU-0)
[566690.784513] [DEBUG][XORG] (–) NVIDIA(0): Memory: 4194304 kBytes
[566690.784522] [DEBUG][XORG] (–) NVIDIA(0): VideoBIOS: 86.07.39.00.8b
[566690.784531] [DEBUG][XORG] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[566690.784541] [DEBUG][XORG] (II) NVIDIA(0): Validated MetaModes:
[566690.784553] [DEBUG][XORG] (II) NVIDIA(0): “NULL”
[566690.784564] [DEBUG][XORG] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[566690.784578] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[566690.784588] [DEBUG][XORG] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[566690.784601] [DEBUG][XORG] (–) Depth 24 pixmap format is 32 bpp
[566690.784614] [DEBUG][XORG] (II) NVIDIA: Using 49152.00 MB of virtual memory for indirect memory
[566690.784629] [DEBUG][XORG] (II) NVIDIA: access.
[566690.784638] [DEBUG][XORG] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[566690.784651] [DEBUG][XORG] (II) NVIDIA(0): may not be running or the “AcpidSocketPath” X
[566690.784664] [DEBUG][XORG] (II) NVIDIA(0): configuration option may not be set correctly. When the
[566690.784677] [DEBUG][XORG] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
[566690.784690] [DEBUG][XORG] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
[566690.784702] [DEBUG][XORG] (II) NVIDIA(0): details, please see the “ConnectToAcpid” and
[566690.784714] [DEBUG][XORG] (II) NVIDIA(0): “AcpidSocketPath” X configuration options in Appendix B: X
[566690.784725] [DEBUG][XORG] (II) NVIDIA(0): Config Options in the README.
[566690.784737] [DEBUG][XORG] (II) NVIDIA(0): Setting mode “NULL”
[566690.784750] [DEBUG][XORG] (==) NVIDIA(0): Disabling shared memory pixmaps
[566690.784760] [DEBUG][XORG] (==) NVIDIA(0): Backing store enabled
[566690.784769] [DEBUG][XORG] (==) NVIDIA(0): Silken mouse enabled
[566690.784781] [DEBUG][XORG] (==) NVIDIA(0): DPMS enabled
[566690.784792] [WARN][XORG] (WW) NVIDIA(0): Option “NoLogo” is not used
[566690.784801] [DEBUG][XORG] (II) Loading sub module “dri2”
[566690.784814] [DEBUG][XORG] (II) LoadModule: “dri2”
[566690.784827] [DEBUG][XORG] (II) Module “dri2” already built-in
[566690.784837] [DEBUG][XORG] (II) NVIDIA(0): [DRI2] Setup complete
[566690.784848] [DEBUG][XORG] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
[566690.784857] [DEBUG][XORG] (–) RandR disabled
[566690.784869] [DEBUG][XORG] (II) nlz InitExtensions
[566690.784881] [DEBUG][XORG] (II) SELinux: Disabled by boolean
[566690.784894] [DEBUG][XORG] (II) Initializing extension GLX
[566690.784908] [WARN][XORG] (WW) AddCalback fix ok=1 thread context lost right=0x7f001498ca40 wrong=0x2111470
[566690.784921] [DEBUG][XORG] (II) LoadModule: “mouse”
[566690.784933] [WARN][XORG] (WW) Warning, couldn’t open module mouse
…
[566690.886066] [ERROR]X unresponsive after 10 seconds - aborting
[566690.886624] [DEBUG]Socket closed.
[566690.951290] [DEBUG][XORG] (II) NVIDIA(GPU-0): Deleting GPU-0
[566690.951643] [DEBUG][XORG] (II) Server terminated successfully (0). Closing log file.
[566690.952951] [DEBUG]Process with PID 10674 returned code 0
Spoiled thread context by nvidia kernel part migth be not single problem.
Or might be too serial in order nvidia driver is not working - absolutely.