image
image
Ticket Options
Question Profile
DATEApr 20, 2008
TICKET#337093
STATUSClosed
SUBJECTInsomniMac
CATComputers, Operating Systems, Applications or Connected Devices
TYPESoftware Applications
DESCOperating Systems
DESC
PLATFORMApple Macintosh (Intel)
MODELMacBook
PROC2GHz
RAM2Gb
DRIVE160Gb
NAMEMartin
USERNAMEoptilude
TECHNICALExpert
ISSUELots of Troubleshooting
Question Details
TICKET ARCHIVE -> InsomniMac
optilude - Apr 20, 2008 - 7:27 am
image
image
I have a first generation MacBook. I used to just shut the lid or use Ctrl+Eject-S to put it to sleep. However, it wakes up, anywhere from a few minutes to a few hours after I've put it to sleep, normally during the night when I'm not there.

I'm running Leopard, fully up to date. I normally have the following peripherals attached:

- Logitech MX-900 Bluetooth mouse
- Apple Bluetooth aluminum keyboard
- DVI-connected monitor
- Elegato EyeTV Diversity (USB)
- A USB hub
- Two external disks and an external sound module, all switched off

I know people often accidentally knock their mouse or keyboard and thus wake the machine, but I'm normally very careful about this, and the wake happens when there is no-one in the room. I've also tried with Bluetooth off, and I've tried with the USB peripherals disconnected. In both cases, the machine wakes up.

I have no idea how to debug this! It's been going on for a few months now. The system Console doesn't appear to be very helpful. It happens even if all programs are shut down before the machine is put to sleep.

I've seen some reports about the EyeTV causing problems, but I can't seem to find any conclusive evidence. I've tried forcefully killing the EyeTV helper daemon (using kill -9) and disconnecting it before putting the machine to sleep, to no avail - so this may be a red herring.

Any clues would be greatly appreciated!

Martin
DeltaMac - Apr 20, 2008 - 7:35 am
image
image
You said that you disconnected your USB peripherals, but did you also disconnect the USB hub from your MacBook?
Have you tried turning OFF your Bluetooth devices?
Have you tried disconnecting your external display?

Turning items OFF does not always help. You should always try disconnecting. I would put the MacBook asleep with Nothing connected, not even the power adapter. If it still wakes, then those peripherals can be eliminated as a cause.
- Dale
optilude - Apr 20, 2008 - 7:51 am
image
image
Thanks for a quick reply!

I've tried with Bluetooth off and nothing connected except the power chord. The problem still happens.

I'm pretty sure the problem is in software. I presume there's some kind of "wake on activity" or "wake to schedule" table - if I could inspect that, perhaps it'd give more clues? I haven't been able to find anything, though, apart from the scheduled start-up/shut-down in System Preferences (which is off, of course).

Cheers,
Martin
DeltaMac - Apr 20, 2008 - 6:27 pm
image
image
If it is a system setting, you will probably see it in your System Profiler, then the Power tab, where you will see the system power settings. You can't actually change any settings there, but you can review those to see if any are relevant.

- Dale
optilude - Apr 20, 2008 - 7:14 pm
image
image
Here's the information from Hardware/Power in System Profiler:

System Power Settings:

AC Power:
System Sleep Timer (Minutes): 0
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 20
Automatic Restart On Power Loss: No
Wake On AC Change: No
Wake On Clamshell Open: Yes
Wake On LAN: Yes
Display Sleep Uses Dim: Yes
Battery Power:
System Sleep Timer (Minutes): 5
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 1
Wake On AC Change: No
Wake On Clamshell Open: Yes
Display Sleep Uses Dim: Yes
Reduce Brightness: Yes

Hardware Configuration:

UPS Installed: No

AC Charger Information:

Connected: Yes
Charging: No

Battery Information:

