Page 1 of 1

Waking Host Computer From Sleep

Posted: 4. Aug 2009, 17:35
by khbaker21
My biggest problems is that the lid to my MacBook Pro gets closed on a regular basis and if I am running a VM it locks up. I understand that the computer hard ware is going to sleep with out the VM knowing what is going on. I m wondering if there are any setting within the Virtual Box or the mac that will either tell the hard ware not to go to sleep or tell the VM to go to sleep when ever the lid closes and wake with I open the lid. This is very frustrating to restart my VM 3 to 4 times a day because of sleep modes.

Re: Waking Host Computer From Sleep

Posted: 4. Aug 2009, 21:03
by baf
SleepWatcher 2.0.5 (now compatible with Mac OS X 10.5 “Leopard”) is a command line tool (daemon) for Mac OS X that monitors sleep, wakeup and idleness of a Mac. It can be used to execute a Unix command when the Mac or the display of the Mac goes to sleep mode or wakes up

Re: Waking Host Computer From Sleep

Posted: 4. Aug 2009, 23:29
by rm53
khbaker21 wrote:My biggest problems is that the lid to my MacBook Pro gets closed on a regular basis and if I am running a VM it locks up. I understand that the computer hard ware is going to sleep with out the VM knowing what is going on. I m wondering if there are any setting within the Virtual Box or the mac that will either tell the hard ware not to go to sleep or tell the VM to go to sleep when ever the lid closes and wake with I open the lid. This is very frustrating to restart my VM 3 to 4 times a day because of sleep modes.
My Linux VMs do not care about my host (Mac) going to sleep. In contrast, VB shows the VM grayed out when waking up, and after one or two seconds the VM is back to normal, even the clock is reset to current time (via a VB host additions hack, I assume).

Re: Waking Host Computer From Sleep

Posted: 15. Mar 2010, 20:17
by CPngN
I'm having this problem in host Mac OS X 10.6.2 and VM Fedora 12. When I return from sleep (opening the lid), I can't do anything inside the VM, but it's pegged the CPU usage near 100%. Something gets stuck. I suppose I should just try pausing the VM first, but it would be nice if it could properly detect sleep mode (which I figured it must be doing as it took over a minute to sleep) and do this for me (or whichever action will save it from ultimate reset and loss of current state).

I have ACPI and such on, and the Fedora VM can see my battery info and such fine. Anyone have any new tips?