2010/1/7 Michal Brzozowski <ruso...@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' r...@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 r...@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 r...@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?
_______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community