Bug 83348 - [ivb] No beamer on VGA [active DP-to-VGA convertor]
Summary: [ivb] No beamer on VGA [active DP-to-VGA convertor]
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 98140 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-01 11:25 UTC by Damien Cassou
Modified: 2016-11-03 05:31 UTC (History)
5 users (show)

See Also:
i915 platform: IVB
i915 features: display/DP


Attachments
X.0.log (33.02 KB, text/plain)
2014-09-01 11:52 UTC, Damien Cassou
no flags Details
dmesg (220.55 KB, text/plain)
2014-09-01 11:53 UTC, Damien Cassou
no flags Details
xrandr --verbose (4.62 KB, text/plain)
2014-09-01 11:54 UTC, Damien Cassou
no flags Details
X.0.log (33.02 KB, text/plain)
2014-09-01 12:25 UTC, Damien Cassou
no flags Details
xrandr --verbose (4.62 KB, text/plain)
2014-09-01 12:25 UTC, Damien Cassou
no flags Details
dmesg (197.90 KB, text/plain)
2014-09-01 12:26 UTC, Damien Cassou
no flags Details
dmesg-intel5500 (123.60 KB, text/plain)
2016-09-20 11:34 UTC, Arno
no flags Details
xorg.log-intel5500 (43.83 KB, text/plain)
2016-09-20 11:35 UTC, Arno
no flags Details
xrandr-intel5500 (6.25 KB, text/plain)
2016-09-20 11:35 UTC, Arno
no flags Details

Description Damien Cassou 2014-09-01 11:25:48 UTC
A beamer I have is not detected when I plug it in through a vga -> mini dvi adaptor on my macbook pro 9,2. The beamer works fine on mac os x. Xorg works fine with a VGA external monitor. Only Xorg+beamer does not work. systemd does not show anything when I plug the beamer.
Comment 1 Chris Wilson 2014-09-01 11:29:53 UTC
Please attach Xorg.0.log, dmesg and xrandr --verbose after plugging in the projector.
Comment 2 Chris Wilson 2014-09-01 11:30:17 UTC
Oh, either during boot or before plugging in the projector, set drm.debug=6
Comment 3 Damien Cassou 2014-09-01 11:52:23 UTC
Created attachment 105551 [details]
X.0.log
Comment 4 Damien Cassou 2014-09-01 11:53:25 UTC
Created attachment 105552 [details]
dmesg
Comment 5 Damien Cassou 2014-09-01 11:54:19 UTC
Created attachment 105553 [details]
xrandr --verbose
Comment 6 Chris Wilson 2014-09-01 12:15:05 UTC
To be clear about the sequence of events:

You boot up without the projector attached, and then once the system is up and you have logged in, you attach the projector using VGA.

The last thing in the dmesg is:


[  479.148038] [drm:intel_hpd_irq_handler], Received HPD interrupt on PIN 4 - cnt: 0
[  479.148085] [drm:i915_hotplug_work_func], running encoder hotplug functions
[  479.148090] [drm:i915_hotplug_work_func], Connector HDMI-A-1 (pin 4) received hotplug event.
[  479.148093] [drm:i915_hotplug_work_func], Connector DP-1 (pin 4) received hotplug event.
[  479.148099] [drm:intel_hdmi_detect], [CONNECTOR:18:HDMI-A-1]
[  479.148285] [drm:gmbus_xfer], GMBUS [i915 gmbus dpb] NAK for addr: 0050 r(1)
[  479.148300] [drm:drm_do_probe_ddc_edid], drm: skipping non-existent adapter i915 gmbus dpb
[  479.148307] [drm:intel_hpd_irq_event], [CONNECTOR:18:HDMI-A-1] status updated from 2 to 2
[  479.148318] [drm:intel_dp_detect], [CONNECTOR:22:DP-1]
[  479.148648] [drm:intel_dp_get_dpcd], DPCD: 11 0a 82 01 00 03 01 81 00 00 00 00 00 00 00
[  479.151523] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.152770] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.155201] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.156365] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.158640] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.159845] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.162171] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.163361] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.165640] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.166867] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.166874] [drm:intel_dp_detect_dpcd], Broken DP branch device, ignoring
[  479.166880] [drm:intel_hpd_irq_event], [CONNECTOR:22:DP-1] status updated from 2 to 2
[  479.251691] [drm:intel_hpd_irq_handler], Received HPD interrupt on PIN 4 - cnt: 1
[  479.251742] [drm:i915_hotplug_work_func], running encoder hotplug functions
[  479.251752] [drm:i915_hotplug_work_func], Connector HDMI-A-1 (pin 4) received hotplug event.
[  479.251761] [drm:i915_hotplug_work_func], Connector DP-1 (pin 4) received hotplug event.
[  479.251770] [drm:intel_hdmi_detect], [CONNECTOR:18:HDMI-A-1]
[  479.251966] [drm:gmbus_xfer], GMBUS [i915 gmbus dpb] NAK for addr: 0050 r(1)
[  479.251976] [drm:drm_do_probe_ddc_edid], drm: skipping non-existent adapter i915 gmbus dpb
[  479.251980] [drm:intel_hpd_irq_event], [CONNECTOR:18:HDMI-A-1] status updated from 2 to 2
[  479.251985] [drm:intel_dp_detect], [CONNECTOR:22:DP-1]
[  479.252328] [drm:intel_dp_get_dpcd], DPCD: 11 0a 82 01 00 03 01 81 00 00 00 00 00 00 00
[  479.255185] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.256454] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.258762] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.259998] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.262330] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.263536] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.265814] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.267049] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.269332] [drm:intel_dp_i2c_aux_ch], aux_i2c nack
[  479.270446] [drm:i2c_algo_dp_aux_xfer], dp_aux_xfer return -121
[  479.270452] [drm:intel_dp_detect_dpcd], Broken DP branch device, ignoring
[  479.270458] [drm:intel_hpd_irq_event], [CONNECTOR:22:DP-1] status updated from 2 to 2

which I wonder if that is the projector being plugged in.
Comment 7 Chris Wilson 2014-09-01 12:21:17 UTC
Just adding ajax in case he has a bright idea, since the detection logic here is:

commit caf9ab24e352102ec9dc6df82c78c3a9082109d6
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue Sep 18 10:58:50 2012 -0400

    drm/i915/dp: Be smarter about connection sense for branch devices
    
    If there's no downstream device, DPCD success is good enough.  If
    there's a hotplug-capable downstream device, count the number of
    connected sinks in DP_SINK_STATUS and return success if it's non-zero.
    Otherwise, probe DDC and report appropriately.
    
    v2: Check DP_SINK_STATUS instead of something unrelated to sink status.
Comment 8 Damien Cassou 2014-09-01 12:25:18 UTC
Created attachment 105554 [details]
X.0.log
Comment 9 Damien Cassou 2014-09-01 12:25:44 UTC
Created attachment 105555 [details]
xrandr --verbose
Comment 10 Damien Cassou 2014-09-01 12:26:10 UTC
Created attachment 105556 [details]
dmesg
Comment 11 freedesktop.org 2014-09-29 18:24:11 UTC
I've been affected by this same problem today. I'm on Ubuntu 14.04/Kernel 3.13. The projector worked fine on MacOSX.
Comment 12 Jani Nikula 2015-10-23 10:02:15 UTC
The bug is getting old and we've fixed tons of DP aux/i2c-over-aux issues lately. Presumed fixed upstream. Please reopen if the problem persists with latest kernels.
Comment 13 Damien Cassou 2015-11-04 17:04:21 UTC
I've just updated my distribution and can still reproduce the bug on Linux 4.1.12.
Comment 14 Jani Nikula 2015-11-05 13:15:16 UTC
(In reply to Damien Cassou from comment #13)
> I've just updated my distribution and can still reproduce the bug on Linux
> 4.1.12.

Please try v4.3 where the fixes I refer to are. Thanks.
Comment 15 Damien Cassou 2015-11-11 13:19:00 UTC
I can reproduce on Linux 4.3.0-rc7 x86_64
Comment 16 Arno 2016-09-20 11:34:05 UTC
Still have the same problem on 4.7.3-200.fc24.x86_64 with a intel HD Graphics 5500 (a second graphical card is also present: VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Opal PRO [Radeon R7 M260]): everything works fine with screens and tv, but projectors are not recognised (marked as "disconnected").

The single solution for the moment is to add the mode using xrandr and to force this last to use the mode:
xrandr --addmode DP2 1024x768
xrandr --output eDP1 --off --output DP2 --mode 1024x768

Here are the dmesg, xrandr, and xorg logs as required.
Comment 17 Arno 2016-09-20 11:34:45 UTC
Created attachment 126653 [details]
dmesg-intel5500
Comment 18 Arno 2016-09-20 11:35:09 UTC
Created attachment 126654 [details]
xorg.log-intel5500
Comment 19 Arno 2016-09-20 11:35:32 UTC
Created attachment 126655 [details]
xrandr-intel5500
Comment 20 Ville Syrjala 2016-09-20 13:15:13 UTC
Please test with
git://github.com/vsyrjala/linux.git dp_connection_unknown
Comment 21 Arno 2016-09-29 11:08:02 UTC
This works!
Thanks!

Sorry for the delay I did not see your response.
Do you think it can be merged in the kernel for the 4.8 release?

Cheers!
Comment 22 yann 2016-10-03 08:36:28 UTC
Reference to Ville"s patch set : https://patchwork.freedesktop.org/series/13225/
Comment 23 Ville Syrjala 2016-10-07 08:54:17 UTC
commit 5cb651a7959310ef4dbb0b93f005b10286789656
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Mon Oct 3 10:55:16 2016 +0300

    drm/i915: Allow DP to work w/o EDID
Comment 24 philipp.reinkemeier 2016-10-22 11:37:24 UTC
Both Patches have been merged into Kernel 4.9. The commit messages both contain Cc: stable@vger.kernel.org, but none of them have been merged into Kernel 4.8.3 or 4.8.4. Is there a reason for this?
Comment 25 Jani Nikula 2016-10-24 09:17:53 UTC
The stable team only backports fixes to stable after they've hit Linus' tree. It's been just a week now. Give it some time.
Comment 26 philipp.reinkemeier 2016-11-03 05:31:33 UTC
*** Bug 98140 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.