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)
Hello Ethan, could you please attach the logs uncompressed. Thank you.
Created attachment 132047 [details] 1-kern.log
Created attachment 132048 [details] 2-kern.log
Created attachment 132049 [details] 2-Xorg.0.log
Created attachment 132050 [details] screenshot 1
Created attachment 132051 [details] screenshot 2
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.
Adding tag into "Whiteboard" field - ReadyForDev *Status is correct *Platform is included *Feature is included *Priority and Severity correctly set *Logs included
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.
Created attachment 132380 [details] kernel log
(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
(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.
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.
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.
(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.
(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.
I suppose we can close this now and reopen if necessary.
(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.