When MacBook Pro 2018 is completely shut down, it will power up by simply opening the lid, pressing any key, or tapping the trackpad, which is very annoying. I managed to make it not power up when the lid is lifted, but I couldn't figure out how to prevent the key presses or trackpad tap from doing so.

  • How did you disable the lid wake from powering on the Mac?
    – bmike
    Commented Jan 21 at 3:38
  • @bmike likely some parameter in nvram.
    – hym3242
    Commented Jul 5 at 19:30

3 Answers 3


The Mac is shutting down and powering off, but newer Mac's include a feature that powers on when any key is pressed or the touch pad is touched.

If you need to stop this behavior--to clean the keyboard, for example--you can force a shutdown once.

Press and hold the left Control and Command buttons with the right Shift button for a total of 7 seconds. Without releasing them, press the Power button and hold them all together for an additional 7 seconds. Your Mac can only be powered on by using the Power button.

Unfortunately, there is no way to disable this permanently.

  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Oct 13, 2022 at 6:56
  • It doesn't work.
    – Sixro
    Commented Dec 13, 2023 at 0:07
  • @Sixro I'm sorry you weren't about to get this to work. I do it all the time.
    – Nilpo
    Commented Dec 13, 2023 at 10:36
  • 1
    yeah @Nilpo, I have an M1, I tried, but when it was turned off I pressed Enter and it started again immediately...
    – Sixro
    Commented Dec 13, 2023 at 11:58
  • 1
    Can this bright CEO from Apple, who approved this "feature" come and clean up my keyboard please? :) Commented Jul 5 at 6:46

Short answer: you can't

MacBook Pro 2018 with Catalina 10.15.7

My experience is similar to Billie Hawkin's excellent answer above: setting AutoBoot to %00 prevents boot on lid open

However, sudo shutdown -h now did not, in my experience, prevent the behavior. When any key is pressed, the laptop still booted up.

What do service shops do? crack open the case and pull the battery!?

And Apple Support was no help :P


Just opinion: I don't think the computer is actually shutting down. The very nature of 'power off' would turn off USB/keyboard immediately.

By the behaviour you describe, the laptop is either going to 'sleep' or 'power nap' - and in either case, it's not shutting off.

To test this:

  • Open the Terminal in Mac OS (found in /Applications/Utilities/ folder)
  • Enter the following command syntax exactly: sudo shutdown -h now
  • Hit the return key and authenticate with an administrative password to immediately shut down the Mac

The Mac will immediately shut down. No data is saved and no dialogs are confirmed, the shut down happens instantly.

When the lights go out, the keyboard should become unresponsive, and you would now know for sure the mac is shut off.

EDIT: I realized that on my 2018 MBP, I had changed the "lid-open to turn on":

Disable Boot on Lid Open / Power Connection on MacBook Pro (2016+)

  • Open the Terminal, which is found in /Applications/Utilities/, and then enter the following command syntax exactly:

    sudo nvram AutoBoot=%00

  • Hit return and authenticate with the admin password (necessary due to sudo)

  • Exit Terminal when finished

With AutoBoot turned off, when the MacBook Pro lid is opened, it will no longer boot the computer or turn the computer on simply by opening the lid. Additionally, connecting the power cable will not automatically boot the Mac. Instead, the behavior is like it was on earlier Macs, which can open the lid of a Mac without turning the computer itself on.

Sadly, I can't see anything out there in the NVRAM that will disable the key touch directly, yet.

  • Just tried it. Did not work.
    – Skyoxic
    Commented Jul 9, 2020 at 20:22
  • Ok, I’d like to help, but need a little more detail - “What” didn’t work? Which step failed? Commented Jul 10, 2020 at 1:40
  • I entered the command like you described, and it worked as expected. The computer shut down immediately without any warnings or dialogues. After it was completely turned off, I pressed an arrow key and the computer started booting.
    – Skyoxic
    Commented Jul 10, 2020 at 12:49
  • I see your point, and I realized that I had changed a setting on mine. I've updated the post. Commented Jul 10, 2020 at 16:20
  • I also found my link that I used to disable the feature: osxdaily.com/2017/01/19/disable-boot-on-open-lid-macbook-pro Commented Jul 10, 2020 at 16:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .