BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-08-2008, 01:18 AM   #1 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Backlight to be kept on

Please Login to Remove!

Hi

I am working to implement a logic to keep the backlight on all the time on a particular screen.
I have tried all that this article says: Livelink - Redirection

The code turns on the backlight every 150 seconds (backlight is turned on for 255 seconds though)... however the backlight goes off in 50 seconds (not through the code). After 150 seconds (as implemented in the logic) it turns on again.

The problem i am facing is similar to this post.. couldn't post here as this is closed:
Reading set Backlight timeout value

Does anybody have any idea about this? Please post if you need more details to reply to the query.

Last edited by shraddha294 : 07-08-2008 at 05:02 AM.
Offline  
Old 07-08-2008, 05:11 AM   #2 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Changed from 150 seconds to 10 seconds. It still goes off at times.

Debugged this on device. "time diff" is the SOP that i've put.
Looks like the timer goes idle and "time diff" goes beyond 10 seconds.

time diff: 1
JVM: bklt @295718: timer
JVM: bklt @295719: idle 6
JVM: bklt @295721: setTimer 9
JVM: bklt @296964: timer
JVM: bklt @296966: idle 16
JVM: bklt @296968: setTimer 15
VM:PFLAs=3e900
VM:+GC(F)w=20
VM:-GCt=82,b=0,r=0,g=1
VM:+CR
VM:-CR=46
JVM: bklt @298928: timer
JVM: bklt @298930: idle 15
JVM: bklt @300494: setTimer 15

time diff: 52 Making backlight on; Delay: 52

While it was idle the 10 second delay passed; backlight got turned off.. by the time it returned to the code the delay became 52 seconds and backlight is turned on (as delay exceeded 10 sec).
I don't think we can control this; except by changing defaultTimeout for the device that i want to avoid doing. Any comments/ ideas??

Last edited by shraddha294 : 07-08-2008 at 05:12 AM.
Offline  
Old 07-08-2008, 06:04 AM   #3 (permalink)
No longer Registered.
 
Dawg's Avatar
 
Join Date: Mar 2005
Location: Atlanta
Model: 8330
OS: 4.5.0.138
PIN: 31a6c9c9
Carrier: Verizon BIS
Posts: 13,963
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

try bblight
Offline  
Old 07-09-2008, 02:41 AM   #4 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dawg View Post
try bblight
Thanks.. yes that will work..
but isn't there anything that i can do with the native APIs then ??

We cannot use third party stuff in our app.
Offline  
Old 07-09-2008, 06:20 AM   #5 (permalink)
No longer Registered.
 
Dawg's Avatar
 
Join Date: Mar 2005
Location: Atlanta
Model: 8330
OS: 4.5.0.138
PIN: 31a6c9c9
Carrier: Verizon BIS
Posts: 13,963
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

its open source so why not make it better
Offline  
Old 07-10-2008, 04:36 AM   #6 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dawg View Post
its open source so why not make it better
Hmmm... Thanks.. checked bblight i can use that.

At the same time i still wonder why the timer goes idle.. it can be seen in the println statements that i got from the device. There should be some fix for that or atleast i should be able to explain why this timer sleeps and doesn't print the in-between logs like: time diff : 2,time diff: 3.. and so on... after reaching 10 seconds it turns on the backlight (most of the times except in some cases like this).
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.