Hot answers tagged

3

You can use a third party tool like Power Manager to automate reliable shut downs. By default, events will wake a sleeping Mac before being performed. Typically your Mac will be woken 15 – 30 seconds before the scheduled shut down begins. Ultimately, the wake up is performed by OS X's IOPMQueue which you can see and edit through the pmset tool. I am the ...


2

You can also use pmset -g log | grep LidOpen if you want to know when the lid of your MacBook was opened.


2

Using the included Script Editor.app with OS X, try experimenting with these snippets. Wait 30 Seconds The following snippet will make your script wait 30 seconds before showing a dialog: delay 30 -- this waits thirty seconds display dialog "Hello?" -- this shows a dialog Sleep The following snippet will put your Mac immediately to sleep: tell ...


2

You could set a start up / wake right before the shutdown time. There should be enough time before sleep kicks back in to have the normal shutdown be processed. I'd say 5 minutes of gap on a 15 minute sleep timer would be ideal.


1

I'm not going to pretty this up like Graham Miln nicely did however it you want to create an AppleScript app that you can run before disconnecting your external display then this will wait 30 seconds, check to see if it's in clamshell mode and if yes put the system to sleep. AppleScript code: delay 30 set AppleClamshellState to do shell script "ioreg -r -k ...


1

Since I'm using a wireless Magic keyboard, a solution to the problem is to put the MacBook to sleep after all peripherials have been disconnected using Option+Command+Eject. The success of can not be checked, but still.


1

Your MacBook Pro is waking up when you disconnect the Display Port and Thunderbolt connections. This happens because OS X needs to re-evaluate its hardware situation. Consider using a context-sensitive automation tool like ControlPlane. When you disconnect your display or thunderbolt network, have ControlPlane trigger sleep mode. Alternatively, try ...



Only top voted, non community-wiki answers of a minimum length are eligible