Re: Prevent computer from going to sleep but _not_ disable dimming
Re: Prevent computer from going to sleep but _not_ disable dimming
- Subject: Re: Prevent computer from going to sleep but _not_ disable dimming
- From: "Jere Gmail" <email@hidden>
- Date: Tue, 27 May 2008 09:38:34 +0200
You have to use IdleActivity, that's the one I use and it works.
On Mon, May 26, 2008 at 10:17 PM, Manfred Schwind <email@hidden> wrote:
> Hi,
>
> I want preventing the computer from going to sleep while doing lengthy
> calculations - but I still want to allow the display to dimm.
> I tried UpdateSystemActivity() with all available constants, but all of them
> also prevent the display from dimming.
> Is this a bug? Or is it a feature? (Maybe to give the user some "feedback"
> that the computer will not go to sleep?!?)
>
> In the header file I can find:
>
> OverallAct = 0, /* Delays idle sleep by small amount
> */
> UsrActivity = 1, /* Delays idle sleep and dimming by
> timeout time */
> NetActivity = 2, /* Delays idle sleep and power
> cycling by small amount */
> HDActivity = 3, /* Delays hard drive spindown and
> idle sleep by small amount */
> IdleActivity = 4 /* Delays idle sleep by timeout time
> */
>
> In my understanding, using e.g. OverallAct, NetActivity or HDActivity
> should not prevent the display from dimming, but UsrActivity should.
> But I tried them all and it doesn't matter which one I use, the display
> always did never dimm.
>
> Any ideas?
> Mani
> --
> http://mani.de - friendly software
> iVolume - listen to music freehand
> LittleSecrets - the encrypted notepad
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
--
http://zon7blog.wordpress.com/
And again we fall.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden