[MOD] Enable or Disable DT2W in any rom - Xiaomi Redmi Note 4 Themes, Apps, and Mods

So I was flashing roms and stuff, but the only issues I had with custom roms is that there was no switch to disable dt2w. I personally use dt2w, as our mido has a massive battery life. But ofc, many don't like it. So here it is. Flashable zips to both enable and disable double tap to wake. Just flash in recovery over any rom. Do not flash over miui roms, as there is already a switch.
Ps. The kernel source is out now, so a switch for dt2w will be out soon. But till then, you can use this workaround

Vidhanth said:
So I was flashing roms and stuff, but the only issues I had with custom roms is that there was no switch to disable dt2w. I personally use dt2w, as our mido has a massive battery life. But ofc, many don't like it. So here it is. Flashable zips to both enable and disable double tap to wake. Just flash in recovery over any rom. Do not flash over miui roms, as there is already a switch.
Ps. The kernel source is out now, so a switch for dt2w will be out soon. But till then, you can use this workaround
Click to expand...
Click to collapse
Hi Vidanth, nice to see you here buddy. Coming from Moto G 2014.
Looking forward to ur great work for mido as well.

@Vidhanth this broke display rotation for me
Sent from my Redmi Note 4 using Tapatalk

Does dt2w consumes more battery?

Te$la said:
Does dt2w consumes more battery?
Click to expand...
Click to collapse
Of course! Not to much, not to little

is there a switch in custom roms now? lineage os for example?

Doesnt work on nikel. project aosp x lineage rom.

It works perfectly, thank you.

Workeddddd!!!
Thank you so much. It worked flawlessly.

Excuse me, what is the DT2w?

Not working for me

magnet1215 said:
Excuse me, what is the DT2w?
Click to expand...
Click to collapse
Double tap to wake!

Kuchayhilal said:
Not working for me
Click to expand...
Click to collapse
If you are rooted, you can run this command from a root terminal
Code:
echo "0" > /proc/touchpanel/enable_dt2w
You will need to do it on each reboot (eg, via an init.d script, or perhaps with something like Kernel Adiutor).

With or without root?
Hi, does this work without root? If so would you explain in detail how to do it?
I absolutely hate double tap to wake!
Also any tests with android 8.1?

Will this also work on Android One?
(Xiaomi MI A2 Lite)

saleyman said:
Will this also work on Android One?
(Xiaomi MI A2 Lite)
Click to expand...
Click to collapse
I have the same doubt, will this work on Android one official firmware or do I need to flash a custom kernel? (Xiaomi MI A2)

Is it good for land

sorry out of topic, but how to double tap to sleep the screen?

Switch donot work in miui 11 rom...so need a zip to disable it...there is no option in kernel auditor app to disable DT2W...please help

Download The Module Of MultiFunctions From This Thread https://forum.xda-developers.com/apps/magisk/module-multifunctions-bootloop-t3933386 For Getting The Ability To Use The Function Of DT2WStatus Inverter To Invert The Default DT2W Status ([From Disabled To Enabled] Or [From Enabled To Disabled]).
P.S. The Installed/Flashed Rom/Kernel Must Support The Feature Of DT2W (DoubleTap2Wake)​

