<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 - hdmi unplug not changing connector status"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101723">101723</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>hdmi unplug not changing connector status
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>aki.lemmetyinen@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=132558" name="attach_132558" title="Small patch to fix the problem">attachment 132558</a> <a href="attachment.cgi?id=132558&action=edit" title="Small patch to fix the problem">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=101723&attachment=132558'>[review]</a>
Small patch to fix the problem

I made a quick script for my HP Pavilion dv7 to automatically switch audio to
hdmi and back at hotplug event, but I noticed that the driver do not react
properly to plug/unplug. /sys/class/drm/card0-HDMI-A-1/status was "connected"
even after unplugging the cable.

After looking at the code it seemed that in case of cable disconnected there is
not point where hotplug state is polled.

Function radeon_connector_hotplug do not do much with hdmi and
radeon_hotplug_work_func cals drm_helper_hpd_irq_event which calls
radeon_dvi_detect where, in case of disconnected cable, it return with
connector_status_connected, just throwing an error for missing EDID.

It looks like there would maybe be a need for a bigger rewrite of hotplug code,
but just to get connector state working properly, I added these few lines to
radeon_connectors.c.</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>