Bug 16515 - [G45]no display when switch to text_console from X
Summary: [G45]no display when switch to text_console from X
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other Linux (All)
: high normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 17506 17562 (view as bug list)
Depends on:
Blocks: intel-2.5
  Show dependency treegraph
 
Reported: 2008-06-25 01:55 UTC by liuhaien
Modified: 2008-10-12 19:49 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments
reg_dumper_before_vt (8.32 KB, text/plain)
2008-06-25 01:55 UTC, liuhaien
no flags Details
reg_dumper_after_vt (8.29 KB, text/plain)
2008-06-25 01:57 UTC, liuhaien
no flags Details
xorg.0.log (61.28 KB, text/plain)
2008-06-25 01:58 UTC, liuhaien
no flags Details
xorg conf file (3.87 KB, text/plain)
2008-06-25 01:58 UTC, liuhaien
no flags Details
Xorg.log without workaround (138.54 KB, text/plain)
2008-07-22 01:53 UTC, Li Peng
no flags Details
Xorg.log with workaround (112.44 KB, text/plain)
2008-07-22 01:54 UTC, Li Peng
no flags Details
unable to display console after starting X (101.54 KB, text/plain)
2008-09-15 11:10 UTC, Matthew Danish
no flags Details
DVI vt switch patch (1.25 KB, patch)
2008-09-24 02:17 UTC, Wang Zhenyu
no flags Details | Splinter Review

Description liuhaien 2008-06-25 01:55:34 UTC
Created attachment 17366 [details]
reg_dumper_before_vt

System Environment:
--------------------------
Host:           g45
Arch:           x86_64
Kernel:         2.6.26-rc7
Libdrm:master       d726eb2e5e192f22e41e399d9133edcd7202f0c5
Mesa: master        5174b85a0cb13b06779ea6fc0a8362c9fe57e2ea
Xserver: master      385943e0e97463ce4681a9b6a4a40d7e3c91e51e            
Xf86_video_intel:master    59f39e0ea0ad48c52d9b8f7afb6e04ce95db717e

Bug detailed description:
--------------------------
start X,no display but notice "no signal" when  run "chvt 1" .

