As the title says.
I'm using the laptop connected to a power outlet, no battery inserted. I checked the configuration and everything is correct. I don't remember this happening with Unity, but the desktop environment shoudn't be related to this problem, right?