Re: IOPMSchedulePowerEvent kIOReturnNotReady
Re: IOPMSchedulePowerEvent kIOReturnNotReady
- Subject: Re: IOPMSchedulePowerEvent kIOReturnNotReady
- From: Ethan Bold <email@hidden>
- Date: Fri, 3 Sep 2004 15:30:28 -0700
Hello -
kIOReturnNotReady indicates that you're trying to schedule a wakeup
event too soon. There is a 30-second threshold that we enforce, since
for wakeup events any less than 30 seconds in the future we cannot
guarantee a successful wakeup. The transition from awake to asleep can
take up to 30 seconds alone.
If you're receiving this error for a date and time significantly in the
future (more than a minute past the current time) then that is a bug.
From IOPMSchedulePowerEvent():
abs_time_to_wake = CFDateGetAbsoluteTime(time_to_wake);
if(abs_time_to_wake < (CFAbsoluteTimeGetCurrent() + 30.0))
{
ret = kIOReturnNotReady;
goto exit;
}
-ethan
On Sep 1, 2004, at 1:46 AM, Matis Schotte wrote:
hello,
i don't know if this post belongs to cocoa, but i'm using it with a
cocoa app.
i have had a working function that saved a starting time and date with
IOPMSchedulePowerEvent to power the machine on,
but don't know why, now i get always the error kIOReturnNotReady
(0x2d8) - what does it mean ?
and why do i get it ?
any help would be great!
(please excuse my bad english ...)
- smat
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.