[Bug 101723] hdmi unplug not changing connector status
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jul 7 22:37:27 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=101723
Bug ID: 101723
Summary: hdmi unplug not changing connector status
Product: DRI
Version: unspecified
Hardware: All
OS: Linux (All)
Status: NEW
Severity: minor
Priority: medium
Component: DRM/Radeon
Assignee: dri-devel at lists.freedesktop.org
Reporter: aki.lemmetyinen at gmail.com
Created attachment 132558
--> https://bugs.freedesktop.org/attachment.cgi?id=132558&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170707/ed5d1272/attachment.html>
More information about the dri-devel
mailing list