How to change Power button action when on battery or plugged in