Just seen that my "question" has not been answered so people may not see the solution! Sorry, probably should have posted up the solution as a fix rather than as a question. Hopefully now it will appear as a solved problem. Regards, Hector
My MB Pro Retina did the same and I resolved (finally - after Apple failed and some 8 months of only using in Clamshell mode) in the end by cleaning the hall effect/reed switch or whatever Lid Proximity switch with contact cleaner. I posted a "question" that explains on this solution yesterday. I tried all the SMC and PRAM resets but problem was the pc thought the lid was closed
Don't know if you resolved this. But my Mac Pro Retina did the same and Apple couldn't sort it. I finally found it was the lid proximity switch (left side between USB and Thunderports and under the logic board) was "sticking" for want of a better word. Basically it would think the lid was closed. I posted a "question" a couple of days ago that explains how I sorted it. Essentially a liberal dose of contact cleaner.
Did you resolve? Likely to be the Hall Effect or Reed Switch that is situated on the left side of the laptop on my 2012 Pro Retina. The magnet on mine is in the lid. If you have had the lid apart then that will be where the magnet goes. Try placing a magnet around the keyboard perimeter and see if it goes to sleep with it in some place (others have found that putting a phone case with a magnet by the side of the laptop has caused theirs to go into sleep mode). If it does go to sleep then your mysterious magnet will be the problem. If not, then the sensor itself may be at fault
Great tutorial. I would add two comments. Firstly between steps 14 and 15 there is a cable that needs to be unconnected (see other tutorials where it is detailed) - it needs to be "walked" out, and you ned to remember to reconnect this. Secondly when putting the logic board back in be sure not to trap any of the connectors underneath it. It is a real struggle! I ended up undoing the 6 screws that hold the main battery assembly in and lifting this slightly to give me space and allow me to reinsert the ribbon cables on that side of the board. The reason I needed to disassemble my laptop was that it kept going into sleep mode, sometimes every few seconds. Apple wanted to charge £550 to fix it. I found the problem was with the micro-switch that detects if the lid is closed (it would work fine in clamshell mode). Switch is between the thunder port and USB sockets. Sprayed with contact cleaner, isopropyl and antistatic spray and dried with hairdryer, been working a treat since! Cost of a pentalobe driver!
Great tutorial. I would add two comments. Firstly between steps 14 and 15 there is a cable that needs to be unconnected (see other tutorials where it is detailed) - it needs to be "walked" out, and you ned to remember to reconnect this. Secondly when putting the logic board back in be sure not to trap any of the connectors underneath it. It is a real struggle! I ended up undoing the 6 screws that hold the main battery assembly in and lifting this slightly to give me space and allow me to reinsert the ribbon cables on that side of the board. The reason I needed to disassemble my laptop was that it kept going into sleep mode, sometimes every few seconds. Apple wanted to charge £550 to fix it. I found the problem was with the micro-switch that detects if the lid is closed (it would work fine in clamshell mode). Switch is between the thunder port and USB sockets. Sprayed with contact cleaner, isopropyl and antistatic spray and dried with hairdryer, been working a treat since! Cost of a pentalobe driver!