I use a different kernel to enable s2w and have had no problems. Don't know what device you have so you may not get the same results as me.
Have a look at the following link for starters.
http://miuiandroid.com/community/threads/miui-v5-sweep2wake.20436/#post-164722