Mac Bug Three can't sleep, can sleep and automatically wake up

Source: Internet
Author: User

Because sometimes OS X system sleep will automatically wake up, and then sleep, every other will automatically wake up, and constantly cut off the hardware power, and then plug in power, equal to a night to restart more than 100 times, Mac life can imagine

So we have the following research, parameter testing, recommended settings


Apple's default settings are as follows:

Turn off the monitor, hard drive after 10 minutes

Sleep after 1 minutes.

Sleep 4 hours after entering Poweroff

Sleep 3 hours after entering standby


So what's the difference between using the energy saver and Pmset commands in the system setup?

Pmset modifies the same file, the System Preferences energy Saver modifies.


There's a description in Autopoweroff,man.

The system would write a hibernation image and go into a lower power chipset sleep.

The system generates hibernation files, enters low-power mode, and shuts down the hardware except for out-of-memory

The system won't auto power off if any external devices be connected if the system is on battery power, or if the Sys TEM is bound to a network and wake for network access is enabled.

The system does not enter power off mode, if there is any peripheral in the connected state, if the battery is powered, if there is network activity while the network wake Up


Standby, still looking at the man's note

Writing the hibernation image to disk and powering off memory for Standby

Write the hibernation file to the hard disk and close the memory

Standby only works if hibernation are turned on to Hibernatemode 3 or 25

is 3 or 25 to standby


Scenario 1

In power mode, with the first item selected, the No. 234 item is canceled

A click Sleep and it will wake up automatically

b close box, sometimes does not wake automatically, with the test program found 10 minutes and 4 hours 10 minutes of two time points have a wake up, namely Displaysleep and Autopoweroffdelay

C Close the box, sometimes do not sleep until the power is dialed, leaving the Bluetooth keyboard and trackpad


Conclusion of Scenario 1:

In the case of the power supply and Bluetooth, WiFi connection, actually in the sleep 4 hours when the execution of a poweroff, and Apple's statement "system will not enter power off mode, if there is any peripheral in the connection state, if the battery power is used, If network activity is turned on at the same time, the network wake "is completely inconsistent

No sleep or automatic wake-up even the monitor is on. A bug that many people encounter

Look at the feedback on the web, OS X bug a lot, and do not have problems all good, there are problems in most cases is not resolved


Scenario 2

Global Settings

sudo pmset restoredefaults

sudo pmset-a womp 0 darkwakes 0 lessbright 0 Halfdim 0 autopoweroff 1 Standby 1


sudo pmset-a displaysleep 1 disksleep 0 sleep 0 autopoweroffdelay 7200 Standbydelay 180000

Effective 1 minutes after the display is off, short-term no longer light (time is not allowed, may not be counted by the second, up to 1 minutes of error)

sudo pmset-a displaysleep 0 disksleep 1 Sleep 0 autopoweroffdelay 7200 Standbydelay 180000

Cannot see the effect cannot be tested (it can be confirmed that it is not closed while keeping the write)

sudo pmset-a displaysleep 0 disksleep 1 sleep 1 autopoweroffdelay 7200 Standbydelay 180000

It's not working for 3 minutes, no sleep.

sudo pmset-a displaysleep 1 disksleep 1 sleep 1 autopoweroffdelay 7200 Standbydelay 180000

The monitor shuts down after 1 minutes of validity, 2 minutes after the test script stops, sleep lasts for at least 3 minutes without automatic wake-up (then manually awakened)

sudo pmset-a displaysleep 1 disksleep 2 sleep 1 autopoweroffdelay 7200 Standbydelay 180000

The monitor shuts down after 1 minutes of validity, 2 minutes after the test script stops, sleep lasts for at least 3 minutes without automatic wake-up (then manually awakened)

sudo pmset-a displaysleep 1 disksleep 1 Sleep 3 autopoweroffdelay 7200 Standbydelay 180000

The monitor shuts down after 1 minutes of validity, 4 minutes after the test script stops, sleep lasts for at least 3 minutes without automatic wake-up (then manually awakened)

sudo pmset-a displaysleep 1 disksleep 1 sleep 1 autopoweroffdelay standbydelay 180000

The Poweroff effect may not be valid because if the laptop is to enter Standby mode, it must be powered by battery and not have any external connections (such as Ethernet, USB, Thunderbolt, SD card, monitor, Bluetooth, etc.).

sudo pmset-a displaysleep 1 disksleep 1 Sleep 0 autopoweroffdelay standbydelay 180000

Invalid

sudo pmset-a displaysleep 1 disksleep 1 Sleep 0 autopoweroffdelay standbydelay 180000

sudo pmset sleepnow

Sleep is effective, poweroff can't see the effect

sudo pmset-a displaysleep 1 disksleep 1 Sleep 0 autopoweroffdelay standbydelay 180000

Close Lid

Sleep is valid, Poweroff should be invalid, the test script shows no previous 1 4-hour wake-up action (again a bug, same lid, no expected poweroff wakeup)

sudo pmset-a displaysleep 1 disksleep 1 Sleep 0 autopoweroffdelay 7200 Standbydelay 120

sudo pmset sleepnow

Sleep is valid, standby should be invalid, test script shows no wake action


Conclusion of Scenario 2:

Displaysleep Effective

Disksleep cannot be tested, the official web statement applies only to externally connected mechanical drives

Sleep light sleeping mode, must be in the first two already sleep to be effective, time from the monitor sleep and then start timing, sleep immediately write Hibernatefile

Poweroff Deep sleep mode

Standby deep sleep mode

Two deep sleep mode, the laptop to enter Standby mode, it must be battery power, and no external connection (such as Ethernet, USB, Thunderbolt, SD card, monitor, Bluetooth, etc.). However, there is a bug when connected to the power, USB devices, WiFi will also perform poweroff, because Mac OS X bug a lot


Face bug many unresolved OS X, reluctant settings:

sudo pmset restoredefaults

Turn off wake on LAN, 10 minutes to turn off the monitor, turn on deep sleep mode

sudo pmset-a womp 0 darkwakes 0 lessbright 0 Halfdim 0 displaysleep ten disksleep autopoweroff 1 standby 1

No operation 2 hours after sleep,sleep 50 hours after Standby,sleep 51 hours poweroff, battery mode for 21 minutes sleep

sudo pmset-a sleep autopoweroffdelay 183600 standbydelay 180000

sudo pmset-b sleep 11


Mac Bug Three can't sleep, can sleep and automatically wake up

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.