Bug 9290 - Hotkey switching to external monitor causes laptop lockup
Summary: Hotkey switching to external monitor causes laptop lockup
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.1 (2006.05)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Alan Hourihane
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-09 01:59 UTC by Paolo Meschi
Modified: 2006-12-16 03:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
My xorg configuration (4.17 KB, application/octet-stream)
2006-12-09 02:02 UTC, Paolo Meschi
no flags Details

Description Paolo Meschi 2006-12-09 01:59:44 UTC
I've a Dell 640m laptop (with a 945GM). 
When I attach an external monitor, after the 7th press of FN-F8 (CRT/LCD
hotkey), the laptop completly freezes! (I can't ssh in the laptop and the press
of the caps lock key doesn't make switch on its led)

Here's what happens:
1st press of FN-F8 --> CRT only
2nd press of FN-F8 --> CRT and LFP, on CRT the image is blurry and "dirty" (the
LFP and the CRT are on the same pipe) 
3rd press of FN-F8 --> CRT and LFP, the image on CRT is clean
4th press of FN-F8 --> CRT only
5th press of FN-F8 --> LFP only
6th press of FN-F8 --> Both monitor black
7th press of FN-F8 --> Laptop freezes!

For more information about the problem go there:
https://launchpad.net/distros/ubuntu/+source/xserver-xorg-video-i810/+bug/50243

The problem seems to be that, in the function I830CheckDevicesTimer, the driver
sometimes tries to set (with SetDisplayDevices) the video configuration to 0x900
(which is (PIPE_LFP<<8)|(PIPE_CRT<<8)) instead of 0x801 (which is
(PIPE_LFP<<8)|PIPE_CRT)

In a first time I wrote a dirty hack to fix this:
http://www.paolomeschi.com/patches/xf86-video-i810/xf86-video-i810-1.7.2-945gm-crash-dirtyhack.patch

This fixes the laptop lockup and also the "dirty" output on CRT.

However I wrote a better patch:
http://www.paolomeschi.com/patches/xf86-video-i810/xf86-video-i810-1.7.2-945gm-crash.patch

This should fix the two behaviours in a cleaner way and also makes FN-F8 work in
the correct order (LFP -> CRT+LFP -> CRT).

This work perfectly with my 945GM, but I don't know if it could cause some
troubles on other video cards...

Greetings, Paolo Meschi.
Comment 1 Paolo Meschi 2006-12-09 02:02:52 UTC
Created attachment 8027 [details]
My xorg configuration

My xorg.conf!
Comment 2 Alan Hourihane 2006-12-10 13:02:37 UTC
The patch will actually break other laptops I'm afraid.

The best you can do to force the behaviour you are looking for is to specify...

Option "monitorlayout" "crt,lfp"

Comment 3 Paolo Meschi 2006-12-12 02:58:26 UTC
I already have Option "monitorlayout" "crt,lfp" in my xorg.conf, but this
doesn't fix the problem!
Comment 4 Alan Hourihane 2006-12-12 03:04:42 UTC
Then you can probably add 

Option "Clone" 

to the options to see if that helps.
Comment 5 Paolo Meschi 2006-12-16 03:21:01 UTC
Adding Option "Clone" "True", make only the laptop crash sooner (on the 4th
press of FN-F8)...


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.