I'm using Ubuntu 16.04 LTS on a 250 g4 Hp laptop, the OS runs perfectly when the charger isn't plugged in, once i connect the charger to the laptop, it shuts down. The same thing even happened when i was installing it several times until i removed the charger. Should i try another distribution or it's my laptop?
Update: i tried different distributions like mint, fedora and all of them seem to have the same problem.
I'm using dual boot with windows 10 and the charger works fine.
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.targetRe-Enablesudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target– EODCraft Staff Apr 09 '18 at 22:26