Bug 101462 - [SKL] External monitor shows no signal after unplugging and plugging the cable back into dock
Summary: [SKL] External monitor shows no signal after unplugging and plugging the cabl...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: high normal
Assignee: Dhinakaran Pandiyan
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-16 05:17 UTC by Ethan Hsieh
Modified: 2017-08-25 17:59 UTC (History)
4 users (show)

See Also:
i915 platform: SKL
i915 features: display/Other


Attachments
kernel log (drm.debug=0xe), Xorg.0.log, and xrandr (116.41 KB, application/gzip)
2017-06-16 05:17 UTC, Ethan Hsieh
no flags Details
Xorg.0.log (compile xserver-xorg-video-intel with --enable-debug=full) (8.26 MB, application/gzip)
2017-06-16 05:24 UTC, Ethan Hsieh
no flags Details
1-kern.log (371.23 KB, text/x-log)
2017-06-19 02:21 UTC, Ethan Hsieh
no flags Details
1-Xorg.0.log (41.71 KB, text/x-log)
2017-06-19 02:21 UTC, Ethan Hsieh
no flags Details
xrandr (17.85 KB, text/x-log)
2017-06-19 02:21 UTC, Ethan Hsieh
no flags Details
2-kern.log (536.47 KB, text/x-log)
2017-06-19 02:22 UTC, Ethan Hsieh
no flags Details
2-Xorg.0.log (24.85 MB, text/x-log)
2017-06-19 02:22 UTC, Ethan Hsieh
no flags Details
2-Xorg.0.log.old.0 (29.36 MB, text/plain)
2017-06-19 02:28 UTC, Ethan Hsieh
no flags Details
2-Xorg.0.log.old.1 (29.91 MB, text/plain)
2017-06-19 02:29 UTC, Ethan Hsieh
no flags Details
kernel log (plug in the cable after booting to ubuntu desktop) (290.36 KB, text/x-log)
2017-06-20 07:24 UTC, Ethan Hsieh
no flags Details
kern.log (3.09 MB, text/plain)
2017-06-30 22:04 UTC, Ricardo Madrigal
no flags Details

Description Ethan Hsieh 2017-06-16 05:17:11 UTC
Created attachment 131993 [details]
kernel log (drm.debug=0xe), Xorg.0.log, and xrandr

External monitor shows no signal after unplugging and plugging the cable back into dock

Reproduction steps:
1. The external monitor with DP/mDP/HDMI cable connected to Dell Dock.
All two displays: Built-in LCD and external DP/mDP/HDMI monitor
2. Boot to Ubuntu Desktop
3. See two displays (extend mode)
4. Unplug the DP/mDP/HDMI cable from dock
5. wait for at least 30 seconds
6. Plug the cable back into dock
7. Check if the external monitor displays well

Additional information:
1. Kernel: 4.12.0-994-generic x86_64
2. Linux distribution: Ubuntu 16.04.2 LTS
3. Laptop: Dell Precision 5520
4. Dell Business Thunderbolt Dock - TB16
https://goo.gl/vFDjpi
5. Connector (kernel log):
[CONNECTOR:48:eDP-1]: Bulit-in LCD
[CONNECTOR:74:DP-4]: The external monitor
After unplugging and plugging in the cable back
[CONNECTOR:48:eDP-1]: Bulit-in LCD
[CONNECTOR:84:DP-5]: The external monitor

How to recover:
1. Go to [All Settings] => [Displays], Press [Detect Displays]
2. Run xrandr to resize the screen
Comment 1 Ethan Hsieh 2017-06-16 05:24:47 UTC
Created attachment 131994 [details]
Xorg.0.log (compile xserver-xorg-video-intel with --enable-debug=full)

After compiling xserver-xorg-video-intel with --enable-debug=full, I got the following error messgaes.
X restarted after I plugged the cable back into the dock. 

