Bug 21627 - [i965gm] Display configuration not kept after closing laptop lid
Summary: [i965gm] Display configuration not kept after closing laptop lid
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Jesse Barnes
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-05-07 18:54 UTC by Bryce Harrington
Modified: 2009-10-05 10:34 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
XorgLog.txt (36.21 KB, text/plain)
2009-05-07 18:54 UTC, Bryce Harrington
no flags Details
XorgConf.txt (1.08 KB, text/plain)
2009-05-07 19:00 UTC, Bryce Harrington
no flags Details
Xorg.log with ModeDebug on taken when system has no external monitor attached. (76.30 KB, text/plain)
2009-05-12 18:35 UTC, Tom Haddon
no flags Details
Xorg.log with ModeDebug on taken with external monitor attached (145.48 KB, text/plain)
2009-05-12 18:39 UTC, Tom Haddon
no flags Details

Description Bryce Harrington 2009-05-07 18:54:56 UTC
Created attachment 25624 [details]
XorgLog.txt

Forwarding this report from a Ubuntu user:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/352136

[Problem]
With laptop connected to an external display, if the laptop lid is closed, the external display goes blank too, and can't be restored.

[Original Report]
Laptop being used: Dell Inspiron 1420 N. Native resolution 1280x800
External monitor being used: Samsung 225BW. Native resolution 1680x1050

Per bug 346611, after adding the "Virtual" setting to my Xorg.conf file, I am able to set the display correctly on my external monitor, and everything works fine. However, when I close the lid on my laptop (I want the external display only), the screen on my external monitor goes black. This is normal behaviour and is what happened in my "intrepid" setup. However, when I try moving the mouse, or using the keyboard I'd expect the screen on the monitor to be restored. Instead it stays black and the only way I can restore the screen is to open the lid on the laptop (at which point the screen shows on there too and it reverts to a mirrored screen setup even though that's not what I've asked for.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: xserver-xorg-video-intel 2:2.6.3-0ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersion: Linux version 2.6.28-11-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #38-Ubuntu SMP Fri Mar 27 09:00:52 UTC 2009
SourcePackage: xserver-xorg-video-intel
Uname: Linux 2.6.28-11-generic i686

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 0c)
     Subsystem: Dell Device [1028:01f3]
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller [8086:2a02] (rev 0c)
     Subsystem: Dell Device [1028:01f3]
Comment 1 Bryce Harrington 2009-05-07 18:55:30 UTC
 distro:             Ubuntu
 architecture:       i686
 kernel:             2.6.28-11-generic
 xserver-xorg:       1:7.4~5ubuntu16
 mesa:               7.3-1ubuntu4
 libdrm:             2.4.5-0ubuntu3
 -intel:             2:2.6.3-0ubuntu2
 -ati:               1:6.12.1-0ubuntu1
Comment 2 Bryce Harrington 2009-05-07 19:00:11 UTC
Created attachment 25625 [details]
XorgConf.txt
Comment 3 MaLing 2009-05-11 00:22:20 UTC
plese refer to http://intellinuxgraphics.org/how_to_report_bug.html and provide
log file with modedebug option on.

thanks
maling
Comment 4 Tom Haddon 2009-05-12 18:35:29 UTC
Created attachment 25809 [details]
Xorg.log with ModeDebug on taken when system has no external monitor attached.
Comment 5 Tom Haddon 2009-05-12 18:39:43 UTC
Created attachment 25810 [details]
Xorg.log with ModeDebug on taken with external monitor attached
Comment 6 liuhaien 2009-05-18 01:33:01 UTC
works fine on my side. I test it with ubuntu 9.04 live cd.
distro:             Ubuntu
architecture:       i686
kernel:             2.6.28-11-generic
xserver-xorg:       2:1.6.0-0ubuntu4
mesa:               7.3-1ubuntu4
libdrm:             2.4.5-0ubuntu3
-intel:             2:2.6.3-0ubuntu2

