[FSO 5.1] Preventing screen blanking

Ingvaldur Sigurjonsson ingi at telia.com
Tue Apr 7 09:50:27 CEST 2009

I've read the manual/wiki and I read the mailinglist but I cant recall 
when I read about that stuff so here it comes again...

You can use 'mdbus' for this kind of stuff by using the dbus-methods 
provided by the /org/freesmartphone/Usage (org.freesmartphone.ousaged):

Check the current ResourcePolicy:
$ mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage \
   org.freesmartphone.Usage.GetResourcePolicy 'Display'

(mine usually returns 'auto')

Set the ResourcePolicy to 'enabled' and the display wont undisplay it 
$ mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage \
   org.freesmartphone.Usage.SetResourcePolicy 'Display' 'enabled'

When I'm finished I usually set the ResourcePolicy back to 'auto' so the 
battery wont drain.

I wrote a little GUI using python-elementary which was a good way of 
getting started using the dbus API. I use that to to turn on WiFi and 
GPS, using the same methods as above, but with another resource ('WiFi' 
and 'GPS'). This works at least on FSO milestone5.5 (built at home).

- Ingi

Johny Tenfinger wrote:
> RTM and don't ask questions, which are hundrets times on mailist. And
> in meantime, request resource "Display" :P Or use SHR, which is FSO
> based and has nice GUI for that in shr-settings... :P
> 2009/4/7, jeffrey.ratcliffe at gmail.com <jeffrey.ratcliffe at gmail.com>:
>> Whilst using the FR for navigation, it would be helpful if the screen
>> didn't blank.
>> In illume's power setup menu, there are two options, blank time, and
>> suspend time. However, blank seems to affect only the backlight, and
>> suspend turns off the screen. If I switch both to off, the backlight still
>> gets turned off after 30s and the screen itself 10s after.
>> How can I prevent either the backlight or the screen from turning off?
>> Regards
>> Jeff

More information about the support mailing list