[systemd-devel] Starting Display Managers

2012-08-21 Thread Alexander E. Patrakov
Hello. Several days ago I stumbled upon an interesting race condition (which is not a bug in systemd) that I want to share now. To reproduce: install lxdm, and the following (buggy) unit to start lxdm on boot: [Unit] Description=LXDE Display Manager [Service] ExecStart=/usr/sbin/lxdm # After

Re: [systemd-devel] Starting Display Managers

2012-08-21 Thread Tomasz Torcz
On Tue, Aug 21, 2012 at 11:09:10AM +0600, Alexander E. Patrakov wrote: If the user has a graphics card supported by open-source DRI-based drivers with mandatory KMS, then /dev/dri/card0 (or maybe card1 in dual-gfx setups) is needed. And for Radeon TURKS cards, this only appears after loading

Re: [systemd-devel] Starting Display Managers

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 11:09, Alexander E. Patrakov (patra...@gmail.com) wrote: The question is: how does one write this dependency information, so that lxdm is not attempted to be started before udev creates the necessary device node? Yes, I understand that GPU hotplug in Xorg is the real answer,