Bug 101463 - [KBL] Could not switch the monitor configuration
Summary: [KBL] Could not switch the monitor configuration
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 06:21 UTC by Ethan Hsieh
Modified: 2017-09-07 20:24 UTC (History)
4 users (show)

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


Attachments
kernel log and Xorg.0.log (21.82 MB, application/x-bzip)
2017-06-16 06:21 UTC, Ethan Hsieh
no flags Details
1-kern.log (663.20 KB, text/x-log)
2017-06-19 02:38 UTC, Ethan Hsieh
no flags Details
2-kern.log (1.03 MB, text/x-log)
2017-06-19 02:38 UTC, Ethan Hsieh
no flags Details
2-Xorg.0.log (48.01 KB, text/x-log)
2017-06-19 02:38 UTC, Ethan Hsieh
no flags Details
screenshot 1 (876.07 KB, image/png)
2017-06-19 02:39 UTC, Ethan Hsieh
no flags Details
screenshot 2 (1.30 MB, image/png)
2017-06-19 02:39 UTC, Ethan Hsieh
no flags Details
1-Xorg.0.log.7z (11.69 MB, application/x-7z-compressed)
2017-06-19 02:51 UTC, Ethan Hsieh
no flags Details
kernel log (3.09 MB, text/plain)
2017-06-30 22:16 UTC, Armando Antonio
no flags Details

Description Ethan Hsieh 2017-06-16 06:21:24 UTC
Created attachment 131995 [details]
kernel log and Xorg.0.log

Could not switch the monitor configuration

Reproduction steps:
1. Two external monitors with DP/mDP cable connected to Dell Dock.
All three displays: Built-in LCD, DP and mDP monitor
2. Boot to Ubuntu Desktop
3. See three displays (extend mode)
4. Unplug the DP cable from dock
5. Go to [Ubuntu] => [All Settings] => [Displays],
Press "Detect Displays" every second until [Displays] shows correct amount of Display
6. Unplug the mDP cable from dock
7. do 5 again
8. Plug the mDP cable back into dock
9. do 5 again
10. Plug the DP cable back into dock
11. do 5 again
12. Got to 4.

Additional information:
1. Kernel: 4.10.0-21 x86_64
   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. X.0.org:
a) log/1/Xorg.0.log: (drm.debug=0xe and xserver-xorg-video-intel --enable-debug=full)
[126.895]KMSG: [drm:drm_atomic_helper_check_modeset [drm_kms_helper]] No suitable encoder found for [CONNECTOR:74:DP-5]
[126.896](EE) intel(0): failed to set mode: Bad file descriptor [9]
b) log/2/Xorg.0.log (drm.debug=0xe)
[730.060] (EE) intel(0): failed to set mode: Invalid argument [22]

How to recover:
Press the "Close" button in the pop-up window "Could not switch the monitor configuration".
PS: It's not easy to press the button because all windows have wrong proportion. (log/The_pop-up_window_and_wrong_proportion.png)
Comment 1 Elizabeth 2017-06-16 21:50:10 UTC
Hello Ethan, could you please attach the logs uncompressed. Thank you.
Comment 2 Ethan Hsieh 2017-06-19 02:38:14 UTC
Created attachment 132047 [details]
1-kern.log
Comment 3 Ethan Hsieh 2017-06-19 02:38:31 UTC
Created attachment 132048 [details]
2-kern.log
Comment 4 Ethan Hsieh 2017-06-19 02:38:45 UTC
Created attachment 132049 [details]
2-Xorg.0.log
Comment 5 Ethan Hsieh 2017-06-19 02:39:11 UTC
Created attachment 132050 [details]
screenshot 1
Comment 6 Ethan Hsieh 2017-06-19 02:39:27 UTC
Created attachment 132051 [details]
screenshot 2
Comment 7 Ethan Hsieh 2017-06-19 02:51:37 UTC
Created attachment 132052 [details]
1-Xorg.0.log.7z

The file size of 1-Xorg.0.log is bigger then 400MB and file size limit is 32768 KB. I have to compress it to upload.
Comment 8 Elizabeth 2017-06-22 14:26:08 UTC
Adding tag into "Whiteboard" field - ReadyForDev
*Status is correct
*Platform is included
*Feature is included
*Priority and Severity correctly set
*Logs included
Comment 9 Armando Antonio 2017-06-30 22:15:59 UTC
This still happen with the following configuration:

Two external monitors with DP/mDP cable connected to MST.
======================================
        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               : 5.12
bios release date           : 09/12/2016

======================================
        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                   : KBL-Nuc
motherboard model          : MS-B142
motherboard id             : MS-B1421
form factor                : Desktop
manufacturer               : Micro-StarInternationalCo.,Ltd.
cpu family                 : Core i7
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
gpu card                   : Intel Corporation Device 5916 (rev 02) (prog-if 00 [VGA controller])
memory ram                 : 7.65 GB
max memory ram             : 64 GB
display resolution         : 1600x900
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 142
cpu stepping               : 9
socket                     : Other
signature                  : Type 0, Family 6, Model 142, Stepping 9
hard drive                 : 111GiB (120GB)
current cd clock frequency : 450000 kHz
maximum cd clock frequency : 675000 kHz
displays connected         : DP-2 DP-4 DP-8

======================================
             Firmware
======================================
dmc fw loaded             : yes
dmc version               : 1.1
guc fw loaded             : NONE
guc version wanted        : 0.0
guc version found         : 0.0

======================================
             kernel parameters
======================================
quiet splash fastboot drm.debug=0xe

Regards.
Comment 10 Armando Antonio 2017-06-30 22:16:24 UTC
Created attachment 132380 [details]
kernel log
Comment 11 Dhinakaran Pandiyan 2017-08-11 18:45:23 UTC
(In reply to Ethan Hsieh from comment #0)
> Created attachment 131995 [details]
> kernel log and Xorg.0.log
> 
> Could not switch the monitor configuration
> 
> Reproduction steps:
> 1. Two external monitors with DP/mDP cable connected to Dell Dock.
> All three displays: Built-in LCD, DP and mDP monitor
> 2. Boot to Ubuntu Desktop
> 3. See three displays (extend mode)
> 4. Unplug the DP cable from dock
> 5. Go to [Ubuntu] => [All Settings] => [Displays],
> Press "Detect Displays" every second until [Displays] shows correct amount
> of Display
> 6. Unplug the mDP cable from dock
> 7. do 5 again
> 8. Plug the mDP cable back into dock
> 9. do 5 again
> 10. Plug the DP cable back into dock
> 11. do 5 again
> 12. Got to 4.
> 
> Additional information:
> 1. Kernel: 4.10.0-21 x86_64
>    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. X.0.org:
> a) log/1/Xorg.0.log: (drm.debug=0xe and xserver-xorg-video-intel
> --enable-debug=full)
> [126.895]KMSG: [drm:drm_atomic_helper_check_modeset [drm_kms_helper]] No
> suitable encoder found for [CONNECTOR:74:DP-5]
> [126.896](EE) intel(0): failed to set mode: Bad file descriptor [9]
> b) log/2/Xorg.0.log (drm.debug=0xe)
> [730.060] (EE) intel(0): failed to set mode: Invalid argument [22]
> 
> How to recover:
> Press the "Close" button in the pop-up window "Could not switch the monitor
> configuration".
> PS: It's not easy to press the button because all windows have wrong
> proportion. (log/The_pop-up_window_and_wrong_proportion.png)

Hi Ethan,

I see that both kernel logs you have attached are for 

kernel: [    0.000000] Linux version 4.10.0-21-generic 
kernel: [    0.000000] Linux version 4.10.0-21-generic 

Please retest with Ubuntu 17.04 and latest drm-tip.

-DK
Comment 12 Dhinakaran Pandiyan 2017-08-11 20:10:44 UTC
(In reply to Armando Antonio from comment #9)
> This still happen with the following configuration:
> 
> Two external monitors with DP/mDP cable connected to MST.
> ======================================
>         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               : 5.12
> bios release date           : 09/12/2016
> 
> ======================================
>         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                   : KBL-Nuc
> motherboard model          : MS-B142
> motherboard id             : MS-B1421
> form factor                : Desktop
> manufacturer               : Micro-StarInternationalCo.,Ltd.
> cpu family                 : Core i7
> cpu family id              : 6
> cpu information            : Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
> gpu card                   : Intel Corporation Device 5916 (rev 02) (prog-if
> 00 [VGA controller])
> memory ram                 : 7.65 GB
> max memory ram             : 64 GB
> display resolution         : 1600x900
> cpu thread                 : 4
> cpu core                   : 2
> cpu model                  : 142
> cpu stepping               : 9
> socket                     : Other
> signature                  : Type 0, Family 6, Model 142, Stepping 9
> hard drive                 : 111GiB (120GB)
> current cd clock frequency : 450000 kHz
> maximum cd clock frequency : 675000 kHz
> displays connected         : DP-2 DP-4 DP-8
> 
> ======================================
>              Firmware
> ======================================
> dmc fw loaded             : yes
> dmc version               : 1.1
> guc fw loaded             : NONE
> guc version wanted        : 0.0
> guc version found         : 0.0
> 
> ======================================
>              kernel parameters
> ======================================
> quiet splash fastboot drm.debug=0xe
> 
> Regards.

You have six kernel boots in your logs, five of which are not even with a MST configuration. Can you please attach only logs that are relevant? More importantly, the errors you are seeing are not related to this bug, you should create a new bug and document the reproduction steps, not just the configuration. 

Even the configuration has contradicting statements

"displays connected         : DP-2 DP-4 DP-8" and "Two external monitors with DP/mDP cable connected to MST."

The final log shows you have three displays connected, please document your MST configuration correctly.
Comment 13 Ethan Hsieh 2017-08-22 06:41:14 UTC
Hi Dhinakaran,

I only uploaded two kernel logs and there are only two kernel boots in logs.
$ grep -r -e "Linux ver" .
./1/kern.log:Jun  7 15:18:43 u-Precision-5520 kernel: [0.000000] Linux version 4.10.0-21-generic ...
./2/kern.log:Jun  7 14:52:52 u-Precision-5520 kernel: [0.000000] Linux version 4.10.0-21-generic ...

You can download all logs from attachment#131995 [details].
log.tar.bz2
├── 1
│   ├── kern.log
│   └── Xorg.0.log
├── 2
│   ├── kern.log
│   └── Xorg.0.log
├── The_pop-up_window_and_wrong_proportion2.png
└── The_pop-up_window_and_wrong_proportion.png

1/kern.log:
eDP-1: Built-in LCD (laptop)
DP-5 & DP-6: external DP and mDP monitors connected to Dell dock.

2/kern.log:
eDP-1: Built-in LCD (laptop)
DP-4, DP-5, DP-6, DP-9: external DP and mDP monitors connected to Dell dock.

DP-X is external monitor connected to Dell dock.
I only have two external monitors.
In 16.04 + kernel 4.10, The number of DP connector will be changed after I unplug/replug the cable.
Comment 14 Ethan Hsieh 2017-08-22 09:02:09 UTC
Hi Dhinakaran,
I cannot reproduce the issue on Ubuntu 17.04.
But, the failure rate is low.
I'll keep monitoring/reproducing this issue.
If I can reproduce the issue on 17.04, I'll give you an update.
Comment 15 Dhinakaran Pandiyan 2017-08-22 18:13:48 UTC
(In reply to Ethan Hsieh from comment #13)
> Hi Dhinakaran,
> 
> I only uploaded two kernel logs and there are only two kernel boots in logs.

My reply about multiple kernel boots was for Armando's comment #9.
Comment 16 Dhinakaran Pandiyan 2017-08-22 18:16:53 UTC
(In reply to Ethan Hsieh from comment #14)
> Hi Dhinakaran,
> I cannot reproduce the issue on Ubuntu 17.04.
> But, the failure rate is low.
> I'll keep monitoring/reproducing this issue.
> If I can reproduce the issue on 17.04, I'll give you an update.

Thanks, let me know how that goes.
Comment 17 Dhinakaran Pandiyan 2017-08-29 19:32:15 UTC
I suppose we can close this now and reopen if necessary.
Comment 18 Elizabeth 2017-08-31 14:42:41 UTC
(In reply to Dhinakaran Pandiyan from comment #17)
> I suppose we can close this now and reopen if necessary.
Changing to RESOLVE then.


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.