find active processes in sleep mode

Currently a sleeping iBook G4 with closed lid does try to wake up every 10 seconds.
Martin Trautmann wrote on :

Hi all,

how may I find out which process is active in sleep mode?

Currently a sleeping iBook G4 with closed lid does try to wake up every 10 seconds. The empty CD ROM drive starts up, the background illumination turns on for a fraction of a second. Then it sleeps again for the next 10 seconds.

What does cause this wake up? It only happens when plugged in to the power supply. It started two security updates ago (still 10.3.9). Possibly due to the QuickTime installation?

There's nothing special in /etc/crontab

Thanks, Martin

Hans Aberg replied on :

In article slrndr2cil.gl.t-use@redacted.invalid, traut@redacted.invalid wrote:

how may I find out which process is active in sleep mode?

The sleep stuff may be due to code external to the UNIX kernel; this is one reason that kernel panics may occur. So it is a good question if any UNIX processes are running during sleep (I do no know).

Wayne C. Morris replied on :

On Tue, 27 Dec 2005 06:23:18 -0600, Martin Trautmann wrote (in article slrndr2cil.gl.t-use@redacted.invalid):

how may I find out which process is active in sleep mode?

Processes can't be active in sleep mode.

Currently a sleeping iBook G4 with closed lid does try to wake up every 10 seconds. The empty CD ROM drive starts up, the background illumination turns on for a fraction of a second. Then it sleeps again for the next 10 seconds.

Your Mac probably isn't going to sleep. It's *trying to, it manages to shut down the drives and the screen, but something stops it before it can put the processor into sleep mode.

I sometimes see a similar thing, except that after it re-awakes, it stays awake. I think that when it tells all the processes to prepare for sleep mode, one of them says "I'm still busy, can't sleep yet", so everything powers back up. When it happens, I just try again after a couple of minutes and it usually sleeps properly.

What does cause this wake up? It only happens when plugged in to the power supply.

You mean a UPS? So it doesn't happen when the Mac is plugged directly into a wall outlet?

Is there a USB cable from the UPS to the Mac? What happens if you plug the Mac into a wall outlet, but leave the UPS plugged into the Mac's USB port?
What happens if the Mac's power is plugged into the UPS, but the USB cable is left disconnected? If you only get the problem when the USB cable is connected, something's wrong with your UPS.

Another possibility is that the desk is vibrating just enough to move the mouse and wake up the Mac; this could be caused by a truck or train rumbling past your house, or by someone walking by if the floors aren't rigid enough.
Or your Energy Saver options might be set to wake the Mac in response to a phone ring or a network admin access signal. Or one of your USB or Firewire peripherals is sending signals that keep your Mac awake.

Malcolm replied on :

On 2005-12-27 13:39:05 -0500, Wayne C. Morris wayne.morris@redacted.invalid said:

Another possibility is that the desk is vibrating just enough to move the mouse and wake up the Mac; this could be caused by a truck or train rumbling past your house, or by someone walking by if the floors aren't rigid enough.

Moving the mouse will not wake a Mac, you have to click it, or press a keyboard key. When the Mac is asleep, the mouse LED is off, so it cannot detect movement.

Barry Margolin replied on :

In article 0001HW.BFD6E66901C830DAF0509550@redacted.invalid, Wayne C. Morris wayne.morris@redacted.invalid wrote:

What does cause this wake up? It only happens when plugged in to the power supply.

You mean a UPS? So it doesn't happen when the Mac is plugged directly into a wall outlet?

I think he means when it's plugged into an outlet rather than running off battery.

Martin Trautmann replied on :

On Tue, 27 Dec 2005 18:39:05 GMT, Wayne C Morris wrote:

What does cause this wake up? It only happens when plugged in to the power supply.

You mean a UPS? So it doesn't happen when the Mac is plugged directly into a wall outlet?

No, just the ordinary Mac power plug.

Is there a USB cable from the UPS to the Mac?

No.

Another possibility is that the desk is vibrating just enough to move the mouse and wake up the Mac; this could be caused by a truck or train rumbling past your house, or by someone walking by if the floors aren't rigid enough.

No, it's too regular

Or your Energy Saver options might be set to wake the Mac in response to a phone ring or a network admin access signal. Or one of your USB or Firewire peripherals is sending signals that keep your Mac awake.

Hm - good point about the phone line. I'll check again. It's usually both power and phone connected in, plus the fax setting to receive faxes.