Page 1 of 1

N97 - Dark Screen after OnRestore

PostPosted: Oct 8, 2009 @ 5:53pm
by itaita
Hi,

I'm working on an application for Nokia N97 using OpenGL and the latest EDGELIB Version.

My problem is as follows: Each time I restore the application back to the foreground, the application window is displayed and over it there is a dark surface, which is a left over from the minimize that sent the application to the background.

Note that the application is responsive to touch after the restore.

I've tried out a few things (Symbian code) in order to try and solve this problem.

1. I've tried to turn on the lights of the device, with no apparent success.

2. I've noticed that locking and locking the device helps getting rid of the dark surface, so I've tried to simply unlock the device. It didn't work.

The only thing that did show some results was - Locking the device and then Unlocking it.
The problem here is that I get into a loop of OnRestore() -> Lock -> UnLock -> OnRestore() and so on..

Another important remark would be that other EDGELIB applications I've written, that don't use OpenGL, work just fine when minimized and restored.

Any suggestions on how to solve this issue ?

Thank you for your time,

Ita

PostPosted: Oct 9, 2009 @ 7:54am
by edge
Hi,

Perhaps the issue is caused by OpenGL not properly being cleared.

Could you try the following?
- Calling ecd.dsp->Resume() after OnRestore
- Calling ecd.dsp->Clear() and see if it gets rid of the black screen
- Closing and reopening the display

PostPosted: Oct 11, 2009 @ 9:43am
by itaita

PostPosted: Oct 15, 2009 @ 1:04pm
by edge
Hi Ita,

I'm affraid reopening the display isn't going to work. Can you tell me if you refresh the display every frame? Also, is the screen really black or just dimmed?

PostPosted: Oct 15, 2009 @ 2:45pm
by itaita

PostPosted: Oct 15, 2009 @ 4:56pm
by RapchikProgrammer

PostPosted: Oct 18, 2009 @ 2:43pm
by itaita

PostPosted: Oct 18, 2009 @ 10:10pm
by RapchikProgrammer

PostPosted: Oct 21, 2009 @ 2:38pm
by itaita

PostPosted: Oct 23, 2009 @ 8:21am
by edge
Hi Ita,

Please try the following test: when the application has just restored, try to fill the screen with a green color. Do you see a dimmed green screen, or just the previous screen? If it remains dimmed but shows a green color, there is something wrong with the backlight. If the screen doesn't change, then you can probably fix it by using the correct OpenGL functions. Let me know the results.

PostPosted: Oct 25, 2009 @ 5:57pm
by itaita

PostPosted: Oct 26, 2009 @ 9:30am
by edge
Hi Ita,

The best way to proceed forward is to investigate why the backlight won't come on on this specific device. Perhaps there are others who have the same issue. Also try existing (OpenGL-enabled) games on this device and see if it has the same issue with the backlight.

You may also try to disable the backlighton setting in the EDGELIB configuration (it may sound funny, but perhaps this fixes your issue).

PostPosted: Oct 26, 2009 @ 12:39pm
by itaita
Hey,

I took your advice and did some extra resource.
First I tried to change the backlight configuration, which didn't solve the issue.

Second I searched for some OpenGLES based applications and installed it.

The problem of the dimmed display haven't repeated itself.

The application I've used is called "GLBenchmark 1.1" and here is a link to download it.


I've also tested the same issue on another game that I suspect uses OpenGLES, and still the problem didn't recurred.

Where do we go from here ?

PostPosted: Oct 28, 2009 @ 10:26am
by edge
Hi Ita,

I think the last thing you can do is to run the EDGELIB Animate3D sample, and check if it's an EDGELIB issue or not (if the sample is working correctly with the backlight, then it's something in your own application).

You can also try to download the latest firmware and test your application on other Symbian devices.

PostPosted: Oct 29, 2009 @ 3:07pm
by itaita
Hi,

Thank you for your time.

I've installed the Animate3D on N97 and the problem persist. (I'm using the latest firmware for this device)

I've also tried my own application on the Nokia5800 device and the same goes for this device.

This seems like a problem which is unique to EDGELIB.

Ita