Xposed Additions is a module that allows you to control some addition power and button features. This includes Full control of how the device should react during USB Plug/UnPlug and button re-map which allows you to assign new actions to click or long press of each button, including disabling it. The re-map allows you to assign different action for awake state and sleep state.

The module is compatible with all Gingerbread ROM's and above, custom or not.