<div class="gmail_quote">On Thu, Feb 12, 2009 at 5:53 AM, Michael 'Mickey' Lauer <span dir="ltr"><<a href="mailto:mickey@openmoko.org">mickey@openmoko.org</a>></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">> Michael 'Mickey' Lauer wrote:<br>
> > Am Friday 06 February 2009 19:44:19 schrieb raghav n:<br>
> >> Am just talking with no show code! I got this idea but not sure if its<br>
> >> already there. I use the power button to suspend the freerunner and to<br>
> >> wake it up too. I am not happy with it because I am a little scared that<br>
> >> the button's lifetime will reduce. So, I got this idea of having an app<br>
> >> that displays an icon on the Home screen which on being pressed will<br>
> >> suspend the freerunner and give it a shake to wake it up. Any thoughts?<br>
> ><br>
> > I want my FR to autosuspend when it lies display-down on a flat surface<br>
> > and wakeup when shaken.<br>
> ><br>
> > All these nice ideas are pending working resume on accellerometer action<br>
> > (with configurable wakeup-threshold). What's the current status for that?<br>
><br>
> Do a find /sys -name wakeup_threshold and wakeup_duration, these are<br>
> 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! Could you please pass me some code snippet I could try?<br></div></div><br>