maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Keep display light on (https://talk.maemo.org/showthread.php?t=69805)

mase 2011-02-13 22:46

Keep display light on
 
Hi!
How can I disable and enable the display light dimmer in a C application? I want to keep the light on, while the application is
running.
Is there also a dbus call o do this via script?

Guitaroach 2011-02-13 22:50

Re: Keep display light on
 
I got just the thing. Follow me ok?
Search for: Simple Brightness App.
Install.
Done.

nicolai 2011-02-13 22:58

Re: Keep display light on
 
There is no direct way to do this.
The simple brightness applet sets up a timer and calls
osso_display_state_on (plugin->priv->osso_context)
every 50 seconds.

Nicolai

dr_frost_dk 2011-02-13 23:05

Re: Keep display light on
 
don't know what you are looking for but you can look at the code in my custom brightness, can be something you can use.

stlpaul 2011-02-14 04:39

Re: Keep display light on
 
Quote:

Originally Posted by mase (Post 945456)
Hi!
How can I disable and enable the display light dimmer in a C application? I want to keep the light on, while the application is
running.
Is there also a dbus call o do this via script?

As posted by David Weinehall on maemo-dev mailing list, execute this dbus command every 30 seconds from your program:

Code:

dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.req_display_blanking_pause

mase 2011-02-14 13:38

Re: Keep display light on
 
Maybe I should look at some games, that don't let turn the light off.


All times are GMT. The time now is 10:31.

vBulletin® Version 3.8.8