Bug 19933 - [i945] White screen when unplugging from projector
Summary: [i945] White screen when unplugging from projector
Status: RESOLVED DUPLICATE of bug 19931
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high major
Assignee: MaLing
QA Contact: Xorg Project Team
URL: https://bugs.edge.launchpad.net/ubunt...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 08:18 UTC by Bryce Harrington
Modified: 2009-02-05 17:24 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
XorgConf.txt (2.71 KB, text/plain)
2009-02-03 08:20 UTC, Bryce Harrington
no flags Details
XorgLogOld.txt (25.16 KB, text/plain)
2009-02-03 08:20 UTC, Bryce Harrington
no flags Details
Xrandr.txt (4.57 KB, text/plain)
2009-02-03 08:20 UTC, Bryce Harrington
no flags Details
After upstreaming those files, could you try the patch to check whether issue still occurs. thanks. (424 bytes, patch)
2009-02-04 04:20 UTC, MaLing
no flags Details | Splinter Review
X log before connecting the projector (55.51 KB, text/plain)
2009-02-05 02:30 UTC, Till Kamppeter
no flags Details
Register dump before connecting the projector (7.72 KB, text/plain)
2009-02-05 02:31 UTC, Till Kamppeter
no flags Details
X log after connecting the projector and running "xrandr --auto" (68.06 KB, text/plain)
2009-02-05 02:33 UTC, Till Kamppeter
no flags Details
Register dump after connecting the projector and running "xrandr --auto" (7.74 KB, text/plain)
2009-02-05 02:35 UTC, Till Kamppeter
no flags Details
X log after disconnecting the projector (106.19 KB, text/plain)
2009-02-05 02:36 UTC, Till Kamppeter
no flags Details
Register dump after disconnecting the projector (7.68 KB, text/plain)
2009-02-05 02:37 UTC, Till Kamppeter
no flags Details

Description Bryce Harrington 2009-02-03 08:18:47 UTC
Forwarding this bug from a Ubuntu reporter:
https://bugs.edge.launchpad.net/ubuntu/+source/xorg/+bug/324913

[Problem]
After disconnecting from a projector, the screen disappears and is replaced by a white screen.

[Original Report]
I have a Sony Vaio with Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) and 1280x800 screen.

I connect a projector and after that I type "xrandr --auto" in a terminal window. Then I get my desktop from the internal screen also on the projector. As the projector has only a resolution of 1024x768 the internal screen also switches to this resolution.

Then I unplug the projector. This makes the desktop on the screen disappear. On the screen appears a white area in 4:3 ratio and maximum size (so there are black borders on the left and on the right. I can get my desktop back by pressing Fn+F7 one or more times, but then the GNOME panel stays in the 1024x768 format and does not get back to the screen's 1280x800 default resolution.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: xorg 1:7.4~5ubuntu11
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersion: Linux version 2.6.28-6-generic (buildd@crested) (gcc version 4.3.3 (Ubuntu 4.3.3-3ubuntu1) ) #17-Ubuntu SMP Fri Jan 30 15:35:08 UTC 2009

SourcePackage: xorg
Uname: Linux 2.6.28-6-generic x86_64

[lspci]
00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [8086:27a0] (rev 03)
	Subsystem: Sony Corporation Device [104d:81e6]
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03)
	Subsystem: Sony Corporation Device [104d:81e6]
