Your PSU might be a problem, if it was working before.
Also, have you checked if your laptop uses the GPU at all when in battery mode?
I’m not familiar with this specific machine, but I would guess some laptops might switch to the on-board graphic processor when not plugged in to save energy.