This patch is only for MI2, and tested works on miuiandroid_aries-2.10.12.zip well
Because MI-2 only have three actual keys, and it does not have a "MI Button", so i use the power button as MI button
If your 'MI Button' are not set to Lock/Wake device in Setting, you can't use it to Lock/Wake...