[KERNEL] [CM11] [S2W/DT2W] Sweep2Wake/DoubleTap2Wake Kernel for CM11 | 2014-11-30

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
I ported Sweep2Wake and DoubleTap2Wake features to CM11 kernel.

(S2W/DT2W kernel for Sense rom is here: http://forum.xda-developers.com/showthread.php?p=52678000)

Features:

- Sweep2Wake

Sweep2wake (S2W) allows you to wake up your device by swiping your finger across the capacitive buttons from left to right.
Swiping from right to left will put it back to sleep (sweep2sleep).

/sys/android_touch/sweep2wake

0=disabled
1=enable sweep2wake and sweep2sleep (default)
2=enable sweep2sleep only​

- DoubleTap2Wake

DoubleTap2Wake (DT2W) allows you to wake the device by double tapping the screen.

/sys/android_touch/doubletap2wake

0=disabled
1=enable doubletap2wake (default)​

Credits and Thanks:
All credits and thanks go to the original authors: CyanogenMod team and @flar2.

Disclaimer:
I am not responsible if you "brick" your device or in anyway damage it or void your warranty.
Proceed at your own risk.

Installation:
1. Install CM11.
2. Flash the attached boot-m4-cm11-s2w-2014mmdd.img which supports both old and new partition layouts.

# fastboot flash boot boot-m4-cm11-s2w-2014mmdd.img​

Source:
The attached kernel_htc_msm8960-2014mmdd.patch is a patch to the CM11 source.

Enjoy!

Build Date: 2014-11-30

Created 2014-04-27
Last Updated 2014-11-30
 

Attachments

Last edited:

RuffBuster

Senior Member
Feb 3, 2012
1,321
359
0
Many thanks for your support of our One mini's. Would this work on other builds of CM11 like the SlimKat port that has just surfaced, or is this just for standalone CM11?

Sent from my GT-I9000 using Xparent Green Tapatalk 2
 

theodorius123

Senior Member
Aug 26, 2010
548
146
63
another problem: I can't install any App. via play store and apks. "invalid file package" or something similar.

changed back to another kernel and everything was working. back to this and problem was back.

I also wiped play store cache & data - not helping.
 

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
Many thanks for your support of our One mini's. Would this work on other builds of CM11 like the SlimKat port that has just surfaced, or is this just for standalone CM11?
Can you port your kernel to our sense 6 port ROM? :D
It would be awesome :D
Is this kernel are compatible with stock 4.4.2 ROM? If not, is possible to port it?
This kernel is just for standalone CM11 and is not compatible with stock 4.4.2 ROM. Sorry.
I have no plan to port S2W/DT2W to the stock 4.4.2 kernel. My patch will be helpful for porting.
By the way, stock Sense 6.0 will have Motion Launch gestures that support S2W/DT2W.
 

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
thanks! S2W and T2W are working just fine! but the cpu governor is stuck at performance, you can't change it.
another problem: I can't install any App. via play store and apks. "invalid file package" or something similar.

changed back to another kernel and everything was working. back to this and problem was back.

I also wiped play store cache & data - not helping.
I am using 0424 nightly with my kernel and there is no problem.
Please update to the latest nightly and retry.
 

theodorius123

Senior Member
Aug 26, 2010
548
146
63
I was using the same nightly.

maybe it's caused by flashify. just started to use this a week ago. will test with normal fastboot flashing when back home from work. I should really install ADB in our office ;)

EDIT: the governor problem was only with CM internal settings. kernel tuner was able to change the gov.
 

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
Sync and build with the latest kernel source (2014-05-15).
Source (patch) is slightly modified for working with m4 and m7.
See the opening message.
 

Czechnolog

Senior Member
Apr 29, 2012
366
54
0
@kyasu - thanks for this kernel. I have a question - did you also experience this?

a) When I drive and have Google Maps on, the phone is constantly discharging even if it is connected to my car charger. (app. minus 5 % in 30 minutes)

b) When I do the same, but I am on any SENSE-based ROM, the phone is charging. (app. plus 7% in 30 minutes.)

Do you have any ideas?