Until recently my laptop took at most around 5 seconds to go to sleep when the lid is closed. This was the case for several months. Recently however, my laptop takes around 2 minutes (maybe more) to go to sleep whenever the lid is closed, or when the sleep command is issued. When the sleep command is issued, the screen fades to black, and the computer becomes unusable until it goes to sleep.
I've been using VirtualBox for a while now, and have always assumed that it must be unsafe, for the VM, to put the host system into sleep or hibernate while said VM is running. However, after learning a bit more about how sleep works, I'm wondering if this is really true.
In summery, is it ever safe to put the host system into sleep while running a VM in VirtualBox?
I need to execute sleep command but i dont know the definite time.
Let me put my req:
I am running one shell script and this script creates some lock file in temp dir ...now in my script i want one function to go into sleep mode till this lock file exists..one lock file gone that function should execute...
so can anyone tell me how can i put sleep command in some kind of loop..
This app helps you sleep better. Sleep as Android is an accelerometer-based sleep cycle tracker app that includes a nice assortment of helpful sleep aids, including lullaby mode, sleep noise recording, lucid dreaming detection audio and a captcha test to see if you are actually awake. Perhaps even more intriguing is that based on your sleep cycles, it knows just the right time to wake you up.