I tried to use various other Xposed modules but none removed the plug in wake.
It works like this:
- Screen wake on plug in - changes android.os.PowerManager#newWakeLock(ACQUIRE_CAUSES _WAKEUP | SCREEN_BRIGHT_WAKE_LOCK, "charger plug") to PARTIAL_WAKE_LOCK only (based on fix by @tdunham http://forum.xda-developers.com/show....php?t=2799050). Again, this is S5 only fix.
- Screen wake on unplug - sets config_unplugTurnsOnScreen to false (this is well known and used solution)
- Beep on plug in - disables com.android.systemui.power.PowerUI#playSound(1)
This (old) module is designed for Samsung Galaxy S5 running stock Android 4.4.2. If you need compatibility with newer version of Android, use this module: http://forum.xda-developers.com/xpos...ks-cm-t3279109 which works with Android 5.0 (and newer once released).