Re: Determining idleness when auto-suspending
- From: Frederic Peters <fpeters 0d be>
- To: desktop-devel-list gnome org
- Subject: Re: Determining idleness when auto-suspending
- Date: Wed, 14 Nov 2007 17:56:32 +0100
Odysseus Flappington wrote:
> *Windows*
>
> According to the MSDN (http://msdn2.microsoft.com/en-us/library/aa373233.aspx
> < http://msdn2.microsoft.com/en-us/library/aa373233.aspx) for all Win32
> OSes: "As long as the system determines that there is user or application
> activity, it will not put the system into the sleep state. The system can
> detect certain activities, such as user input or network communications.
> However, there are other activities that the system cannot track. [...] To
> notify the system that your application is busy, use the
> SetThreadExecutionState function. This function prevents the system from
> placing the system or the display into the sleep state while the application
> is running."
>
> The windows docs don't go into any detail on how the OS "determines that
> there is [...] application activity", and I couldn't find any info anywhere
> else, but the SetThreadExecutionState reminds me of Gnome's inhibit dbus
> method, with an added layer to detect application activity.
Probably you already read those:
http://blogs.msdn.com/oldnewthing/archive/2006/02/16/533250.aspx
http://blogs.msdn.com/oldnewthing/archive/2007/04/16/2148139.aspx
Just in case you didn't,
Frederic
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]