Re: File IO preventing sleep
Re: File IO preventing sleep
- Subject: Re: File IO preventing sleep
- From: Lisa Zorn <email@hidden>
- Date: Wed, 22 May 2002 23:09:32 -0700
On Monday, May 20, 2002, at 09:51 AM, Matt Watson wrote:
On Monday, May 20, 2002, at 09:33 AM, Dean Reece wrote:
You might try stat'ing the file instead of reading it.
Or fstat() since you already have the file open...
Matt & Dean, thanks for the stat/fstat suggestion.
This certainly helps -- it's ... kind of... fixed. However, sometimes it
takes longer than it should. For example, I have my system set to sleep
after 5 minutes but many a time, after my last read, it'll go dim in 5
minutes and take another 5 minutes to sleep. I receive the IOKit
messages at this point -- 10 minutes after my last read.
This bothers me because I don't know what exactly is happening (and my
program's users are going to complain that it's not going to sleep
probably, and I don't know how it'll scale with longer time-to-sleep
preferences), and it's so excruciatingly time consuming to test.
Is there anything I can do to figure this out? Any other suggestions?
Why is there separate timing for dimming versus sleeping? What exactly
is going on when it dims versus when it sleeps?
Thanks,
-lisa
Glucose Development Corporation --
http://www.glu.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.