2010/1/7 Michal Brzozowski <span dir="ltr"><<a href="mailto:rusolis@poczta.fm">rusolis@poczta.fm</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Sorry this has been documented somewhere. I'm playing with the 'Display' resource, and I'm totally confused.<br><br>If I make this call:<br>org.freesmartphone.Usage.GetResourceState Display,<br>
<br>
and it returns 'true', does it mean that the phone's display is supposed be on?<br></blockquote><div><br><br>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)<br>
<br>// At this point the display is off, the policy is 'auto'<br></div></div>root@om-gta02 ~ $ dbus-send --type=method_call --system --print-reply --dest=org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.GetResourceState string:'Display'<br>
method return sender=:1.6 -> dest=:1.82 reply_serial=2<br> boolean false<br><br>root@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'<br>
method return sender=:1.6 -> dest=:1.84 reply_serial=2<br><br>root@om-gta02 ~ $ dbus-send --type=method_call --system --print-reply --dest=org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.GetResourceState string:'Display'<br>
method return sender=:1.6 -> dest=:1.85 reply_serial=2<br> boolean true<br><br>// The display continues to be off, even after a long time<br><br><br>I can't find a reliable way to turn the display on from the console. Any ideas?<br>