Model Information:
Serial Number: DP-ASMB013-3525-1a09
Manufacturer: DP
Device name: ASMB013
Pack Lot Code: 0001
PCB Lot Code: 0000
Firmware Version: 0102
Hardware Revision: 0300
Cell Revision: 0100
Charge Information:
Charge remaining (mAh): 4250
Fully charged: Yes
Charging: No
Full charge capacity (mAh): 4297
Health Information:
Cycle count: 114
Battery health: Good
Battery Installed: Yes
Amperage (mA): 0
Voltage (mV): 12481

None of that jumps out at me, though. :-/

Is there some table of timers/scheduled events somewhere that are allowed to wake up the computer?

Martin
DeltaMac - Apr 20, 2008 - 7:35 pm
image
image
DeltaMac - Apr 20, 2008 - 7:45 pm
image
image
You can try deleting the files that store your power configuration settings.
Go to /Library/Preferences/SystemConfiguration, and delete files that appear to be related, such as com.apple.AutoWake.plist
or, com.apple.PowerManagement.plist
_Restart_ after removing those files, so your system can create new default files.

The next time you sleep your Mac, leave the lid open, if that's practical to do. You may want to sort through some of the software that you have added, looking for something that might cause a wakeup. I really don't know what to tell you to look for, I just don't know what kind of apps you might have installed.

- Dale
optilude - Apr 20, 2008 - 8:37 pm
image
image
Mmm, this is interesting. In com.apple.AutWake.plist, I have Root -> wakepoweron -> 0 with the following keys:

eventtype: wakepoweron
scheduledby: com.elegato.eyetv
time: 21/04/2008 (i.e. tomorrow)

though there's no mention of what time exactly.

Do you know what this file is used for? Given that it's using tomorrow's date, I wonder if it's being created/editied repeatedly.

The only thing that's running that seems related is

/Library/Application Support/EyeTV/EyeTV Helper.app/Contents/MacOS/EyeTV Helper -psn_0_942310

What do you suggest I do?

Martin
DeltaMac - Apr 20, 2008 - 9:04 pm
image
image
Version 3 of the EyeTV software doesn't seem to get very good reviews, but, with Leopard, I suppose you need to make sure that your software is up-to-date.
There's probably settings in the EyeTV software that lets you schedule recording, so that's probably what wakes you 'book.
So, EyeTV must be the culprit. You should be able to turn off the scheduled recording in EyeTV, and that should take care of your problem.
OTOH, if you want EyeTV to record TV episodes, then you have to put up with your MacBook waking as a result....
- Dale
optilude - Apr 20, 2008 - 9:38 pm
image
image
Actually, I suspected EyeTV recording too, so I turned off all recording there a while ago. I wonder if perhaps it's waking up to download programme guides or something similar, though.

I'll try to kill the EyeTV helper and then remove the AutoWake file, and then reboot. Hopefully we'll know tomorrow whether that worked. ;-)

Thanks!
Martin
DeltaMac - Apr 20, 2008 - 9:58 pm
image
image
Might be simpler just to uninstall EyeTV

Did you check that your EyeTV is up-to-date in any case?

- Dale
optilude - Apr 21, 2008 - 3:38 am
image
image
EyeTV is definitely up to date.

So, here's what I tried:

- Remove the EyeTV helper from startup apps
- Delete the AutoWake file
- Reboot
- Disable Wifi
- Disable Bluetooth
- Unplug everything, including external display
- Put to sleep with lid open

And it slept like a baby.

I need to start re-introducing things now. Any gut feels on what to start with?

Thanks!
Martin
DeltaMac - Apr 21, 2008 - 8:01 am
image
image
I most suspect EyeTV, so you can leave that for last.
reconnect one at a time, and try sleep again. Or, re-enable everything except EyeTV.
Or, just sleep again with lid closed, and see if that holds.
Turn on both wireless, and try sleep.
Other external devices back (one at a time for hard drives and display, please - one of those could still be a co-conspirator, eh?)
That should take you several days, right?

Let me know if you discover that some hardware is causing the sleep issue, and not EyeTV
- Dale

IF THIS IS YOUR QUESTION AND YOU WISH TO RESPOND, LOGIN HERE FIRST.


Search Engine Friendly URLs by vBSEO 3.1.0