You Are Here:

Community: Developer Discussion Boards

#1 Old How to control screen light? - 2005-09-18, 11:40

Join Date: Sep 2005
Posts: 1
milindbe
Offline
Registered User
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!
Reply With Quote

#2 Old Re: How to control screen light? - 2005-09-18, 15:54

Join Date: Jan 2005
Posts: 148
Location: Bangkok, Thailand
Send a message via MSN to korakotc
korakotc's Avatar
korakotc
Offline
Regular Contributor
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 16:20.
Reply With Quote

#3 Old Re: How to control screen light? - 2005-09-19, 10:31

Join Date: Sep 2003
Posts: 209
Location: Finland
otsov
Offline
Regular Contributor
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
how to keep screen light on in app johnmobile Mobile Java General 3 2009-10-28 19:47
3220 light control applecat Mobile Java General 0 2004-11-17 05:33
How to control the screen light on 3510i johnmobile General Discussion 0 2003-12-02 16:29
BUG: No background light and vibrator control apriori Mobile Java General 0 2003-03-29 13:45
Is there any method to control the background light of 7650? tntfighter-2002 General Symbian C++ 1 2002-10-18 03:35

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