Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,635 Members 38,821 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL] [CM11] [S2W/DT2W] Sweep2Wake/DoubleTap2Wake Kernel for CM11 | 2014-08-18

Tip us?
 
gonzalezb
Old
#41  
Member
Thanks Meter 51
Posts: 51
Join Date: Aug 2012
Location: Bentonville
Default need help??

Quote:
Originally Posted by kyasu View Post
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????
 
kyasu
Old
#42  
Member - OP
Thanks Meter 64
Posts: 51
Join Date: Sep 2012
Location: Tokyo
Quote:
Originally Posted by gonzalezb View Post
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
 
gonzalezb
Old
(Last edited by gonzalezb; 25th August 2014 at 05:24 AM.)
#43  
Member
Thanks Meter 51
Posts: 51
Join Date: Aug 2012
Location: Bentonville
Quote:
Originally Posted by kyasu View Post
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.
Tags
cm11, dt2w, kernel, s2w
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes