Bug 44875 - [SNB] Booting with external monitor fails with *ERROR* Couldn't find PLL
Summary: [SNB] Booting with external monitor fails with *ERROR* Couldn't find PLL
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Jesse Barnes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 20:02 UTC by Bryce Harrington
Modified: 2017-07-24 23:03 UTC (History)
7 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg.txt (118.77 KB, text/plain)
2012-01-17 20:05 UTC, Bryce Harrington
no flags Details
screenshot (dual monitor startup problem) (561.73 KB, text/plain)
2012-09-27 03:43 UTC, pagnes
no flags Details

Description Bryce Harrington 2012-01-17 20:02:14 UTC
Forwarding this bug from Ubuntu reporter Eugene Lipchansky:
http://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/814895

[Problem]
Ubuntu hangs after grub when an external monitor connected to ASUS N73SV via HDMI or VGA.  Error message is:

 *ERROR* Couldn't find PLL settings for mode!

First reported against Ubuntu 11.04 Natty (2.6.38-10.46-generic 2.6.38.7).  Verified as still occurring with Ubuntu 12.04 (kernel 3.2).

(We've had several similar bugs on sandybridge with external monitors.  I'll forward the others as well.)

[Original Report]
With the HDMI/VGA disconnected Ubuntu starts fine. After Ubuntu completely loaded the external display can be connected without problems. At this time it is detected properly and works perfect. The desktop is shared fine to it.  i.e each time I turn it on I have to disconnect external display, wait until Ubuntu login screen displayed, then connect
the external display again.

Xorg.0.log ends with:
[     6.501] (==) intel(0): Silken mouse enabled
[     6.501] (II) intel(0): Initializing HW Cursor
[     6.507] (EE) intel(0): failed to set mode: Invalid argument
[     6.507] 
Fatal server error:
[     6.507] AddScreen/ScreenInit failed for driver 0

dmesg shows:
[    4.467170] [drm:i915_driver_open], 
[    4.467182] [drm:drm_crtc_helper_set_config], 
[    4.467184] [drm:drm_crtc_helper_set_config], [CRTC:3] [FB:40] #connectors=1 (x y) (0 0)
[    4.467191] [drm:drm_crtc_helper_set_config], crtc has no fb, full mode set
[    4.467193] [drm:drm_crtc_helper_set_config], modes are different, full mode set
[    4.467195] [drm:drm_mode_debug_printmodeline], Modeline 0:"" 0 0 0 0 0 0 0 0 0 0 0x0 0x0
[    4.467198] [drm:drm_mode_debug_printmodeline], Modeline 23:"1920x1080" 60 132600 1920 1944 1976 2016 1080 1084 1090 1096 0x48 0xa
[    4.467201] [drm:drm_crtc_helper_set_config], encoder changed, full mode switch
[    4.467203] [drm:drm_crtc_helper_set_config], crtc changed, full mode switch
[    4.467205] [drm:drm_crtc_helper_set_config], [CONNECTOR:5:LVDS-1] to [CRTC:3]
[    4.467207] [drm:drm_crtc_helper_set_config], attempting to set mode from userspace
[    4.467209] [drm:drm_mode_debug_printmodeline], Modeline 23:"1920x1080" 60 132600 1920 1944 1976 2016 1080 1084 1090 1096 0x48 0xa
[    4.467215] [drm:drm_crtc_helper_set_mode], [CRTC:3]
[    4.467253] [drm:ironlake_crtc_mode_set] *ERROR* Couldn't find PLL settings for mode!
[    4.467257] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
[    4.467259] [drm:drm_crtc_helper_set_config],
Comment 1 Bryce Harrington 2012-01-17 20:05:58 UTC
Created attachment 55707 [details]
dmesg.txt
Comment 2 grackleflint 2012-02-02 03:40:07 UTC
This looks to be the same issue I am encountering with a Lenovo T520 running Fedora 16.  The Xserver fails to start when there is an external monitor attached and the LCD screen is closed.  The problem only occurs if the screen is closed at power on, presumably because the BIOS disables the LCD screen in those circumstances.

This is running Fedora16 with kernel 3.2.2-1.fc16.x86_64.

A brief excerpt from dmesg shows a similar message:

[    2.741944] [drm:ironlake_crtc_mode_set] *ERROR* Couldn't find PLL settings for mode!
[    2.741953] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
Comment 3 Bryce Harrington 2012-03-14 09:57:08 UTC
Eugene reported to me that this issue still persists as of 12.04-beta1.
Comment 4 Eugeni Dodonov 2012-03-14 12:20:37 UTC
Paulo, I think you was looking into similar issues for external outputs on SNB in the past, could you take a look at this please?
Comment 5 Bryce Harrington 2012-03-16 10:44:28 UTC
The user reports he's still seeing this error with 12.04 beta1
Comment 6 Paulo Zanoni 2012-04-02 13:15:04 UTC
Does this patch fix the bug?

http://cgit.freedesktop.org/~danvet/drm-intel/commit/?h=drm-intel-next-queued&id=b03543857fd75876b96e10d4320b775e95041bb7

(from ~danvet/drm-intel repository, drm-intel-next-queued tree)
Comment 7 Jesse Barnes 2012-04-19 14:55:33 UTC
Assuming this is fixed by the LVDS detection patch.  Please re-open if not.
Comment 8 Eugene Lipchansky 2012-04-19 15:36:36 UTC
I've just tried the kernel below (which I think includes the patch above) on Ububntu 11.10:

http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-experimental/2012-04-19-precise/

The problem is fixed now. However there is a still another bug - laptop's screen is flickering/flashing when ubuntu boot logo is displayed, the external display works fine. 
When loading finished and required resolution set both displays work fine.
Comment 9 Jesse Barnes 2012-04-19 15:39:07 UTC
Usually we file new bugs for new issues, but we can just rename this one.

Can you capture a video of the flicker?
Comment 10 Eugene Lipchansky 2012-04-19 16:10:56 UTC
Here is video:
http://www.youtube.com/watch?v=LiYb1soYgH0
Comment 11 Eugene Lipchansky 2012-04-19 16:22:38 UTC
BTW: On the video I have the following script running on lightDM start.

!/bin/sh
sleep 2
xrandr --output VGA1 --off
xrandr --output LVDS1 --auto && xrandr --output VGA1 --right-of LVDS1 --auto

With this script removed lightDM shows the same login screen on both displays.
Display configuration is set correctly after login. So all is OK from the point when lightDM appeared.
Comment 12 Daniel Vetter 2012-04-20 00:23:31 UTC
Actually I really prefer if you file a new bug for the new issue. It is really confusing when half the bug report is about one issue and the other half about something completely different.

Please attach a new dmesg and the video (or a link to it) to the new report and add a link here.
Comment 13 Eugene Lipchansky 2012-04-20 05:50:18 UTC
Filed a new bug:
https://bugs.freedesktop.org/show_bug.cgi?id=48966
Comment 14 Eugene Lipchansky 2012-07-06 11:02:33 UTC
I wonder when will this patch be included to the kernel release? I recently compiled 3.4.4 and it's still not there. There is no flickering problem on 3.4.4 anymore.
Comment 15 pagnes 2012-09-27 03:43:46 UTC
Created attachment 67752 [details]
screenshot (dual monitor startup problem)
Comment 16 Daniel Vetter 2012-09-27 06:22:32 UTC
The fix has landed in 3.5, if you want it in 3.4 you can submit it to the stable team, reference the commit and this bug report here.

commit b03543857fd75876b96e10d4320b775e95041bb7
Author: Takashi Iwai <tiwai@suse.de>
Date:   Tue Mar 20 13:07:05 2012 +0100

    drm/i915: Check VBIOS value for determining LVDS dual channel mode, too


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.