Related

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

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
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
thanks! S2W and T2W are working just fine! but the cpu governor is stuck at performance, you can't change it.
Can you port your kernel to our sense 6 port ROM?
It would be awesome
Is this kernel are compatible with stock 4.4.2 ROM? If not, is possible to port it?
Im a big sense fan on 5.5....but these features along is really making me want to switch to c,11
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.
RuffBuster said:
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?
Click to expand...
Click to collapse
MirageBlader said:
Can you port your kernel to our sense 6 port ROM?
It would be awesome
Click to expand...
Click to collapse
IncubusUA said:
Is this kernel are compatible with stock 4.4.2 ROM? If not, is possible to port it?
Click to expand...
Click to collapse
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.
theodorius123 said:
thanks! S2W and T2W are working just fine! but the cpu governor is stuck at performance, you can't change it.
Click to expand...
Click to collapse
theodorius123 said:
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.
Click to expand...
Click to collapse
I am using 0424 nightly with my kernel and there is no problem.
Please update to the latest nightly and retry.
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.
theodorius123 said:
maybe it's caused by flashify.
Click to expand...
Click to collapse
yes, it was flashify! everything is working fine now after flashing via fastboot.
Do these features affect battery life somehow?
morschesholz said:
Do these features affect battery life somehow?
Click to expand...
Click to collapse
There seems to be no major negative impact on battery life.
Sync and build with the latest kernel source (2014-05-01). See the opening message.
Sync and build with the latest kernel source (2014-05-05). See the opening message.
kyasu said:
Sync and build with the latest kernel source (2014-05-05). See the opening message.
Click to expand...
Click to collapse
thanks! kernel works great so far. will flash the new version later!
I can confirm that this kernel works flawlessly!!!
I wish I had the same kernel for STOCK SENSE-based ROM.
Many thanks to @kyasu.
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 said:
I can confirm that this kernel works flawlessly!!!
I wish I had the same kernel for STOCK SENSE-based ROM.
Many thanks to @kyasu.
Click to expand...
Click to collapse
I ported S2W/DT2W to sense kernel.
See: http://forum.xda-developers.com/showthread.php?p=52678000
@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?

[Q] OneS: knock2wake/doubletap 2 wake for ROM MIUI?

Hello, any master help me please:
I'm using OneS
I flahed the MIUI Rom "http://forum.xda-developers.com/showthread.php?t=2754955".
but I like MOD: "knock to wake" or doubletap 2 wake :silly:. (I love MIUI rom because callrecord good work :good
Which kernel working with this ROM that help me use this MOD???
if anyone can help it would be brilliant.
Thanks:laugh:
kobk said:
Hello, any master help me please:
I'm using OneS
I flahed the MIUI Rom "http://forum.xda-developers.com/showthread.php?t=2754955".
but I like MOD: "knock to wake" or doubletap 2 wake :silly:. (I love MIUI rom because callrecord good work :good
Which kernel working with this ROM that help me use this MOD???
if anyone can help it would be brilliant.
Thanks:laugh:
Click to expand...
Click to collapse
Well MIUI is sense based so you should be able to use a sense kernel like Elemental X for doubletap 2 wake. Make a back up then try it.
Your can also try the app Knockr, but I haven't had much success with it.
Im will try, hope it work well...^^
rosswhite said:
Well MIUI is sense based so you should be able to use a sense kernel like Elemental X for doubletap 2 wake. Make a back up then try it.
Your can also try the app Knockr, but I haven't had much success with it.
Click to expand...
Click to collapse
Thanks alot :good:
You can use this :
https://play.google.com/store/apps/details?id=it.android.smartscreenonlite

The perfect setup of Moto X Play

Hey guys!
Power users already have custom kernels and ROMs, and it is possible to tune some advanced settings with and without root, so what did you modified on yours?
A lot of users reported performance issues and others just want more features, more efficiency, etc. Of course, there are those who just likes the device the way it comes from Motorola or don't want to void the warranty.
With all this diversity, I created this thread for we discuss what is the best setup for our device and how can we extract the best of it.
Curently mine is with stock ROM, Xposed, GravityBox and squid's custom kernel.
This setup provides me all Moto features, plus lots of features with GravityBox. I think that the performance is better, because I changed some settings with Kernel Adiutor.
Why
fingerprinted said:
Why
Click to expand...
Click to collapse
Since each person uses a phone in a way, my idea was to create a space where people could tell which ROM, kernel, apps, themes and other things they use and share the benefits they get. This would make possible to all Moto X Play owners discover new things that could improve the user experience and everybody would win.
Stock rom, greenify, amplify (xda thread for great battery), lspeed mod. Works fine for me
LuizHenrique91 said:
Curently mine is with stock ROM, Xposed, GravityBox and squid's custom kernel.
This setup provides me all Moto features, plus lots of features with GravityBox. I think that the performance is better, because I changed some settings with Kernel Adiutor.
Click to expand...
Click to collapse
I find that installing xposed on my device causes choppy audio playback. Does this happen with you?
I'm using BlackPlayer and phonograph
hs-1993 said:
I find that installing xposed on my device causes choppy audio playback. Does this happen with you?
I'm using BlackPlayer and phonograph
Click to expand...
Click to collapse
Now I'm on Cyanogenmod with a custom kernel, both by squid.
But I remember that when I was on stock, I had no problems with audio neither before or after installing Xposed.
Ohh.. Alright, having never used an android device, how do you find the performance of the device on cyanogenmod compared to stock? Is it worth flashing?
hs-1993 said:
Ohh.. Alright, having never used an android device, how do you find the performance of the device on cyanogenmod compared to stock? Is it worth flashing?
Click to expand...
Click to collapse
Totally worth it! X Play doesn't have good performance with the stock ROM at this time. There are lags that we don't expect to find on a device at this price range. With Cyanogenmod the UI is very smooth. There are still some lags, but they're normal because we don't have a device with a Snapdragon 8xx. I can say you that with CM, the performance is just as good as you could expect of this hardware (and it's very good). If you are going to flash, I also recommend the squid kernel. It's great.
Here is the index of Moto X Play on XDA: http://forum.xda-developers.com/moto-x-play/general/17-10-t3227295
Thanks man, will let you know. I tried the squid kernel yesterday, phone wouldn't resume out of deep sleep
Any such problems with cyanogenmod that might have occured due to squid kernel?
hs-1993 said:
Thanks man, will let you know. I tried the squid kernel yesterday, phone wouldn't resume out of deep sleep
Any such problems with cyanogenmod that might have occured due to squid kernel?
Click to expand...
Click to collapse
The only problem I *think* some people have is that on certain wi-fi networks, the wi-fi driver prevents the phone from sleeping. I said *I think* because I don't have this issue and because of this I'm not sure whether it's already solved or if the problem persists. I suggest you to read at least the last pages from the threads of CM and the kernel for you to be sure.
What I can say is that for my usage, I have absolutely no problems. Everything works fine.
i'm using RR 5.5.8 + squid kernel latest update, greenify + amplify, working fine
Does Squid kernel (or Cyanogenmod ) solve the problem of RECENT APPS ?
I mean the impossibility for erasing them all with a single button.
peteich said:
Does Squid kernel (or Cyanogenmod ) solve the problem of RECENT APPS ?
I mean the impossibility for erasing them all with a single button.
Click to expand...
Click to collapse
Cyanogenmod has this feature.
LuizHenrique91 said:
Cyanogenmod has this feature.
Click to expand...
Click to collapse
thank you !
peteich said:
Does Squid kernel (or Cyanogenmod ) solve the problem of RECENT APPS ?
I mean the impossibility for erasing them all with a single button.
Click to expand...
Click to collapse
GravityBox on stock Rom as well :good: needs root + xposed though
brom25 said:
GravityBox on stock Rom as well :good: needs root + xposed though
Click to expand...
Click to collapse
Just found this feature myself earlier today!
Someone can explain me or give me the link on how to install xposed on my moto x thx
Envoyé de mon XT1563 en utilisant Tapatalk
aarmstrong23 said:
Someone can explain me or give me the link on how to install xposed on my moto x thx
Envoyé de mon XT1563 en utilisant Tapatalk
Click to expand...
Click to collapse
Flash TWRP, root the device then check this thread : http://forum.xda-developers.com/moto-x-play/help/xposed-t3191338/post63940401 to be sure which version to use.
Basically, flash the zip provided and reboot :good:
For the first time waiting a little before rooting this phone, since 6.0 is rolling out soon.
As of today mine is running quite smooth on stock 5.1.1
Just disabled all unused/useless apps,
limited the connections and data usage with Netguard and Opera max.
Will keep you posted.

[ROM][DEPRECATED] OLD Cyanogenmod 11

ROM DEPRECATED, USE LAST CM11 HERE
ROM DEPRECATED, USE LAST CM11 HERE
USE ONLY LASTEST BUILD
I forgot the rom name but there's a kitkat rom with no screen flickering issue by niropa (on lollipo bootloader). u can contact with niropa to solve screen flickering issue.
Yes,was in a wrong place, i have contacted a moderator, now is in android development.
Ok , i think cm11 its the most stable tree from cm team , i like KK because its more ligth weigth , i dont know why the developers wonma make roms unstable and buggies hehe , can u add a custom features? Like another toolchain? (Linaro , Uber) or new features from kernel? Like more i/o (zen ) , gpu OC or cpu OC?...
Anyway , Thank U its run great
Enviado desde mi Moto G mediante Tapatalk
STR4NG3R-GUY said:
Ok , i think cm11 its the most stable tree from cm team , i like KK because its more ligth weigth , i dont know why the developers wonma make roms unstable and buggies hehe , can u add a custom features? Like another toolchain? (Linaro , Uber) or new features from kernel? Like more i/o (zen ) , gpu OC or cpu OC?...
Anyway , Thank U its run great
Enviado desde mi Moto G mediante Tapatalk
Click to expand...
Click to collapse
unfortunately I am only at the beginning, I'm learning slowly how to create rom from source code, for the moment I do not know to create kernels with overcloclock or similar. I'm only 15 years old, and this is the second ROM in total which I compile
SLATE21&MOTOG said:
this rom works with all bootloader, kitkat and lollipop, but with the lollipop one you will get screen flickering. If anyone knows how I can do a build with no screen flickering can contact me in pm.
Click to expand...
Click to collapse
See PACMan builds with overkill kernel by niropa. Just search in that thread and you'll find many ROMs like CarbonKK or PA, which are made to work on LP bootloader
Will this work on msim variant also? I read you mentioned xt1032 but still if you know..
It might work, but has been tested only on xt1032 aka falcon.
tested on XT1033, very stable ROM, smooth ROM ever :fingers-crossed::fingers-crossed:
Stock cm11 kernel or something else is there? I can see "overkill kernel" that reminds me really good things
Rocketval said:
Stock cm11 kernel or something else is there? I can see "overkill kernel" that reminds me really good things
Click to expand...
Click to collapse
Yes, I have used Overkill kernel that @Niropa has used in his Pac-man rom build, with the hope of fix the screen flickering, but the problem remain. This is aniway a good and stable kernel. For more information see: https://github.com/ReaperXL2/Overkill_V4_extended/tree/cm-11.0
SLATE21&MOTOG said:
Yes, I have used Overkill kernel that @Niropa has used in his Pac-man rom build, with the hope of fix the screen flickering, but the problem remain. This is aniway a good and stable kernel. For more information see: https://github.com/ReaperXL2/Overkill_V4_extended/tree/cm-11.0
Click to expand...
Click to collapse
But are kernel sources updated? Or using it cause some incompatility such as hotspot, bt or something else?
All work fine, bluetooth and hotspot work. I have tested it, the only warnings are 3:
-Do not active kernel samepage merging, you will have problem in camera
-install gapps only after the first reboot of the rom
-If you use whatsapp install it before switching to ART (in developer setting, for better performance select ART)
There aren't particular bugs
SLATE21&MOTOG said:
All work fine, bluetooth and hotspot work. I have tested it, the only warnings are 3:
-Do not active kernel samepage merging, you will have problem in camera
-install gapps only after the first reboot of the rom
-If you use whatsapp install it before switching to ART (in developer setting, for better performance select ART)
There aren't particular bugs
Click to expand...
Click to collapse
Why gapps only on second boot?
ale467 said:
Why gapps only on second boot?
Click to expand...
Click to collapse
Because if you install the rom and after the gapps and you reboot, the setup wizard crash. I have tryed it
https://www.youtube.com/watch?v=YFATFIufW7Q&feature=youtu.be
This is a small video demonstration of the rom, 60 second.
SLATE21&MOTOG said:
Yes, I have used Overkill kernel that @Niropa has used in his Pac-man rom build, with the hope of fix the screen flickering, but the problem remain. This is aniway a good and stable kernel. For more information see: https://github.com/ReaperXL2/Overkill_V4_extended/tree/cm-11.0
Click to expand...
Click to collapse
Check out xperience kernel to get rid of screen flickering
Niropa said:
Check out xperience kernel to get rid of screen flickering
Click to expand...
Click to collapse
could you give me the kernel link on github ?
SLATE21&MOTOG said:
could you give me the kernel link on github ?
Click to expand...
Click to collapse
I don't have the link I haven't built for the moto g in ages, just go to the xperience thread, their is only 1 kernel by teamex called xperience

[Flashable] Ambient Display Gestures for any rom [XiaomiDoze]

So some roms have now started to include this great feature called XiaomiDoze, which pretty much adds handwave, pickup and pocket trigger to ambient display (pulse). Well since only a few roms have it, I decided to make a flashable zip out of this so that it can be used on any rom. So I extracted xiaomidoze.apk from a rom that had it built in, and made a flashable zip. Flash it in twrp and check in settings, you should see another category called "Ambient Display". It works perfectly.
You're welcome
Ps. It WILL NOT work on miui roms. It *should* work on all aosp/los based roms.
Nice!
Can ask some assistance?
Why it wont work on official LineageOS rom?
P.S. there's no additional setting to ambient display. @__ ty
so im on aicp and theres already this feature included. will this zip overwrite it or something? r the gestures and all really working? is there a way to uninstall this? thanks for the work anyways dev!??
GabrielScott said:
Can ask some assistance?
Why it wont work on official LineageOS rom?
P.S. there's no additional setting to ambient display. @__ ty
Click to expand...
Click to collapse
It will work.
zohaibahd said:
so im on aicp and theres already this feature included. will this zip overwrite it or something? r the gestures and all really working? is there a way to uninstall this? thanks for the work anyways dev!??
Click to expand...
Click to collapse
That's not Xiaomi doze. Flash it, nothing will go wrong
Vidhanth said:
That's not Xiaomi doze. Flash it, nothing will go wrong
Click to expand...
Click to collapse
oh man this is way too cool. thanks for it dev!?
Vidhanth said:
That's not Xiaomi doze. Flash it, nothing will go wrong
Click to expand...
Click to collapse
the ambient display is working even when there is no notification. there was a popup when i 1st opened the ambient display telling that doze mode will only turn on when theres a notification but it is always on. any way to disable that?
Not working on my official LineageOS 14.1 note 4 (sd). No option at all.
abhijeetm31 said:
Not working on my official LineageOS 14.1 note 4 (sd). No option at all.
Click to expand...
Click to collapse
try
custom shorcut maker from play store and fine xiami activity the open it and active .....works on zx and z5 stocks roms and linage os
Vidhanth said:
So some roms have now started to include this great feature called XiaomiDoze, which pretty much adds handwave, pickup and pocket trigger to ambient display (pulse). Well since only a few roms have it, I decided to make a flashable zip out of this so that it can be used on any rom. So here's the zip. Flash it in twrp and check in settings, you should see another category called "Ambient Display". It works perfectly.
You're welcome
Ps. It WILL NOT work on miui roms. It *should* work on all aosp/los based roms.
Click to expand...
Click to collapse
I flashed it on AOSP 6.0, but didn't find any option in settings
I flashed on AEX 4.5 its working. Thanks dev...
But on taking ph up it has a delay of 1 or 2 sec to on the screen... Is there any way to instantly wake screen.. Its handy to look time..
Not Found in Settings!!! Confirmed
abinnishihh said:
Not Found in Settings!!! Confirmed
Click to expand...
Click to collapse
i think u r looking in the wrong place.. Its in main settings.
jijoejoe123 said:
i think u r looking in the wrong place.. Its in main settings.
Click to expand...
Click to collapse
This is the right place bro! I'm on lineage os
abinnishihh said:
Not Found in Settings!!! Confirmed
Click to expand...
Click to collapse
Same issue here
It is another ambient setting in display tab. U should go up first page on setting, there is an additional ambient display. If you have installed it correctly
Lineage OS 7.1.2 on Xperia Z2, works 10/10, but I'd want the info screen one more time, I didn't get the whole message.
nice work, works like a charm at PA. wish i can change some values tho but well done!
I think the packege has some conflict with other settings, is it possible to change the package name?

Categories

Resources