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

Search This thread

gonzalezb

Senior Member
Aug 13, 2012
165
81
Bentonville
need help??

I ported Sweep2Wake and DoubleTap2Wake features to CM11 kernel.

(S2W/DT2W kernel for Sense rom is here: http://xdaforums.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-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

Senior Member
Sep 23, 2012
710
3,381
Tokyo
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

Senior Member
Aug 13, 2012
165
81
Bentonville
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:

HTcOneV

Senior Member
Dec 2, 2012
109
5
Will this kernel work on CandyKat (Candyroms). Maybe it will because its based on CM11
 

dgw2jr

Member
Apr 14, 2011
44
4
Will this kernel work on CandyKat (Candyroms). Maybe it will because its based on CM11

It's working

fb1a55990470dbb9bdecda30e82f1e8f.jpg
 
Last edited:
  • Like
Reactions: vietbachster

Peshyy

Senior Member
Mar 10, 2013
141
35
Sofia
Moto E 2015
Xiaomi Poco X3 NFC
Works flawlessly!!

I have PacMan ROM (using pac_m4-nightly-20140927) and flashed your latest upload - boot-m4-cm11-s2w-20141101. Works flawlessly, it's soo awesome! I can't tell much about battery usage but it seems nothing's changed. Awesome job, thank you so much!
 

mattplo

Senior Member
Aug 18, 2010
209
65
The Empire
Last edited:
  • Like
Reactions: malikou

landoftherich

Member
Sep 10, 2011
14
0
Having trouble getting this to work via fastboot using Terminal on a Mac.

I've tried:

fastboot flash boot boot-m4-cm11-s2w-20141130.img
-bash: fastboot: command not found

./fastboot flash boot boot-m4-cm11-s2w-20141130.img
-bash: ./fastboot: No such file or directory

./fastboot-mac flash boot boot-m4-cm11-s2w-20141130.img
-bash: ./fastboot-mac: No such file or directory

Any ideas what I'm doing wrong? The boot img is definitely in the right directory. I don't say this often but I really wish I had a PC right now...
 

mtbfraser

Senior Member
Feb 27, 2013
73
14
No problem, click thanks if you like.

Has anyone tried this kernel with lollipop roms?
 

mattplo

Senior Member
Aug 18, 2010
209
65
The Empire
No problem, click thanks if you like.

Has anyone tried this kernel with lollipop roms?

I no longer have this device (go me an M8!) but NO, this kernel needs to be recompiled for it to boot. You'll just get stuck at the HTC screen then dumped into recovery.

I know this because I've previously attempted to boot this kernel running CM12(unofficial) and Candy5.
 

sekkato

Member
Oct 18, 2007
8
0
Hello to all
I have a htc one mini m4
I followed this guide I installed cm - 11-20150907 - NIGHTLY - m4 then flash the attached boot - m4 - CM11 - s2w - 20141130.img . the phone keeps rebooting on written htc android. I go into recovery but restarts. I ask for help . Thank
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    I ported Sweep2Wake and DoubleTap2Wake features to CM11 kernel.

    (S2W/DT2W kernel for Sense rom is here: http://xdaforums.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
    3
    Sync and build with the latest kernel source (2014-11-30).
    Please download the boot image from the opening message.
    Commits until Nov 20 was included: https://github.com/CyanogenMod/android_kernel_htc_msm8960/commits/cm-11.0

    This is probably the last build for CM11.

    Note: This build is not tested. I no longer own the One Mini.
    3
    Sync and build with the latest kernel source (2014-06-17).
    See the opening message.
    2
    Great Kernel, runs very smooth on cm nightly 20140615 :)
    Are there any changelogs for the latest version?

    S2W/DT2W side was nothing changed.
    Change log (Commit log) of CM11 kernel is here: https://github.com/CyanogenMod/android_kernel_htc_msm8960/commits/cm-11.0
    2014-06-17 build includes commits until Jun 12.
    2
    Sync and build with the latest kernel source (2014-06-08).
    Fixes CVE-2014-3153.
    See the opening message.