<div class="gmail_quote">On Thu, Feb 12, 2009 at 5:53 AM, Michael &#39;Mickey&#39; Lauer <span dir="ltr">&lt;<a href="mailto:mickey@openmoko.org">mickey@openmoko.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Friday 06 February 2009 23:13:45 schrieb Andy Green:<br>
<div class="Ih2E3d">&gt; Michael &#39;Mickey&#39; Lauer wrote:<br>
&gt; &gt; Am Friday 06 February 2009 19:44:19 schrieb raghav n:<br>
&gt; &gt;&gt; Am just talking with no show code! I got this idea but not sure if its<br>
&gt; &gt;&gt; already there. I use the power button to suspend the freerunner and to<br>
&gt; &gt;&gt; wake it up too. I am not happy with it because I am a little scared that<br>
&gt; &gt;&gt; the button&#39;s lifetime will reduce. So, I got this idea of having an app<br>
&gt; &gt;&gt; that displays an icon on the Home screen which on being pressed will<br>
&gt; &gt;&gt; suspend the freerunner and give it a shake to wake it up. Any thoughts?<br>
&gt; &gt;<br>
&gt; &gt; I want my FR to autosuspend when it lies display-down on a flat surface<br>
&gt; &gt; and wakeup when shaken.<br>
&gt; &gt;<br>
&gt; &gt; All these nice ideas are pending working resume on accellerometer action<br>
&gt; &gt; (with configurable wakeup-threshold). What&#39;s the current status for that?<br>
&gt;<br>
&gt; Do a find /sys -name wakeup_threshold &nbsp; &nbsp;and wakeup_duration, these are<br>
&gt; the guys that enable it.<br>
<br>
</div>Strike! Thanks Andy, it works. One minor glitch is that after a wakeup the<br>
programmed threshold (not the wakeup_threshold, the usual threshold) seems to<br>
be reset but the sysfs still shows the same value, so we should reprogram<br>
that (preferred) or reflect the reset in the sysfs (2nd best).<br>
<br>
Thanks again, this opens up for some nice tricks!<br>
<br>
--<br>
<font color="#888888">:M:</font></blockquote><div>Wonderful!&nbsp; Could you please pass me some code snippet I could try?<br></div></div><br>