Chosen Solution

Hi guys my macbook does not go in sleep when i close the lid. someone know how to fix this?

You’ll need to test the lid sensor. Get a small magnet and steel paperclip. Slide the paper clip along the left side of the inside surface of the lid edge to locate the lid magnet. Carefully fold the lid down and make note the location on the uppercase top. Now place the magnet along this location does the display turn off. You may need to check other locations to see if the lid magnet was incorrectly placed in the lid. If the display won’t shutdown into sleep mode you’ll need to check the battery checker on the left side, is it working? Follow this guide MacBook Pro 15" Unibody 2.53 GHz Mid 2009 Logic Board Replacement to Step 7. Now jump down to Step 19 to disconnect the Battery checker/Hall sensor unit. Now you can remove the two screws holding the tester board to replace it.

Try resetting the SMC and PRAM, this worked on my MacBook Air when this happened