From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 101723] hdmi unplug not changing connector status
Date: Fri, 07 Jul 2017 22:37:27 +0000 [thread overview]
Message-ID: <bug-101723-502@http.bugs.freedesktop.org/> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1540 bytes --]
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@lists.freedesktop.org
Reporter: aki.lemmetyinen@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.
[-- Attachment #1.2: Type: text/html, Size: 3077 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2017-07-07 22:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 22:37 bugzilla-daemon [this message]
2017-07-10 20:17 ` [Bug 101723] hdmi unplug not changing connector status bugzilla-daemon
2019-11-19 9:29 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-101723-502@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.