Ubuntu – Laptop slow performance on battery power

19.04cpufreqlaptoplubuntupower-management

I recently installed Ubuntu 19.04 on an HP ProBook 430 G3 and discovered the following issues. The battery won't charge when AC pluged-in until the level drops below 15% or less, sometimes even then I have to pull the plug and insert it several times until it starts charging. Also, when on battery power the performance is bad, really bad. I think it has something to do with CPU scaling or something. First I figured there was something wrong with my installation, so I erased everything and installed Lubuntu 19.04, but the same issues appear.

I would like to disable CPU scaling when on battery power and make the battery charge all the time when on AC, not just when the level drops bellow a certain threshold.

Can you help me do that?
Thanks!

UPDATE
Battery discharged to 45% then plugged the cord in. After 1 hour the batter was down to 3%, to my surprise it didn't charge at all. I had to pull the plug and reinserted like 5 times to get it going. This is becoming very frustrating.

Best Answer

What you are describing sounds more like a hardware problem. i Googled your laptop model and apparently these are known for having charging issues. There should be a pin that you can straighten inside the charger end that you plug into the laptop. You obviously want to unplug the charger first though. Here's a thread on HP's website about other people with the same problem:

HP Forum on charging problems

and another:

Hp forum post on your model

Finally, try doing stuff like putting upward pressure on the charger while plugged into the laptop and see if it suddenly starts charging. There isnt a software setting that Im aware of in Ubuntu that would prevent a charger from working intermittently.