So basically my macbook works but only when the battery is out and it is plugged into an outlet. The laptop starts up fine with the battery in but will go into sleep mode about 20 seconds into startup. I'm currently using it without the battery in there and plugged into the outlet. When the battery is inserted, the mac immediately goes to sleep. and when removed it instantly turns back on. The battery is not defective because I have tried using a new battery. Any help with this would be appreciated. This is the white macbook 2.4 ghz that i have.