<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - RX580: screen turns black or flickers until forced reconfiguration"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110217">110217</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>RX580: screen turns black or flickers until forced reconfiguration
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/AMDgpu
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>numzer0@yandex.ru
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=143754" name="attach_143754" title="dmesg output">attachment 143754</a> <a href="attachment.cgi?id=143754&action=edit" title="dmesg output">[details]</a></span>
dmesg output

I have a Radeon RX560 and VGA monitor (with broken EDID) connected via a cheap
HDMI-to-VGA converter (with its own broken EDID).

The system starts up normally. During boot up, it should change display
resolution as specified in the kernel command line (`video=1280x1024-32@75`,
monitor native). Screen turns black instead, and resolution remains unchanged.
But after I plug HDMI out and in, the monitor gets new resolution and shows
console login prompt, as expected. (X isn’t configured to start at bootup).

Then, when I `startx`, it chooses the same resolution but wrong frequency (85
Hz, too much for my monitor). That’s probably due to converter supplying the
EDID. After I run `xrandr --rate 75`, it switches to the correct mode.

I wouldn’t even mention such small nuisance, but if I specify exactly the same
mode (as reported by `xrandr --verbose`) explicitly (as a `Modeline`), it works
but flickers, despite the `TearFree` option enabled. Moreover, when the monitor
is turned off and then on, it wakes up in the same mode *but flickers.*
Changing mode back and forth (`xrandr --output HDMI-A-0 --preferred ; xrandr
--rate 75`) helps.

I usually have `compton` running. Without it, flicker is tolerable but still
present.

OS: Arch Linux
Kernel: Linux 5.0.1-arch1-1-ARCH
X driver: xf86-video-amdgpu 19.0.0-1</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>