Comment 7 MaLing 2009-05-20 20:41:48 UTC
(In reply to comment #6)
> works fine on my side. I test it with ubuntu 9.04 live cd.
> distro:             Ubuntu
> architecture:       i686
> kernel:             2.6.28-11-generic
> xserver-xorg:       2:1.6.0-0ubuntu4
> mesa:               7.3-1ubuntu4
> libdrm:             2.4.5-0ubuntu3
> -intel:             2:2.6.3-0ubuntu2

hi Tom 
we use the same platform, but the issue doesn't occur, driver version 2.6.3 is old for us, could you please update your driver from our master tree?

Thanks
Ma Ling
Comment 8 Tom Haddon 2009-05-30 14:15:06 UTC
(In reply to comment #6)
> works fine on my side. I test it with ubuntu 9.04 live cd.
> distro:             Ubuntu
> architecture:       i686
> kernel:             2.6.28-11-generic
> xserver-xorg:       2:1.6.0-0ubuntu4
> mesa:               7.3-1ubuntu4
> libdrm:             2.4.5-0ubuntu3
> -intel:             2:2.6.3-0ubuntu2
> 

I tried it with the ubuntu 9.04 live CD and was able to reproduce the issue. Should I upload a video showing this? I suspect you're maybe testing on different hardware?
Comment 9 Tom Haddon 2009-05-30 14:16:10 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > works fine on my side. I test it with ubuntu 9.04 live cd.
> > distro:             Ubuntu
> > architecture:       i686
> > kernel:             2.6.28-11-generic
> > xserver-xorg:       2:1.6.0-0ubuntu4
> > mesa:               7.3-1ubuntu4
> > libdrm:             2.4.5-0ubuntu3
> > -intel:             2:2.6.3-0ubuntu2
> 
> hi Tom 
> we use the same platform, but the issue doesn't occur, driver version 2.6.3 is
> old for us, could you please update your driver from our master tree?
> 
> Thanks
> Ma Ling
> 

Should I wait to see the response from my last comment, as I am able to reproduce the problem with the 9.04 live CD?
Comment 10 Andreas Schildbach 2009-06-13 05:52:12 UTC
I have a very similar problem which might have the same root cause.
(see bug report https://bugs.launchpad.net/bugs/352708)

Most notably, it only happens if you suspend via lid. When using pm-utils or suspending by power-button, display configuration stays intact.

Also, if you switch over to KMS, the problem goes away as well.

Tom, can you confirm if these two assumptions are correct for your problem as well?
Comment 11 ykzhao 2009-07-20 08:19:22 UTC
Will you please do the following test under the console mode?
   a. kill the process using the /proc/acpi/event(use the command of "lsof /proc/acpi/event" to get the process id).
   b. cat /proc/acpi/event >user_event and don't press "CTRL + C" until the step C is finished.
   c. close/open the lid several times
  
After the test, please attach the output of user_event.
Thanks.
Comment 12 Michael Fu 2009-08-04 18:40:07 UTC
ping...if the problem is gone in KMS, we probably won't chase to fix it for UMS anymore.
Comment 13 Andreas Schildbach 2009-08-04 23:46:14 UTC
My problem from comment #10 can be attributed to my BIOS sending a "video button" event when the lid is closed. For more details see https://bugs.launchpad.net/bugs/352708. Can't say about the original bug report though.
Comment 14 ykzhao 2009-08-23 08:38:41 UTC
Hi, Tom
    Will you please confirm whether this issue is also related with the LID script as described in comment #10?
    If not, please attach the output of acpidump. The latest acpidump tool(pmtools-20071116) can be found in :
    http://www.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/*

thanks.
Comment 15 Tom Haddon 2009-08-26 09:45:38 UTC
(In reply to comment #14)
> Hi, Tom
>     Will you please confirm whether this issue is also related with the LID
> script as described in comment #10?
>     If not, please attach the output of acpidump. The latest acpidump
> tool(pmtools-20071116) can be found in :
>     http://www.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/*
> 
> thanks.
> 

Unfortunately I no longer have the monitor in question. I'm in the process of moving and couldn't move it with me.
Comment 16 Michael Fu 2009-08-27 06:31:07 UTC
Tom, the bug shouldn't be monitor specific. If you can still reproduce this bug with another monitor, please follow up with yakui's comment# 14. If can't reproduce this bug with another monitor anymore using KMS, we will close this bug then. thanks.
Comment 17 Jesse Barnes 2009-10-05 10:34:39 UTC
Closing due to inactivity.  I think this one is fixed though.


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.