Bug 95269

Summary: [DP] monitors connected to Display Ports not recognised by xrandr
Product: DRI Reporter: freedesktop
Component: libdrmAssignee: Default DRI bug account <dri-devel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: medium CC: intel-gfx-bugs, xiong.y.zhang
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: BDW i915 features: display/atomic
Attachments:
Description Flags
dmesg output while booted with drm.debug=0xe 3 none

Description freedesktop 2016-05-04 21:05:07 UTC
> Steps to reproduce the issue. 

I have a Lenovo X250 on my docking station with two external monitors, one connected via DVI and one via DP. The DVI works ok, but the DP doesn't even get listed in xrandr --query. If I use the HDMI port, it is listed, but the monitor remains blank (lack of bandwidth for the resolution?).

> How often does the steps listed above trigger the issue? For example: always, 1 out 3 times.

Always.

-- system architecture: ("uname -m")

x86_64

-- kernel version: ("uname -r"). Again, please consider using latest drm-intel-nightly from http://cgit.freedesktop.org/drm-intel


(I tried to build it; it's an excessively long build and the final step (sudo make install) failed).

4.6.0-040600rc6-generic

-- Linux distribution:

Ubuntu 16.04

-- Machine or mother board model:

Lenovo X250

-- Display connector: (such as HDMI, DP, eDP, ...)

DP

> A full dmesg with debug information and/or a GPU crash dump

I'll try to get this and add it.

> Config details :

built-in: 1920x1080
HP 2335: 1920x1200
BenQ GW2765: 2560x1440

The HP is connected via DVI and the BenQ via Display Port.

In this configuration, I get my HP and built-in ok, but the BenQ doesn't show up at all (using xrandr --query).

If I connect the BenQ via HDMI, then it shows up in xrandr --query, but the display is still blank (bandwidth issue?).

Here's the output with the DVI + DP config :

$ xrandr --query
Screen 0: minimum 8 x 8, current 3840 x 1200, maximum 32767 x 32767
eDP1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 276mm x 156mm
   1920x1080 60.04*+ 59.93
   1680x1050 59.95 59.88
   1600x1024 60.17
   1400x1050 59.98
   1600x900 60.00
   1280x1024 60.02
   1440x900 59.89
   1280x960 60.00
   1368x768 60.00
   1360x768 59.80 59.96
   1152x864 60.00
   1280x720 60.00
   1024x768 60.00
   1024x576 60.00
   960x540 60.00
   800x600 60.32 56.25
   864x486 60.00
   640x480 59.94
   720x405 60.00
   640x360 60.00
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP2-1 disconnected (normal left inverted right x axis y axis)
DP2-2 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 495mm x 310mm
   1920x1200 59.95*+
   1600x1200 60.00
   1280x1024 85.02 75.02 60.02
   1280x960 60.00
   1152x864 75.00
   1024x768 85.00 75.03 70.07 60.00
   832x624 74.55
   800x600 75.00 60.32
   640x480 75.00 59.94
   720x400 70.08
DP2-3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

and with built-in and BenQ only :

$ xrandr --query
Screen 0: minimum 8 x 8, current 4480 x 1440, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+360 (normal left inverted right x axis y axis) 276mm x 156mm
   1920x1080 60.04*+ 59.93
   1680x1050 59.95 59.88
   1600x1024 60.17
   1400x1050 59.98
   1600x900 60.00
   1280x1024 60.02
   1440x900 59.89
   1280x960 60.00
   1368x768 60.00
   1360x768 59.80 59.96
   1152x864 60.00
   1280x720 60.00
   1024x768 60.00
   1024x576 60.00
   960x540 60.00
   800x600 60.32 56.25
   864x486 60.00
   640x480 59.94
   720x405 60.00
   640x360 60.00
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP2-1 connected 2560x1440+1920+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440 59.95*+
   1920x1080 60.00 50.00 59.94
   1680x1050 59.88
   1600x900 59.98
   1280x1024 75.02 60.02
   1280x800 59.91
   1152x864 75.00
   1280x720 60.00 50.00 59.94
   1024x768 75.08 60.00
   832x624 74.55
   800x600 75.00 60.32
   720x576 50.00
   720x480 60.00 59.94
   640x480 75.00 60.00 59.94
   720x400 70.08
DP2-2 disconnected (normal left inverted right x axis y axis)
DP2-3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

This looks relevant :

<https://lists.freedesktop.org/archives/intel-gfx/2016-April/091414.html>

I'm running kernel 4.6.0-040600rc6-generic (installed as part of the debugging process).

(This bug is the 'next step' from <https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1577760>)

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xorg 1:7.7+13ubuntu3
Uname: Linux 4.6.0-040600rc6-generic x86_64
.tmp.unity_support_test.0:

ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Wed May 4 13:39:08 2016
DistUpgraded: 2016-04-22 10:05:12,580 DEBUG icon theme changed, re-reading
DistroCodename: xenial
DistroVariant: ubuntu
EcryptfsInUse: Yes
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Broadwell-U Integrated Graphics [17aa:2226]
InstallationDate: Installed on 2015-05-20 (349 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: LENOVO 20CM001QUK
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.6.0-040600rc6-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: xorg
UpgradeStatus: Upgraded to xenial on 2016-04-22 (12 days ago)
dmi.bios.date: 04/06/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: N10ET33W (1.12 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20CM001QUK
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50510 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrN10ET33W(1.12):bd04/06/2015:svnLENOVO:pn20CM001QUK:pvrThinkPadX250:rvnLENOVO:rn20CM001QUK:rvrSDK0E50510WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.name: 20CM001QUK
dmi.product.version: ThinkPad X250
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.12.2+16.04.20160415-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.67-1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.18.3-1ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20160325-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.12-1build2
xserver.bootTime: Wed May 4 12:49:51 2016
xserver.configfile: default
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 product id 1079
 vendor LGD
xserver.version: 2:1.18.3-1ubuntu2

Maybe more details in this bug report :

<https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1578196>
Comment 1 freedesktop 2016-05-05 08:56:51 UTC
Created attachment 123488 [details]
dmesg output while booted with drm.debug=0xe 3
Comment 2 Jari Tahvanainen 2017-03-09 11:49:57 UTC
I'm sorry about this delay for getting back to you. Could this be related to bug 97031? And have you in any change tested this with newer kernel? If yes then please provide new dmesg.
Comment 3 freedesktop 2017-03-09 12:16:36 UTC
I've since changed companies (a couple of times) and no longer has access to the harder...so I can't test it. The window for that has long gone :/

FYI I've now switched to using MS Windows (with WSL - aka Bash on Ubuntu on Windows) where it this sort of problem is much less likely to occur (touch wood).
Comment 4 Ricardo Madrigal 2017-06-29 16:47:02 UTC
Hello,

I just tried to reproduce the problem with following configuration:

BDW NUC, using an MST dongle emulating docking station and two external monitors, one connected via DVI and the other one via DP with external Display (Asus) 1920 x 1200.

Attaching a Dell display via DVI (1920x 1080). 

Adding the configuration used to test

======================================
             Software
======================================
kernel version              : 4.12.0-rc3-drm-tip-ww22-commit-187376e+
architecture                : x86_64
os version                  : Ubuntu 17.04
os codename                 : zesty
kernel driver               : i915
bios revision               : 5.6
bios release date           : 05/11/2017

======================================
        Graphic drivers
======================================
mesa                      : 17.0.3
modesetting               : modesetting_drv.so
xorg-xserver              : 1.19.3
libdrm                    : 2.4.76
libva                     : 1.7.3-2
vaapi (intel-driver)      : 1.7.3
cairo                     : 1.14.8-1
intel-gpu-tools           : 1.17-1

======================================
             Hardware
======================================
platform                   : BDW
motherboard id             : NUC5i7RYB
form factor                : Desktop
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
gpu card                   : Intel Corporation Iris Graphics 6100 (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 15.58 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 61
cpu stepping               : 4
socket                     : Socket BGA1168
signature                  : Type 0, Family 6, Model 61, Stepping 4
hard drive                 : 111GiB (120GB)
current cd clock frequency : 540000 kHz
maximum cd clock frequency : 540000 kHz


The result is that everything works normally.

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.