main: Add power switch support