You are not logged in.
Greetings fellow Arch users!
The following is included in case it contains useful information regarding my current issue
The current issue arose when attempting to auto configure Xorg. Searching this forum and the wiki, following the output as shown below, led me onto installing configuring Bumblebee prior to looking at other solutions
Command:
Xorg :0 -configure
Log file:
[ 132.708]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[ 132.709] X Protocol Version 11, Revision 0
[ 132.709] Build Operating System: Linux 4.14.12-1-ARCH x86_64
[ 132.709] Current Operating System: Linux asgard 4.15.15-1-ARCH #1 SMP PREEMPT Sat Mar 31 23:59:25 UTC 2018 x86_64
[ 132.709] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=3492616f-63e3-432c-8cf0-326d6fdc39a7
[ 132.709] Build Date: 26 January 2018 10:25:18AM
[ 132.709]
[ 132.709] Current version of pixman: 0.34.0
[ 132.710] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 132.710] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 132.711] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 8 14:36:05 2018
[ 132.711] (II) Loader magic: 0x55a052b4dd60
[ 132.711] (II) Module ABI versions:
[ 132.711] X.Org ANSI C Emulation: 0.4
[ 132.711] X.Org Video Driver: 23.0
[ 132.711] X.Org XInput driver : 24.1
[ 132.711] X.Org Server Extension : 10.0
[ 132.712] (--) using VT number 2
[ 132.712] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 132.713] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 132.723] (EE)
[ 132.723] (EE) Backtrace:
[ 132.724] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x55a0528c5e99]
[ 132.725] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7ff82a270e1f]
[ 132.726] (EE) 2: /usr/lib/xorg-server-Xorg (xf86PlatformMatchDriver+0x2b4) [0x55a0527bf674]
[ 132.726] (EE) 3: /usr/lib/xorg-server-Xorg (xf86BusProbe+0x9) [0x55a0527974d9]
[ 132.727] (EE) 4: /usr/lib/xorg-server-Xorg (InitOutput+0x7ff) [0x55a0527a618f]
[ 132.728] (EE) 5: /usr/lib/xorg-server-Xorg (InitFonts+0x213) [0x55a052764093]
[ 132.749] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7ff829ec8f4a]
[ 132.750] (EE) 7: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x55a05274df0a]
[ 132.750] (EE)
[ 132.750] (EE) Segmentation fault at address 0x50
[ 132.750] (EE)
Fatal server error:
[ 132.750] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 132.751] (EE)
[ 132.751] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 132.751] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 132.751] (EE)
[ 132.752] (EE) Server terminated with error (1). Closing log file.
==================================================================
Here's some hardware/installation details on my laptop in question:
CPU: Intel i7 with Intel 630 graphics
GPU: Nvidia GTX 1070
Optimus: Always enabled (no bios option that I can see).
The only BIOS setting I changed was enabling VT-d
Kernel is up to date and is default.
I use systemd with microcodes enabled.
xorg.conf exists in /etc/X11 and is default generated. only generated from running nvidia-xconfig!
I have one entry in xorg,conf.d for the Intel graphics as follows:
Section "Device"
Identifier "Intel Graphics"
Driver "modesetting"
Option "TearFree" "true"
EndSection
When testing Bumblebee, I get this output:
[root@asgard thor]# optirun glxgears -info
[ 167.257531] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.
[ 167.257531] [ERROR]Aborting because fallback start is disabled.
"Lspci -v -s 00:02.0" output (Intel Graphics):
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev04) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 11de
Flags: bus master, fast devsel, latency 0, IRQ 134
Memory at dd000000 (64-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [40]Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915
"Lspci -v -s 01:00.0" output (Nvidia graphics)
01:00.0 VGA compatible controller: NVIDIA Corporation GP104M[GeForce GTX 1070 Mobile] (rev a1) (prog-if 00 VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] GP104M [GeForce GTX 1070 Mobile]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at de000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at df000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [258] L1 PM Substates
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] #19
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
Any ideas?
Thanks
Last edited by CLFAS (2018-04-08 20:03:42)
Apples?
Offline
nvidia-xconfig is only slightly better than xorg --configure .
If you remove xf86-video-intel X will automatically use modesetting for the intel card.
remove all xorg conf files, reboot to multi-user.target (check systemd wiki page) .
Then run startx and post log .
It will likely fail, but we need the info from X pov.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
OK, so I removed the intel conf file since it's not required.
I set multi-user.target as the default target.
I deleted xorg.conf
Looks like a permission issue, just figuring out what needs chmod changes...
[ 143.782]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[ 143.786] X Protocol Version 11, Revision 0
[ 143.787] Build Operating System: Linux 4.14.12-1-ARCH x86_64
[ 143.788] Current Operating System: Linux asgard 4.15.15-1-ARCH #1 SMP PREEMPT Sat Mar 31 23:59:25 UTC 2018 x86_64
[ 143.788] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=3492616f-63e3-432c-8cf0-326d6fdc39a7
[ 143.791] Build Date: 26 January 2018 10:25:18AM
[ 143.792]
[ 143.793] Current version of pixman: 0.34.0
[ 143.795] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 143.795] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 143.800] (==) Log file: "/home/thor/.local/share/xorg/Xorg.0.log", Time: Sun Apr 8 18:58:05 2018
[ 143.801] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 143.802] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 143.802] (==) No Layout section. Using the first Screen section.
[ 143.802] (==) No screen section available. Using defaults.
[ 143.802] (**) |-->Screen "Default Screen Section" (0)
[ 143.802] (**) | |-->Monitor "<default monitor>"
[ 143.802] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 143.802] (**) | |-->Device "Nvidia Card"
[ 143.802] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 143.802] (==) Automatically adding devices
[ 143.803] (==) Automatically enabling devices
[ 143.803] (==) Automatically adding GPU devices
[ 143.803] (==) Automatically binding GPU devices
[ 143.803] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 143.803] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 143.803] Entry deleted from font path.
[ 143.803] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 143.803] Entry deleted from font path.
[ 143.803] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 143.803] Entry deleted from font path.
[ 143.803] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 143.803] Entry deleted from font path.
[ 143.803] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[ 143.803] Entry deleted from font path.
[ 143.803] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 143.803] Entry deleted from font path.
[ 143.803] (==) FontPath set to:
[ 143.803] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 143.803] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 143.803] (II) Loader magic: 0x55dd3d8aad60
[ 143.803] (II) Module ABI versions:
[ 143.803] X.Org ANSI C Emulation: 0.4
[ 143.803] X.Org Video Driver: 23.0
[ 143.803] X.Org XInput driver : 24.1
[ 143.803] X.Org Server Extension : 10.0
[ 143.803] (++) using VT number 1
[ 143.804] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 143.805] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 143.805] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[ 143.806] (--) PCI:*(0:0:2:0) 8086:591b:1462:11de rev 4, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[ 143.806] (--) PCI: (0:1:0:0) 10de:1ba1:1462:11de rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 143.806] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 143.806] (II) LoadModule: "glx"
[ 143.806] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 143.807] (II) Module glx: vendor="X.Org Foundation"
[ 143.807] compiled for 1.19.6, module version = 1.0.0
[ 143.807] ABI class: X.Org Server Extension, version 10.0
[ 143.807] (II) LoadModule: "nvidia"
[ 143.807] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 143.807] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 143.807] compiled for 4.0.2, module version = 1.0.0
[ 143.807] Module class: X.Org Video Driver
[ 143.807] (II) NVIDIA dlloader X Driver 390.48 Wed Mar 21 23:18:15 PDT 2018
[ 143.807] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 143.807] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 143.807] (EE) No devices detected.
[ 143.807] (EE)
Fatal server error:
[ 143.807] (EE) no screens found(EE)
[ 143.807] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 143.807] (EE) Please also check the log file at "/home/thor/.local/share/xorg/Xorg.0.log" for additional information.
[ 143.807] (EE)
[ 143.815] (EE) Server terminated with error (1). Closing log file.
Last edited by CLFAS (2018-04-08 17:15:28)
Apples?
Offline
[ 143.806] (--) PCI:*(0:0:2:0) 8086:591b:1462:11de rev 4, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[ 143.806] (--) PCI: (0:1:0:0) 10de:1ba1:1462:11de rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
That shows X sees 2 videocards and the one at PCI address 0:0:2:0 is set as default
You can verify which card that is by checking lspci output, my money is on it being the intel card.
[ 143.802] (**) | |-->Device "Nvidia Card"
Looks like some config file tells X there's an nvidia card but doesn't mention the intel card.
Which nvidia driver are you using ?
Search etc/X11/xorg.conf.d and /usr/share/X11/xorg.conf.d for a file with device nvidia card in it, then post its contents.
Last edited by Lone_Wolf (2018-04-08 17:28:56)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
OK so I ran "chmod u+s /etc/X11/xinit/" and x server successfully starts.
Now when I run "Xorg :0 -configure", I get the same log as OP.
Now when I run "optirun glxgears -info" I get:
[ 32.630675] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 32.630967] [ERROR]Could not connect to bumblebee daemon - is it running?
I have already enabled the service as explained in the wiki. I tried starting it manually after boot then trying to retest, but got the same error as in OP.
Apples?
Offline
Driver I am using is nvidia 390.48-3. Lspci says that the Nvidia card is using the nvidia driver.
0:0:2:0 is the Intel card as shown in OP.
/etc/X11/xorg.conf.d is empty of any configs.
/usr/share/X11/xorg.conf.d had one file with relevant info:
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
Last edited by CLFAS (2018-04-08 17:51:14)
Apples?
Offline
*UPDATE*
I manually set the BusID for bumblebee in /etc/bumblebee/xorg.conf.nvidia to PCI:01:00:0 and now the daemon starts correctly.
Output of "optirun glxgears -info" is:
Error: couldn't open display (null)
"optirun glxgears -info" successfully runs
Output of "Xorg :0 -configure" is still same as OP. I'm unsure why.
Last edited by CLFAS (2018-04-08 19:47:38)
Apples?
Offline
Even if Xorg -configure did work it wouldn't fix any issue, but it is broken since a few years because it is completely unnecessary. It potentially got "accidentally" broken, but it will not ever fix anything if automatic detection would already be failing.
If you don't have an issue anymore other than that, please mark your topic as [SOLVED]
Offline
Even if Xorg -configure did work it wouldn't fix any issue, but it is broken since a few years because it is completely unnecessary. It potentially got "accidentally" broken, but it will not ever fix anything if automatic detection would already be failing.
Noted.
Thanks for the help!
Apples?
Offline
I have the same hardware as you do. I've been using nvidia-xrun because none of the optimus solutions resulted in good performance for me. Are you satisfied with the results? (in terms of performance?)
Offline