×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    1

    How to control screen light?

    Hi all,

    Is there any way to control screen light?

    I need to turn screen light back on after it has been
    dimmed down while staying idle long enough..

    I'm using alpha 1.1.6 2nd ed. fp2

    Thanks!

  2. #2
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Bangkok, Thailand
    Posts
    148

    Re: How to control screen light?

    You need the miso library from
    http://pdis.hiit.fi/pdis/download/miso/
    Then use this code
    Code:
    import miso
    miso.reset_inactivity_time()
    You can make it always on as well
    Code:
    def light_on():
        import miso, e32
        miso.reset_inactivity_time()
        e32.ao_sleep(10, light_on)  # forever loop
    light_on()      # always keep light on
    Last edited by korakotc; 2005-09-18 at 15:20.

  3. #3
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: How to control screen light?

    Quote Originally Posted by korakotc
    Code:
    def light_on():
        import miso, e32
        miso.reset_inactivity_time()
        e32.ao_sleep(10, light_on)  # forever loop
    light_on()      # always keep light on
    This will panic the application if there is a sleep call pending during an application exit.

Similar Threads

  1. how to keep screen light on in app
    By johnmobile in forum Mobile Java General
    Replies: 3
    Last Post: 2009-10-28, 18:47
  2. 3220 light control
    By applecat in forum Mobile Java General
    Replies: 0
    Last Post: 2004-11-17, 04:33
  3. How to control the screen light on 3510i
    By johnmobile in forum General Development Questions
    Replies: 0
    Last Post: 2003-12-02, 15:29
  4. BUG: No background light and vibrator control
    By apriori in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-29, 12:45
  5. Replies: 1
    Last Post: 2002-10-18, 02:35

Posting Permissions

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