On Wednesday 03 January 2007 21:17, Luka Renko wrote: > sebas, there seems to be some code that should protect this case: > > if idlesec - self.lastidlesec > 100: > print "last:", idlesec - self.lastidlesec > return # probably bogus idleseconds right after suspend > self.lastidlesec = idlesec > > > The only problem I see is that lastidlesec is not updated after this change > is detected, so idle handling may be completely disabled after resume. Or > am I missing something?
Yeah, but this one is pretty ugly. The right thing to do I think is 'resetting' the idleseconds post resume. -- sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Great people talk about ideas. Average people talk about things. Small people talk about people. (Dave Marinaccio) -- feisty kubuntu - laptop auto-suspends when on ac power even though set to do so only when on battery https://launchpad.net/bugs/77623 -- kubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs
