<div dir="ltr">This seems pretty stable than the previous one. The brightness effect is nice, but the event, apparently, is hitting even if the phone is moved a little (i was trying to type a message).<br>The brightness thing started to feel too much pain, so I killed the rotate instance (from a separated ssh session). Unfortunately, the program had thought that I am rotating and hence had brightness set to 0 when I killed it. So, I was left with a switched off screen :).<br>
<br>So, 2 cents from my side<br>(1) The brightness effect (and rotation) should be applied only we are switching orientation (I am not too sure if accels would give that data directly....but keeping a state can be a workaround...it would give some false positives and negative, but would have a better output)<br>
(2) We might like to put a close program handler which would try to reset the brightness to the last read brightness value (if the rotation was in progress while the program was closed)<br><br>--Vikas<br><br><div class="gmail_quote">
On Wed, Oct 15, 2008 at 12:10 AM, Rui Miguel Silva Seabra <span dir="ltr">&lt;<a href="mailto:rms@1407.org">rms@1407.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;">
<div class="Ih2E3d">On Tue, Oct 14, 2008 at 06:15:58PM +0100, Rui Miguel Silva Seabra wrote:<br>
&gt; On Mon, Oct 13, 2008 at 10:26:48PM +0200, Oscar Casamitjana wrote:<br>
&gt; &gt; &nbsp; &nbsp;screenfp = fopen (&quot;/sys/class/backlight/pcf50633-bl/brightness&quot;,&quot;w&quot;);<br>
&gt;<br>
&gt; Excellent idea, I&#39;ll implement it in my newRotate and make a new<br>
&gt; release.<br>
&gt;<br>
&gt; BTW, I still can&#39;t commit...<br>
&gt;<br>
&gt; <a href="https://admin-trac.openmoko.org/trac/ticket/1563" target="_blank">https://admin-trac.openmoko.org/trac/ticket/1563</a><br>
<br>
</div>OK, new newrotate version, taking usage of brightness to use less energy<br>
and a nicer rotation.<br>
<br>
<a href="http://blog.1407.org/2008/10/14/openmoko-newrotate-checks-brightness/" target="_blank">http://blog.1407.org/2008/10/14/openmoko-newrotate-checks-brightness/</a><br>
<br>
Rui<br></blockquote></div><br></div>