My power supply keeps ging in and out but its not the power line

Solution
Try a different wall socket. There's a fair chance the power supply/brick needs to be replaced. If it happens when it's not connected to the laptop, it's either the socket or the brick. If it happens only when connected to the DC jack on the laptop, then it may be the laptop's mainboard.
Try a different wall socket. There's a fair chance the power supply/brick needs to be replaced. If it happens when it's not connected to the laptop, it's either the socket or the brick. If it happens only when connected to the DC jack on the laptop, then it may be the laptop's mainboard.
 
Solution