Reply
Thread Tools
Posts: 17 | Thanked: 0 times | Joined on Aug 2007
#1
Is there some way (either command line or application) of extending the backlight time out ? Say to 12 hours or so . I mostly use my 770 as a vnc client for my Hifidelio , and it is a shame that the 'now playing' display disappears every few minutes , every few hours would be much better !

Sorry if this has been asked before , I searched for 'backlight' in the forum but couldn't find any similar questions , nor any answers !

Last edited by mkstevo; 2007-09-01 at 10:09.
 
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#2
You need to have Python (pymaemo) installed for the following script (derived from the pymaemo doc) to work.
Edit the interval and duration settings, then save it as whatever.py on your device. Now run it from the command line, either "python whatever.py" or "run-standalone.sh ./whatever.py" (the later needs executable permission on the file, 755)

Code:
#!/usr/bin/python2.5

# Example of using osso.DeviceState.display_state_on
# You need to set the display brightness period to 10 seconds. 
# This example will bright the display after each 9.9 seconds.
interval = 9000 #milliseconds
#and the program will run 50 minutes (ctrl-c to abort when running)
duration = 3 #minutes

#init and calc--------------------------------------------------------------------------------------------
import osso
import gobject

count = 0
maxcount = 60*1000/interval*duration

def blink_cb(device, loop):
    
    global count
    global maxcount
    device.display_state_on()
    count += 1 
    print count,maxcount
    if count == maxcount:
        loop.quit()
        return False
    return True

def main():
    global count
    loop = gobject.MainLoop()
    osso_c = osso.Context("osso_test_device_on", "0.0.1", False)
    device = osso.DeviceState(osso_c)  
    device.display_state_on()
    gobject.timeout_add(interval, blink_cb, device, loop)
    print maxcount
    loop.run()

if __name__ == "__main__":
    main()
Hope this helps
-Tom
 
tolou's Avatar
Posts: 87 | Thanked: 1 time | Joined on Mar 2006
#3
http://www.internettablettalk.com/fo...ead.php?t=1147
__________________
Naboo
__________________
 
Posts: 17 | Thanked: 0 times | Joined on Aug 2007
#4
Thank you both , just about to try this . I have not yet been able to load any of the Python libraries , they keep reporting 'download failed' so I will have to try the Gconf2 method .

Many thanks to you both for your kind help .
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:38.