Comment 1 Bryce Harrington 2009-02-03 08:20:09 UTC
Created attachment 22526 [details]
XorgConf.txt
Comment 2 Bryce Harrington 2009-02-03 08:20:36 UTC
Created attachment 22527 [details]
XorgLogOld.txt
Comment 3 Bryce Harrington 2009-02-03 08:20:56 UTC
Created attachment 22528 [details]
Xrandr.txt
Comment 4 Gordon Jin 2009-02-03 17:35:08 UTC
Could the reporter provides register dump? (see http://intellinuxgraphics.org/how_to_report_bug.html)

Ling, Jesse says to check the port_hotplug reg.
Comment 5 MaLing 2009-02-03 23:28:15 UTC
Hi Bryce,

Could you help us to paste 2 dump_registers and Xorg log files respectively.
1) Under plugged projector case( your labtop works fine), please paste register_dump and Xorg log file with Modedebug option
2) After unplugging projector (in this case your labtop doesn't work), please paste register_dump and Xorg log file with Modedebug option.

Thanks
Ma Ling
Comment 6 Bryce Harrington 2009-02-04 02:59:33 UTC
What is 'dump_registers' and 'register_dump'?  By that do you mean 'intel_reg_dump' by chance?

Comment 7 MaLing 2009-02-04 04:17:13 UTC
(In reply to comment #6)
> What is 'dump_registers' and 'register_dump'?  By that do you mean
> 'intel_reg_dump' by chance?

Yes, plese use this programe and dump video register then paste. 
Comment 8 MaLing 2009-02-04 04:20:48 UTC
Created attachment 22573 [details] [review]
After upstreaming those files, could you try the patch to check whether issue still occurs.  thanks.
Comment 9 MaLing 2009-02-04 05:12:30 UTC
Hi Bryce,

Because unpluging projector possibly touch mode line change automatically, which trigers the samilar issue bug #19931, I provide the patch.

Thanks
Ma Ling
Comment 10 Till Kamppeter 2009-02-05 02:29:34 UTC
Bryce asked me for the following in the Ubuntu bug report:

----------

Till,

Upstream wishes additional information to solve your bug. Set the following in the Driver section of your xorg.conf:

    Option "Modedebug" "True"

They also want register dumps. To collect these, run two test cases:

1) Plug in projector (where laptop is working) and collect `sudo intel_reg_dumper > dump_good.txt`. Attach both that and your Xorg.0.log to the upstream bug.

2) Unplug projector (where laptop does not work), and collect `sudo intel_reg_dumper > dump_broken.txt`. Attach both that and your Xorg.0.log to the upstream bug.

----------

Attaching logs and dumps for state before projector connection, after projector connection, and after projector disconnection.
Comment 11 Till Kamppeter 2009-02-05 02:30:53 UTC
Created attachment 22597 [details]
X log before connecting the projector
Comment 12 Till Kamppeter 2009-02-05 02:31:58 UTC
Created attachment 22598 [details]
Register dump before connecting the projector
Comment 13 Till Kamppeter 2009-02-05 02:33:27 UTC
Created attachment 22599 [details]
X log after connecting the projector and running "xrandr --auto"
Comment 14 Till Kamppeter 2009-02-05 02:35:06 UTC
Created attachment 22600 [details]
Register dump after connecting the projector and running "xrandr --auto"
Comment 15 Till Kamppeter 2009-02-05 02:36:07 UTC
Created attachment 22601 [details]
X log after disconnecting the projector
Comment 16 Till Kamppeter 2009-02-05 02:37:38 UTC
Created attachment 22602 [details]
Register dump after disconnecting the projector
Comment 17 MaLing 2009-02-05 05:34:55 UTC
hi Till
Could you try the patch in comment #8 to check whether the issue still occurs ?

Thanks
Ma Ling
Comment 18 Martin Pitt 2009-02-05 07:12:58 UTC
I have the exact same problem on the GMA945. I can reproduce it with

  xrandr --output LVDS --mode 1024x768

This will give me a white screen. If I switch again to

  xrandr --output LVDS --mode 1280x800

things are back to normal. This is with just the internal TFT, no projector connected (I get the very same problem with a projector, though).

This happens with both EXA and UXA, and with both compiz and metacity (no compositing).

I tried the patch in comment #8, and it fixes the problem. I also talked to Till (who is right next to me), he also tried the patch successfully.

In case it helps, the registers change slightly when changing to 1024:

-(II):      PFIT_PGM_RATIOS: 0x00000000
+(II):      PFIT_PGM_RATIOS: 0xf5c0f5c0

when I switch back to 1280, the registers are identical to their original values again. I also have Xorg.0.log etc., in case it's interesting.
Comment 19 MaLing 2009-02-05 07:18:17 UTC
(In reply to comment #18)
> I have the exact same problem on the GMA945. I can reproduce it with
>   xrandr --output LVDS --mode 1024x768
> This will give me a white screen. If I switch again to
>   xrandr --output LVDS --mode 1280x800
> things are back to normal. This is with just the internal TFT, no projector
> connected (I get the very same problem with a projector, though).
> This happens with both EXA and UXA, and with both compiz and metacity (no
> compositing).
> I tried the patch in comment #8, and it fixes the problem. I also talked to
> Till (who is right next to me), he also tried the patch successfully.
> In case it helps, the registers change slightly when changing to 1024:
> -(II):      PFIT_PGM_RATIOS: 0x00000000
> +(II):      PFIT_PGM_RATIOS: 0xf5c0f5c0
> when I switch back to 1280, the registers are identical to their original
> values again. I also have Xorg.0.log etc., in case it's interesting.

ok, Thanks for your help. this is a duplicate bug with 19715 and 19931.

Regards
Ma Ling
Comment 20 MaLing 2009-02-05 17:24:24 UTC

*** This bug has been marked as a duplicate of bug 19931 ***


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.