Waking Host Computer From Sleep

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
khbaker21
Posts: 1
Joined: 4. Aug 2009, 16:16
Primary OS: Mac OS X other
VBox Version: OSE Debian
Guest OSses: Windows 7 RC

Waking Host Computer From Sleep

Post 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.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Waking Host Computer From Sleep

Post 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
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
rm53
Posts: 39
Joined: 9. Sep 2008, 21:47

Re: Waking Host Computer From Sleep

Post 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).
CPngN
Posts: 6
Joined: 16. Sep 2009, 20:52
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Fedora 11 64-bit
Location: San Francisco East Bay
Contact:

Re: Waking Host Computer From Sleep

Post 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?
Post Reply