log_0615-3-enable_x_debug/Xorg.0.log.old:
[   105.305] (EE) Backtrace:
[   105.306] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4e) [0x561c931aaade]
[   105.306] (EE) 1: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fc6bc498000+0xc21d9) [0x7fc6bc55a1d9]
[   105.306] (EE) 2: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fc6bc498000+0xc33e7) [0x7fc6bc55b3e7]
[   105.306] (EE) 3: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7fc6bc498000+0xd4607) [0x7fc6bc56c607]
[   105.306] (EE) 4: /usr/lib/xorg/Xorg (xf86Wakeup+0x197) [0x561c9308d557]
[   105.306] (EE) 5: /usr/lib/xorg/Xorg (WakeupHandler+0x6d) [0x561c9305095d]
[   105.306] (EE) 6: /usr/lib/xorg/Xorg (WaitForSomething+0x1ef) [0x561c931a781f]
[   105.306] (EE) 7: /usr/lib/xorg/Xorg (0x561c92ff8000+0x53b8e) [0x561c9304bb8e]
[   105.307] (EE) 8: /usr/lib/xorg/Xorg (0x561c92ff8000+0x57dd3) [0x561c9304fdd3]
[   105.307] (EE) 9: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf0) [0x7fc6c0425830]
[   105.307] (EE) 10: /usr/lib/xorg/Xorg (_start+0x29) [0x561c9303a049]
Fatal server error:
[   105.307] (EE) sna_output_add:4850 assertion 'to_sna_output(output)->id == 0' failed
Comment 2 Elizabeth 2017-06-16 21:51:26 UTC
Hello Ethan, could you please attach the logs uncompressed. Thank you.
Comment 3 Ethan Hsieh 2017-06-19 02:21:22 UTC
Created attachment 132040 [details]
1-kern.log
Comment 4 Ethan Hsieh 2017-06-19 02:21:42 UTC
Created attachment 132041 [details]
1-Xorg.0.log
Comment 5 Ethan Hsieh 2017-06-19 02:21:53 UTC
Created attachment 132042 [details]
xrandr
Comment 6 Ethan Hsieh 2017-06-19 02:22:09 UTC
Created attachment 132043 [details]
2-kern.log
Comment 7 Ethan Hsieh 2017-06-19 02:22:53 UTC
Created attachment 132044 [details]
2-Xorg.0.log

--enable-debug=full
Comment 8 Ethan Hsieh 2017-06-19 02:28:47 UTC
Created attachment 132045 [details]
2-Xorg.0.log.old.0

--enable-debug=full
Comment 9 Ethan Hsieh 2017-06-19 02:29:18 UTC
Created attachment 132046 [details]
2-Xorg.0.log.old.1

--enable-debug=full
Comment 10 Elizabeth 2017-06-19 19:59:52 UTC
Adding tag into "Whiteboard" field - ReadyForDev
*Status is correct
*Platform is included
*Feature is included
*Priority and Severity correctly set
*Logs included
Comment 11 Ethan Hsieh 2017-06-20 07:24:13 UTC
Created attachment 132077 [details]
kernel log (plug in the cable after booting to ubuntu desktop)

Cannot reproduce this issue if I plug the cable into Dell Dock after booting to ubuntu desktop. And, the connector is always DP-4.

[CONNECTOR:47:eDP-1]: Bulit-in LCD
[CONNECTOR:79:DP-4]: The external monitor
After unplugging and plugging in the cable back
[CONNECTOR:47:eDP-1]: Bulit-in LCD
[CONNECTOR:75:DP-4]: The external monitor

[  268.454256] [drm:drm_helper_probe_single_connector_modes [drm_kms_helper]] [CONNECTOR:79:DP-4] status updated from unknown to connected
[  346.125339] [drm:drm_helper_probe_single_connector_modes [drm_kms_helper]] [CONNECTOR:79:DP-4] status updated from connected to disconnected
[  391.887057] [drm:drm_helper_probe_single_connector_modes [drm_kms_helper]] [CONNECTOR:75:DP-4] status updated from unknown to connected
Comment 12 Ricardo Madrigal 2017-06-30 22:03:49 UTC
Hello

I just tried to reproduce the problem with following configuration:

KBL NUC, using MST connected monitor with DP/mDP/HDMI cable connected to MST.
Attaching my configuration used to test

======================================
        Graphic stack
======================================
 
======================================
             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               : 4.6
bios release date           : 03/02/2017
 
======================================
        Graphic drivers
======================================
mesa                        : 17.0.3
modesetting                 : modesetting_drv.so
xorg-xserver                : 1.19.3
libdrm                      : 2.4.81
cairo                       : 1.14.8
xserver                     : X.Org X Server 1.19.99.1
intel-gpu-tools (tag)       : intel-gpu-tools-1.18-211-g00ce341b
intel-gpu-tools (commit)    : 00ce341b
 
======================================
             Hardware
======================================
platform                   : HSW-Nuc
motherboard id             : D54250WYK
form factor                : Desktop
cpu family                 : Core i5
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
gpu card                   : Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 3.79 GB
max memory ram             : 16 GB
display resolution         : 1600x900
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 69
cpu stepping               : 1
socket                     : Socket LGA1150
signature                  : Type 0, Family 6, Model 69, Stepping 1
hard drive                 : 223GiB (240GB)
current cd clock frequency : 450000 kHz
maximum cd clock frequency : 450000 kHz
displays connected         : DP-1
 
