Can I stop my MacBook Air from going to hibernation when I close the lid?

Macbook air 2024 M3 is hybernating when i close the lid instead of sleeping, how can i stop it?


[Re-Titled By Moderator]




MacBook Air 13″

Posted on Apr 3, 2025 9:14 AM

Reply
19 replies
Sort By: 

Apr 5, 2025 1:09 PM in response to a_smaydi

a_smaydi wrote:

I tried with safe mode and it's ok it's not shuting down! so is it a software installed causing this?

Yes, it most likely means you have some third party software installed which is causing a problem. Run the third party app EtreCheck and post the complete report here so we can examine it for clues.


How to use the Add Text Feature When Posting an EtreCheck Report - Apple Community


Reply

Apr 12, 2025 11:53 AM in response to a_smaydi


System Launch Daemons:

    [Not Loaded] 41 Apple tasks

    [Loaded] 208 Apple tasks

    [Running] 166 Apple tasks

    [Other] 2 Apple tasks


System Launch Agents:

    [Not Loaded] 20 Apple tasks

    [Loaded] 230 Apple tasks

    [Running] 198 Apple tasks


Launch Daemons:

    [Running] com.microsoft.OneDriveStandaloneUpdaterDaemon.plist (Microsoft Corporation - installed 2025-03-22)

        Executable: /Applications/OneDrive.app/Contents/StandaloneUpdaterDaemon.xpc/Contents/MacOS/StandaloneUpdaterDaemon


    [Loaded] com.microsoft.OneDriveUpdaterDaemon.plist (Microsoft Corporation - installed 2025-04-07)

        Executable: /Applications/OneDrive.app/Contents/OneDriveUpdaterDaemon.xpc/Contents/MacOS/OneDriveUpdaterDaemon


    [Not Loaded] com.microsoft.autoupdate.helper.plist (Microsoft Corporation - installed 2025-03-22)

        Executable: /Library/PrivilegedHelperTools/com.microsoft.autoupdate.helper

        Location: /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app


    [Loaded] com.microsoft.autoupdate.helper.plist (Microsoft Corporation - installed 2025-03-22)

        Executable: /Library/PrivilegedHelperTools/com.microsoft.autoupdate.helper


    [Loaded] com.microsoft.office.licensingV2.helper.plist (Microsoft Corporation - installed 2025-01-26)

        Executable: /Library/PrivilegedHelperTools/com.microsoft.office.licensingV2.helper


Launch Agents:

    [Loaded] com.microsoft.OneDriveStandaloneUpdater.plist (Microsoft Corporation - installed 2025-03-22)

        Executable: /Applications/OneDrive.app/Contents/StandaloneUpdater.app/Contents/MacOS/OneDriveStandaloneUpdater


    [Loaded] com.microsoft.SyncReporter.plist (Microsoft Corporation - installed 2025-04-07)

        Executable: /Applications/OneDrive.app/Contents/SyncReporter.app/Contents/MacOS/SyncReporter


    [Not Loaded] com.microsoft.update.agent.plist (Microsoft Corporation - installed 2025-03-19)

        Command: /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft Update Assistant.app/Contents/MacOS/Microsoft Update Assistant --launchByAgent

        Location: /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app


    [Loaded] com.microsoft.update.agent.plist (Microsoft Corporation - installed 2025-03-22)

        Command: /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft Update Assistant.app/Contents/MacOS/Microsoft Update Assistant --launchByAgent


User Launch Agents:

    [Loaded] com.google.GoogleUpdater.wake.plist (Google LLC - installed 2025-04-10)

        Command: ~/Library/Application Support/Google/GoogleUpdater/Current/GoogleUpdater.app/Contents/MacOS/GoogleUpdater --wake-all --enable-logging --vmodule=*/components/update_client/*=2,*/chrome/enterprise_companion/*=2,*/chrome/updater/*=2


    [Not Loaded] com.google.keystone.agent.plist (Not signed - installed 2025-02-15)

        <Empty>


    [Not Loaded] com.google.keystone.xpcservice.plist (Not signed - installed 2025-02-15)

        <Empty>


User Login Items:

    [Not Loaded] Launcher Disabler (Microsoft Corporation - installed 2025-04-07)

        Modern Login Item

        /Applications/OneDrive.app/Contents/Library/LoginItems/Launcher Disabler.app


    [Not Loaded] OneDrive Launcher (Microsoft Corporation - installed 2025-04-07)

        Modern Login Item

        /Applications/OneDrive.app/Contents/Library/LoginItems/OneDrive Launcher.app


    [Not Loaded] PasswordsMenuBarExtra (Apple - installed 2025-03-27)

        Modern Login Item

        /System/Applications/Passwords.app/Contents/Library/LoginItems/PasswordsMenuBarExtra.app


    [Not Loaded] WeatherMenu (Apple - installed 2025-03-27)

        Modern Login Item

        /System/Applications/Weather.app/Contents/Library/LoginItems/WeatherMenu.app


Applications:

    714 Apple apps

    36 3rd party apps

    6 x86-only apps

    No unsigned apps


App Extensions:

    Plugins:

        [Loaded] Intents - /Applications/WhatsApp.app


    Widgets:

        [Loaded] PowerPointWidgetKit - /Applications/Microsoft PowerPoint.app

        [Loaded] CalendarWidgetExtension - /Applications/Microsoft Outlook.app

        [Loaded] WordWidgetKit - /Applications/Microsoft Word.app

        [Loaded] ExcelWidgetKit - /Applications/Microsoft Excel.app


    Notification providers:

        [Loaded] ServiceExtension - /Applications/WhatsApp.app


    File providers:

        [Loaded] OneDrive File Provider - /Applications/OneDrive.app


    Share services:

        [Loaded] OneNote - /Applications/Microsoft OneNote.app


    Finder sync extensions:

        [Not Loaded] OneDrive Finder Integration - /Applications/OneDrive.app


    QuickLook Previews:

        [Loaded] EtreCheckQuickLook - ~/Downloads/EtreCheckPro.app

            com.etresoft.etrecheck4 *.etrecheck


Backup:

    Time Machine information is limited without Full Disk Access



Reply

Apr 12, 2025 8:30 AM in response to a_smaydi

The minor and major issues identified at the beginning of the EtreCheck report are merely interesting. The devil is in the details that the EtreCheck report provides, including installed software and other ancillary files.


You should rerun EtreCheck and upload the report here in the Community so that experienced eyes can look for the clues to your problem. There will be no user identifiable info in the report.

Reply

Apr 4, 2025 11:36 AM in response to a_smaydi

From your description, it appears that the computer may actually be shutting down and restarting. You can find out fairly easily whether this is the case:

  1. In the top left Apple menu, select 'About this Mac'
  2. Click on More Info
  3. Click on System Report
  4. Scroll down and select 'Software'

You see something like this, with 'Time since boot' at the bottom.

Reply

Apr 4, 2025 10:24 AM in response to a_smaydi

Is your Mac set to logout after a period of inactivity?  


If so, it would logout some time after you have closed the lid, and this might appear to have been a hibernation because you’ll have to login again when you lift the lid. Disable the option.


Guidance for changing this behavior can be found here:

Set your Mac to logout after inactivity

Reply

Apr 5, 2025 1:29 AM in response to a_smaydi

Not easy to answer. Conventional wisdom suggests a range of reasons for unexpected shutdown/restart: hardware problems, including overheating (check that the ventilation slot near the hinge is unimpeded), open circuit or battery fault (I doubt it if it seems immediately to restart normally), software conflict (usually with a third-party program). As a preliminary, one can open the Console app in Utilities and check Crashes, to see if any coincide with the shutdown. One can run Apple Diagnostics by holding down the start button until you see Options, then selecting the drive while holding down D. One might also restart in Safe Mode, Safe Mode Instructions, then restart normally. One could download a trial version of the excellent EtreCheck Pro and run it selecting 'Computer is restarting' from the dropdown list, then post the full report here in case anyone knows an answer. To be honest though, as this is a fairly recent Mac, if you have an Apple Centre or Authorized Service Provider near you, my first suggestion would be to take it there, as they would identify the problem within a few minutes. If it is a long way away, Apple Support by Telephone or Chat is a good alternative.

Reply

Apr 12, 2025 12:09 PM in response to a_smaydi

Yes, you can keep your MacBook Air awake with the lid closed by:

  • Using an external display + power + mouse/keyboard
  • Installing Amphetamine (free app)
  • Using Terminal: sudo pmset -a disablesleep 1 (advanced)





Watch for heat and keep it plugged in.

Reply

Apr 4, 2025 11:13 AM in response to a_smaydi

The only time I have seen Macs hibernate is when the battery is getting too low so the system saves everything to the drive. If the battery charge level is not low, it is possible the system thinks the battery is too low.


You can check the currently configured hibernation setting by using the following command:

pmset  -g  custom  |  grep  'hibernatemode'


The default macOS hibernation setting will show a value of "3" for both outputs.


Reply

Apr 12, 2025 11:47 AM in response to D.I. Johnson

ok i got you, this is the report


EtreCheckPro version: 6.8.9 (68074)

Report generated: 2025-04-12 21:23:04

Download EtreCheckPro from https://etrecheck.com

Runtime: 1:49


Performance: Excellent


Problem: Other problem

Description: 

Computer is shutting down when I close the lid


Major Issues: None


Minor Issues:

    These issues do not need immediate attention but they may indicate future problems or opportunities for improvement. 


    No Time Machine backup - Time Machine backup not found.

    Heavy RAM usage - Apps are using a large amount of RAM.

    Limited permissions - More information may be available with Full Disk Access.


Hardware Information:

    MacBook Air (13-inch, M3, 2024)

        Status: Supported

    MacBook Air Model: Mac15,12

    Apple M3 (m3) CPU: 8-core

    8 GB RAM - Not upgradeable

    Battery: Health = Normal - Cycle count = 56


Video Information:

    Apple M3

        Color LCD 2560 x 1664


Drives:

    disk0 - APPLE SSD AP0256Z 251.00 GB (Solid State - TRIM: Yes)

    Internal Apple Fabric NVM Express

    S.M.A.R.T. Details: 0% used, 4.25 TB written, 100% health, 56 unsafe shutdowns

        disk0s1 [APFS Container] 524 MB

            disk1 [APFS Virtual drive] 524 MB (Shared by 4 volumes)

                disk1s1 - iSCPreboot (APFS) [APFS Preboot] (6 MB used)

                disk1s2 - xART (APFS) (6 MB used)

                disk1s3 - Hardware (APFS) (5 MB used)

                disk1s4 - Recovery (APFS) [Recovery] (20 KB used)

        disk0s2 [APFS Container] 245.11 GB

            disk3 [APFS Virtual drive] 245.11 GB (Shared by 6 volumes)

                disk3s1 (APFS) [APFS Container] (11.25 GB used)

                    disk3s1s1 - Macintosh HD (APFS) [APFS Snapshot] (11.25 GB used)

                disk3s2 - Preboot (APFS) [APFS Preboot] (7.15 GB used)

                disk3s3 - Recovery (APFS) [Recovery] (1.04 GB used)

                disk3s4 - Update (APFS) (13 MB used)

                disk3s5 - Macintosh HD - Data (APFS) [APFS Virtual drive] (37.84 GB used)

                disk3s6 - VM (APFS) [APFS VM] (20 KB used)

        disk0s3 [APFS Container] 5.37 GB

            disk2 [APFS Virtual drive] 5.37 GB (Shared by 2 volumes)

                disk2s1 - Recovery (APFS) [Recovery] (1.85 GB used)

                disk2s2 - Update (APFS) (3 MB used)


Reply

Apr 12, 2025 11:51 AM in response to a_smaydi

Mounted Volumes:

    disk1s1 - iSCPreboot [APFS Preboot]

        Filesystem: APFS

        Mount point: /System/Volumes/iSCPreboot

        Used: 6 MB

        Shared values

            Size: 524 MB

            Free: 502 MB


    disk1s2 - xART

        Filesystem: APFS

        Mount point: /System/Volumes/xarts

        Used: 6 MB

        Shared values

            Size: 524 MB

            Free: 502 MB


    disk1s3 - Hardware

        Filesystem: APFS

        Mount point: /System/Volumes/Hardware

        Used: 5 MB

        Shared values

            Size: 524 MB

            Free: 502 MB


    disk3s1s1 - Macintosh HD [APFS Snapshot]

        Filesystem: APFS

        Mount point: /

        Read-only: Yes

        Used: 11.25 GB

        Shared values

            Size: 245.11 GB

            Free: 187.67 GB

            Available: 189.47 GB


    disk3s2 - Preboot [APFS Preboot]

        Filesystem: APFS

        Mount point: /System/Volumes/Preboot

        Used: 7.15 GB

        Shared values

            Size: 245.11 GB

            Free: 187.67 GB


    disk3s4 - Update

        Filesystem: APFS

        Mount point: /System/Volumes/Update

        Used: 13 MB

        Shared values

            Size: 245.11 GB

            Free: 187.67 GB


    disk3s5 - Macintosh HD - Data [APFS Virtual drive]

        Filesystem: APFS

        Mount point: /System/Volumes/Data

        Encrypted

        Used: 37.84 GB

        Shared values

            Size: 245.11 GB

            Free: 187.67 GB

            Available: 189.47 GB


    disk3s6 - VM [APFS VM]

        Filesystem: APFS

        Mount point: /System/Volumes/VM

        Used: 20 KB

        Shared values

            Size: 245.11 GB

            Free: 187.67 GB


USB:

    USB 3.1 bus

        <Empty>


    USB 3.1 bus

        <Empty>


Network:

    Interface en3: Ethernet Adapter (en3)

    Interface en4: Ethernet Adapter (en4)

    Interface en5: USB 10/100 LAN

    Interface bridge0: Thunderbolt Bridge

    Interface en0: Wi-Fi

        802.11 a/b/g/n/ac/ax


System Software:

    macOS Sequoia 15.4 (24E248) 

    Installed 2025-04-03

    Time since boot: About 4 hours


Security:

    Gatekeeper: App Store and identified developers

    System Integrity Protection: Enabled

    Secure Boot: Full Security


    Antivirus software: Apple


Reply

Can I stop my MacBook Air from going to hibernation when I close the lid?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.