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.
Please attach Xorg.0.log, dmesg and xrandr --verbose after plugging in the projector.
Oh, either during boot or before plugging in the projector, set drm.debug=6
Created attachment 105551 [details] X.0.log
Created attachment 105552 [details] dmesg
Created attachment 105553 [details] xrandr --verbose
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.
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.
Created attachment 105554 [details] X.0.log
Created attachment 105555 [details] xrandr --verbose
Created attachment 105556 [details] dmesg
I've been affected by this same problem today. I'm on Ubuntu 14.04/Kernel 3.13. The projector worked fine on MacOSX.
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.
I've just updated my distribution and can still reproduce the bug on Linux 4.1.12.
(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.
I can reproduce on Linux 4.3.0-rc7 x86_64
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.
Created attachment 126653 [details] dmesg-intel5500
Created attachment 126654 [details] xorg.log-intel5500
Created attachment 126655 [details] xrandr-intel5500
Please test with git://github.com/vsyrjala/linux.git dp_connection_unknown
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!
Reference to Ville"s patch set : https://patchwork.freedesktop.org/series/13225/
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
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?
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.
*** 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.