This is a kernel module for sweep2sleep. The new motion gestures are nice, but there is no way to put the phone to sleep with gestures. To make it worse, the power button placement is awkward. It bothered me so much, I've built this module. It is based on @show-p1984's sweep2wake2.
Swipe your finger from right to left over the navbar and your phone will go to sleep.
I will update this soon, with some improvements and also to work with GPE ROMs.
Sweep2sleep module for Sense 4.4.4 stock kernel (thanks @lyapota)
Sweep2sleep module for Sense 4.4.3 stock kernel (2.22 base)
Flash zip in recovery
While in recovery, do:
adb shell rm /system/lib/modules/s2w_mod.ko /system/etc/init.d/40s2w
In order to load automatically at boot, you need init.d support and busybox. If you have a custom ROM it should work.
For stock users, you'll need to insert the module manually:
su insmod /system/lib/modules/s2w_mod.ko
Module was compiled against Nexus 5 kernel source with m8_defconfig. Some symbol CRC checks had to be hexedited in the compiled module.