Constantly going into sleep mode, OK in Clamshell MacBook Pro Retina
Hi all. Not really a question as I have managed to resolve it but wanted to post up in case anyone else is having the same problem. My MB Pro Retina started randomly going to sleep - and I mean every few seconds. Took to Apple and they wanted to charge £550 to repair it - replacing all sorts of parts that were working fine - touchpad, screen, keyboard and so on. Tapping the space bar or other keys would usually wake it up again for a few seconds, sometimes it would take 20-30 seconds to come back. Hopeless to use, though I found it was fine in Clamshell Mode bar the odd flicker, but I didn't spend £1200 to have a desktop!
Bought a pentalobe driver on Ebay for £5 and with the help of Ifixit tutorials took the machine apart. At this time I had no idea what the problem was, thinking it likely to be a bad connection somewhere and that the old approach of take it apart and putting back together may solve it (after I got it back from Apple it did work OK for a day or so).
Nothing obviously wrong but more digging on the internet made me think that perhaps the problem was with the sensor that detects if the lid is closed. So, with the logic board out I investigated the sensor location. Transpires that it is a small unit on the underside of the logic board mounted between the Thunderport and the USB port on the left of the laptop. Operated by a magnet in the cover (found the switch by using a paperclip to locate the magnet and then working out where the sensor must be).
Not sure if the sensor is a reed switch or a hall effect unit or something else but I sprayed the area with various contact cleaners, isopropyl and an anti-static cleaner that I happened to have. Dried off with a hair dryer and put it all back together.
Been working perfectly ever since.
The Apple Guru's approach would not have fixed the problem as it was on the logic board. No doubt had they worked out what the problem was they would have simply replaced (and charged me for) the logic board too!
It may be possible to "free up" the switch without taking the PC apart by spraying cleaner in through the USB port - worth a try but let it dry, or dry, it before using.
Hope this is of help to someone. I couldn't find anyone else that had posted with exactly the same problem - or perhaps rather that there were no solutions available other than software tweaks all of which I tried!
I have had 8 months of misery with the MB but am now happy again!