Macbook Pro not going to sleep after lid is closed

My macbook sometimes does not goto sleep when I close the lid when on battery mode.  No settings have changed.  This is intermittent.  Any ideas?
LVL 1
u587162Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle SantosSoftware Test Analyst ICommented:
Does this happen when its plugged into power or not?  Or both?

What is the macbook model and current OSX?
u587162Author Commented:
MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports).  MaxOS Majove.
I think it happens in both scenarios but cant be too sure.
serialbandCommented:
Reset the SMC and Reset the PRAM.  That's generally a first step to clear "weirdness" and unusual behavior that didn't previously exist.
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Kyle SantosSoftware Test Analyst ICommented:
Thank you.

Please try what serialband has suggested and report back on if the issue persists or not.
u587162Author Commented:
How do I do that?
Can you confirm it won't reset anything else or delete anything?
Eoin OSullivanConsultantCommented:
How do I do that?
Apple explain both here
PRAM - https://support.apple.com/en-us/HT204063
SMC  -  https://support.apple.com/en-us/HT201295

Can you confirm it won't reset anything else or delete anything?
Correct .. it has NO effect on the Hard Drive and any data stored there related to your user accounts or applications.
Eoin OSullivanConsultantCommented:
If resetting the PRAM and SMC doesn't fix it .. then we move to a hardware issue.

The sensor that detects if the lid is closed is in the front left corner of the machine and is part of the battery indicator.

A trick to test is to take a small magnet (like a fridge magnet) and run it along the front left edge of the machine above the battery indicator. If the machine doesn't sleep the sensor may need to be replaced.  It may also simply be a matter of a loose connector on the sensor  where it connects to the motherboard inside the device but to check it you'll need to open the bottom cover.  Unless you're suitably skilled and tooled I'd recommend taking it to an Apple-certified or skilled repair centre to check.
Gerwin Jansen, EE MVETopic Advisor Commented:
Have you tried setting sleep mode from the Apple icon in the upper left corner? Just to check whether the sleep mode itself is working (every time).
u587162Author Commented:
Ok update.
Spoke to Apple support,  apparently many users are reporting this problem that the laptop will not sleep when you close the lid.  They have recommended manually selecting sleep before closing the lid.  This is an apple hardware issue that they do not yet have a solution for.
u587162Author Commented:
Apple hardware issue

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gerwin Jansen, EE MVETopic Advisor Commented:
So my suggestion was working ;)

Any Apple reference / link about the subject?
Eoin OSullivanConsultantCommented:
To help you put the device to sleep easily .. you could create an AppleScript and save it as an Automator script application and put it in the Dock .. you'd simply double-click the app and it'd put the device to sleep.
http://hints.macworld.com/article.php?story=2005080905050737

You can also use the HOT CORNER feature in the screensaver settings to put the display to sleep
u587162Author Commented:
Gerwin - it's not a solution as the system does not go to sleep automatically when the lid is closed.  

Scripts are not the way I want to go either.  I would like my laptop to work correctly and this doesn't seem to be a setting issue that I first thought but a bug that Apple has identified across their MB range.  

Went through lots of possible solutions inc setting up new profile, new partition and new OS installation but none of that made any difference unfortunately.  

Thx for the suggestions.
Eoin OSullivanConsultantCommented:
My suggestion about the SCRIPT was purely to help you perform the manual SLEEP until Apple address the hardware issue for you
u587162Author Commented:
But I can just select sleep from the menu and shut the lid  rather than write a script?
Gerwin Jansen, EE MVETopic Advisor Commented:
>> But I can just select sleep from the menu and shut the lid  rather than write a script?
Yes you can. Or press the power button for about 1.5 seconds.

You don't have any external devices like display, drives or others connected, right?
bbaoIT ConsultantCommented:
> Apple hardware issue

have you tried Eoin's suggestion to reset PRAM and SMC.

per my experience (i had the same issue before), it can be fixed this way.
u587162Author Commented:
Yes I spent a lengthy tel session with Apple resetting the SMC and various other things.  
As mentioned, Apple has identified an issue with their laptops,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.