FS#43105 - [xorg-server] rootless X crash: failure to add dri device

Attached to Project: Arch Linux
Opened by holos (holomorph) - Saturday, 13 December 2014, 17:44 GMT
Last edited by Jan de Groot (JGC) - Thursday, 11 June 2015, 11:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Rootless X crashes when I open firefox. The first error in the log is

[ 7.448] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 7.948] (EE) systemd-logind: failed to take device /dev/dri/card1: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[ 7.948] (II) xfree86: Adding drm device (/dev/dri/card0)
<snip>
[ 8.796] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 8.797] (EE) systemd-logind: failed to take device /dev/dri/card1: Device already taken
[ 8.797] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied

card1 is the discrete card (ATI 6630M). card0 is intel, which is what's being used. This is an erratic crash, usually I can just restart X and things work fine.

Additional info:
* Xwrapper.config:
allowed_users = anybody
needs_root_rights = no
* xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection

Steps to reproduce:
1. login
2. startx
3. $ firefox
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 11 June 2015, 11:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.17.1-7.
Comment by Alexei Colin (alexei) - Saturday, 27 December 2014, 20:39 GMT
This might be a workaround: rebuild the xorg-server package without systemd-logind support. Get PKGBUILD from Arch package repo [1], edit the ./configure command in PKGBUILD file to say '--disable-systemd-logind' instead of '--enable-systemd-logind', and 'makepkg -si' as usual.

[1] https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/xorg-server
Comment by Jan de Groot (JGC) - Saturday, 27 December 2014, 20:55 GMT
Looks more like a timing issue which was fixed with latest version of dbus. Is thuis still an issue?
Comment by holos (holomorph) - Wednesday, 28 January 2015, 00:56 GMT
Unfortunately still an issue. I'll try the workaround

Loading...