Answer to: Not sleeping when closing lid after repair.I had the same problem. Turns out it was a loose cable. To be specific: open the bottom cover and orient so you are looking at the machine so the battery is to the bottom right. The cable that controls the battery indicator lights and sleep sensor arises from the top right of the battery and inserts into the motherboard via a small square cable. Reseating the connector fixed the issue.