Prevent computer from going to sleep but _not_ disable dimming
Prevent computer from going to sleep but _not_ disable dimming
- Subject: Prevent computer from going to sleep but _not_ disable dimming
- From: Manfred Schwind <email@hidden>
- Date: Mon, 26 May 2008 22:17:21 +0200
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