Re: R: Can't force display light to stay on forever?

2008-10-03 Thread Owen Williams
Is there a good way of doing this temporarily, for instance while
playing back video?  Can I do it in python?  Right now I'm telling the
backlight to turn on every 8 seconds or so, but even that doesn't really
work (sometimes the display goes dim and then pops back).

I don't want to temporarily change any configuration files in case my
program crashes before it can unset this option.

Owen


On Thu, 2008-10-02 at 16:25 +0200, Marco Solari wrote:
 Thanks! It worked like a charm ;-)
 Now the limit is 480 minutes (8 hours), which I suppose is quite a long
 time... ;-)
 Cheers.
 
   Marco

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: R: Can't force display light to stay on forever?

2008-10-03 Thread Frantisek Dufka
Owen Williams wrote:
 Is there a good way of doing this temporarily, for instance while
 playing back video?  Can I do it in python? 

You need to periodically call osso_display_blanking_pause in libosso
http://maemo.org/api_refs/4.1/libosso-2.16-1/
http://maemo.org/api_refs/4.1/libosso-2.16-1/group__Devstate.html#gbd82d7b0160e26cd15479f2685697322

Not sure if there is python binding but it is quite likely.

Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: R: Can't force display light to stay on forever?

2008-10-03 Thread Frantisek Dufka
Frantisek Dufka wrote:
 Not sure if there is python binding but it is quite likely.


If not, you can use d-bus to tell it to MCE directly, see the source
http://mxr.maemo.org/diablo/source/libosso-2.16/src/osso-hw.c#89
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: R: Can't force display light to stay on forever?

2008-10-03 Thread Owen Williams
Ah yes, there is a binding in python.  I was using display_state_on
instead of display_blanking_pause, that was my problem.

thanks,
owen


On Fri, 2008-10-03 at 16:23 +0200, Frantisek Dufka wrote:
 Owen Williams wrote:
  Is there a good way of doing this temporarily, for instance while
  playing back video?  Can I do it in python? 
 
 You need to periodically call osso_display_blanking_pause in libosso
 http://maemo.org/api_refs/4.1/libosso-2.16-1/
 http://maemo.org/api_refs/4.1/libosso-2.16-1/group__Devstate.html#gbd82d7b0160e26cd15479f2685697322
 
 Not sure if there is python binding but it is quite likely.
 
 Frantisek
 
 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


R: Can't force display light to stay on forever?

2008-10-02 Thread Marco Solari
Thanks! It worked like a charm ;-)
Now the limit is 480 minutes (8 hours), which I suppose is quite a long
time... ;-)
Cheers.

Marco



-Messaggio originale-
Da: Ryan Abel [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 2 ottobre 2008 15.36
A: Marco Solari
Cc: maemo-developers@maemo.org
Oggetto: Re: Can't force display light to stay on forever?


On Oct 2, 2008, at 9:31 AM, Marco Solari wrote:

 Using the control panel (at least in OS2008) it is not possible to 
 force the display light to stay on forever (the maximum allowable time 
 is 30 seconds).
 Is there some way to force it on, with some '/dev' juggling ? I would 
 like to use the tablet to show the text transcription of a conference 
 to hearing impaired people, so if it gets dark after 30 seconds it 
 would be a problem... ;-). I can assume the tablet will be fully 
 charged, when the conference starts...
 Thanks everybody for any suggestion.

http://maemo.org/downloads/product/OS2008/moredimmingoptions/

--
Ryan Abel
Maemo Community Council chair


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers