<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 03/15/14 04:34,
      <a class="moz-txt-link-abbreviated" href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:1394872463.73018.YahooMailNeo@web125503.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:8pt">here is a simple test
        case that reproduces the issue on my machine:<br>
        dagg@NCC-5001-D ~/workspace $ cat open_example.c<br>
        #include <unistd.h><br>
        #include <fcntl.h><br>
        #include <stdio.h><br>
        #include <errno.h><br>
        #include <string.h><br>
         <br>
        int main()<br>
        {<br>
                char *param1 = "ok";<br>
                char *param2 = ".";<br>
                int filedesc = open("/dev/dri/card1", O_RDWR, 0);<br>
                if (filedesc) {<br>
                        param1 = "ERROR: ";<br>
                        param2 = strerror(errno);<br>
                }<br>
                printf("fd = %d, status = %s%s\n", filedesc, param1,
        param2);<br>
                close(filedesc);<br>
        <br>
                return 0;<br>
        }dagg@NCC-5001-D ~/workspace $ gcc open_example.c -o
        open_example && ./open_example <br>
        fd = -1, status = ERROR: Invalid argument<br>
        <div style="display: block;" class="yahoo_quoted"> <br>
          <br>
          <div style="font-family: HelveticaNeue, Helvetica Neue,
            Helvetica, Arial, Lucida Grande, sans-serif; font-size:
            8pt;">
            <div style="font-family: HelveticaNeue, Helvetica Neue,
              Helvetica, Arial, Lucida Grande, sans-serif; font-size:
              12pt;">
              <div dir="ltr"> <font face="Arial" size="2"> On Friday,
                  March 14, 2014 4:22 PM, <a class="moz-txt-link-rfc2396E" href="mailto:StompDagger1@yahoo.com">"StompDagger1@yahoo.com"</a>
                  <a class="moz-txt-link-rfc2396E" href="mailto:stompdagger1@yahoo.com"><stompdagger1@yahoo.com></a> wrote:<br>
                </font> </div>
              <div class="y_msg_container">
                <div id="yiv7112258221">
                  <div>
                    <div
                      style="color:#000;background-color:#fff;font-family:HelveticaNeue,
                      Helvetica Neue, Helvetica, Arial, Lucida Grande,
                      sans-serif;font-size:8pt;">
                      <div class="yiv7112258221yahoo_quoted"
                        style="display:block;"><font face="Arial"
                          size="2">On Tuesday, March 11, 2014 8:45 AM,
                          <a class="moz-txt-link-rfc2396E" href="mailto:StompDagger1@yahoo.com">"StompDagger1@yahoo.com"</a>
                          <a class="moz-txt-link-rfc2396E" href="mailto:stompdagger1@yahoo.com"><stompdagger1@yahoo.com></a> wrote:<br
                            clear="none">
                        </font>
                        <div style="font-family:HelveticaNeue, Helvetica
                          Neue, Helvetica, Arial, Lucida Grande,
                          sans-serif;font-size:8pt;">
                          <div style="font-family:HelveticaNeue,
                            Helvetica Neue, Helvetica, Arial, Lucida
                            Grande, sans-serif;font-size:12pt;">
                            <div class="yiv7112258221y_msg_container">
                              <div class="yiv7112258221yqt4047487418"
                                id="yiv7112258221yqt30079">
                                <div id="yiv7112258221">
                                  <div>
                                    <div
                                      style="color:#000;background-color:#fff;font-family:HelveticaNeue,
                                      Helvetica Neue, Helvetica, Arial,
                                      Lucida Grande,
                                      sans-serif;font-size:8pt;">
                                      <div
                                        class="yiv7112258221yqt6353500749"
                                        id="yiv7112258221yqtfd77593">
                                        <div
                                          class="yiv7112258221yahoo_quoted"
                                          style="display:block;"><font
                                            face="Arial" size="2">>On
                                            Tuesday, March 11, 2014 5:16
                                            AM, Michel Dänzer
                                            <a class="moz-txt-link-rfc2396E" href="mailto:michel@daenzer.net"><michel@daenzer.net></a>
                                            wrote:<br clear="none">
                                          </font>
                                          <div
                                            style="font-family:HelveticaNeue,
                                            Helvetica Neue, Helvetica,
                                            Arial, Lucida Grande,
                                            sans-serif;font-size:8pt;">
                                            <div
                                              style="font-family:HelveticaNeue,
                                              Helvetica Neue, Helvetica,
                                              Arial, Lucida Grande,
                                              sans-serif;font-size:12pt;">
                                              <div
                                                class="yiv7112258221y_msg_container">>On
                                                Mon, 2014-03-10 at 08:23
                                                -0700, <a
                                                  moz-do-not-send="true"
                                                  rel="nofollow"
                                                  shape="rect"
                                                  ymailto="mailto:StompDagger1@yahoo.com"
                                                  target="_blank"
                                                  href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a>
                                                wrote:
                                                <div
                                                  class="yiv7112258221yqt6550552023"
id="yiv7112258221yqtfd90884">><br clear="none">
                                                  >> <br
                                                    clear="none">
                                                  >> <br
                                                    clear="none">
                                                  >> >On
                                                  Monday, March 10, 2014
                                                  5:58 AM, Michel Dänzer
                                                  <<a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    ymailto="mailto:michel@daenzer.net"
                                                    target="_blank"
                                                    href="mailto:michel@daenzer.net">michel@daenzer.net</a>><br
                                                    clear="none">
                                                  >> wrote:<br
                                                    clear="none">
                                                  >> <br
                                                    clear="none">
                                                  >> >On Sam,
                                                  2014-03-08 at 11:41
                                                  -0800, <a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    ymailto="mailto:StompDagger1@yahoo.com"
                                                    target="_blank"
                                                    href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a>
                                                  wrote:<br clear="none">
                                                  >> ><br
                                                    clear="none">
                                                  >> >>
                                                  >On Sat, Mar 8,
                                                  2014 at 2:56 AM, <a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    ymailto="mailto:StompDagger1@yahoo.com"
                                                    target="_blank"
                                                    href="mailto:StompDagger1@yahoo.com">StompDagger1@yahoo.com</a><br
                                                    clear="none">
                                                  >> >> ><br
                                                    clear="none">
                                                  >> >>
                                                  >> [    51.829]
                                                  (EE) RADEON(0): [drm]
                                                  Failed to open DRM
                                                  device for<br
                                                    clear="none">
                                                  >> >>
                                                  >>
                                                  pci:0000:06:00.0: No
                                                  such file or directory<br
                                                    clear="none">
                                                  >> ><br
                                                    clear="none">
                                                  >> >'No such
                                                  file or directory'
                                                  sounds like something
                                                  is deleting<br
                                                    clear="none">
                                                  >> >your
                                                  /dev/dri/card* files,
                                                  or not creating them
                                                  in the first place.<br
                                                    clear="none">
                                                  >> >Maybe
                                                  check your udev setup.<br
                                                    clear="none">
                                                  >> ><br
                                                    clear="none">
                                                  >> >If it
                                                  only happens with a
                                                  3.13 kernel but not
                                                  with a 3.12 one,<br
                                                    clear="none">
                                                  >> another<br
                                                    clear="none">
                                                  >> >option is
                                                  to bisect the kernel.<br
                                                    clear="none">
                                                  .> <br
                                                    clear="none">
                                                  .> Greetings
                                                  Michel,<br
                                                    clear="none">
                                                  .> <br
                                                    clear="none">
                                                  .> dri node do
                                                  exists, see:<br
                                                    clear="none">
                                                  >> <a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    ymailto="mailto:dagg@NCC-5001-D"
                                                    target="_blank"
                                                    href="mailto:dagg@NCC-5001-D">dagg@NCC-5001-D</a>
                                                  ~ $ ll /dev/dri<br
                                                    clear="none">
                                                  >> total 0<br
                                                    clear="none">
                                                  >> crw-rw----+ 1
                                                  root video 226,  0 Mar
                                                  10 09:27 card0<br
                                                    clear="none">
                                                  >> crw-rw----+ 1
                                                  root video 226,  1 Mar
                                                  10 09:27 card1<br
                                                    clear="none">
                                                  >> crw-rw----+ 1
                                                  root video 226,  2 Mar
                                                  10 09:27 card2<br
                                                    clear="none">
                                                  >> crw-rw----  1
                                                  root video 226, 64 Mar
                                                  10 09:27 controlD64<br
                                                    clear="none">
                                                  >> crw-rw----  1
                                                  root video 226, 65 Mar
                                                  10 09:27 controlD65<br
                                                    clear="none">
                                                  >> crw-rw----  1
                                                  root video 226, 66 Mar
                                                  10 09:27 controlD66<br
                                                    clear="none">
                                                  >> <br
                                                    clear="none">
                                                  >> I think that
                                                  the way to find the
                                                  cause on my part is to
                                                  check the<br
                                                    clear="none">
                                                  >> origin of
                                                  that msg in Xorg.log.<br
                                                    clear="none">
                                                  >> <br
                                                    clear="none">
                                                  >> is that a
                                                  xserver msg or
                                                  xf86-video-ati msg?</div>
                                                ><br clear="none">
                                                ><br clear="none">
                                                >The message is from
                                                the radeon driver, but
                                                it's because drmOpen()
                                                in<br clear="none">
                                                >libdrm fails. It
                                                would indeed be
                                                interesting to track
                                                down where the 'No<br
                                                  clear="none">
                                                >such file or
                                                directory' error
                                                originates from.<br
                                                  clear="none">
                                                <br clear="none">
                                                will do, when I'll have
                                                more info, I'll update.<br
                                                  clear="none">
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <br clear="none">
                              Greetings Michel,<br clear="none">
                              <br clear="none">
                              I've tried to track the source if that
                              error, I've enabled dbg prints in libdrm
                              and found this:<br clear="none">
                              (II) [KMS] Kernel modesetting enabled.<br
                                clear="none">
                              drmOpenDevice: node name is /dev/dri/card0<br
                                clear="none">
                              drmOpenDevice: open result is 11, (OK)<br
                                clear="none">
                              drmOpenByBusid: Searching for BusID
                              pci:0000:06:00.0<br clear="none">
                              drmOpenDevice: node name is /dev/dri/card0<br
                                clear="none">
                              drmOpenDevice: open result is 11, (OK)<br
                                clear="none">
                              drmOpenByBusid: drmOpenMinor returns 11<br
                                clear="none">
                              drmOpenByBusid: drmGetBusid reports
                              pci:0000:00:02.0<br clear="none">
                              drmOpenDevice: node name is /dev/dri/card1<br
                                clear="none">
                              drmOpenDevice: open result is -1, (Invalid
                              argument)<br clear="none">
                              drmOpenByBusid: drmOpenMinor returns -22<br
                                clear="none">
                              drmOpenDevice: node name is /dev/dri/card2<br
                                clear="none">
                              drmOpenDevice: open result is -1, (Invalid
                              argument)<br clear="none">
                              <br clear="none">
                              looking in the code I see this:<br
                                clear="none">
                                  fd = open(buf, O_RDWR, 0);<br
                                clear="none">
                                  drmMsg("drmOpenDevice: open result is
                              %d, (%s)\n",<br clear="none">
                                              fd, fd < 0 ?
                              strerror(errno) : "OK");<br clear="none">
                                  if (fd >= 0)<br clear="none">
                                      return fd;<br clear="none">
                              <br clear="none">
                              I think that the issue might be that the
                              file cannot be opened for that mode as the
                              path is printed above and it is ok.<br
                                clear="none">
                              <br clear="none">
                              any ideas what might it be?<br
                                clear="none">
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    I had a similar problem over the last weeks using kernel 3.13.x  Not
    sure it happened before with older kernels.<br>
    I am using a "from scratch" distro.  It's using systemd and
    glibc-2.19, with relatively recent Xorg and Mesa development.<br>
    I have a Radeon 4870.  I don't think it's the video card.<br>
    Tentatively what happens is I lose the /dev/dri/card0 and the
    display goes black.  I get "no usable screens found" in the
    Xorg.0.log file. <br>
    Anyway what seems to be causing the problem is If I leave a music CD
    in the CD drive, upon booting, timing issues or something cause the
    dri/card0 device to go away.   There are a lot of messages in the
    kernel log, where it's  trying to find out about the music CD.<br>
    X seems to come up fine with no music CD in the drive.<br>
    <br>
    Fred<br>
    <br>
    <br>
    <blockquote
      cite="mid:1394872463.73018.YahooMailNeo@web125503.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:8pt">
        <div style="display: block;" class="yahoo_quoted">
          <div style="font-family: HelveticaNeue, Helvetica Neue,
            Helvetica, Arial, Lucida Grande, sans-serif; font-size:
            8pt;">
            <div style="font-family: HelveticaNeue, Helvetica Neue,
              Helvetica, Arial, Lucida Grande, sans-serif; font-size:
              12pt;">
              <div class="y_msg_container">
                <div class="yqt4047487418" id="yqt97083">_______________________________________________<br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    ymailto="mailto:xorg@lists.x.org"
                    href="mailto:xorg@lists.x.org">xorg@lists.x.org</a>:
                  X.Org support<br clear="none">
                  Archives: <a moz-do-not-send="true" shape="rect"
                    href="http://lists.freedesktop.org/archives/xorg"
                    target="_blank">http://lists.freedesktop.org/archives/xorg</a><br
                    clear="none">
                  Info: <a moz-do-not-send="true" shape="rect"
                    href="http://lists.x.org/mailman/listinfo/xorg"
                    target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br
                    clear="none">
                  Your subscription address: %(user_address)s</div>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:xorg@lists.x.org">xorg@lists.x.org</a>: X.Org support
Archives: <a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/archives/xorg">http://lists.freedesktop.org/archives/xorg</a>
Info: <a class="moz-txt-link-freetext" href="http://lists.x.org/mailman/listinfo/xorg">http://lists.x.org/mailman/listinfo/xorg</a>
Your subscription address: %(user_address)s</pre>
    </blockquote>
    <br>
  </body>
</html>