Stéphane - When you implement the power off button please post the details! <br><br>Thanks,<br><br>Jon<br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 6:35 AM, Stéphane Acounis <span dir="ltr"><<a href="mailto:stephane.acounis@subatech.in2p3.fr">stephane.acounis@subatech.in2p3.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Le Thu, 10 Feb 2011 10:37:26 +0100<br>
Stéphane Acounis <<a href="mailto:stephane.acounis@subatech.in2p3.fr">stephane.acounis@subatech.in2p3.fr</a>> a écrit:<br>
<div class="im"><br>
> Le Thu, 10 Feb 2011 09:36:20 +0800<br>
> "Kim-man 'Punky' TSE" <<a href="mailto:punkytse@punknix.com">punkytse@punknix.com</a>> a écrit:<br>
><br>
> > Why not using the stock one but instead of this patch?<br>
><br>
> Hi Kim,<br>
><br>
> And so, practically, how do you access the switch (GPIO24) with the<br>
> stock kernel?<br>
> I'd like to be able to sense the switch in order to make a poweroff<br>
> button.<br>
><br>
> Thanks.<br>
><br>
<br>
</div>OK, I know, I should have searched a little bit by myself before asking<br>
the list.<br>
<br>
The state of the button can be monitored with this line:<br>
od -x /dev/cs5535_gpio24 | cut -c 11-12 | head -1<br>
<br>
it reads 31 in the idle state and 30 if the button is pressed.<br>
<div><div></div><div class="h5"><br>
--<br>
Stéphane ACOUNIS<br>
SUBATECH Nantes - Service d'Électronique<br>
Tél: 02-51-85-84-28 06-64-62-99-20<br>
<br>
«Faut pas se laisser abattre» devise Kennedy<br>
<br>
_______________________________________________<br>
Voyage-linux mailing list<br>
<a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
<a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
</div></div></blockquote></div><br>