I'm using Linux Mint 17.3 OS on my HP Compaq nc6400 laptop. The OS always freezes after a while if I'm using my laptop without charging it but never does so if I'm charging my laptop while using it.
Also, sometimes if I'm charging my laptop while using it and the power goes off and comes back immediately, it freezes.
Before I started using Linux Mint OS, I have been using Ubuntu OS on the same laptop and have always experienced the same problem but I can't remember if it does the same thing while the laptop is charging.
I've noticed that the freezing normally occur when I'm moving the cursor using the laptop's trackpad.
What's the problem and how can I fix it?