orchard apple tree laptops have a feature article that , in general , I really enjoy : they fire up up well-nigh instantly as soon as you unlatch the chapeau . There are times , however , where I ’ve been incinerate by this feature . I tend to go out my machines lay to “ never log Z’s , ” preferring to have them sleep only when I ask them to . One twenty-four hours , I put my 12 - column inch PowerBook G4 in a soft - sided face and then tossed it in the car for a three - hour drive to central Oregon .
Upon reaching , when I pulled the PowerBook from its case , I was quite surprised to find that it was very warm and had essentially no battery leave behind — sometime during the journey , or perhaps when I put the suitcase in the car , the palpebra had been bumped enough that the Mac woke up . gratefully , no scathe fare to the machine , and after a recharge , it was good to go .
To prevent such thing from happening in the future , though , I decided that it would be serious if my Macs , as they do with sleep , would only wake up on my command . There ’s no built - in GUI resolution to this trouble , but it turns out that Apple has hidden a act of big businessman management options in a Unix syllabus calledpmset . We covered one use ofpmset , to prepare newer Macs ’ sopor modal value , in this bakshis . Butpmsetcan do much more than that .
To see what options your Mac is presently configured with , set up Terminal ( in /Applications - > Utilities ) , and typepmset -g . The outturn should look something like this :
There ’s a lot of data there , and I ’m not hold up to endeavor to explicate every option in this writeup . alternatively , I ’ll point you to the help pages for thepmsetprogram , which you’re able to read by typingman pmsetin Terminal . Each option is explained in themanpages , if only briefly . For example , here ’s what the help file has to say about thelidwakevariable :
To protect my machines from accidental wakeups , that ’s the variable I needed to change — its present value of1means “ enabled . ” I needed to set it to0 , for “ handicapped . ”
To change anypmsetvalue , you must do the dictation as root . You also have to separate the arrangement whether you want the change to involve your political machine when it ’s running on battery power , wall power , a UPS , or any of the above . You do this with a masthead , where - ameans all tycoon sources,-bis the battery,-cis the courser ( wall power ) , and - uis a UPS . In my slip , I want to transfer the variable for all major power source , so I used - a. The full command , then , search like this :
After append my admin password , the change was made without any sort of acknowledgment — you’ll just get a new Terminal prompting when it ’s done . I verified the change had been made by typingpmset -gagain , and making trusted thatlidwakeshowed a value of0 .
To test the new setting , shut the palpebra on your laptop , await until it ’s in full asleep ( the power light will be blinking ) , and then launch the hat . Assuming you type everything correctly , nothing at all will bump . Now exhort a key on the keyboard , and your Mac should wake up .
As noted , there are a lot of interesting behaviors you’re able to shift withpmset . Before you try changing any of them , though , make trusted you publish out your current preferences ( usingpmset -g ) so that you’re able to easy revert if you take to . Also note that not all Macs support all power management features ; settinglidwakeon a Mac Pro , for instance , wo n’t do anything . To see what have your Mac supports , typepmset -g jacket . The resulting list will reflect only those options that your machine brook .