Won't run on known good battery
I have a macbook mid 2007 that shuts down immediately after it is unplugged from AC. I've tried the battery on another machine and it works fine as well as trying a known good battery in this machine.Also I've tried a known good AC adapter. Other things I have done are run the hardware test which shows no errors, reset the smc and Pram, repaired permissions etc. the battery appears normal in the menu bar and says it is fully charged.Also it Appears in system information as normal.coconut battery also appears normal with 275 cycles.I'm hoping the problem lies in the Battery Connector with Sleep Switch and not the logic board. Anyone had any experience with this problem?
One other strange thing is that after unplugging the AC the system shuts down immediately, but once you plug it back in it starts without the power button being pressed.
Doesn't seem like liquid damage. I have seen this many times, especially in MacBooks. There is a system bad connection between the battery connector and the logic board. On some of the older model MacBook the battery connector would get fried. This would damage both the battery connector and the logic board. I bet if you open the computer and remove the battery connector you will see the corrosion I am talking about. Don't worry this isn't water damage.
You can try to clean off the logic board and replace the battery connector but in the past I have had to replace both the battery connector and the logic board.