You are not logged in.

#1 2016-04-25 22:01:10

nstgc
Member
Registered: 2014-03-17
Posts: 393

Xorg newer than 1.17.4 crashes when "startx" is run

I'm creating a new thread since my other one is somewhat old.

The last version of Xorg which works on my laptop was 1.17.4. Pretty much when I startx it crashes. I've been upgrading Xorg to whatever the most recent version is everytime either Xorg, or nVidia gets an update, however the results are always the same.

It had been suggested that this is related to https://bugs.archlinux.org/task/47151, however this bug has been fixed.

I checked permissions on xorg, and they are correct "-rwxr-xr-x".

Thinking that something wasn't installed that should have been I ran "echo $(pacman -Q |grep xorg | awk '{print $1}') >xorg-packages", copies it to my laptop and ran pacman -S $(cat xorg-packages) to install (and reinstall) the packages that are on my (working and up-to-date) desktop. This did not help. It may, however, indicate that I have way too many xorg packages install on my desktop and I need to slim that down, but that's for another day.

I do have the intel microcode installed and it is working

Relevant logs and output below followed by more information.

$lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5287 (rev 01)
04:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)

/var/log/Xorg.0.log

[   222.458] 
X.Org X Server 1.18.3
Release Date: 2016-04-04
[   222.459] X Protocol Version 11, Revision 0
[   222.460] Build Operating System: Linux 4.2.5-1-ARCH x86_64 
[   222.460] Current Operating System: Linux 4.5.1-1-ARCH #1 SMP PREEMPT Thu Apr 14 19:19:32 CEST 2016 x86_64
[   222.460] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=redacted
[   222.462] Build Date: 05 April 2016  05:24:02PM
[   222.463]  
[   222.463] Current version of pixman: 0.34.0
[   222.464] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   222.464] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   222.467] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 25 16:22:00 2016
[   222.467] (==) Using config file: "/etc/X11/xorg.conf"
[   222.468] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   222.468] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   222.468] (==) ServerLayout "Layout0"
[   222.468] (**) |-->Screen "Screen0" (0)
[   222.468] (**) |   |-->Monitor "Monitor0"
[   222.468] (**) |   |-->Device "Device0"
[   222.468] (**) |   |-->GPUDevice "Device0"
[   222.468] (**) |-->Input Device "Keyboard0"
[   222.468] (**) |-->Input Device "Mouse0"
[   222.468] (==) Automatically adding devices
[   222.468] (==) Automatically enabling devices
[   222.468] (==) Automatically adding GPU devices
[   222.468] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   222.468] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   222.468] 	Entry deleted from font path.
[   222.468] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   222.468] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   222.468] 	Entry deleted from font path.
[   222.468] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   222.468] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[   222.468] (==) ModulePath set to "/usr/lib/xorg/modules"
[   222.468] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   222.468] (WW) Disabling Keyboard0
[   222.468] (WW) Disabling Mouse0
[   222.468] (II) Loader magic: 0x819d20
[   222.468] (II) Module ABI versions:
[   222.468] 	X.Org ANSI C Emulation: 0.4
[   222.469] 	X.Org Video Driver: 20.0
[   222.469] 	X.Org XInput driver : 22.1
[   222.469] 	X.Org Server Extension : 9.0
[   222.469] (++) using VT number 1

[   222.469] (--) controlling tty is VT number 1, auto-enabling KeepTty
[   222.471] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   222.471] (II) xfree86: Adding drm device (/dev/dri/card1)
[   222.471] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 8 paused 0
[   222.471] (II) xfree86: Adding drm device (/dev/dri/card0)
[   222.472] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 9 paused 0
[   222.473] (--) PCI:*(0:0:2:0) 8086:0416:1558:3501 rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[   222.473] (--) PCI: (0:1:0:0) 10de:1392:1558:3501 rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   222.473] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   222.473] (II) LoadModule: "glx"
[   222.473] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   222.476] (II) Module glx: vendor="NVIDIA Corporation"
[   222.476] 	compiled for 4.0.2, module version = 1.0.0
[   222.476] 	Module class: X.Org Server Extension
[   222.476] (II) NVIDIA GLX Module  364.19  Tue Apr 19 14:10:52 PDT 2016
[   222.476] (II) LoadModule: "nvidia"
[   222.476] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   222.476] (II) Module nvidia: vendor="NVIDIA Corporation"
[   222.476] 	compiled for 4.0.2, module version = 1.0.0
[   222.476] 	Module class: X.Org Video Driver
[   222.476] (II) NVIDIA dlloader X Driver  364.19  Tue Apr 19 13:48:55 PDT 2016
[   222.476] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   222.476] (II) systemd-logind: releasing fd for 226:1
[   222.476] (EE) No devices detected.
[   222.477] (EE) 
Fatal server error:
[   222.477] (EE) no screens found(EE) 
[   222.477] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   222.477] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   222.477] (EE)

/etc/X11/xorg.conf
[edit] Deleting this file changes nothing. Also, while it was initially generated back in January, it was modified according to the Arch Wiki entry on Optimus. [/edit]

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 346.35  (buildmeister@swio-display-x86-rhel47-09)  Sat Jan 10 21:58:11 PST 2015

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

