Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2007

    Back light control issue

    Hello every one

    I'm using Nokia n95 and in one of my applications I would like to take control over back lights.

    To do so I use CHWRMLight Api. Everything is working pretty well when I control primary display and keyboard and secondary keyboard. The interesting things happen when I want to play with these options:

    There is also ECustomTarget4 but for my Nokia it is not available and when I try to reserved it application crushes.
    Instead I can perform this function:

    light -> ReserveLightL((CHWRMLight::EPrimaryDisplayAndKeyboard | CHWRMLight::ESecondaryKeyboard | CHWRMLight::ECustomTarget1 | CHWRMLight::ECustomTarget2 | CHWRMLight::ECustomTarget3), ETrue, EFalse);

    But when I try to just after that turn lights off:

    light -> LightOffL(CHWRMLight::EPrimaryDisplayAndKeyboard | CHWRMLight::ESecondaryKeyboard | CHWRMLight::ECustomTarget1 | CHWRMLight::ECustomTarget2 | CHWRMLight::ECustomTarget3);

    This doesn't work. I can only call function like that:

    light -> LightOffL(CHWRMLight::EPrimaryDisplayAndKeyboard | CHWRMLight::ESecondaryKeyboard | CHWRMLight::ECustomTarget1);

    I wrote simple Active Object call which check status of light every 1 minute and if it's on turns it off again. I'm able to read status of ECustomTarget2 and ECustomTarget3. First time when I check status of ECustomTarget2 I get 0, which means 'StatusNotKnown'. I run turn off function on it and the status is still 0.
    But on the second run of my 'loop' status of ECustomTarget2 is off. Like it should be after calling off function.

    For me is a head scratcher I don't understand why I can't control ECustomTarget2, when it seems that I can reserved it. I'm not so sure if I read other CustomTarget's status correctly. Because I read that all are off and I can see that light under volume button on the side is shining.
    Can someone can give me an idea how I can really switch these lights on and off whenever I want not the OS?? Maybe some one knows which physical buttons are actually represent by Custom Targets in Nokia N95??

    Thank You in advance for a discussion upon this problem

    Best Regards

  2. #2
    Regular Contributor
    Join Date
    May 2007

    Re: Back light control issue

    Can anyone help me out here?? If something is not clear I would be happy to explain it but please ask question first

    Best Regards

Similar Threads

  1. KERN-EXEC3 in compound control.
    By hamishw in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-08-29, 08:02
  2. Problem about the view of Compound Control
    By LvChong in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-08-11, 02:26
  3. Yucca:: Control on light
    By techno2003 in forum Symbian User Interface
    Replies: 5
    Last Post: 2005-03-14, 06:19
  4. Controls lodging in another's window
    By irishbeast in forum Symbian
    Replies: 0
    Last Post: 2005-01-21, 16:02
  5. Control over back lights (3650, C++)
    By palmcrust in forum Symbian
    Replies: 1
    Last Post: 2003-08-07, 03:58

Posting Permissions

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