Keeping backlight on
Keeping backlight on
Re: Keeping backlight on
2010-05-11 10:54 UTC
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
> 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
Re: Keeping backlight on
2010-05-11 16:37 UTC
On 11/05/2010 12:54, David Weinehall wrote:
> 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
And that'll change the user setting, which might not be a good idea from
an application developer pov.
Cheers,
--
Yves-Alexis
> 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
And that'll change the user setting, which might not be a good idea from
an application developer pov.
Cheers,
--
Yves-Alexis
Re: Keeping backlight on
saurabh aggarwal
Thanks, the first method (dbus) works with no issue.
Regards,
-Saurabh
On Tue, May 11, 2010 at 10:07 PM, Yves-Alexis Perez <corsac@debian.org>wrote:
> On 11/05/2010 12:54, David Weinehall wrote:
> > 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
>
> And that'll change the user setting, which might not be a good idea from
> an application developer pov.
>
> Cheers,
> --
> Yves-Alexis
>
Regards,
-Saurabh
On Tue, May 11, 2010 at 10:07 PM, Yves-Alexis Perez <corsac@debian.org>wrote:
> On 11/05/2010 12:54, David Weinehall wrote:
> > 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
>
> And that'll change the user setting, which might not be a good idea from
> an application developer pov.
>
> Cheers,
> --
> Yves-Alexis
>
saurabh aggarwal
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
-Saurabh