Post Reply

[KERNEL] [CM11] [S2W/DT2W] Sweep2Wake/DoubleTap2Wake Kernel for CM11 | 2014-09-28

OP kyasu

23rd August 2014, 07:48 AM   |  #41  
Member
Flag Bentonville
Thanks Meter: 57
 
59 posts
Join Date:Joined: Aug 2012
More
need help??
Quote:
Originally Posted by kyasu

I ported Sweep2Wake and DoubleTap2Wake features to CM11 kernel.

(S2W/DT2W kernel for Sense rom is here: http://forum.xda-developers.com/show...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-08-18

Created 2014-04-27
Last Updated 2014-08-18



You said you patch works with m7 well i patched the cm11 kernel it builds i flash it but double tap 2 wake don't work please help????
24th August 2014, 01:16 AM   |  #42  
OP Member
Flag Tokyo
Thanks Meter: 65
 
52 posts
Join Date:Joined: Sep 2012
Quote:
Originally Posted by gonzalezb

You said you patch works with m7 well i patched the cm11 kernel it builds i flash it but double tap 2 wake don't work please help????

Did you enable CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE in the m7 kernel config file?
Sorry i will not support porting the patch because i don't have m7.

Code:
diff --git a/arch/arm/configs/m7_defconfig b/arch/arm/configs/m7_defconfig
index 2351243..9c28c63 100644
--- a/arch/arm/configs/m7_defconfig
+++ b/arch/arm/configs/m7_defconfig
@@ -1663,6 +1663,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
 # CONFIG_TOUCHSCREEN_ATMEL_224E is not set
 # CONFIG_TOUCHSCREEN_CYPRESS_CS is not set
 CONFIG_TOUCHSCREEN_SYNAPTICS_3K=y
+# CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE is not set <- here
 CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_AD714X is not set
 # CONFIG_INPUT_BMA150 is not set
25th August 2014, 05:01 AM   |  #43  
Member
Flag Bentonville
Thanks Meter: 57
 
59 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by kyasu

Did you enable CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE in the m7 kernel config file?
Sorry i will not support porting the patch because i don't have m7.

Code:
diff --git a/arch/arm/configs/m7_defconfig b/arch/arm/configs/m7_defconfig
index 2351243..9c28c63 100644
--- a/arch/arm/configs/m7_defconfig
+++ b/arch/arm/configs/m7_defconfig
@@ -1663,6 +1663,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
 # CONFIG_TOUCHSCREEN_ATMEL_224E is not set
 # CONFIG_TOUCHSCREEN_CYPRESS_CS is not set
 CONFIG_TOUCHSCREEN_SYNAPTICS_3K=y
+# CONFIG_TOUCHSCREEN_SYNAPTICS_SWEEP2WAKE is not set <- here
 CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_AD714X is not set
 # CONFIG_INPUT_BMA150 is not set

I understand and no I didn't so if I enable that it should work out of the box???

UPDATE: Worked thank you so much i will be giving you credit in my xda post.
Last edited by gonzalezb; 25th August 2014 at 05:24 AM.
21st September 2014, 06:39 PM   |  #44  
Member
Thanks Meter: 1
 
88 posts
Join Date:Joined: Dec 2012
Will this kernel work on CandyKat (Candyroms). Maybe it will because its based on CM11
28th September 2014, 03:01 PM   |  #45  
OP Member
Flag Tokyo
Thanks Meter: 65
 
52 posts
Join Date:Joined: Sep 2012
Sync and build with the latest kernel source (2014-09-28).
Please download the boot image from the opening message.
S2W/DT2W side was nothing changed.
Commits until Sep 25 was included: https://github.com/CyanogenMod/andro...ommits/cm-11.0
6th October 2014, 07:51 PM   |  #46  
Member
Thanks Meter: 4
 
40 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by HTcOneV

Will this kernel work on CandyKat (Candyroms). Maybe it will because its based on CM11

It's working

Last edited by dgw2jr; 6th October 2014 at 10:57 PM.
The Following User Says Thank You to dgw2jr For This Useful Post: [ View ]
18th October 2014, 12:51 PM   |  #47  
Junior Member
Thanks Meter: 0
 
16 posts
Join Date:Joined: Apr 2013
thanks!
My on/off button is brocken and this kernel is even better

Post Reply Subscribe to Thread

Tags
cm11, dt2w, kernel, s2w
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in One Mini Original Android Development by ThreadRank