Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello all:

I am having a problem with an app that seems to dramatically slow down after 30 seconds of inactivity (no key presses) on a Samsung A530.

I got around the problem by sending a periodic key event, but obviously this is not my preferred solution.

My suspicion is that this is somehow related to the "dwSleepDefer" value I am seeing when I query the device info; it is returning 30000.

During my research on this, I've found absolutely no documentation on what the dwSleepDefer value refers to, or if it is even related to my problem. Nor can I find anyway, if this is the problem, to change it. In general, though, I want to figure out a way to stop this sleep/slow down from happening in my app.

Looking through the phone menus, I saw no reference to anything that could cause this. Also, I have triple checked my code to make sure I didn't do anything goofy. The most telling thing, is that 30 seconds after my last key press, this slow down will occur, therefore I suspect the problem lies within the phone.

Testing on a new Samsung A610 exhibits the same behavior, but not on a Mot. t720.

Anyone have any ideas?

I don´t think this is aproblem at all, all devices do slown down after some time, I believe they get into standby mode, or power save mode..

I don´t think this is aproblem at all, all devices do slown down after some time, I believe they get into standby mode, or power save mode..

Search the forums for EVT_APP_NO_SLEEP
For example:
http://qisbbsprd.qualcomm.com/showthread.php?s=&threadid=982&highlight=E...
HTH
Radu

Search the forums for EVT_APP_NO_SLEEP
For example:
http://qisbbsprd.qualcomm.com/showthread.php?s=&threadid=982&highlight=E...
HTH
Radu

Yeah, that's the screen dimmer, to save some energy after some time of unactivity.. It's not a brew problem, but a feature of the phone (which can be disactivated on some, but i would not recommend to do so..)
Well, execept if you want to have some kind of animation in a game, i do not think this is really ennoying, since most of the time you will ask the user for some kind of input...
/kUfa

Yeah, that's the screen dimmer, to save some energy after some time of unactivity.. It's not a brew problem, but a feature of the phone (which can be disactivated on some, but i would not recommend to do so..)
Well, execept if you want to have some kind of animation in a game, i do not think this is really ennoying, since most of the time you will ask the user for some kind of input...
/kUfa

Thanks for the info all!
For kicks, I tried the EVT_APP_NO_SLEEP trick but since this is a Brew1.1 device, it didn't even send that event.
I resorted to periodically sending a key event. Not the most elegant solution, but now I know what to do when I get a 2.0 phone in.

Thanks for the info all!
For kicks, I tried the EVT_APP_NO_SLEEP trick but since this is a Brew1.1 device, it didn't even send that event.
I resorted to periodically sending a key event. Not the most elegant solution, but now I know what to do when I get a 2.0 phone in.

Hi Guys,
I'm getting dwSleepDefer as 51982764. If we convert this value to minutes it is 882 odd value.. This is wrong.. Can any 1 tell how we can get proper dwSleepDefer value.
Thanks
Jithendra

Hi Guys,
I'm getting dwSleepDefer as 51982764. If we convert this value to minutes it is 882 odd value.. This is wrong.. Can any 1 tell how we can get proper dwSleepDefer value.
Thanks
Jithendra