[Psi-devel] A couple of SystemWatch related things
James Chaldecott
james at swythan.co.uk
Mon Jun 25 02:00:54 PDT 2007
Nice work getting this working again, guys. I wonder why it ever worked
without the winEventFilter stuff. Maybe it's a QT3 vs. QT4 thing.
The support we've got for suspend/resume is fine for me at the moment, so
I'm not likely to find time to implement any of the below, but I thought I'd
forward some ideas to the list in case anyone ever comes asking for more
functionality.
UI idea:
In a perfect world, I think the UI for what happens on suspend/resume could
be combined with the UI for "auto-idle" (at least for "advanced users"). I'm
thinking that there would be a list of "events" such as "idle for X
minutes", "system hibernate", "system resume", "network reconnection", etc,
and a common set of options for what the user would like to happen when each
of those options happened (set status, disconnect, etc).
Technical info (preventing suspend):
It was mentioned when this stuff was done originally that we might want to
prevent going to sleep when a file transfer was in progress. I recently
discovered the SetThreadExecutionState API, which is the recommended way of
preventing the system idling to sleep (I think the *only* way on Vista). The
idea is that a program calls this API periodically during a
non-interruptible operation to reset the system idle timer.
James
On 25/06/07, Kevin Smith <kevin at kismith.co.uk> wrote:
>
> On 25 Jun 2007, at 05:30, Michał Jazłowiecki wrote:
>
> Today, when I have restored my system (Psi running all the time), I have
> made an observation that Psi has reconnected itself. Good, but... I had
> disconnected manually, some time before I have hibernated my system.
>
>
> The current behaviour's a temporary work-around until we can code up the
> correct behaviour.
>
> /K
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20070625/14dd3c83/attachment.htm
More information about the psi-devel
mailing list