[KERNEL] [Sense] [S2W/DT2W] Sweep2Wake/DoubleTap2Wake Kernel for Sense | 2014-08-09

kyasu

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

(S2W/DT2W kernel for CM11 rom is here: http://forum.xda-developers.com/showthread.php?t=2732812)

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 author: @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. Make sure that your are on the stock sense rom: Android 4.4.2 and Sense 5.5.
2. Flash the attached boot-m4-3.4.10-s2w-20140515.img .

# fastboot flash boot boot-m4-3.4.10-s2w-20140515.img​

OR

1. Make sure that your are on the stock sense rom: Android 4.4.2 and Sense 6.0.
2. Flash the attached boot-m4ul-4.09.401-s2w-20140724.img (Europe ROM) or boot-m4ul-s2w-4.09.708-Asia_HK.img (Asia ROM).

# fastboot flash boot boot-m4ul-4.09.401-s2w-20140724.img​
# fastboot flash boot boot-m4ul-s2w-4.09.708-Asia_HK.img​

Source:
The attached m4-3.4.10-s2w-20140515.patch is a patch to the 3.10.707.3 kernel source (m4-3.4.10-g966dbe9.zip).
The attached m4ul-3.4.10-g7de23fa-s2w.patch is a patch to the 4.09.401.3 kernel source (m4ul-3.4.10-g7de23fa.zip).
The kernel source can be downloaded from HTCDev (Device: One mini).

Enjoy!

Build Date: 2014-08-09

Created 2014-05-15
Last Updated 2014-08-09
 

Attachments

Last edited:

abzboi

Senior Member
Jul 22, 2013
317
50
0
Sacramento
Great to see another dev here!! Can't wait to see what you have in store for mini users :)

Sent from my HTC One mini using Tapatalk
It's even greater to have you in here. You brought InsertCoin rom for us along with the m8 motion gesture with your friend. I want to thank you more for that. It would also be nice to get htc logo to map as menu or something.
 

xXminiWHOOPERxX

Senior Member
Feb 17, 2014
2,980
4,957
0
Broadalbin
It's even greater to have you in here. You brought InsertCoin rom for us along with the m8 motion gesture with your friend. I want to thank you more for that. It would also be nice to get htc logo to map as menu or something.
Well yes rom is finished and ready for release, just waiting on @faner input, since I used some folders from his Rom. I'll make him part of IC team only for the mini though. Motion Gestures will come from @kairi_zeroblade once he sends me kernels to test.. since I'm the only one who test his kernels for devices he supports blindly ( Yes I risk my phones for the community I support, but I trust him ), he. Will probably doing the HTC logo to menu ....and thanks I am grateful for the welcoming here. But when kernel with MLG is released please thank kairi for kernel.

Sent from my HTC One mini using Tapatalk
 
  • Like
Reactions: kairi_zeroblade

abzboi

Senior Member
Jul 22, 2013
317
50
0
Sacramento
Well yes rom is finished and ready for release, just waiting on @faner input, since I used some folders from his Rom. I'll make him part of IC team only for the mini though. Motion Gestures will come from @kairi_zeroblade once he sends me kernels to test.. since I'm the only one who test his kernels for devices he supports blindly ( Yes I risk my phones for the community I support, but I trust him ), he. Will probably doing the HTC logo to menu ....and thanks I am grateful for the welcoming here. But when kernel with MLG is released please thank kairi for kernel.

Sent from my HTC One mini using Tapatalk
Don't forget me I will also be his tester for one mini. He said his releasing it tonight night time I believe. Are you able to upload the rom but not share the link until he agrees to it? Or only on Friday?
 

xXminiWHOOPERxX

Senior Member
Feb 17, 2014
2,980
4,957
0
Broadalbin
Don't forget me I will also be his tester for one mini. He said his releasing it tonight night time I believe. Are you able to upload the rom but not share the link until he agrees to it? Or only on Friday?
@faner has to say okay first. But I have amazing upload speeds on Mondays, Wednesday's , and Friday's. I'm praying for tomorrow but that isn't up to me. And that's up to him for you to be a tester. But there's always the risk of a brick cause he does it blindly. That's why I take the risk. But I trust him with my phones

Sent from my HTC One mini using Tapatalk
 

kairi_zeroblade

Senior Member
Feb 10, 2011
2,322
12,710
113
@faner has to say okay first. But I have amazing upload speeds on Mondays, Wednesday's , and Friday's. I'm praying for tomorrow but that isn't up to me. And that's up to him for you to be a tester. But there's always the risk of a brick cause he does it blindly. That's why I take the risk. But I trust him with my phones

Sent from my HTC One mini using Tapatalk
i REALLY like this girl..if i ever see you personally you get a Bear-hug..
 
  • Like
Reactions: xXminiWHOOPERxX

oz666

Member
Sep 18, 2007
27
3
0
Bucharest
calling problems

I started having problems with calls (the other side is not hearing me for 2-3 seconds, repeating) after flashing this kernel. Anyone knows where I can download the original kernel to roll back ?
 

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
I started having problems with calls (the other side is not hearing me for 2-3 seconds, repeating) after flashing this kernel. Anyone knows where I can download the original kernel to roll back ?
You can download the original boot.img from OTA file or RUU file available in XDA.
I captured some of boot.img for KitKat 4.4.

- boot-CWS__001-3.10.502.3.img

modelid: PO5822000
cidnum: CWS__001
mainver: 3.10.502.3

- boot-HTC__001-3.10.401.4.img

modelid: PO5820000
cidnum: HTC__001
cidnum: HTC__Y13
cidnum: HTC__E11
cidnum: HTC__102
cidnum: HTC__203
cidnum: HTC__405
cidnum: HTC__A07
cidnum: HTC__032
cidnum: HTC__J15
cidnum: HTC__A48
cidnum: HTC__M27
cidnum: HTC__016
mainver: 3.10.401.4

- boot-HTC__622-3.10.708.4.img

modelid: PO5821000
cidnum: HTC__622
mainver: 3.10.708.4
 

Attachments

Last edited:

nicus

Senior Member
Nov 18, 2007
69
5
0
i flashed the kernel a few days ago on my insertcoin-rom and it works like a charm.

is it possible to deactivate the doubletap2wake to survive a reboot?
i can change the /sys/android_touch/doubletap2wake -> 0 but it will always go back to 1 after a reboot

cheers!
 

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
Build for Sense 6 with the latest 4.09.401.3 kernel source (m4ul-3.4.10-g7de23fa.zip) and 4.09.401.3 ramdisk.
Please download the boot image from the opening message.
I only tested this kernel with the Sense 5.5 ROM, because my mini is an Asia version and Sense 6 for the Asia version is not available yet.
 

nicus

Senior Member
Nov 18, 2007
69
5
0
oh, i flashed the "boot-m4-3.4.10-s2w-20140515.img" on my sense 6 phone.
can i just reflash the "boot-m4ul-4.09.401-s2w-20140724.img" or do i have to remove something first?
 

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
i flashed the kernel a few days ago on my insertcoin-rom and it works like a charm.

is it possible to deactivate the doubletap2wake to survive a reboot?
i can change the /sys/android_touch/doubletap2wake -> 0 but it will always go back to 1 after a reboot

cheers!
Please create init.d script file like:

/system/etc/init.d/S99d2woff

Code:
#!/system/bin/sh
echo 0 > /sys/android_touch/doubletap2wake
 
  • Like
Reactions: htc_one_mini_m4