======================================
             Firmware
======================================
 
======================================
             kernel parameters
======================================
quiet splash fastboot drm.debug=0xe


This is still a problem.
Comment 13 Ricardo Madrigal 2017-06-30 22:04:48 UTC
Created attachment 132378 [details]
kern.log
Comment 14 Dhinakaran Pandiyan 2017-08-11 01:18:58 UTC
Please test this  - https://patchwork.freedesktop.org/series/28667/
Comment 15 Dhinakaran Pandiyan 2017-08-15 23:48:16 UTC
(In reply to Ethan Hsieh from comment #0)
> Created attachment 131993 [details]
> kernel log (drm.debug=0xe), Xorg.0.log, and xrandr
> 
> External monitor shows no signal after unplugging and plugging the cable
> back into dock
> 
> Reproduction steps:
> 1. The external monitor with DP/mDP/HDMI cable connected to Dell Dock.
> All two displays: Built-in LCD and external DP/mDP/HDMI monitor
> 2. Boot to Ubuntu Desktop
> 3. See two displays (extend mode)
> 4. Unplug the DP/mDP/HDMI cable from dock
> 5. wait for at least 30 seconds
> 6. Plug the cable back into dock
> 7. Check if the external monitor displays well
> 
> Additional information:
> 1. Kernel: 4.12.0-994-generic x86_64
> 2. Linux distribution: Ubuntu 16.04.2 LTS
> 3. Laptop: Dell Precision 5520
> 4. Dell Business Thunderbolt Dock - TB16
> https://goo.gl/vFDjpi
> 5. Connector (kernel log):
> [CONNECTOR:48:eDP-1]: Bulit-in LCD
> [CONNECTOR:74:DP-4]: The external monitor
> After unplugging and plugging in the cable back
> [CONNECTOR:48:eDP-1]: Bulit-in LCD
> [CONNECTOR:84:DP-5]: The external monitor
> 
> How to recover:
> 1. Go to [All Settings] => [Displays], Press [Detect Displays]
> 2. Run xrandr to resize the screen

Hi Ethan

I can't reproduce this with drm-tip and Ubuntu 17.04. The configuration I have is a Dell TB16 dock, Dell XPS 13 9360 laptop and a Dell P2715Q external monitor. Please upgrade packages on your device and retest.
Comment 16 Ethan Hsieh 2017-08-22 05:59:26 UTC
Hi Dhinakaran,

Cannot reproduce the issue on Ubuntu 17.04.

I plugged DP cable into Dell dock, and then powered on the laptop.
The connector was DP-4 at the beginning.
After I unplugged/re-plugged the cable, the connector became DP-5.

Kernel log:
[  1.338086] [CONNECTOR:47:eDP-1] status updated from unknown to connected
[  1.350575] [CONNECTOR:55:DP-1] status updated from unknown to disconnected
[  1.358484] [CONNECTOR:59:HDMI-A-1] status updated from unknown to disconnected
[  1.358512] [CONNECTOR:62:DP-2] status updated from unknown to disconnected
[  1.367289] [CONNECTOR:66:HDMI-A-2] status updated from unknown to disconnected
[  1.847881] [CONNECTOR:70:DP-4] status updated from unknown to connected
[  1.904567] [CONNECTOR:72:DP-5] status updated from unknown to disconnected
[ 82.058623] [CONNECTOR:70:DP-4] status updated from connected to disconnected
[186.725465] [CONNECTOR:72:DP-5] status updated from unknown to connected
[334.655928] [CONNECTOR:72:DP-5] status updated from connected to disconnected
[351.634776] [CONNECTOR:81:DP-5] status updated from unknown to connected
[761.560720] [CONNECTOR:81:DP-5] status updated from connected to disconnected
[771.915903] [CONNECTOR:77:DP-5] status updated from unknown to connected
[803.292530] [CONNECTOR:77:DP-5] status updated from connected to disconnected
[928.971164] [CONNECTOR:82:DP-5] status updated from unknown to connected
[956.660962] [CONNECTOR:82:DP-5] status updated from connected to disconnected
[975.964273] [CONNECTOR:84:DP-5] status updated from unknown to connected

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:        17.04
Codename:       zesty
Comment 17 Dhinakaran Pandiyan 2017-08-22 18:10:01 UTC
Marking this as resolved as per https://bugs.freedesktop.org/show_bug.cgi?id=101462#c16


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.