This site is no longer active and is available for archival purposes only. Registration and login is disabled.

N97 - Dark Screen after OnRestore


N97 - Dark Screen after OnRestore

Postby itaita » Oct 8, 2009 @ 5:53pm

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
itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Postby edge » Oct 9, 2009 @ 7:54am

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
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby itaita » Oct 11, 2009 @ 9:43am

itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Postby edge » Oct 15, 2009 @ 1:04pm

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?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby itaita » Oct 15, 2009 @ 2:45pm

itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Postby RapchikProgrammer » Oct 15, 2009 @ 4:56pm

RapchikProgrammer
pm Member
 
Posts: 56
Joined: Oct 18, 2008 @ 7:08am


Postby itaita » Oct 18, 2009 @ 2:43pm

itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Postby RapchikProgrammer » Oct 18, 2009 @ 10:10pm

RapchikProgrammer
pm Member
 
Posts: 56
Joined: Oct 18, 2008 @ 7:08am


Postby itaita » Oct 21, 2009 @ 2:38pm

itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Postby edge » Oct 23, 2009 @ 8:21am

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby itaita » Oct 25, 2009 @ 5:57pm

itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Postby edge » Oct 26, 2009 @ 9:30am

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).
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby itaita » Oct 26, 2009 @ 12:39pm

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 ?
itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Postby edge » Oct 28, 2009 @ 10:26am

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby itaita » Oct 29, 2009 @ 3:07pm

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
itaita
pm Member
 
Posts: 10
Joined: Apr 23, 2009 @ 9:41am


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron