Re: Compaq 3015 Laptop battery issue
Bad connection, probably. Check that the battery is snug and that the leads aren't bent or corroded. If the battery is loose, you will probably have to find a way to wedge it so it's tight- that way the little copper leads make a solid connection with each other.
It could also be mis-seated RAM (you can fix by removing the RAM and re-seating it). But since you said it doesn't do it on AC, then it's probably not that.
For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth