Re: Debugging sleep problems
Re: Debugging sleep problems
- Subject: Re: Debugging sleep problems
- From: Ethan Bold <email@hidden>
- Date: Mon, 15 Aug 2005 15:56:30 -0700
Hi Ronny-
This is an appropriate list for your question. Your iBook isn't idle
sleeping, and there are a few things to check out to try to debug why
it isn't idle sleeping.
- Run "pmset -g" to see what the idle sleep settings are. sleep,
displaysleep, and disksleep should all be small numbers. They should
not be 0, because 0 means never here.
- Try setting a quick sleep and measure how long it takes to occur
"sudo pmset -b displaysleep 1 disksleep 1 sleep 1" - that will make
the machine idle sleep after 1 minute of inactivity. In practice on a
quiet system, sleep would probably occur around the 90 - 120 second
range. It's very imprecise, since the timing is tied to disk I/O.
Setting the sleep timer (all of the sleep timers) to 1 minute can
help isolate the problem. Does it still occur at this point?
Things that can prevent system sleep:
- Disk I/O every minute will prevent sleep. If any app periodically
writes a few bytes to a local hard disk, that disk won't ever be able
to spin down. Disks require 1 solid minute without I/O to spindown.
- If the sleep timer has expired, as soon as the disks spin
down the system will idle sleep.
- Any app can prevent idle sleep via IOKit sleep API. So start
killing apps and see if that makes it better.
If you want to track down which app is causing disk activity, set
your display to never sleep, run this as root: "fs_usage -f filesys",
and quietly sit there and watch. Is a particular application or
background process gobbling disk I/O's?
the end,
Ethan
On Aug 15, 2005, at 3:20 PM, Ronny Schöbel wrote:
Hi,
this is my first post to this list, so first I'd like to introduce
myself. My name is ronny and I'm currently a student of computer
science at the Technical University of Ilmenau.
Now that that's out of the way...
Since a few days my iBook G4 (1.2GHz 12") has problems falling
asleep after the specified amount of time. I will need to conduct
more tests but it currently only seems to happen when running under
battery power. (At least I found the computer sleeping yesterday
after leaving it for some time when it was on AC power.)
The reason why I ask this on this list is: Are there some tools
available, either included in the system or third party (preferably
free) that can help me debug the problem? I can't find any
information in the logs and frankly at the moment I'm lost.
If there is a more appropriate place to ask this question (please
no Internet user forums or support centers), I'd appreciate some
pointers. Thank you for any help you could provide.
--
Ronny
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden