<div dir="ltr">The test application is blurting out lots of output, following is a snippet(from the middle of the output) which sort of showed some difference when I tapped the screen.<br><font size="2"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Types: a(2), b(2), c(2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Codes: a(0), b(1), c(2)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Value: a(-18), b(-1152), c(-54)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">vertical straight</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Types: a(2), b(2), c(0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Codes: a(1), b(2), c(0)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Value: a(-1062), b(-72), c(0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">left</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Types: a(2), b(2), c(2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Codes: a(0), b(1), c(2)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Value: a(72), b(-990), c(-216)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">vertical straight</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Types: a(2), b(2), c(2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Codes: a(0), b(1), c(2)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Value: a(108), b(-990), c(-234)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">vertical straight</span></font><br>
<br>Do, tell me if I need to get something specific from the output.<br><br>BTW, for restoration to sane state, I think we would like to maintain the brightness value when we switched it off and then restore to this value if the program was ended (normal exit, I understand kernel can force kill without giving the process any chance to anything).<br>
<br>--Vikas<br><br><br><div class="gmail_quote">On Wed, Oct 15, 2008 at 1:06 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;">
Hi,<br>
<br>
Thank you very much for your input. Can you try to run a bit of the<br>
&#39;test&#39; I include? I&#39;m starting to suspect different accelerometers might<br>
give different outputs and so the heuristics might not make sense<br>
anymore, I hope that&#39;s not the case.<br>
<br>
You can return the brightenss with<br>
<br>
echo 63 &gt; /sys/class/backlight/pcf50633-bl/brightness<br>
<br>
... in the meanwhile.<br>
<br>
As for terminating... only a few signals can be caught, I will try to<br>
set them up in order to stop in a sane state (xrandr -o 0, full<br>
brightness if it&#39;s currently 0, and so on).<br>
<br>
Rui<br></blockquote></div><br></div>