Can't force display light to stay on forever?

Can't force display light to stay on forever?

Marco Solari

2008-10-02 13:31 UTC
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.

Marco Solari
  •  Reply

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

Ryan Abel
Karma: 1518
2008-10-02 13:36 UTC
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
  •  Reply

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

Marco Solari

2008-10-02 14:25 UTC
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:rabelg5@gmail.com]
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
  •  Reply

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

Owen Williams
Karma: 160
2008-10-03 14:02 UTC
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
  •  Reply

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

Frantisek Dufka
Karma: 642
2008-10-03 14:23 UTC
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
  •  Reply

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

Frantisek Dufka
Karma: 642
2008-10-03 14:29 UTC
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
  •  Reply

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

Owen Williams
Karma: 160
2008-10-03 15:41 UTC
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
>
>
  •  Reply