Reply
Thread Tools
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#1
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?
__________________
May the force be with us!
 
Guitaroach's Avatar
Posts: 13 | Thanked: 1 time | Joined on Dec 2010 @ U.S.
#2
I got just the thing. Follow me ok?
Search for: Simple Brightness App.
Install.
Done.
 

The Following User Says Thank You to Guitaroach For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#3
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
 

The Following 3 Users Say Thank You to nicolai For This Useful Post:
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#4
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.
 

The Following 3 Users Say Thank You to dr_frost_dk For This Useful Post:
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#5
Originally Posted by mase View Post
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
 

The Following 4 Users Say Thank You to stlpaul For This Useful Post:
mase's Avatar
Posts: 355 | Thanked: 205 times | Joined on Jun 2010 @ Germany
#6
Maybe I should look at some games, that don't let turn the light off.
__________________
May the force be with us!
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:05.