I've already had this problem before but I don't know how I solved it.
Ubuntu becomes very slow (mouse jumps from point to point) when I connect to power. The problem was related to a CPU feature that was activated when power was connected. I don't remember which feature it was. Can someone remember it?
When the system initiates, it takes some seconds for the computer to freeze, like it was the start of some process that made the slowness start