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'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.
Download:
Sweep2sleep module for Sense 4.4.4 stock kernel (thanks @lyapota)
http://xdaforums.com/attachment.php?attachmentid=2970798&d=1413289508
Sweep2sleep module for Sense 4.4.3 stock kernel (2.22 base)
Sweep2sleep module
Older version:
s2w_mod
Installation:
Flash zip in recovery
Un-installation:
While in recovery, do:
Requirements:
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:
Source:
Module was compiled against Nexus 5 kernel source with m8_defconfig. Some symbol CRC checks had to be hexedited in the compiled module.
s2w_mod.c
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.
Download:
Sweep2sleep module for Sense 4.4.4 stock kernel (thanks @lyapota)
http://xdaforums.com/attachment.php?attachmentid=2970798&d=1413289508
Sweep2sleep module for Sense 4.4.3 stock kernel (2.22 base)
Sweep2sleep module
Older version:
s2w_mod
Installation:
Flash zip in recovery
Un-installation:
While in recovery, do:
Code:
adb shell rm /system/lib/modules/s2w_mod.ko /system/etc/init.d/40s2w
Requirements:
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:
Code:
su
insmod /system/lib/modules/s2w_mod.ko
Source:
Module was compiled against Nexus 5 kernel source with m8_defconfig. Some symbol CRC checks had to be hexedited in the compiled module.
s2w_mod.c
Last edited: