<div dir="ltr"><div><div>What a pity :(<br><br>If there's anything I can research on this to improve offlineimap please let me know in which direction.<br><br></div>And you don't see this possible at all, would you happen to know about a similar project to offlineimap which supports IDLE and does sleep without consuming CPU?<br><br></div><div>Thanks!<br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-23 12:53 GMT+01:00 Sebastian Spaeth <span dir="ltr"><<a href="mailto:Sebastian@sspaeth.de" target="_blank">Sebastian@sspaeth.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Nope, it waits for a signal, and python's implementation wakes up every few milliseconds. I would not see a way to work around that without risking infinite freezes.<br>
<br>
S.<br>
P.s. yes, it's clearly not optimal.<br><br><div class="gmail_quote">Am 23. März 2015 11:21:36 MEZ, schrieb Alvaro Gamez <<a href="mailto:alvaro.gamez@hazent.com" target="_blank">alvaro.gamez@hazent.com</a>>:<div><div class="h5"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div><div>Hi there<br><br></div>I'm using offlineimap on a mobile device (Nokia N900) in IDLE mode to sync with gmail.<br></div>Since I've started using it, I've noticed a significant drop in battery life.<br><br></div>By using powertop and top, I've deduced that offlineimap, even though is waiting for the server to send out new emails via IDLE protocol, it's still consuming CPU<br><div><div><div><div><br>Top causes for wakeups:</div>Wakeups-from-idle in 10 seconds: 1314<br><br>Top causes for wakeups:<br> 2.6% ( 500) <interrupt> : DMA<br> 1.6% ( 308) <interrupt> : gp timer<br> 1.0% ( 199) python2.7 : schedule_hrtimeout_range (hrtimer_wakeup)<br><br></div><div>I have no other python2.7 executable running, and when I stop offlineimap this line dissappears, so I am positive this wakeups are due to some sleep code inside offlineimap.<br><br></div><div>Is there anything that can be done about this? Thanks! (I'm not subscribed to the list, so please keep me in CC).<br></div><div><div></div></div></div></div></div></blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br>
-- <br>
Sent from mobile phone. Please excuse brevity.</font></span></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Álvaro Gámez Machado<br></div>
</div>