Reproduce steps:
----------------
1.xinit&
2.chvt 1
Comment 1 liuhaien 2008-06-25 01:57:16 UTC
Created attachment 17367 [details]
reg_dumper_after_vt
Comment 2 liuhaien 2008-06-25 01:58:12 UTC
Created attachment 17368 [details]
xorg.0.log
Comment 3 liuhaien 2008-06-25 01:58:30 UTC
Created attachment 17369 [details]
xorg conf file
Comment 4 Gordon Jin 2008-06-25 02:29:34 UTC
Haien, does this happen with the stable driver?
Comment 5 liuhaien 2008-06-25 23:12:12 UTC
(In reply to comment #4)
> Haien, does this happen with the stable driver?
> 

Yes,there is the same issue happen with stable driver.
Comment 6 Gordon Jin 2008-07-01 18:16:51 UTC
Haien, does this issue happen in every VT switch, or just the first time (bug#15187)?
Comment 7 liuhaien 2008-07-01 19:11:26 UTC
(In reply to comment #6)
> Haien, does this issue happen in every VT switch, or just the first time
> (bug#15187)?
> 

yes ,it happened every switch(X->console).
Comment 8 Johannes Engel 2008-07-16 06:39:22 UTC
I experience something similar (the same?) on my 945GM. Text console is displayed fine, but switching back to X only shows a black screen with the mouse pointer. The keyboard does not work anymore in that state.
Comment 9 Li Peng 2008-07-22 00:36:46 UTC
I met the same problem with G45, which have one DVI and one HDMI. Here is a workaround that works for me.

diff --git a/src/i830_hdmi.c b/src/i830_hdmi.c
index b738463..7d31f87 100644
--- a/src/i830_hdmi.c
+++ b/src/i830_hdmi.c
@@ -218,7 +218,8 @@ i830_hdmi_init(ScrnInfoPtr pScrn, int output_reg)

     intel_output->dev_priv = dev_priv;
     intel_output->type = I830_OUTPUT_HDMI;
-    intel_output->pipe_mask = ((1 << 0) | (1 << 1));
+    intel_output->pipe_mask = (1 << 1);
+    //intel_output->pipe_mask = ((1 << 0) | (1 << 1));
     intel_output->clone_mask = (1 << I830_OUTPUT_HDMI);

     /* Set up the DDC bus. */



Comment 10 Wang Zhenyu 2008-07-22 01:08:55 UTC
Interesting, Peng, could you paste your X log?
Comment 11 Li Peng 2008-07-22 01:53:15 UTC
Created attachment 17816 [details]
Xorg.log without workaround

Xorg.log without workaround
Comment 12 Li Peng 2008-07-22 01:54:41 UTC
Created attachment 17817 [details]
Xorg.log with workaround

Xorg.log with workaround
Comment 13 Li Peng 2008-07-22 02:17:03 UTC
I once thought this maybe related to DSPARB. But it doesn't help when I program the register same as GM45.
Comment 14 Wang Zhenyu 2008-07-22 20:04:51 UTC
Peng, I tested without any pipe kludge on one G45 here, hdmi attached to a sony bravia 1080p. VT switch works fine here. 
Comment 15 Li Peng 2008-07-22 20:17:47 UTC
Strange. This problem happens on both of my G45 and Q45. Actually this is not specific for HDMI. The integrated DVI interface will also be covered by the hdmi code. 
Comment 16 Gordon Jin 2008-07-22 23:44:47 UTC
Haien can reproduce this bug on the DVI port on our G45, with either DVI connection or DVI->VGA adapter.
He can't reproduce this bug on the HDMI port on our G45.
Comment 17 Li Peng 2008-07-22 23:56:40 UTC
(In reply to comment #16)
> Haien can reproduce this bug on the DVI port on our G45, with either DVI
> connection or DVI->VGA adapter.
> He can't reproduce this bug on the HDMI port on our G45.

Same to me on the DVI port. I can also see the problem on HDMI.

BTW, I am testing HDMI on DELL 2408WFP.

Comment 18 liuhaien 2008-07-29 18:30:35 UTC
  firstly,this bug still can reproduce on G45( has DVI && HDMI port) when using DVI->VGA, and we cannot see anything even startup information with DVI->DVI,but VT-switch works well with HDMI->HDMI.
 secondly,it works well on q45(only has a VGA port) with VGA->VGA.
 when we disconnect HDMI and connect DVI->VGA on G45, we can see "HDMI connected" in xrandr info,following is the output of xrandr:
xrandr -q:
Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 1920 x 1920
VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*
   800x600        60.3
   640x480        59.9
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 519mm x 324mm
   1920x1200      60.0*+
   1600x1200      59.9
   1280x1024      75.0     59.9
   1152x864       74.8
   1024x768       75.1     60.0
   800x600        75.0     60.3
   640x480        75.0     60.0
   720x400        70.1
Comment 19 Li Peng 2008-07-29 20:51:52 UTC
haien, Does my fix work for you ?
Comment 20 liuhaien 2008-07-30 00:44:10 UTC
(In reply to comment #19)
> haien, Does my fix work for you ?
> 

I use the patch on your Comment #9 ,and it doesn't work on our G45.
Comment 21 Michael Fu 2008-08-03 00:55:47 UTC
(In reply to comment #18)

>  when we disconnect HDMI and connect DVI->VGA on G45, we can see "HDMI
> connected" in xrandr info,following is the output of xrandr:
> xrandr -q:
> Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 1920 x 1920
> VGA connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
>    1024x768       60.0*
>    800x600        60.3
>    640x480        59.9
> HDMI-1 disconnected (normal left inverted right x axis y axis)
> HDMI-2 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 519mm
> x 324mm
>    1920x1200      60.0*+
>    1600x1200      59.9
>    1280x1024      75.0     59.9
>    1152x864       74.8
>    1024x768       75.1     60.0
>    800x600        75.0     60.3
>    640x480        75.0     60.0
>    720x400        70.1
> 

haien, what monitor do you connect using DVI->VGA after you disconnect HDMI? I suspect this behaviour above might be a dup of our internal bug 345. 
Comment 22 Michael Fu 2008-08-03 01:18:51 UTC
(In reply to comment #15)
> Strange. This problem happens on both of my G45 and Q45. Actually this is not
> specific for HDMI. The integrated DVI interface will also be covered by the
> hdmi code. 
> 

Peng, does your Q45 have D-sub VGA port, or have integrated DVI ports only?
Comment 23 Li Peng 2008-08-03 18:01:02 UTC
(In reply to comment #22)
> (In reply to comment #15)
> > Strange. This problem happens on both of my G45 and Q45. Actually this is not
> > specific for HDMI. The integrated DVI interface will also be covered by the
> > hdmi code. 
> > 
> Peng, does your Q45 have D-sub VGA port, or have integrated DVI ports only?

My Q45 only has two integrated DVI ports, no VGA port available.

Comment 24 Michael Fu 2008-08-03 19:27:27 UTC
(In reply to comment #23)
> (In reply to comment #22)
> > (In reply to comment #15)
> > > Strange. This problem happens on both of my G45 and Q45. Actually this is not
> > > specific for HDMI. The integrated DVI interface will also be covered by the
> > > hdmi code. 
> > > 
> > Peng, does your Q45 have D-sub VGA port, or have integrated DVI ports only?
> 
> My Q45 only has two integrated DVI ports, no VGA port available.
> 

I see. I think it confirms my suspect. I was just talking with zhenyu about this... thanks, Peng.
Comment 25 Gordon Jin 2008-08-04 04:34:42 UTC
(In reply to comment #21)
> haien, what monitor do you connect using DVI->VGA after you disconnect HDMI? I
> suspect this behaviour above might be a dup of our internal bug 345. 

Yes, it's exactly #345. We wanted to track only one issue per bug report.
Comment 26 Wang Zhenyu 2008-09-08 23:52:34 UTC
Could you test if this is still true with my patch on internal #345?
Comment 27 liuhaien 2008-09-09 00:04:18 UTC
(In reply to comment #26)
> Could you test if this is still true with my patch on internal #345?
> 

with your patch ,we can get a black screen with message shows "cannot display this video mode" .
Comment 28 Gordon Jin 2008-09-11 01:28:47 UTC
*** Bug 17506 has been marked as a duplicate of this bug. ***
Comment 29 Gordon Jin 2008-09-13 17:59:31 UTC
*** Bug 17562 has been marked as a duplicate of this bug. ***
Comment 30 Matthew Danish 2008-09-13 18:15:12 UTC
Hi, didn't see this one when looking through the list.  Anyhow, I have a similar problem with the Gigabyte G43 board.  I am using the VGA port (have had zero luck getting any output on DVI port).  I can use the vesa driver, but that is obviously unsatisfactory.  I will try the aforementioned workaround when I get a chance.
Comment 31 Matthew Danish 2008-09-15 10:51:35 UTC
No luck with the workaround.  Though I suppose that is for HDMI only, anyway.
Comment 32 Matthew Danish 2008-09-15 11:10:08 UTC
Created attachment 18887 [details]
unable to display console after starting X

Here's my log with ModeDebug enabled.  I started X, switched to VT1 (Monitor says: Out of Range), switched back to X (displays OK), then Ctrl-Alt Backspace (again monitor says: Out of Range).  Then I used the Magic SysRq hotkeys to reboot since I was stuck with no display.

You can see the LeaveVT,EnterVT,LeaveVT progression in the log.
Comment 33 Wang Zhenyu 2008-09-24 02:17:32 UTC
Created attachment 19149 [details] [review]
DVI vt switch patch

Please test this one with G45/43 on DVI.
Comment 34 Will Saxon 2008-09-24 18:05:01 UTC
I tested this using xorg-server 1.5, mesa 7.2, libdrm from git and xf86-video-intel from git. It works! I am able to switch from X to text console and back.
Comment 35 Sven Arvidsson 2008-09-25 05:38:26 UTC
I applied the patch to 2.4.2 and I can confirm that it seems to work fine. I'm using a Asus P5Q-EM motherboard with DVI.
Comment 36 Wang Zhenyu 2008-09-25 19:17:10 UTC
Thanks for testing, I've pushed patch. Close.
Comment 37 liuhaien 2008-10-12 19:49:25 UTC
verified.


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.