Is it possible to switch profiles based on the state of the power supply? If so, can you provide some pointers on how that is done?