Try TLP, as it can be configured if you have troubles with some settings, starts automatically at boot, and allows for different settings for when switching...