Re: [Feature request] PowerManagement and idle detection and powersaving

2010-05-11 Thread Paul Fox
i'm interested in this topic as well, as the author of the powerd daemon that controls sleep, idle-suspend, and the screen on the XO laptop these days. a few of semi-random comments from my perspective: - this comment of richard's is spot on: > 2. What happens if the computer goes idle

Re: [Feature request] PowerManagement and idle detection and powersaving

2010-05-11 Thread Tobias Arrskog
I see this from XBMC standpoint which is able to be a session or just an application, we flag when its session so its no biggie to know when to handle it. however, this means that if XBMC is not in charge of it we need to see if we have KDE, Gnome etc. etc. underneath to report to. This complicates

Re: [Feature request] PowerManagement and idle detection and powersaving

2010-05-11 Thread Dario Freddi
On Tuesday 11 May 2010 16:56:50 Tobias Arrskog wrote: > For 1) I'd say define "idle" as being the abscent of "active". So "ping" > every X seconds when the system is active. > For example, XServer could ping UPower on input changes (mouse movement, > key presses etc.). This definitely belongs to t

Re: [Feature request] PowerManagement and idle detection and powersaving

2010-05-11 Thread Richard Hughes
On 11 May 2010 15:56, Tobias Arrskog wrote: > For 1) I'd say define "idle" as being the abscent of "active". So "ping" > every X seconds when the system is active. That sounds like a _lot_ of extra traffic on the bus. > I do agree though that it would be possible to get false idle but I would >

Re: [Feature request] PowerManagement and idle detection and powersaving

2010-05-11 Thread Tobias Arrskog
For 1) I'd say define "idle" as being the abscent of "active". So "ping" every X seconds when the system is active. For example, XServer could ping UPower on input changes (mouse movement, key presses etc.). Samba Daemon could ping UPower on active connection. Session (gnome, kde ...) could ping on

Re: [Feature request] PowerManagement and idle detection and powersaving

2010-05-11 Thread Richard Hughes
On 11 May 2010 13:53, Tobias Arrskog wrote: > When dealing with PowerManagement in XBMC I've noticed that on linux side > there really doesn't seem to be a general daemon or manager that can handle > if the system is idle or not, this leaves every session to handle it > themself. Two problems: 1

[Feature request] PowerManagement and idle detection and powersaving

2010-05-11 Thread Tobias Arrskog
Hi! When dealing with PowerManagement in XBMC I've noticed that on linux side there really doesn't seem to be a general daemon or manager that can handle if the system is idle or not, this leaves every session to handle it themself. Since XBMC is meant to work equally good on both with and without