<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Black screen when detaching HDMI cable (AMD A10-9620P)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101499#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Black screen when detaching HDMI cable (AMD A10-9620P)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101499">bug 101499</a>
              from <span class="vcard"><a class="email" href="mailto:michel@daenzer.net" title="Michel Dänzer <michel@daenzer.net>"> <span class="fn">Michel Dänzer</span></a>
</span></b>
        <pre>(In reply to Carlo Caione from <a href="show_bug.cgi?id=101499#c10">comment #10</a>)
<span class="quote">> Probably I'm missing something, but when the HDMI is connected everything
> works fine, with the scanout buffer correctly displayed on the laptop panel
> + external monitor. The problem starts when we _disconnect_ the HDMI cable.</span >

At least some of the errors you referenced in <a href="show_bug.cgi?id=101499#c8">comment 8</a> already happen before
that. They're related to failed attempts at page flipping. xf86-video-amdgpu
manages to chug along regardless.

When you unplug the HDMI cable is presumably when

<span class="quote">> Jun 19 17:10:31 endless gdm-Xorg-:0[672]: (EE) AMDGPU(0): failed to set mode: Invalid argument</span >

appears, i.e. drmModeSetCrtc() fails, presumably (not 100% sure about this part
though) because the new, smaller scanout buffer cannot fit into VRAM while the
old, larger one is still being scanned out.

<span class="quote">> Also if it was a problem with VRAM being too small, why toggling the DPMS
> makes the laptop panel working fine again?</span >

Toggling DPMS off disables scanout, which allows the old scanout buffer to be
moved out of VRAM, so the new one can be moved in.


Some details might differ from the above, but that should be roughly what's
happening.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>