[MOD] [KERNEL MODULE] [March 30] Sweep2sleep
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
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.
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:
Module was compiled against Nexus 5 kernel source with m8_defconfig. Some symbol CRC checks had to be hexedited in the compiled module.