[Bug 77623] Re: feisty kubuntu - laptop auto-suspends when on ac power even though set to do so only when on battery

sebas sebas at kde.org
Wed Jan 3 23:19:10 UTC 2007


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




More information about the kubuntu-bugs mailing list