You are not logged in.

#1 2013-05-19 19:32:59

FathisAeril
Member
Registered: 2010-07-02
Posts: 82

Race condition between systemd, kdm, and X?

For about a week now, occasionally when I boot I get dumped at a black screen and a blinking cursor. If I switch to a VT, I can log in. Querying the status of kdm I get...

-- Logs begin at Mon 2013-05-13 20:08:13 EDT, end at Fri 2013-05-17 17:52:45 EDT. --
May 17 17:51:44 eric-laptop kdm[309]: X server died during startup
May 17 17:51:44 eric-laptop kdm[309]: X server for display :0 cannot be started, session disabled

And the output of /var/log/Xorg.0.log..

[     2.740] 
X.Org X Server 1.14.1
Release Date: 2013-04-17
[     2.740] X Protocol Version 11, Revision 0
[     2.740] Build Operating System: Linux 3.8.7-1-ARCH x86_64 
[     2.740] Current Operating System: Linux eric-laptop 3.10.0-1-mainline-dellxps #1 SMP PREEMPT Thu May 16 19:19:53 EDT 2013 x86_64
[     2.740] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-mainline-dellxps root=UUID=0b078552-caf1-4674-932c-c71055c6a280 ro pcie_aspm=force elevator=deadline
[     2.740] Build Date: 17 April 2013  02:37:06PM
[     2.740]  
[     2.740] Current version of pixman: 0.30.0
[     2.740] 	Before reporting problems, check [url]http://wiki.x.org[/url]
	to make sure that you have the latest version.
[     2.740] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     2.740] (==) Log file: "/var/log/Xorg.0.log", Time: Fri May 17 17:51:44 2013
[     2.744] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     2.744] (==) No Layout section.  Using the first Screen section.
[     2.744] (==) No screen section available. Using defaults.
[     2.744] (**) |-->Screen "Default Screen Section" (0)
[     2.744] (**) |   |-->Monitor "<default monitor>"
[     2.744] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     2.745] (==) Automatically adding devices
[     2.745] (==) Automatically enabling devices
[     2.745] (==) Automatically adding GPU devices
[     2.753] (==) 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/
[     2.753] (==) ModulePath set to "/usr/lib/xorg/modules"
[     2.753] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     2.753] (II) Loader magic: 0x7fcc20
[     2.753] (II) Module ABI versions:
[     2.753] 	X.Org ANSI C Emulation: 0.4
[     2.753] 	X.Org Video Driver: 14.1
[     2.753] 	X.Org XInput driver : 19.1
[     2.753] 	X.Org Server Extension : 7.0
[     2.754] (II) config/udev: Adding drm device (/dev/dri/card0)
[     2.754] setversion 1.4 failed
[     2.758] (--) PCI:*(0:0:2:0) 8086:0116:1028:052e rev 9, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00002000/64
[     2.758] Initializing built-in extension Generic Event Extension
[     2.758] Initializing built-in extension SHAPE
[     2.758] Initializing built-in extension MIT-SHM
[     2.758] Initializing built-in extension XInputExtension
[     2.758] Initializing built-in extension XTEST
[     2.758] Initializing built-in extension BIG-REQUESTS
[     2.758] Initializing built-in extension SYNC
[     2.758] Initializing built-in extension XKEYBOARD
[     2.758] Initializing built-in extension XC-MISC
[     2.758] Initializing built-in extension SECURITY
[     2.758] Initializing built-in extension XINERAMA
[     2.758] Initializing built-in extension XFIXES
[     2.758] Initializing built-in extension RENDER
[     2.758] Initializing built-in extension RANDR
[     2.758] Initializing built-in extension COMPOSITE
[     2.758] Initializing built-in extension DAMAGE
[     2.758] Initializing built-in extension MIT-SCREEN-SAVER
[     2.759] Initializing built-in extension DOUBLE-BUFFER
[     2.759] Initializing built-in extension RECORD
[     2.759] Initializing built-in extension DPMS
[     2.759] Initializing built-in extension X-Resource
[     2.759] Initializing built-in extension XVideo
[     2.759] Initializing built-in extension XVideo-MotionCompensation
[     2.759] Initializing built-in extension XFree86-VidModeExtension
[     2.759] Initializing built-in extension XFree86-DGA
[     2.759] Initializing built-in extension XFree86-DRI
[     2.759] Initializing built-in extension DRI2
[     2.759] (II) LoadModule: "glx"
[     2.761] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     2.764] (II) Module glx: vendor="X.Org Foundation"
[     2.764] 	compiled for 1.14.1, module version = 1.0.0
[     2.764] 	ABI class: X.Org Server Extension, version 7.0
[     2.764] (==) AIGLX enabled
[     2.765] Loading extension GLX
[     2.765] (==) Matched intel as autoconfigured driver 0
[     2.765] (==) Matched vesa as autoconfigured driver 1
[     2.765] (==) Matched modesetting as autoconfigured driver 2
[     2.765] (==) Matched fbdev as autoconfigured driver 3
[     2.765] (==) Assigned the driver to the xf86ConfigLayout
[     2.765] (II) LoadModule: "intel"
[     2.766] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[     2.774] (II) Module intel: vendor="X.Org Foundation"
[     2.774] 	compiled for 1.14.0, module version = 2.21.6
[     2.774] 	Module class: X.Org Video Driver
[     2.774] 	ABI class: X.Org Video Driver, version 14.1
[     2.774] (II) LoadModule: "vesa"
[     2.774] (WW) Warning, couldn't open module vesa
[     2.774] (II) UnloadModule: "vesa"
[     2.774] (II) Unloading vesa
[     2.774] (EE) Failed to load module "vesa" (module does not exist, 0)
[     2.774] (II) LoadModule: "modesetting"
[     2.775] (WW) Warning, couldn't open module modesetting
[     2.775] (II) UnloadModule: "modesetting"
[     2.775] (II) Unloading modesetting
[     2.775] (EE) Failed to load module "modesetting" (module does not exist, 0)
[     2.775] (II) LoadModule: "fbdev"
[     2.775] (WW) Warning, couldn't open module fbdev
[     2.775] (II) UnloadModule: "fbdev"
[     2.775] (II) Unloading fbdev
[     2.775] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     2.775] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
	i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
	E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
	965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
	4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
	Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
	Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
	Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
	Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
	Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server,
	Ivybridge Server (GT2), Haswell Desktop (GT1), Haswell Desktop (GT2),
	Haswell Desktop (GT2+), Haswell Mobile (GT1), Haswell Mobile (GT2),
	Haswell Mobile (GT2+), Haswell Server (GT1), Haswell Server (GT2),
	Haswell Server (GT2+), Haswell SDV Desktop (GT1),
	Haswell SDV Desktop (GT2), Haswell SDV Desktop (GT2+),
	Haswell SDV Mobile (GT1), Haswell SDV Mobile (GT2),
	Haswell SDV Mobile (GT2+), Haswell SDV Server (GT1),
	Haswell SDV Server (GT2), Haswell SDV Server (GT2+),
	Haswell ULT Desktop (GT1), Haswell ULT Desktop (GT2),
	Haswell ULT Desktop (GT2+), Haswell ULT Mobile (GT1),
	Haswell ULT Mobile (GT2), Haswell ULT Mobile (GT2+),
	Haswell ULT Server (GT1), Haswell ULT Server (GT2),
	Haswell ULT Server (GT2+), Haswell CRW Desktop (GT1),
	Haswell CRW Desktop (GT2), Haswell CRW Desktop (GT2+),
	Haswell CRW Mobile (GT1), Haswell CRW Mobile (GT2),
	Haswell CRW Mobile (GT2+), Haswell CRW Server (GT1),
	Haswell CRW Server (GT2), Haswell CRW Server (GT2+),
	ValleyView PO board
[     2.777] (++) using VT number 7

[     2.974] (EE) No devices detected.
[     2.974] 
Fatal server error:
[     2.974] no screens found
[     2.974] (EE) 
Please consult the The X.Org Foundation support 
	 at [url]http://wiki.x.org[/url]
 for help. 
[     2.974] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     2.974] (EE) 

Top line of the Xorg log does say that I'm using a non-stock kernel, But this also happens with the stock kernel. Changing display manager to Lightdm does not fix the issue so its not a KDM issue.

The only thing I can think of at the moment is that udev isn't settling device enumerationg (Specifically my laptop screen) before X is trying to start and therefore thats why its saying no screens found, AND explains why it doesn't happen on every boot since udev does devices in a random order.

I'm open to ideas on how to fix this, or if thats even the issue and not something else. If it IS the issue at hand..is there any way to make udev finish enumeration before X tries to start? Or some other way to fix this? Like I said I'm to ideas, or even other causes, I just want whatever this issue is to be fixed.


It doesn't matter how much training you have. A broken rib is still a broken rib.

Offline

#2 2013-06-07 14:54:41

drewofdoom
Member
From: Waynesville, NC
Registered: 2008-02-08
Posts: 35
Website

Re: Race condition between systemd, kdm, and X?

I am having the exact same problem.

As a dirty workaround, perhaps we can add something into the startup process that takes a little bit (like profile-sync-daemon or similar) and make KDM depend on it with the AFTER flag?


Sweet zombie jesus!

Offline

#3 2013-06-08 01:56:08

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Race condition between systemd, kdm, and X?

If you boot to the command line, can you reliably start X then? I'm assuming that should work if your hypothesis is correct.

What's your kernel command line? What is the contents of /etc/modules-load.d/* and /etc/modules.conf?

Last edited by cfr (2013-06-08 01:59:27)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2013-06-15 02:54:41

drewofdoom
Member
From: Waynesville, NC
Registered: 2008-02-08
Posts: 35
Website

Re: Race condition between systemd, kdm, and X?

Works just fine with startx or with "systemctl restart slim"

Kernel:

GRUB_CMDLINE_LINUX_DEFAULT="quiet CONFIG_ACPI_PROC_EVENT=y elevator=bfq"

/etc/modules-load.d is empty and /etc/module.conf is non-existant


Sweet zombie jesus!

Offline

#5 2013-06-15 03:02:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Race condition between systemd, kdm, and X?

drewofdoom wrote:

Works just fine with startx or with "systemctl restart slim"

Kernel:

GRUB_CMDLINE_LINUX_DEFAULT="quiet CONFIG_ACPI_PROC_EVENT=y elevator=bfq"

/etc/modules-load.d is empty and /etc/module.conf is non-existant

This may not actually help you with your problem at hand, but I wanted to point out a couple things. First, the stuff in /etc/default/grub is probably not the best way to show what is on your kernel command line.  Instead you can find the kernel command line in its full glory at /proc/cmdline.  You can just 'cat' that if you want to just see whats in it.

The other thing is that CONFIG_ACPI_PROC_EVENT=y doesn't look like a kernel command line parameter to me.  I think that is a kernel config setting.  To see where this type of notation is used, do "zcat /proc/config.gz" and you'll see a whole crap load of lines like that.  Wherever you found that, the intention was not to put it in your grub.cfg, but rather put it in the config for a kernel compilation.  But I tried to grep that line from /proc/config.gz, and either that setting is gone from the kernel, or in teh standard Arch kernel, the required dependencies are not met to expose that option.

Offline

Board footer

Powered by FluxBB