Chosen Solution

I fixed my problem where my battery was not being detected and now when it comes on before I can login it gives me a black screen and it keeps doing it no matter if the charger is plugged in or not how do I fix this?

Take a flashlight and shine it through the Apple Logo on the display (a poor mans backlight) can you see the faint icons of your desktop?