2010/1/7 Michal Brzozowski <span dir="ltr">&lt;<a href="mailto:rusolis@poczta.fm">rusolis@poczta.fm</a>&gt;</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&#39;m playing with the &#39;Display&#39; resource, and I&#39;m totally confused.<br><br>If I make this call:<br>org.freesmartphone.Usage.GetResourceState Display,<br>
<br>
and it returns &#39;true&#39;, does it mean that the phone&#39;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&#39;s a case where it doesn&#39;t work (I&#39;m using SHR-testing from 16.12.09)<br>
<br>// At this point the display is off, the policy is &#39;auto&#39;<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:&#39;Display&#39;<br>
method return sender=:1.6 -&gt; 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:&#39;Display&#39; string:&#39;enabled&#39;<br>
method return sender=:1.6 -&gt; 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:&#39;Display&#39;<br>
method return sender=:1.6 -&gt; 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&#39;t find a reliable way to turn the display on from the console. Any ideas?<br>