[FSO] the Display resource

Michal Brzozowski rusolis at poczta.fm
Thu Jan 7 22:35:10 CET 2010


2010/1/7 Michal Brzozowski <rusolis at poczta.fm>

> Hi,
>
> Sorry this has been documented somewhere. I'm playing with the 'Display'
> resource, and I'm totally confused.
>
> If I make this call:
> org.freesmartphone.Usage.GetResourceState Display,
>
> and it returns 'true', does it mean that the phone's display is supposed be
> on?
>


Ok, I found out that the answer to this question is yes. However, here's a
case where it doesn't work (I'm using SHR-testing from 16.12.09)

// At this point the display is off, the policy is 'auto'
root at om-gta02 ~ $ dbus-send --type=method_call --system --print-reply
--dest=org.freesmartphone.ousaged /org/freesmartphone/Usage
org.freesmartphone.Usage.GetResourceState string:'Display'
method return sender=:1.6 -> dest=:1.82 reply_serial=2
   boolean false

root at om-gta02 ~ $ dbus-send --type=method_call --system --print-reply
--dest=org.freesmartphone.ousaged /org/freesmartphone/Usage
org.freesmartphone.Usage.SetResourcePolicy string:'Display' string:'enabled'
method return sender=:1.6 -> dest=:1.84 reply_serial=2

root at om-gta02 ~ $ dbus-send --type=method_call --system --print-reply
--dest=org.freesmartphone.ousaged /org/freesmartphone/Usage
org.freesmartphone.Usage.GetResourceState string:'Display'
method return sender=:1.6 -> dest=:1.85 reply_serial=2
   boolean true

// The display continues to be off, even after a long time


I can't find a reliable way to turn the display on from the console. Any
ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20100107/a733b357/attachment.htm 


More information about the community mailing list