Idle time tracking in KRunner

Sebastian Kügler sebas at kde.org
Fri Aug 8 13:02:36 CEST 2008


On Friday 08 August 2008 12:56:33 Ryan P. Bitanga wrote:
> Would anyone object if I enabled idle time tracking in KRunner even if
> the screensaver is not enabled in System Settings? We currently only
> track idle time if screen savers are enabled but idle time has uses
> for power management and possibly other things.
>
> I decided to do something I thought wasn't related to plasma or
> KRunner, by writing a power manager a few weeks ago, only to find all
> paths lead back to KRunner. So here I am again. :)  I think the gnome
> screen saver still tracks idle time even if its disabled since
> gnome-power-manager svn trunk relies solely on it for idle time
> decisions. If we don't _always_ track idle time, power managers need
> to read XScreenSaverInfo.idle themselves. I also noticed KRunner seems
> to lag behind XScreenSaverInfo a few seconds but that shouldn't be an
> issue since ideally screensavers should be triggered by minutes of
> inactivity.
>
> I'm also thinking about rewriting the whole xautolock thing. Any
> suggestions?

Wasn't a feature added to Xorg some time ago that basically works like a 
signal/slot connection, i.e. you tell X to notify you after n seconds of 
idletime, and just install a handler to do whatever you like?
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080808/2562f531/attachment.pgp 


More information about the Plasma-devel mailing list