Bug 742741

Summary: [Cantiga] Unable to turn on laptop display when external monitor is connected
Product: [Fedora] Fedora Reporter: Mads Villadsen <maxx>
Component: xorg-x11-drv-intelAssignee: Adam Jackson <ajax>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: ajax, mcepl, nospam, xgl-maint
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: [cat:modesetting]
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 08:00:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
output from dmesg
none
/var/log/messages
none
xorg log
none
xorg 1 log
none
xorg 2 log
none
xorg 3 log
none
xorg 4 log
none
xorg 5 log
none
xorg 9 log
none
Image of kernel output after crash none

Description Mads Villadsen 2011-10-02 10:35:54 UTC
Description of problem:
When booting up with external monitor both displays are active.

When logging in the laptop display gets turned off.

Trying to turn it on in Displays properties gives the error:

could not set the configuration for CRTC 64



In /var/log/messages to following appears:

Oct  2 12:32:14 localhost kernel: [ 2018.773434] [drm:intel_lvds_mode_fixup] *ERROR* Can't enable LVDS and another encoder on the same pipe
Oct  2 12:32:14 localhost kernel: [ 2018.773449] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:4]



Output from lspci -vvv:

00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 024d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 46
        Region 0: Memory at f6c00000 (64-bit, non-prefetchable) [size=4M]
        Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at ef98 [size=8]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee0300c  Data: 4199
        Capabilities: [d0] Power Management version 3
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: i915
        Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
        Subsystem: Dell Device 024d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Region 0: Memory at f6b00000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [d0] Power Management version 3
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-





This was not a problem in Fedora 15 and it also works fine when booting from the Fedora 16 Beta RC4 Live USB image.



Version-Release number of selected component (if applicable):
xorg-x11-server-Xorg-1.11.1-1.fc16.x86_64
xorg-x11-drv-intel-2.16.0-2.fc16.x86_64

Comment 1 Matěj Cepl 2011-10-02 15:34:03 UTC
Thanks for the bug report.  We have reviewed the information you have provided above, and there is some additional information we require that will be helpful in our diagnosis of this issue.

Please add drm.debug=0x04 to the kernel command line, restart computer, and attach

* your X server config file (/etc/X11/xorg.conf, if available),
* X server log file (/var/log/Xorg.*.log*; check with grep Backtrace /var/log/Xorg* which logs might be the most interesting ones, send us at least Xorg.0.log)
* output of the dmesg command, and
* system log (/var/log/messages)

to the bug report as individual uncompressed file attachments using the bugzilla file attachment link above.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

Comment 2 Mads Villadsen 2011-10-03 20:16:27 UTC
Created attachment 526123 [details]
output from dmesg

Comment 3 Mads Villadsen 2011-10-03 20:34:46 UTC
Created attachment 526131 [details]
/var/log/messages

Comment 4 Mads Villadsen 2011-10-03 20:35:14 UTC
Created attachment 526132 [details]
xorg log

Comment 5 Mads Villadsen 2011-10-03 20:36:56 UTC
Created attachment 526133 [details]
xorg 1 log

Comment 6 Mads Villadsen 2011-10-03 20:37:20 UTC
Created attachment 526134 [details]
xorg 2 log

Comment 7 Mads Villadsen 2011-10-03 20:37:36 UTC
Created attachment 526135 [details]
xorg 3 log

Comment 8 Mads Villadsen 2011-10-03 20:37:53 UTC
Created attachment 526136 [details]
xorg 4 log

Comment 9 Mads Villadsen 2011-10-03 20:38:11 UTC
Created attachment 526137 [details]
xorg 5 log

Comment 10 Mads Villadsen 2011-10-03 20:38:31 UTC
Created attachment 526138 [details]
xorg 9 log

Comment 11 Mads Villadsen 2011-10-03 20:39:17 UTC
Unable to find anything by grepping for Backtrack so I attached all Xorg log files I could find.

Comment 12 Mads Villadsen 2011-10-17 07:41:27 UTC
This has gotten worse. Now it randomly crashes X even without me trying to use both displays at once.

xorg-x11-server-Xorg-1.11.1-1.fc16.x86_64
xorg-x11-drv-intel-2.16.0-2.fc16.x86_64
kernel-3.1.0-0.rc9.git0.0.fc16.x86_64

Comment 13 Mads Villadsen 2011-10-25 15:19:45 UTC
Created attachment 530121 [details]
Image of kernel output after crash

Comment 14 Henry Kroll 2012-11-29 03:40:33 UTC
I had this problem until I fiddled around with /etc/X11/xorg.conf.d

What is happening is the driver rpm is not setting up a big enough Virtual Display. Setting it to 3415 1920 works for me and my monitors are nowhere near that resolution. That larger size should probably be the driver default as it will accomodate anything smaller. Then again, maybe it should be bigger, or auto-detected, if memory is not an issue. The reason I use the big setting, even though it is bigger than the size of both my monitors combined, is xrandr can then optionally use a virtual desktop that size and pan around on it, or zoom. The bigger Virtual Desktop doesn't hurt because it (xrandr) can also switch back to a normal size screen, without using all that extra space, and without having to modify xorg.conf every time. Just set it to the big size and forget it.

I ran `xrandr` to determine the names of the display devices and the maximum combined rectangle. VGA-0:1280x1024 next to LVDS:1366x768 = Virtual 2646x1024. That worked great for a few days, but I went further. I set up a huge virtual desktop, so I could experiment with xrandr. The lare size is more versatile, and it doesn't have any drawbacks, so I kept it. You can use a smaller size if you want to, I don't know, save memory or something.

# This file is provided by xorg-x11-drv-catalyst; do not edit.
Section "Device"
	Identifier  "Videocard0"
	Driver      "fglrx"
EndSection

Section "Screen"
	Identifier "Default Screen”
	Device "ATI Technologies Inc Radeon"
	Monitor "Generic Monitor”
	DefaultDepth 24
	SubSection "Display”
		Modes "1024×768"
		#Virtual 2646 1024
		Virtual 3415 1920
	EndSubSection
EndSection

Next, I made a script for xrandr and put it in the XFCE Session settings, so it starts with the desktop:
xrandr --output LVDS --scale 1x1 --output CRT1 --panning 0x0
xrandr --output CRT1 --mode 1280x1024 --pos 256x0 --output LVDS --mode 1366x768 --pos 1536x256

I also experimented with xrandr's large scrolling desktop. Requres Virtual 3415 1920 in /etc/X11/xorg.conf.d:
xrandr --fb 3415x1920 --output LVDS --pos 0x0 --scale 2.5x2.5 --output CRT1 --pos 0x0 --panning 3415x1920+0+0/3415x1920+0+0/64/64/64/64

Again, the larger Virtual desktop works with any configuration (also, you do not need to use xrandr as the normal desktop configuration tools should now work.)

Running this configuration the system would still occasionally get constipated and pack up, just like Wind*ws 98, requiring a hard shut-off with the power button, but no errors in the logs to report. After a couple weeks of that I finally noticed that the disk was full! Without any room in /tmp things get kind of hurky and jerky and then it all packs up.

Comment 15 Fedora End Of Life 2013-01-16 09:57:31 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 16 Fedora End Of Life 2013-02-13 08:00:49 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.