<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hmm,</div><div><br class="webkit-block-placeholder"></div><div>using the clock to wake me up in the morning would be an option to check the</div><div>battery.</div><div><br class="webkit-block-placeholder"></div><div>It even wakes up, or boots, if I have shut down the phone :-)</div><div><br class="webkit-block-placeholder"></div><div>If the clock is not at a really alarm time (to wake me up :-),&nbsp;</div><div>it could configure the next&nbsp;wakeup to check the battery.</div><div><br class="webkit-block-placeholder"></div><div>Is that a solution if PMU doesn't support us with another solution ?</div><div><br class="webkit-block-placeholder"></div><div>Lothar</div><div><br></div><div><div>Am 17.12.2008 um 13:35 schrieb William Kenworthy:</div><br class="Apple-interchange-newline"><blockquote type="cite">Doesnt it already do that - I know that in the middle of the night I<br>used to get regularly awakened by a "shfffft" sound from the Fr as the<br>battery ran out - oh wait, you mean before ...<br><br>:)<br><br>Its actually a good idea - I use a couple of perl scripts to flash the<br>leds in various colours/rates to indicate charge. &nbsp;Doesnt help when shut<br>down though. &nbsp;Perhaps a cron job to wake every hour and check the<br>charge, then go back to sleep? &nbsp;Does cron work on the FR these days?<br><br>BillK<br><br><br>On Wed, 2008-12-17 at 14:16 +0200, Timo Juhani Lindfors wrote:<br><blockquote type="cite">Lothar Behrens &lt;<a href="mailto:lothar.behrens@lollisoft.de">lothar.behrens@lollisoft.de</a>&gt; writes:<br></blockquote><blockquote type="cite"><blockquote type="cite">Is there a way to do this ?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">while true; do<br></blockquote><blockquote type="cite"> &nbsp;if [ `capacity` -lt 10 ]; then<br></blockquote><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert<br></blockquote><blockquote type="cite"> &nbsp;fi<br></blockquote><blockquote type="cite"> &nbsp;sleep 120<br></blockquote><blockquote type="cite">done<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Is there also a way when the device is in suspend mode, to wakeup and<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">do this warning ?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm guessing yes but I do not know the PMU stuff well.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Openmoko community mailing list<br></blockquote><blockquote type="cite"><a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.openmoko.org/mailman/listinfo/community">http://lists.openmoko.org/mailman/listinfo/community</a><br></blockquote>-- <br>William Kenworthy &lt;<a href="mailto:billk@iinet.net.au">billk@iinet.net.au</a>&gt;<br>Home in Perth!<br><br><br>_______________________________________________<br>Openmoko community mailing list<br><a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>http://lists.openmoko.org/mailman/listinfo/community<br><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">--&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Courier">|&nbsp;</font><font class="Apple-style-span" face="Courier">Rapid Prototyping&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Courier">|&nbsp;</font><font class="Apple-style-span" face="Courier">XSLT Codegeneration&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Courier">| http://</font><font class="Apple-style-span" face="Courier"><a href="http://www.lollisoft.de">www.lollisoft.de</a></font></span></font></span></font></span></font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">Lothar Behrens</font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">Heinrich-Scheufelen-Platz 2</font></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font style="font: normal normal normal 12px/normal Helvetica; "><font class="Apple-style-span" face="Courier">73252 Lenningen</font></font></div><div><font class="Apple-style-span" face="Courier"><span class="Apple-style-span" style="white-space: pre; "><br class="webkit-block-placeholder"></span></font></div></div><p></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></p></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></body></html>