/etc/X11/xorg.conf.d/20-nvidia.conf

Section "Device"
	Identifier	"Nvidia Card"
	Driver	"nvidia"
	VendorName	"NVIDIA Corporation"
	option	"NoLogo" "true"
EndSection

According to my journal I'm getting the same results as https://bugs.archlinux.org/task/46724. However, in the comment, the bug reporter says it's a false alarm. This makes me think that in fact I may have something set up incorrectly and am just too stupid to figure out what it may be. In case it matters I installed my nvidia drivers with "pacman -S nvidia". Nothing fancy, and not using testing.

/etc/mkinitcpio.conf (edited out all the needless comments for readability)

#MODULES="crc32c-intel block btrfs bcache"

MODULES="crc32c-intel btrfs nvidia nvidia_modeset nvidia_uvm" 

BINARIES=""

FILES=""

HOOKS="base udev block autodetect modconf block encrypt filesystems keyboard"

#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS

#COMPRESSION_OPTIONS=""

Trying to follow along the KMS line of thought I looked into https://wiki.archlinux.org/index.php/NV … de_setting. The addition of "nvidia nvidia_modeset nvidia_uvm" in MODULES is new. However, the only change this made was that the Xorg error log now have "nvidia-drm.modeset=1" in the kernel line. I did, by the way, rebuild my initial image.

~/.xinit

#!/bin/sh

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# /usr/bin/xscreensaver -no-splash & # for screensaver/lock
exec gnome-session
# exec cinnamon-session
# exec startlxde
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

This has been a persistent issue for quite a while, and I can't just black list Xorg forever. In addition to being unsafe, something is eventually going to go wrong. In fact, I believe that I'm having some issues with a game controller as a result of Xorg being outdated, though I can't effectively test it. All I know is that it works on my desktop.

edit: I meant for this to be in the "Applications & DE" forum. I'd appreciate it if it was moved. If not, it's my own fault.

Last edited by nstgc (2016-04-25 22:36:54)

Offline

#2 2016-04-25 22:11:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,742

Re: Xorg newer than 1.17.4 crashes when "startx" is run

Remove the nvidia-xconfig generated Xorg.conf and try again. It shouldn't be used and will break if just used as is (and the version this was originally generated with is very old, likely a few changes in the 1.18 release regarding the identifiers, but again don't run nvidia-xconfig just to have run nvidia-xconfig, it hasn't been necessary for a working setup for years)

Last edited by V1del (2016-04-25 22:13:35)

Offline

#3 2016-04-25 22:33:58

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: Xorg newer than 1.17.4 crashes when "startx" is run

I generated the xorg.conf with nvidia-xconfig and then modified it according to https://wiki.archlinux.org/index.php/NV … figuration .

Also, I did try with and without it. The result is the same.

edit: When I say that the result was the same, I don't merely mean that they both failed. I mean that the error logs were the same.

Last edited by nstgc (2016-04-25 22:36:09)

Offline

#4 2016-04-25 23:33:48

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: Xorg newer than 1.17.4 crashes when "startx" is run

The following:

...
[   222.476] (II) NVIDIA dlloader X Driver  364.19  Tue Apr 19 13:48:55 PDT 2016
[   222.476] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   222.476] (II) systemd-logind: releasing fd for 226:1
[   222.476] (EE) No devices detected.
[   222.477] (EE) 
Fatal server error:
[   222.477] (EE) no screens found(EE) 
[   222.477] (EE) 
...

Makes me think your driver is to blame, in that the driver (or its settings) are wrong. Your xorg compatibility may also be wrong (wrong version of Xorg/related packages). I wish I had an Nvidia rig now because I often end up posting on Nvidia threads where I am of no use... I can't test anything Nvidia due to my AMD hardware. sad Anyhow, do consult the wiki and do what the arch wiki says where applicable. Read the warnings and all of the stuff in red/blue/green/yellow/whatever color boxes.

I hope you can find a solution soon!

EDIT: Try this: http://lmgtfy.com/?q=no+devices+found+linux+xorg+nvidia. The lmgtfy link is not meant to be offensive; I hate posting massive URL's.

Last edited by JohnBobSmith (2016-04-25 23:36:07)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#5 2016-04-26 07:38:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,742

Re: Xorg newer than 1.17.4 crashes when "startx" is run

What about using the modern method as detailed in https://wiki.archlinux.org/index.php/NV … ing_nvidia (with modesetting and AllowEmptyInitialConfiguration ) and the xorg.conf you posted doesn't contain any of the fixes mentioned in the alternative configuration, so I assumed you were just using the nvidia-xconfig as is (you didn't configure intel to not be active for example). Also can you post a Xorg log from a working configuration? I somewhat doubt you are purely using Nvidia in the working case, because as said, that Xorg.conf as posted shouldn't work.

Edit: going into your older thread I see a much different Xorg.conf, which one are you actually trying to use now?  I suppose the one in the older thread is the one you intend to use since it is modified. What happens if you modify that to only the modesetting and Nvidia with AllowEmptyInitialConfiguration (without defining the intel drivers at all?)

Last edited by V1del (2016-04-26 07:43:43)

Offline

Board footer

Powered by FluxBB