Re: i830 screen black after resume on 4.4

2004-04-12 Thread Alan Hourihane
Have you tried adding

Option VBERestore false

Alan.

On Mon, Apr 12, 2004 at 10:37:34AM +0800, Jeff Chua wrote:
 I've checked the CVS, and found that the i810 driver up to 4_3_99_9 works
 after resume, but anything after 4_3_99_9 has the same problem of
 displaying black screen after apm resume.
 
 Is there anyone else having this problem? I'm running on IBM X30 ThinkPad.
 
 
 Thanks,
 Jeff
 
 On Sat, 10 Apr 2004, Jeff Chua wrote:
 
 
  still doesn't work. But why _old_ version works better than new one?
 
  Usually newer version should works better, but in this case, it looks like
  going one step back ...
 
 
  Thanks,
  Jeff
  [ [EMAIL PROTECTED] ]
 
  On Fri, 9 Apr 2004, Alex Deucher wrote:
 
   --- Jeff Chua [EMAIL PROTECTED] wrote:
I'm getting black screen after power resume on version 4.4.99.2.
I can see the mouse, all window frames, but black contents.
   
No such problem with 4.3.0.
   
Tested on linux 2.4.26-rc2 and 2.6.5
   
I'm using apm to resume, and with 4.3.0, it works fine.
  
   You might try changing the VT prior to suspending if you are not
   already.
  
   Alex
  
   
Thanks,
Jeff
[ [EMAIL PROTECTED] ]
  
  
   __
   Do you Yahoo!?
   Yahoo! Small Business $15K Web Design Giveaway
   http://promotions.yahoo.com/design_giveaway/
   ___
   Devel mailing list
   [EMAIL PROTECTED]
   http://XFree86.Org/mailman/listinfo/devel
  
 
 ___
 Devel mailing list
 [EMAIL PROTECTED]
 http://XFree86.Org/mailman/listinfo/devel
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: i830 screen black after resume on 4.4

2004-04-12 Thread Jeff Chua
On Mon, 12 Apr 2004, Alan Hourihane wrote:
 Have you tried adding
 Option VBERestore false

Tried, but still doesn't work.


On Sun, 11 Apr 2004, Alex Deucher wrote:
 Can you narrow down the exact change that caused the problem?

I looked into why 4_3_99_9 works, and anything after doesn't, and realized
that this portion of the code causes the problem.


--- i830_driver.c.org  Mon Apr 12 22:25:53 2004
+++ i830_driver.c Mon Apr 12 22:29:29 2004
@@ -2147,6 +2147,14 @@
vbeFree(pVbe);

 #if defined(XF86DRI)
+   /* Load the dri module if requested. */
+   if (xf86ReturnOptValBool(pI830-Options, OPTION_DRI, FALSE) 
+   !pI830-directRenderingDisabled) {
+  if (xf86LoadSubModule(pScrn, dri)) {
+xf86LoaderReqSymLists(I810driSymbols, I810drmSymbols, NULL);
+  }
+   }
+
if (!pI830-directRenderingDisabled) {
   if (!xf86LoadSubModule(pScrn, shadow)) {
 PreInitCleanup(pScrn);


It seems that loading the DRI causes the screen to go blank after resume.
If I don't suspend/resume, screen works fine.

Next, I tried disabling DRI ...

Option  DRI   off

and that fixes the problem. Screen restores correctly after resume.

I don't know how to fix the DRI to get it to restore the screen after
resume, but if someone is willing to provide guidance, I'll be more than
willing to help.

Thanks,
Jeff.


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: i830 screen black after resume on 4.4

2004-04-12 Thread Alex Deucher
--- Jeff Chua [EMAIL PROTECTED] wrote:
 
 On Mon, 12 Apr 2004, Alan Hourihane wrote:
  Have you tried adding
  Option VBERestore false
 
 Tried, but still doesn't work.
 
 
 On Sun, 11 Apr 2004, Alex Deucher wrote:
  Can you narrow down the exact change that caused the problem?
 
 I looked into why 4_3_99_9 works, and anything after doesn't, and
 realized
 that this portion of the code causes the problem.
 
 
 --- i830_driver.c.org  Mon Apr 12 22:25:53 2004
 +++ i830_driver.c Mon Apr 12 22:29:29 2004
 @@ -2147,6 +2147,14 @@
 vbeFree(pVbe);
 
  #if defined(XF86DRI)
 +   /* Load the dri module if requested. */
 +   if (xf86ReturnOptValBool(pI830-Options, OPTION_DRI, FALSE) 
 +   !pI830-directRenderingDisabled) {
 +  if (xf86LoadSubModule(pScrn, dri)) {
 +xf86LoaderReqSymLists(I810driSymbols, I810drmSymbols, NULL);
 +  }
 +   }
 +
 if (!pI830-directRenderingDisabled) {
if (!xf86LoadSubModule(pScrn, shadow)) {
  PreInitCleanup(pScrn);
 
 
 It seems that loading the DRI causes the screen to go blank after
 resume.
 If I don't suspend/resume, screen works fine.
 
 Next, I tried disabling DRI ...
 
   Option  DRI   off
 
 and that fixes the problem. Screen restores correctly after resume.
 
 I don't know how to fix the DRI to get it to restore the screen after
 resume, but if someone is willing to provide guidance, I'll be more
 than
 willing to help.

Unfortunately, there is no real dri support for suspend/resume.  The
only driver with support is the radeon driver.  you also need to have
suspend/resume support in the agp chipset driver.  See this apge for
more info:
http://cpbotha.net/dri_resume.html

Feel free to implement support.

Alex

 
 Thanks,
 Jeff.
 
 





__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: i830 screen black after resume on 4.4

2004-04-11 Thread Jeff Chua
I've checked the CVS, and found that the i810 driver up to 4_3_99_9 works
after resume, but anything after 4_3_99_9 has the same problem of
displaying black screen after apm resume.

Is there anyone else having this problem? I'm running on IBM X30 ThinkPad.


Thanks,
Jeff

On Sat, 10 Apr 2004, Jeff Chua wrote:


 still doesn't work. But why _old_ version works better than new one?

 Usually newer version should works better, but in this case, it looks like
 going one step back ...


 Thanks,
 Jeff
 [ [EMAIL PROTECTED] ]

 On Fri, 9 Apr 2004, Alex Deucher wrote:

  --- Jeff Chua [EMAIL PROTECTED] wrote:
   I'm getting black screen after power resume on version 4.4.99.2.
   I can see the mouse, all window frames, but black contents.
  
   No such problem with 4.3.0.
  
   Tested on linux 2.4.26-rc2 and 2.6.5
  
   I'm using apm to resume, and with 4.3.0, it works fine.
 
  You might try changing the VT prior to suspending if you are not
  already.
 
  Alex
 
  
   Thanks,
   Jeff
   [ [EMAIL PROTECTED] ]
 
 
  __
  Do you Yahoo!?
  Yahoo! Small Business $15K Web Design Giveaway
  http://promotions.yahoo.com/design_giveaway/
  ___
  Devel mailing list
  [EMAIL PROTECTED]
  http://XFree86.Org/mailman/listinfo/devel
 

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: i830 screen black after resume on 4.4

2004-04-09 Thread Alex Deucher
--- Jeff Chua [EMAIL PROTECTED] wrote:
 I'm getting black screen after power resume on version 4.4.99.2.
 I can see the mouse, all window frames, but black contents.
 
 No such problem with 4.3.0.
 
 Tested on linux 2.4.26-rc2 and 2.6.5
 
 I'm using apm to resume, and with 4.3.0, it works fine.

You might try changing the VT prior to suspending if you are not
already.

Alex

 
 Thanks,
 Jeff
 [ [EMAIL PROTECTED] ]


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel