Samsung Ace 2 with Cyanogenmod turns itself on when put on charger while turned off It started happenning after repair.
Could it be a software setting that was changed in repairshop or is it a hardware issue?
All they did was replace mini-USB port.
In recent versions of CM, check the Settings->Developer options->Stay Awake (Screen will never sleep while charging) option.