Archived:How to keep backlight on using PySymbian
This snippet shows how to keep the phone's backlight on in Python.
import appuifw, e32
app_lock = e32.Ao_lock()
#Define the exit function
#Cancel the timer when the user exits, if it has not expired
appuifw.app.exit_key_handler = quit
#Instantiate a timer
t = e32.Ao_timer()
#Reset the user inactivity time, turning the backlight on
#Set the timer to call this function every few seconds
#Wait for the user to request the exit
The device's backlight is turned on with each passing of the specified number of seconds.