[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Puzzle: Failed to set DRM interface
From:       alex lupu <alupu01 () gmail ! com>
Date:       2016-01-11 18:57:01
Message-ID: CAK2d1OaBNejfNmP4sK8-BHX_+B7oYJcV-2L059J4MJLAp6VOWA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

SYSTEM
Linux BLFS, kernel 4.2.6, i686, 32-bit, Udev, NON-systemd
Motherboard: "ASUS P8H77-I" (with intel H77) and intel i7-3770
Xorg 7.7+, Server 1.18.0, evdev-2.10.1, intel-2.99.917,
libdrm-2.4.66

GENERAL
Typical system usage:  Boot to level3 ("console" mode).  Work.
Go to level5 ("graphical") over Xorg.  Work (browse, etc.).  Back to level3.
(repeat 3 -> 5 -> 3, as many times as necessary)

PROBLEM/PUZZLE/QUESTION
1.  On first Xorg/Server run:
Two EEs
[   154.428] (II) config/udev: Adding drm device (/dev/dri/card0)
[   154.428] (II) xfree86: Adding drm device (/dev/dri/card0)
[   154.428] (EE) /dev/dri/card0: failed to set DRM interface version 1.4:
 Permission denied

[   154.491] (II) config/udev: removing GPU device
 /sys/devices/pci0000:00/0000:00:02.0/drm/card0 /dev/dri/card0
[   154.491] (II) config/udev: Adding drm device (/dev/dri/card0)
[   154.491] (II) xfree86: Adding drm device (/dev/dri/card0)
[   154.491] (EE) /dev/dri/card0: failed to set DRM interface version 1.4:
 Permission denied

No /dev/dri/card0

2.  On the next (and following Xorg/server) run:
No EEs
[   724.630] (II) xfree86: Adding drm device (/dev/dri/card0)

crw-rw---- 1 root video 226, 0 2016-01-11 11:08 /dev/dri/card0

3.  I suppose the card0 node is created by server's
'hw/xfree86/os-support/linux/lnx_platform.c'
on first invocation.

4.  Questions:
4.1.  If possible, any advantages in forcing Udev to create card0 node
on system boot-up (i.e., before I start Xorg)?

4.2.  Aren't the first two "EEs" in the log somehow misleading, as long as
the server can (and apparently expects to) create the card0 node itself?

4.3.  Speaking of "Permission denied",
I invoke Xorg from an unprivileged account, group "video".

5.  If any other details are needed:  ready, willing & able to provide.

Thanks for any thoughts/help on this,
-- Alex

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_default" style=""><div class="gmail_default" \
style="">Hello,</div><div class="gmail_default" style=""><br></div><div \
class="gmail_default" style="">SYSTEM</div><div class="gmail_default" style="">Linux \
BLFS, kernel 4.2.6, i686, 32-bit, Udev, NON-systemd</div><div class="gmail_default" \
style="">Motherboard: &quot;ASUS P8H77-I&quot; (with intel H77) and intel \
i7-3770</div><div class="gmail_default" style="">Xorg 7.7+, Server 1.18.0, \
evdev-2.10.1, intel-2.99.917,</div><div class="gmail_default" \
style="">libdrm-2.4.66</div><div class="gmail_default" style=""><br></div><div \
class="gmail_default" style="">GENERAL</div><div class="gmail_default" \
style="">Typical system usage:   Boot to level3 (&quot;console&quot; mode).   \
Work.</div><div class="gmail_default" style="">Go to level5 (&quot;graphical&quot;) \
over Xorg.   Work (browse, etc.).   Back to level3.</div><div class="gmail_default" \
style="">(repeat 3 -&gt; 5 -&gt; 3, as many times as necessary)</div><div \
class="gmail_default" style=""><br></div><div class="gmail_default" \
style="">PROBLEM/PUZZLE/QUESTION</div><div class="gmail_default" style="">1.   On \
first Xorg/Server run:<br></div><div class="gmail_default" style="">Two EEs</div><div \
class="gmail_default" style="">[    154.428] (II) config/udev: Adding drm device \
(/dev/dri/card0)</div><div class="gmail_default" style="">[    154.428] (II) xfree86: \
Adding drm device (/dev/dri/card0)</div><div class="gmail_default" style="">[    \
154.428] (EE) /dev/dri/card0: failed to set DRM interface version 1.4:</div><div \
class="gmail_default" style="">  Permission denied</div><div class="gmail_default" \
style=""><br></div><div class="gmail_default" style="">[    154.491] (II) \
config/udev: removing GPU device</div><div class="gmail_default" style="">  \
/sys/devices/pci0000:00/0000:00:02.0/drm/card0 /dev/dri/card0</div><div \
class="gmail_default" style="">[    154.491] (II) config/udev: Adding drm device \
(/dev/dri/card0)</div><div class="gmail_default" style="">[    154.491] (II) xfree86: \
Adding drm device (/dev/dri/card0)</div><div class="gmail_default" style="">[    \
154.491] (EE) /dev/dri/card0: failed to set DRM interface version 1.4:</div><div \
class="gmail_default" style="">  Permission denied</div><div class="gmail_default" \
style=""><br></div><div class="gmail_default" style="">No /dev/dri/card0</div><div \
class="gmail_default" style=""><br></div><div class="gmail_default" style="">2.   On \
the next (and following Xorg/server) run:</div><div class="gmail_default" style="">No \
EEs</div><div class="gmail_default" style="">[    724.630] (II) xfree86: Adding drm \
device (/dev/dri/card0)</div><div style=""><div style=""><br></div><div \
style="">crw-rw---- 1 root video 226, 0 2016-01-11 11:08 /dev/dri/card0</div><div \
style=""><br></div><div style="">3.   I suppose the card0 node is created by \
server&#39;s</div><div \
style="">&#39;hw/xfree86/os-support/linux/lnx_platform.c&#39;</div><div style="">on \
first invocation.</div><div style=""><br></div><div style="">4.   \
Questions:</div><div style="">4.1.   If possible, any advantages in forcing Udev to \
create card0 node</div><div style="">on system boot-up (i.e., before I start \
Xorg)?</div><div style=""><br></div><div style="">4.2.   Aren&#39;t the first two \
&quot;EEs&quot; in the log somehow misleading, as long as</div><div style="">the \
server can (and apparently expects to) create the card0 node itself?</div><div \
style=""><br></div><div style="">4.3.   Speaking of &quot;Permission \
denied&quot;,</div><div style="">I invoke Xorg from an unprivileged account, group \
&quot;video&quot;.</div><div style=""><br></div><div style="">5.   If any other \
details are needed:   ready, willing &amp; able to provide.</div><div \
style=""><br></div><div style="">Thanks for any thoughts/help on this,</div><div \
style="">-- Alex</div><div style="font-size:small"><br></div></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic