On Tue, 2010-05-11 at 12:45 +0200, ext saurabh aggarwal wrote:
> Our application on Maemo requires that the backlight be kept on for
> the entire time we do a process. How do we achieve that?
> 
> I have already tried calling the command below (every 10 seconds), but
> that didn't work.
> usr/bin/dbus-send --system --dest=com.nokia.mce /com/nokia/mce/request
> com.nokia.mce.request.req_tklock_mode_change string:unlocked

That's because this isn't the correct method...

Try:

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

instead (every 30s should be enough).

An (undocumented) alternative is:

gconftool -s --type int /system/osso/dsm/display/inhibit_blank_mode 3

Replace the 3 for whatever inhibit mode you want:

0 -- No display blanking inhibit
1 -- Inhibit dimming/blanking if charger is connected
2 -- Allow dimming, but inhibit blanking if charger is connected
3 -- Inhibit dimming/blanking
4 -- Allow dimming, but inhibit blanking


Regards: David

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

Reply via email to