• Mac won't go to sleep. Sleep mode or full shutdown? Using the keyboard or the Power button

    Establishment sleep mode- the main headache for many owners of a hackintosh, however, Mac drivers are also not immune from such problems. On a real Mac, sleep mode can also break: most often, the computer either refuses to go to sleep, or immediately returns to normal operation.

    There are many reasons for such behavior. Drivers, system processes, and various scripts running in the background can prevent the computer from sleeping. However, there is a way to make sense of all this. As you may have guessed, the Terminal once again comes to the rescue.

    On both Mac and Hackintosh, you can run the most useful command in the terminal window:

    pmset -g assertions

    It will display a full status report of the computer's sleep situation. The user will be interested in the first two parts of it:

    assertion status system-wide:
    PreventUserIdleDisplaySleep 0
    PreventSystemSleep 0
    PreventUserIdleSystemSleep 1
    0
    UserIsActive 0
    ApplePushServiceTask 0
    BackgroundTask 0

    Listed by owning process:
    pid 636(iTunes): 00:00:56 PreventUserIdleSystemSleep named: "Nameless (via IOPMAssertionCreate)"
    pid 158(coreaudiod): 00:00:56 NoIdleSleepAssertion named: "com.apple.audio.’AppleHDAEngineOutput:1B,2,1,3:0′.noidlesleep"

    The ideal situation is if you have zeros in all the lines in the “Assertion status system-wide” list. In this case, this means that nothing interferes with sleep. If the sleep mode does not work, then in one or more lines you will see units:

    • PreventUserIdleDisplaySleep - means that a program or process prevents the display from automatically turning off
    • PreventSystemSleep - means that the computer will not enter sleep mode even if the user selects the appropriate item in the system menu
    • PreventUserIdleSystemSleep - means that the Mac can go to sleep manually, but will not automatically go to sleep after some time
    • ExternalMedia - sleep will not work due to connected peripherals
    • UserIsActive - sleep is not possible due to the current user activity
    • ApplePushServiceTask - Apple notification service blocks sleep
    • BackgroundTask - other system processes interfere with sleep

    And you can see the culprit of the problems in the list below (“Listed by owning process”). For example, in our case there are two related reasons- iTunes process and com.apple.audio driver. Simply put, iTunes is now playing music, so the computer will not fall asleep on its own.

    In the case of real sleep problems, the list can be much wider. Either way, it will give you hints about what processes and drivers might be preventing you from going to sleep.

    A great option that allows you to suspend your MacBook without turning it off. At any time, you can continue to perform daily tasks without waiting for the operating system and related programs to load. In this article, we will talk about seven possible ways to go to sleep MacBook.

    Sleep mode turns off the display, puts the processor into a power-efficient mode, and stops the hard drive and background processes.

    We managed to find seven ways to send the MacBook to sleep. We strongly recommend that you first activate the password entry on account when you wake up from sleep, especially if you often take your Apple laptop with you.

    Closing the lid

    The most obvious way to send a MacBook to sleep. Close the lid and after a few seconds the computer is inactive. After opening the cover, you will need to enter a password.

    Apple menu

    In the menu bar, open  and select the appropriate item - " ". After waking up, also enter the password.

    Keyboard shortcut

    There are two options to put your MacBook to sleep using shortcuts.

    • Control + Shift (⇧) + power button;
    • Command (⌘) + Option (⌥) + power button.

    In both cases, if you have an older MacBook that still has an optical drive, press the power button instead of the power button. Eject(extract).

    Active corners

    macOS has long ago implemented the function of launching various system functions when moving the cursor to one of the four corners of the display ().

    1 . Open in menu bar  → System settings.

    2 . Go to the section " Desktop and screensaver».

    3 . Click on the button " Active corners...».

    4 . Select the angle of interest and click on " Put the monitor to sleep».

    What do you usually do when you're not using your Mac? Do you leave it always on? Do you turn it off right away? Do you enable sleep mode? Why are you doing this or that? These are all, at first glance, ambiguous questions, and today we will help you deal with them.

    Sleep mode

    Many users prefer this mode when they are not using their Mac. This is the simplest and fast way stop working and maintain the hardware. When you restart your computer, all your active applications, documents, and web pages will open almost immediately.

    For the average Mac user who wants to quickly get back to what they were working on before their break, this is the perfect solution.

    • quick system restore in the same form in which you left everything
    • sleep mode and wake up can be configured by schedule or remotely

    Against:

    • negligible energy consumption
    • cache files are not cleared during computer restart
    • software updates that require a system restart are not installed automatically

    If you use your Mac every day, sleep mode during breaks is what you need. Just remember to periodically restart your computer to keep your software up to date, especially when it comes to OS X security updates.

    Turning off the computer

    Shutting down your Mac takes longer because all open apps and documents need to close before shutting down the system.

    • no energy is consumed
    • hardware is not overloaded
    • memory and cache are cleared at boot time
    • it is possible to install updates

    Against:

    For those who are energy efficient and want to maximize the life of their Mac's hardware and hard drives, the best solution is to turn off your computer when you're not using it. This is especially true if you plan to shut down your computer for more than a few days.

    Leave the computer on

    This is another option that has the right to exist. We would recommend doing this with Macs that function as servers. This approach has the most advantages and disadvantages. On the one hand, you don't have to worry about restarting programs because everything stays on, you can set up backups when you're not using your computer, and so on. On the other hand, energy will be consumed constantly, just as the hardware will be constantly functioning, which will reduce the potential lifespan of computer components.

    • no need to wait for system shutdown/boot and applications
    • allows servers to function continuously
    • can set up automatic system

    Against:

    • constant electricity consumption
    • more load on hard drives, fans and hardware in general

    conclusions A: For the average Mac user, we would recommend putting your computer to sleep when you're not using it. Thus, you will extend the life of the computer as a whole. If you are pursuing specific goals (using a Mac as a server, automatic backups) or, conversely, do not plan to use the computer for a long time, do not turn off the computer at all or turn it off, respectively.

    IN Lately I began to notice that my MacBook Air was having difficulty waking up from "sleep", and several times I even had to turn it off and on again by long pressing the power button. This problem is well known to the owners of "apple" laptops, and in my case is associated with connected devices. But there are a number of other reasons, which I will talk about today. This material will be useful and help solve the problem for everyone who is faced with Mac's unwillingness to wake up from hibernation. So let's go.

    How does “sleep mode” work on a MacBook and why does it have problems?

    Sleep mode on Apple computers is primarily designed to conserve power while the device is not in use. The parameters of this mode can be configured in the "System settings" - "Energy saving" section. In this post, I will not delve into the setup process, in general, this is superfluous, everything is intuitive. By and large, there is no difference after what time the system will go to sleep, now we are interested in how to avoid errors when “waking up”.

    Please note that there are two options for hibernation: standard and secure. The Mac goes into safe sleep in the event of a critically low battery, while the current state of the device is stored in memory: open windows, programs, settings. To exit this mode, you must first connect the laptop to a power outlet and press the power key. Also, do not confuse sleep mode with turning off the display after a certain time (which you set yourself).

    Signs that Mac doesn't want to "wake up"

    Depending on your habits and preferences, you can put your Apple computer to sleep in two ways: by clicking on the "apple" and selecting "Sleep", or simply by closing the laptop lid. To turn on the MacBook, you must either lift the lid, or press any key on the keyboard (you can click the trackpad). After that, an image appears on the screen, and if it is set in the security settings, a field for entering the login password may appear.

    If, when you try to “wake up” the Mac, you open the lid or press the keys, but there is no reaction, or it is “slowed down” - these are the symptoms of our case. But before you do anything, consider a number of prerequisites. If the MacBook was completely discharged - it will turn on only when connected to charger. At the same time, a banal remark, but check if the screen brightness has been reduced to a minimum (otherwise you simply will not see the images).

    Causes of macOS sleep failure

    It is difficult to list them all, since each case is individual, but I will describe the most common:

    1. MacBook battery problems. This category includes both depleted (old) original batteries and replaced with new but non-original ones. If the battery has a large number of recharge cycles (about 1000 or more) or a small residual charge capacity, then problems may arise with the laptop waking up from sleep. At the same time, fake MacBook batteries do not support all the standard functionality at all, they can randomly turn off the laptop, restart it, and, accordingly, cause problems with sleep;
    2. Connected devices and peripherals. An important factor that affects the smooth exit of the Mac from sleep is the connection or disconnection of devices at the wrong time. A simple example: you copied photos from your camera to your Macbook via cable. Then they simply put it into sleep mode and then turned off the camera, or connected another gadget instead. This may cause a conflict because the system has remembered a different device configuration and will try to restore it;
    3. Non-original SSD. It has been observed in practice that non-original SSD drives not only lag behind in write and read speed, but also respond more slowly to system startup. Therefore, if you have previously changed the disk and installed a non-original one, then be prepared that “brakes” when exiting sleep mode can become an integral attribute;
    4. FileVault Encryption. The standard way to protect data using disk encryption in macOS is often a double-edged sword. On the one hand, the data is really almost impossible to seize or hack. On the other hand, if you need encrypted information after a force majeure (disk crash), then this will not be possible. In addition, FileVault slows down the system, including the wake-up process.

    As a separate item, I did not describe the settings of programs and systems related to background work. For example, a program can spontaneously wake up a Mac from sleep and turn it back on while it's running. In the same way, the computer can behave with certain settings. wireless connections, updates, notifications. In sum, all this can one day lead to a failure in which the system will not be able to “wake up” on its own.

    Troubleshooting methods

    In fact, the ways to solve the problem with the exit of the MacBook from sleep follow from the above reasons. If you disconnected and connected peripherals in sleep mode, restart your computer and do not do this in the future. If the battery of your laptop has been “tired” for a long time and barely holds a charge, or it is non-original, it is worth

    Loading heavy files, complex rendering or video conversion high resolution- even with a powerful MacBook, all these processes require a lot of time. Turned on and forgot - best rule, which is valid for the operations listed above. But as soon as you close the lid of the laptop, it will immediately go to Sleeping mode, and all downloads and renders are paused. If you're planning to turn your MacBook into a full desktop computer with an external monitor, or just want to wean him off sleep mode this guide will help you with that.

    There are several options for forced wakefulness of the MacBook: the first is provided by Apple itself, but requires the obligatory connection of an external monitor, mouse or keyboard; the second allows you to deal with sleep programmatically, using specialized utilities.

    Attention!When the lid is closed, it is not recommended to load the laptop with processes that require high processor or video card power due to a slight deterioration in ventilation (a closed display covers the radiator exit slot).

    "Antison" with the help of additional peripherals

    Apple sees the world through the eyes of an optimist. If a person needs a player, he buys an iPod. There was a need for a portable computer - welcome to the ranks of the owners of the MacBook Air. Thinking about a full-fledged PC based on OS X - iMac is at your service. For the average user, buying both an iMac and a MacBook can be overwhelming. In this case, it becomes necessary to use the universal MacBook as both a laptop and a desktop computer.

    In order for the MacBook to continue working with the lid closed, and the user to be able to use it as a system unit, you will need to have external monitor, mouse or trackpad.

      1. Go to Settings - Bluetooth - Advanced. Check all boxes.

      2. Pair your keyboard, mouse, or trackpad via Bluetooth at the appropriate points Settings menu.
      3. Close the lid of the MacBook.
      4. Connect the charger.
      5. We connect the monitor (detailed).
      6. Connect the mouse and keyboard.
      7. Press any key on the connected keyboard (click on the mouse / trackpad).

    Even though the lid is closed, your MacBook will immediately wake up from Sleep Mode.

    Keeping awake with third-party apps

    The option of ignoring sleep mode with the lid closed using an external monitor, keyboard and mouse may not be suitable for most users due to the banal absence of any item from the required list of devices. Fortunately, the problem can be solved with the help of third-party applications.

    InsomniaX

    Genre: Utilities
    Publisher: Andrew James
    Version: 2.1.8
    OS X: Free download]

    To install the utility InsomniaX just drag it to the folder Programs. After starting in Bar menu the month icon will appear.

    To activate InsomniaX, just check a few checkboxes:

    • Disable Lid Sleep– shutdown sleep mode when closing the laptop lid;
    • Disable Idle Sleep– shutdown sleep mode when the laptop is idle;
    • Disable Lid Sleep for with lid closed;
    • Disable Idle Sleep- set the time during which the MacBook will not fall asleep when laptop is idle.

    The advantage of InsomniaX is that it can work with or without a power adapter. In the additional settings menu (Preferences) it is possible to set hot keys, sound alerts and a low power consumption mode for the processor.

    Genre: Utilities
    Publisher: Pavel Prokofiev
    Version: 1.4.0
    OS X: Free download]

    During the installation process, the application requires mandatory administrator authentication. Immediately after the installation is complete, NoSleep will appear in the OS X Menu bar.

    To enable NoSleep, click on the icon and select Enable Sleep.

    The settings menu allows you to set the desired mode of operation of the utility:

    • "anti-sleep" when running on battery power;
    • "anti-sleep" when working from the power adapter;
    • automatic start at OS boot;
    • screen lock after opening macbook lid.

    A minor bug has been noticed in the NoSleep application. NoSleep continues to work even after you exit it. To make the laptop go into sleep mode, disable the items in the settings Never sleep on AC Adapter And Never sleep on Battery.

    Open lid - awake laptop

    In addition to InsomniaX and NoSleep, there are a lot of utilities that fight against the MacBook going to sleep: Wimoweh, Antisleep, Coffeine. Alas, they all work exclusively with the laptop lid open. You can also disable sleep mode using standard OS X tools.

    open Settings - Energy saving. Set slider Computer sleep mode to "Never". The attenuation of the monitor can be set to arbitrary. Note that the settings must be made for both battery operation and AC adapter operation.