Set background lights for Symbian

Source: Internet
Author: User
  • crepository? Values for Backlight and screen-saver timeout-2008-07-27 08:43 #1

    kibi1

    • View profile
    • View Forum posts
    • View articles

    Registered User

    Join date
    Mar 2003
    Posts
    24

    Hi there
    I wowould like to find an API to discover the current timeouts on the device for the backlight and the screen-saver.
    basically, my application needs to mess with the Inactivity Timer to do its thing, but I still want the user's light to go out when he expects it, and to give way correctly for the screen saver-and I guess I want to update myself if the user messes with his settings.
    I am guessing there is information somewhere in the crepository, but if anyone knows where (or knows a simper way) Please tell me.
    effecthanks
    kibi

    reply with quote

  • Re: crepository? Values for Backlight and screen-saver timeout-2008-07-27 :02 #2

    Symbianyucca

    • View Profile
    • View Forum posts
    • Visit Homepage
    • View articles

    Forum Nokia expert

    Join date
    Mar 2003
    Location
    Bangkok
    Posts
    20,275

    You cocould check whether the values are within the API plug-ins, if not then they are considered to be non-public, and if somebody have otten the values from Nokia, then they are bound to the NDA, and thus they can not publish them.

    Reply with quote

  • Re: crepository? Values for Backlight and screen-saver timeout-#3

    Chenziteng

      • View Profile
      • View Forum posts
      • View articles

    Forum Nokia champion

    Join date
    May 1, 2004
    Posts
    2,033

    Originally postedKibi1

    Hi there
    I wowould like find an API to discover the current timeouts on the device for the backlight and the screen-saver.
    Basically, my application needs to mess with the Inactivity Timer to do its thing, but I still want the user's light to go out when he expects it, and to give way correctly for the screen saver-and I guess I want to update myself if the user messes with his settings.
    I am guessing there is information somewhere in the crepository, but if anyone knows where (or knows a simper way) Please tell.
    Many thanks
    Kibi

    Hi,
    Assume that the value is stored in a cenrep file, do the following steps,
    1. Start the s60 3rd edition fp2 emulator and then enter the "Settings" application.
    2. Remember the default value of the power-saver timeout setting (15 s) and then modify it (to 25 s, for example), and then exit the "Settings" Application
    3. Search in the 'epoc32' folder for recently changed files, there are several modified. CRE files.
    101f87ef. CRES
    101f877c. CRES
    1000a82b. CRES
    Make a copy of them
    4. Enter the "Settings" application and then modify the setting again (to 30 s, for example), and then exit the "setting" Application
    5. search in the 'epoc32' folder again for recently changed files, still. crecrefiles. compare them to the copies made in step 3, and we can see only the 101f877c. re is changed, and actually only one byte is changed from 0x19 (25 s) to 0x1e (30 s), so it is must be the one we are looking.
    6. check the "\ epoc32 \ release \ winscw \ udeb \ Z \ private \ 10202be9 \ 101f877c.txt", the key of the item with default value 15 is 0x8, so I guess it is the key for backlight timeout.
    ...
    0x8 int 16777216 cap_rd = alwayspass cap_wr = writedevicedata
    ...
    You can make a further confirmation by code:

    Code:

     
    Tint timeout = 0; crepository * cenrep = crepository: newlc (tuid: UID (0x101f877c); User: leaveiferror (cenrep-> get (0x8, timeout); cleanupstack: popanddestroy (cenrep );

    Regards

    Ziteng Chen

    Reply with quote

  • Re: crepository? Values for Backlight and screen-saver timeout-#4

    Cxt_programmer

    • View Profile
    • View Forum posts
    • View articles

    Forum Nokia champion

    Join date
    Feb 2006
    Location
    Beijing
    Posts
    4,164

    Wow !!!!! Ziteng, You are Superman !!!!!

    Stay hungry. Stay foolish.

    Cxt_programmer

    Reply with quote

  • re: crepository? Values for Backlight and screen-saver timeout-#5

    viewsonic0123

    • View profile
    • View Forum posts
    • View articles

    Registered User

    Join date
    Nov 2008
    Posts
    38

    // Screen Saver time out
    tint timeout = 0;

    crepository * cenrep = crepository: newlc (tuid: UID (0x101f877c);

    User: leaveiferror (cenrep-> get (0x8, timeout);

    cleanupstack: popanddestroy (cenrep);

    // backlight time out

    tint timeout = 0;

    crepository * cenrep = crepository: newlc (tuid: UID (0x101f8781);

    User: leaveiferror (cenrep-> get (0x1, timeout);

    cleanupstack: popanddestroy (cenrep);

    This is for s60 3rd edition. I do not know the others

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.