<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 22/07/2020 23:48, James Abernathy
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANFv2Eki640=kequzqBidmfD8Pj2hGk9dJxCzj9U7ipjt4o3MQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Wed, Jul 22, 2020 at 6:33
            PM James Abernathy <<a
              href="mailto:jfabernathy@gmail.com" moz-do-not-send="true">jfabernathy@gmail.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div dir="ltr">I was helping someone on the forum with a
              mythtv light problem and discovered I now had it also.
              <div><br>
              </div>
              <div>I just installed a fresh Raspberry Pi OS with Desktop
                and did a full update and discovered that the kernel is
                now 5.4.51.</div>
              <div>I use MikeB's pi-utils that install v31 mythtv-light
                and setup the raspberry Pi for mythfrontend.  Always
                works until today.</div>
              <div><br>
              </div>
              <div>I've attached the console output, but the key
                difference now is that mythfrontend never starts and it
                seems to loop with the error message below until you
                kill it from ssh.</div>
              <div><br>
              </div>
              <div>Could not queue DRM page flip on screen HDMI1
                (Invalid argument)<br>
              </div>
              <div><br>
              </div>
              <div>Jim A</div>
            </div>
          </blockquote>
          <div>What seems to get around it is this:</div>
          <div><br>
          </div>
          <div>Get rid of the part referencing the json file:<br>
            <br>
            QT_QPA_EGLFS_KMS_CONFIG=/home/pi/pi_mythfrontend.json<br>
            and added the export:<br>
            <br>
            export QT_QPA_EGLFS_ALWAYS_SET_MODE="1"<br>
          </div>
          <div> </div>
          <div>Jim A<br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Jim,</p>
    <p><br>
    </p>
    <p>Thanks for the information about
      QT_QPA_EGLFS_ALWAYS_SET_MODE="1".</p>
    <p>Whilst your change will work for some configurations, the removal
      of QT_QPA_EGLFS_KMS_CONFIG=/home/pi/pi_mythfrontend.json causes
      other problems namely wrong screen configuration being used
      depending on capability of connected monitor/TV.</p>
    <p>I have updated both run_mythfrontend.sh and run_mythsetup.sh at
      <a class="moz-txt-link-freetext" href="https://github.com/MikeB2013/pi-utils">https://github.com/MikeB2013/pi-utils</a></p>
    <p>The change is to add QT_QPA_EGLFS_ALWAYS_SET_MODE="1". to the
      existing command line as appropriate.<br>
    </p>
    <p><br>
    </p>
    <p>Tested on Pi4 and Pi3</p>
    <p><br>
    </p>
    <p>Mike<br>
    </p>
  </body>
</html>