×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Mar 2011
    Posts
    213

    Post what API can use to get "light time out" of "Nokia 5230"..

    Hi All,

    is there any way to get the value of "light time out" of "Nokia 5230"?
    please help...

    Thanks in advance....

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: what API can use to get "light time out" of "Nokia 5230"..

    most often you dont need to, you would just reset the inactivity timer, thus what is the actual use case here ?

  3. #3
    Regular Contributor
    Join Date
    Mar 2011
    Posts
    213

    Re: what API can use to get "light time out" of "Nokia 5230"..

    Hi Yucca,
    yes you are right but
    i would like to reset only before 1 second by (minimum of (power light off time, light time out))..
    that would be some efficient way to do so.
    so for i am able to find only power saver time out of phone.
    only determining another one "light time out" is remain.

    if you have any idea please suggest....


    Thanks,
    Rajsh
    Last edited by rajeshkumar_pal; 2011-05-13 at 06:16.

  4. #4
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: what API can use to get "light time out" of "Nokia 5230"..

    Try this:
    Code:
    const TUid KCRUidLightSettings = {0x10200C8C};
    
    // Timeout for setting off the display lights. Value is in seconds.
    const TUint32 KDisplayLightsTimeout = 0x00000006;
    
    TInt value;
     
    CRepository* rep = CRepository::NewLC(KCRUidLightSettings);
    rep->Get(KDisplayLightsTimeout, value);
    CleanupStack::PopAndDestroy(rep);

  5. #5
    Regular Contributor
    Join Date
    Mar 2011
    Posts
    213

    Re: what API can use to get "light time out" of "Nokia 5230"..

    Hi A.A.M. ,
    Thank you so much for help...
    now i am able to find "light time out".

    But how to reset userinactivity time?
    as now i am using API-

    User::ResetInactivityTime();

    but this one is reseting to the "power light off time" but not to light time out .

    here is explanation for the same.

    for example:

    here we consider two parameters:

    case power light off time light time out

    1- 5 sec 10 sec { calling API User::ResetInactivityTime() in every 4 sec of interval and it is resetting to "light time out" on every 6 sec resmin to die off but not to first one;
    2- 10 sec 5 sec { calling API User::ResetInactivityTime() in every 4 sec of interval and it is resetting to "light time out" on every 6 sec resmin to die off but not to first one;

    And as i observed for Nokia5230.

    in sececond case light is not going to die if(power light off time>= light time out ) but not in first case.

    and once background light is existing then after "power light off time " front light comes.

    is any idea clue ....??
    please help...

    Thanks in advance..
    Rajesh

  6. #6
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: what API can use to get "light time out" of "Nokia 5230"..

    but this one is reseting to the "power light off time" but not to light time out .
    Not quite understand what the problem is. User::ResetInactivityTime() will reset an inactivity timers only once. You need call it every time before KDisplayLightsTimeout has not elapsed.

  7. #7
    Regular Contributor
    Join Date
    Mar 2011
    Posts
    213

    Re: what API can use to get "light time out" of "Nokia 5230"..

    Hi AAm,

    i am calling the API "User::ResetInactivityTime() " after an interval (using cperiodic object) that is less than minimum( power light off time, light time out).

    But backlight starts after timeout .
    My phone is touch phone Nokia 5230 set.
    i do not know why.?

    Thanks,
    Rajesh

  8. #8
    Regular Contributor
    Join Date
    Mar 2011
    Posts
    213

    Re: what API can use to get "light time out" of "Nokia 5230"..

    Hi AAM,

    As we know there is two time parameter :
    1- power light off time
    that tell a dim light will be on up to this time

    2-light time out
    that tell screen light will be on up to this time.

    and the API User::ResetInactivityTime() is working consequently dim light is always on.
    and the screen light get on just before time out for dim light but it should have been reseted just before screen light time out , as i have checked in my application.
    my question is both should be reseted independently by API User::ResetInactivityTime() . but screen light is dependent on dim light time out.
    is there any other Api that can help me out.???


    Thanks,

  9. #9
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: what API can use to get "light time out" of "Nokia 5230"..

    Try to check CHWRMLight class. Also this article in wiki could be helpful: "Controlling light settings using CHWRMLight".

  10. #10
    Regular Contributor
    Join Date
    Mar 2011
    Posts
    213

    Re: what API can use to get "light time out" of "Nokia 5230"..

    Hi All,
    Thanks for help..
    actually i was doing a silly mistake in .inf file .
    now my code is fine.

    And one more thing: specially for AAM,

    const TUid KCRUidLightSettings = {0x10200C8C};

    snap;;;;

    // Timeout for setting off the display lights. Value is in seconds.
    const TUint32 KDisplayLightsTimeout = 0x00000006;

    is OK with none touch Phones only....
    Could you tell how can we do the same in touch phone??
    touch phone also must be saving time out in some file..

    Thanks in advance,
    rajesh

  11. #11
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: what API can use to get "light time out" of "Nokia 5230"..

    I guess it compatible with the Symbian S60 since 3rd ed. MR and up to Symbian^3.

Similar Threads

  1. Replies: 4
    Last Post: 2010-08-17, 09:39
  2. Is there a way to "edit" and "save" the "texts" of received SMS messages?
    By pamir_yasti in forum General Development Questions
    Replies: 1
    Last Post: 2010-07-16, 10:15
  3. How can i use the "CMsvEntry", "TMsvEntry", "CImSmtpSettings"?
    By GFYsweetwood in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-03-12, 07:36
  4. How to get slider editor like "Light time-out"?
    By mapeters in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-09-13, 23:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •