I recently had an issue with a very old gateway laptop.
The screen started turning dark and going back to full brightness over and over, when I looked thinking it was something wrong with the monitor I noticed in the system tray that it was switching from AC to battery power and back again...