yashsingh1/xdaforums huggingface dataset:
[Moto G Android Development] Langsuir:
Morning guys! I made a little finding and I thought I'd share it here just in case it is useful for someone.

If you are using FauxClock app to tweak the kernel like me, and don't want to be forced to have TricksterMOD, Kernel Autior, Tasker, or any other app running and consuming resources exclusively to enable DT2W, then you can try this (at you own risk, lol). Navigate (with root access) to /etc/init.d and open "01kernelTweaks", then add the following line:

echo "2" > /sys/android_touch/doubletap2wake;​

Just make sure you add it in a logical place within the sctructure of the script (not at the start of it or at the end for example). I personally added it after the "#Internet speed tweak" block. This setting will enable DT2W on the whole screen, or at least it does for me. With a little modification you can probably set up your preferred config with this method (STW, etc.) as well, and it will be applied every boot. If someone wants to try, I'd advice to wait first for [MENTION=5857055]Flashhhh[/MENTION] to confirm this is safe for everyone to do, as I am no dev and don't want to mess up any of your devices. :p

Note: If there's something wrong with this let me know OP and I'll delete the post.

Hope it helps. :)
[Moto G Android Development] Flashhhh:
Yes it is a safe method

Any1 can try that
[Moto G Android Development] Langsuir:
Great. :D In such case would you mind if I asked you for a little list with all the different wake settings and a few words to know what each of them does? :) If you got the time of course, otherwise I can try to work it out.

I.E:

echo "1" > /sys/android_touch/doubletap2wake; | half screen dt2w

echo "2" > /sys/android_touch/doubletap2wake; | full screen dt2w

....

echo "1" > /sys/android_touch/sweep2wake; | this does x

.

.

.​

Maybe I am asking too much am I not? :rolleyes: Would be really nice though. :angel:
[Moto G Android Development] Flashhhh:
Kernel Update

Updated the kernel to latest cm12 sources

Multirom support isn't included and DT2W will not be added for now

Multirom support will be added shortly

Remaining Features will be added in upcoming releases

Cheers!!!!!!

Edit:You need to flash it on roms which have implemented new kernel sources

Don't flash it on old builds and spoil the thread about wifi not working
[Moto G Android Development] deeplyyoung:
Well until Nxt release I can use this on my secondary Rom's & will wait for Kexec support to update my primary Rom...:good:
[Moto G Android Development] PratsPro:
ok but proximity light is always on that's y i asked
[Moto G Android Development] mallikarjun170:
Wifi not working after flashing R12 i'm on TeamUB latest build
[Moto G Android Development] Flashhhh:
You need to flash it on roms which have implemented new kernel sources

Team UB hasn't still implemented it

Use cm nightly dated 15th or later
[Moto G Android Development] kiyo75:
R12 flashed but I find bootloop, I returned to R11 and no problem.

Whenever I make two wipe, cache and dalvik / art cache before flashing. any solution?

Rom BrokenOS
[Moto G Android Development] deeplyyoung:
Working for me...

It's smooth like Butter...

now more mad to have kexec...
[Moto G Android Development] MetalPhoenix45:
What theme is that??
[Moto G Android Development] deeplyyoung:
Working on latest PAC as well
[Moto G Android Development] kiyo75:
Okay, I'm not going to change rom to have the R12, R11 I stay and go.

Thank You.
[Moto G Android Development] Flashhhh:
Well it's your own personal choice
[Moto G Android Development] kiyo75:
If no other solution , yes is my decision to stay at R11 , no problem .

Thanks.

Enviado desde mi Moto G
[Moto G Android Development] MetalPhoenix45:
I think cm updated their kernel sources again as they added interactive with touch boost.
[Moto G Android Development] droidead:
What theme is that?
[Moto G Android Development] MetalPhoenix45:
Please remove this post because you should pm him.
[Moto G Android Development] SH1M4BD3:
Will wait till MR support,thanks for your hard works,yay
[Moto G Android Development] Flashhhh:
MR coming in next release

All credits to [MENTION=3132221]sub77[/MENTION]
[Moto G Android Development] MetalPhoenix45:
Can you add voltage control?
[Moto G Android Development] ==vj==:
Waiting for it too as i am planning to try back MR for FIUI ROM which seems something new.
[Moto G Android Development] Langsuir:
Waiting for dt2w support over here. :p
[Moto G Android Development] sathvik07:
In latest nightly flickering screen on boot problem has stopped on my xt1033....But i am still getting flickering screen in Recovery..(TWRP 2.6.3.0) ..Any solutions .??
[Moto G Android Development] twist3d0n3:
Use one of the non-ancient versions of twrp for a start
[Moto G Android Development] Flashhhh:
Wait for twrp team to update the recovery

Well i am thinking of not adding it
[Moto G Android Development] PeterImmel:
I think, that dt2w is the reason for the success of your kernel. Please readd it
[Moto G Android Development] Flashhhh:
Ok I'll do
[Moto G Android Development] Langsuir:
Thank you very much! I appreciate. :D
[Moto G Android Development] ldiomedi:
I tried every update of your kernel, Flashhhh. Dt2w its what make me use it. But the R9-12 gave me randoms reboot on blisspop, so I'm using R8 which is really stable. Smartmax governor is great. I know you had to updated sources and start from scratch, but that old version works very well for me. I will tray every updated you release, of course, but I'll remains in R8. Thanks for what you do for us..
[Moto G Android Development] .:Crack:.:
I also had 2 freezes/random reboots using R11
[Moto G Android Development] Flashhhh:
Logs or it didn't happen
[Moto G Android Development] ==vj==:
Is SMARTMAX dropped on R12 :rolleyes: It was a cool one to play with for max batt savings. Well will manage with INTERACTIVE :)
[Moto G Android Development] aouerfelli:
If you want battery, try intellimm.
[Moto G Android Development] Flashhhh:
Will be added in R13
[Moto G Android Development] ==vj==:
Already tried Intellimm, but didn't satisfy me on performance side. Smartmax and Interactive are my considerations for good balance. With the confirmation from Flashh will patiently wait for R13 :angel:
[Moto G Android Development] kaz93:
Can you please add back fauxsound support?
[Moto G Android Development] Flashhhh:
Yup will be added
[Moto G Android Development] Langsuir:
[MENTION=5857055]Flashhhh[/MENTION] what do you think about "Performance May Cry" and "PegasusQ" governors? According to this source they are some of the best governors, PMC for battery saving in multi-core and PegasusQ for balance in multi-core.

I also read that westwood is the best TCP congestion control together with cubic, if this is true would it be possible to add it?
[Moto G Android Development] Flashhhh:
Well i am thinking of adding some govs

I'll test and add some govs
[Moto G Android Development] layman806:
Well, the 96MHz min clock and the double tap to wake, and the s2w features were the only reasons for which I unlocked my bootloader and even installed cm12. I'm deeply saddened that you removed those features. I even liked the GPU overclock to 533 MHz. Can you please add them back?
[Moto G Android Development] Flashhhh:
I am busy these days so can't work on it right now

And yes CPU underclock and GPU OC & UC will be added shortly

And about dt2w it's causing errors on new sources
[Moto G Android Development] Saber:
You should look at my official thread here too: http://xdaforums.com/general/general/ref-to-date-guide-cpu-governors-o-t3048957

More info about CPU governors and I/O scheduler are found in the link above ^^^^^^^^^^^(some other info is not available on my website)

And yes, by far, westwood is one of the most popular TCP algorithms nowadays. It is newer than a lot of the other algorithms.
[Moto G Android Development] Flashhhh:
Kernel Update

Updated the kernel

Added MR support

Added TCP congestions

Added KCAL Color Control Driver

And Many more..

Read the changelog in 2nd post!!

Enjoy!!!!

Edit: This should probably fix black screen issues with MR

This one has been compiled with Google's GCC 4.8 Toolchain
[Moto G Android Development] Naacho:
Downloaded LP-12 and there is a line going up the screen, when it reaches the top, starts from below and starts going up again.
[Moto G Android Development] Flashhhh:
The latest version is R13

Make sure you are on LP bootloader and u should use a rom which has new kernel sources

Cheers!!
[Moto G Android Development] Naacho:
Oh I see you updated the post (downloaded LP-12 15 minutes ago). I'm using BlissPop from March's first week (I don't remember the day) so that may be the problem, though i'm testing the new kernel version first.

The glitch dissapeared after 3 minutes from booting, maybe is just at the beginning.

Thanks!
[Moto G Android Development] Flashhhh:
Well u need an updated rom to try R13
[Moto G Android Development] Naacho:
Is that obligatory?
[Moto G Android Development] Flashhhh:
Yes otherwise wifi won't work
[Moto G Android Development] Naacho:
Got it! Thank you for your time :)
[Moto G Android Development] deeplyyoung:
Was waiting since long to update my primary ROM... Tnks once again for another update... Gonna try it with latest build of BlissPop and revert soon..
[Moto G Android Development] SH1M4BD3:
Flashed on mokee latest build...seems working fine
[Moto G Android Development] deeplyyoung:
Flashed over BlissPop latest build as primary Rom using MR & the black screen Bug also vanished....:good:.

Now MR is perfect with R13..

Tnks Bro for all support....:highfive:
[Moto G Android Development] Flashhhh:
Thanks for reporting!!
[Moto G Android Development] argo7:
What settings do you have set?
[Moto G Android Development] deeplyyoung:
Settings for MR or kernel ??
[Moto G Android Development] twist3d0n3:
I really don't get why you'd need multirom... Seems like a "Just cos" feature
[Moto G Android Development] argo7:
Kernel:p
[Moto G Android Development] deeplyyoung:
Yes you are right... But it my choice & my device... So I can do whatever I want... Understood ??????

---------- Post added at 12:17 AM ---------- Previous post was at 12:17 AM ----------

Kernel settings yet to set.. Right now with default setup...
[Moto G Android Development] argo7:
Can you post your sttings when you set it? thx
[Moto G Android Development] Flashhhh:
Don't forget to enable intelliplug

Due to some reasons it's disabled
[Moto G Android Development] deeplyyoung:
Sure I'll but I think [MENTION=5857055]Flashhhh[/MENTION] can suggest best config better then me...

I'll Keep in mind
[Moto G Android Development] PhurionN:
Hey awesome kernel, but i have a great issue, my XT1032 doesnt enter in deep sleep. I´m using R13 and AICP latest nightly. I´ve read that flashing old gapps it can be solved but not sure if there is a better solution. Waiting for a response, thank you.
[Moto G Android Development] Wechy77:
It's the latest Google play services that causes issues with deep sleep, nothing to do with kernel. Today cm merged some changes to avoid wake locks. You must wait until it is merged into your rom or Google publish new version of play services.
[Moto G Android Development] PhurionN:
So nothing to do i see, thank you anyway :D
[Moto G Android Development] syrkles:
I was facing the same deep sleep problems but inset Google play services to not keep Tue CPU awake in privacy settings and of worked for me
[Moto G Android Development] twist3d0n3:
sure, enjoy, but just seems so unnecessary, is all.
[Moto G Android Development] MetalPhoenix45:
I can confirm with [MENTION=5149175]deeplyyoung[/MENTION] that multirom works perfectly, it surprised me that it went to the interface Instantly. Thanks [MENTION=5857055]Flashhhh[/MENTION]

Sent from my XT1032
[Moto G Android Development] BryanByteZ:
One question multirom is a APP from googleplay to boot multiple ROMs?
[Moto G Android Development] MetalPhoenix45:
Yeah but I recommend you search multirom v31 moto g because they are more updated.

Sent from my XT1032
[Moto G Android Development] BryanByteZ:
Thanks i will search.
[Moto G Android Development] Flashhhh:
It's just because of google play services

Not a kernel issue
[Moto G Android Development] faraz1992:
Sorry for the noob question.

Where is the CPU governor settings? Im using CM12 nightly 15032015, Optimus Kernel R13
[Moto G Android Development] srisurya95:
u must use a kernel tweaker like kernel adiutor or trickster mod or faux control
[Moto G Android Development] Flashhhh:
Added recommended settings to the thread

Many of u were asking for it so added

Pls have a look
[Moto G Android Development] PeterImmel:
You didn't add it to R13, am I right?
[Moto G Android Development] Flashhhh:
Tried but causing errors on new sources. Don't know why

For now I'll not add it

Will be added later
[Moto G Android Development] ig0r260892:
Go to apkmirror and install latest Google play services (they have instructions on how to know which version is the correct for your phone on the download page)
[Moto G Android Development] MetalPhoenix45:
You wrote that to use simple on demand GPU governor, but people should use msm_adreno governor because the other one suffers performance.

Sent from my XT1032
[Moto G Android Development] Flashhhh:
Well at last it's your personal choice

Simple ondemand makes sure that gpu frequency goes down upto 100 mhz

With msm-adreno it's not possible

Then what's the benefit of gpu UC!
[Moto G Android Development] Flashhhh:
U can use intellidemand+noop for better battery!!

But that might slightly affect performance so at the end it's ur own personal choice!
[Moto G Android Development] Flashhhh:
U can set it to permissive by typing setenforce 0 in terminal emulator!

But first type su to grant supersu permissions to terminal
[Moto G Android Development] prgprg:
Thank u for your work it's amazing [emoji4] [emoji4]
[Moto G Android Development] Flashhhh:
Updated the kernel!!

Changelog in 2nd post.

Added dt2w and s2s!!

Enjoy!!
[Moto G Android Development] PeterImmel:
Thank you very much.

Runs good in the first ten minutes.

But dt2w isn't shown for me in trickster mod...
[Moto G Android Development] Flashhhh:
When did u download?

Bcoz i updated the link some minutes ago!

Before it was not showing but now it does
[Moto G Android Development] prgprg:
I downloaded it 5 min ago and it is not showing either. How did u do to enable it?
[Moto G Android Development] PeterImmel:
I dowloaded before you posted update. But R3 was already in the op. File also called so
[Moto G Android Development] deltafile:
Nice kernel, im currently using it on the latest Blisspop and is amazing!

One thing, can you please set to permissive the policy of Selinux in the kernel?

i Hate having to do it manualy ar etevery reboot from the terminal (setenforce permissive)
[Moto G Android Development] Flashhhh:
Pls download again and report!

If it doesn't work then I'll update the link again bcoz dt2w is working for me here!

Ok I'll look into it!
[Moto G Android Development] Flashhhh:
Can any1 pls report if dt2w is working bcoz it's working for me here!

If there's a problem I'll reupload the kernel!!
[Moto G Android Development] casshern94:
I tried and can't work either.

On resurrection remix 5.3.1
[Moto G Android Development] Flashhhh:
It's not showing in trickstermod??
[Moto G Android Development] Flashhhh:
pls wait guys I'll update the link again!
[Moto G Android Development] Flashhhh:
Updated the link with gdrive link for now. Pls report back!
[Moto G Android Development] casshern94:
Report: Dt2w & s2w works with new link, however s2s not work.

Edit:s2s works when s2w enabled
[Moto G Android Development] Flashhhh:
I need to add some more commits which I'll do tomorrow!

Sorry i didn't have time today!

Btw s2s and s2w are working

For s2s sweep from right to left on navbar and for s2w sweep from left to right when display is off!

I'll add bidirectional sweep tomorrow.
[Moto G Android Development] prgprg:
Wonderful work dont worry. Its the first kernel i tried in cm12 that makes ROM so smooth and fast. And its just the third version of the kernel. Goog joob
[Moto G Android Development] PeterImmel:
I still dont have any options in trickster mod(no dt2w/s2s)
[Moto G Android Development] Flashhhh:
Did u download from gdrive?

And i personally use kernel adiutor to tweak the kernel!

The gdrive link has been reported to work now!
[Moto G Android Development] sachin123:
Flashing R13 breaks WiFi.

I'm on the latest build of Euphoria OS and have the XT1033 variant. Any ideas?
[Moto G Android Development] MetalPhoenix45:
Can you find a custom GPU governor which is performance and battery friendly?

Sent from my XT1032
[Moto G Android Development] Flashhhh:
Msm adreno isn't that bad. It's a well balanced governor

I have told many times that u need to be on a rom which has new kernel sources already implemented

Pls search before posting
[Moto G Android Development] MetalPhoenix45:
Well its better to find a custom GPU governor.

Sent from my XT1032
[Moto G Android Development] ==vj==:
Try simple ondemand GPU governor, smartmax CPU governor and deadline scheduler with 384kb read ahead. Its very smooth going in my usage. Besides using lowest 96Mhz CPU Uc frequency.

Actually msm-andreno tries keeping less load on CPU. And simple ondemand is more reliable on CPU. So either of the ways CPU/GPU is compromised [emoji14] Now I am unsure about which amongst CPU or GPU is likely to consume more power. But anyway 5:30-6hrs of screen on time is comfortably achieved :)
[Moto G Android Development] MetalPhoenix45:
Like I said, I would rather use msm adreno, it just lags less. I played a simple 2d game that lagged slightly on the simple on demand governor.

Sent from my XT1032

---------- Post added at 11:35 PM ---------- Previous post was at 11:32 PM ----------

Deadline caused a huge performance drop for me.

Sent from my XT1032
[Moto G Android Development] SH1M4BD3:
Will fauxsound added soon???
[Moto G Android Development] ==vj==:
For gaming. Interactive with Fiops/Noop/Row. And mpdecision hotplug. And msm-andreno GPU. Nothing can save power in gaming. Games demand resources heavily. For lighter games Intelliplug hotplug is fine.

These Intelliplug hotplug, simple ondemand GPU governor etc are made to save power in normal operations like browsing, chats, streaming etc. So that CPU/GPU don't unnecessarily run at higher frequencies and waste power. So , for smoother gaming I'd use above ones.
[Moto G Android Development] MetalPhoenix45:
No I meant it lagged on the ui/on trebuchet. When you open the app drawer.

Sent from my XT1032
[Moto G Android Development] Flashhhh:
It depends on your usage

I haven't faced such issues running blisspop
[Moto G Android Development] Flashhhh:
Causing errors but I'll try to fix it up
[Moto G Android Development] MetalPhoenix45:
But wouldn't it be better to use a custom GPU governor?

Sent from my XT1032
[Moto G Android Development] Flashhhh:
Which one do u want?
[Moto G Android Development] ==vj==:
Flashhh can you add support for init.d in kernel. I am using few ROM maintenance tweaks like zipalign etc and currently managing with universal init.d app since kernel doesn't have native init.d support. Would be glad if its added for future release :)

EDIT: Sorry sorry sorry. Init.d support exists in R13 [emoji14]
[Moto G Android Development] Flashhhh:
Major Kernel Update!!

Updated the kernel

-Added Intellithermal V2

-Switched to Hybrid SaberNaro Toolchain

-Added IntelliMM,Badass & DanceDance Govs

-Graphite, -Ofast (-O3), and other Flags

-Cortex A7 Optimizations

-Clock,Tick & Timekeeping Tweaks

Enjoy!!!
[Moto G Android Development] CrysiZ:
I'm on Alberto97's 5.1 build.Now that being said i don't have Privacy in Settings to change Google Services permissions.

Any app suggestions or anything?
[Moto G Android Development] Mister Muscle:
I can't turn on my wifi after update the latest version :(
[Moto G Android Development] Flashhhh:
Pls elaborate

Now i am tired posting same things again and again. Atleast you could have read the thread

Use roms which have new kernel sources

Otherwise wifi won't work!
[Moto G Android Development] CrysiZ:
Well i flashed Alberto's build,flashed your Kernel(R14)and it seems that my phone doesn't go to sleep.As i've read in this thread and others the problem may be Google services which don't let the phone go in DeepSleep.Now as an advice ppl said that changing some settings in Privacy(Wakelock)for Google services may fix it,option that i don't have(AOSP doesn't have it and xposed doesn't work in 5.1).
[Moto G Android Development] Flashhhh:
Use updated google play services(google it) or else use greenify
[Moto G Android Development] mattheoh:
Don t answer no more to these questions, you re too much kind ! ;)
[Moto G Android Development] srisurya95:
Use updated roms dated 18/03/2015+ u wont get wifi issues

Google play service is the culprit as u said ....update the play services from apk mirror and wakelock issue is solved in yesterday's nightly so wait for other ROMs to merge the changes
[Moto G Android Development] Mister Muscle:
Thanks for answer, i use crdroid and latest version is 13/03/2015 :rolleyes:
[Moto G Android Development] iDynamics:
Just flashed R14 on albertos 5.1.

Running great! :D
[Moto G Android Development] srisurya95:
yes,use R11 from the mirror link in OP
[Moto G Android Development] MetalPhoenix45:
Unfortunately, I couldn't find any GPU governors. But I'd like to request that you add InteractiveX and ElementalX. Thanks.

Sent from my XT1032
[Moto G Android Development] aouerfelli:
Love the R14 version, can definitely feel the difference with SaberNano toolchain. Is it possible to add a hotplug focused more on performance, such as AeroPlug? I feel like intelliplug is more battery oriented. Also I know you're looking for a stable dt2w/s2w solution, so thank you very much for that.

Also, you might want to add in the OP that in order to turn on PowerSuspend, you have to change the PowerSuspend mode to USERSPACE.
[Moto G Android Development] Flashhhh:
Intelliplug 4.0 update incorporated performance boost option and it's working quite good

And yes intelliplug has been tweaked by me to keep atleast 2 cores online when the device is in use ( as seen in Aero Hotplug )

Aero hotplug is a great solution too

But i find intelliplug well balanced!!
[Moto G Android Development] aouerfelli:
Wow I didn't know that, sorry. Yeah I see no need for Aero then, thanks.
[Moto G Android Development] Dr. Brawler:
Is r11 compiled with sabermod? I don't want to switch from broken os lol
[Moto G Android Development] MetalPhoenix45:
Can you add interactiveX and ElementalX?

Sent from my XT1032
[Moto G Android Development] Flashhhh:
Compiled with linaro 4.9.3

I'll have a look
[Moto G Android Development] -TheKoolAnie-:
D2w is not working on latest build
[Moto G Android Development] srisurya95:
D2w is not there
[Moto G Android Development] PeterImmel:
So, today i switched to R14 with new bootloader and yesterday's crdroid.

(I miss dt2w :eek: )

My xt1032 doesn't go to deepsleep. Am on latest play services.... Didn't change any kernel setting...

Anyone else? Solution?
[Moto G Android Development] twist3d0n3:
I had deepsleep issues so switched to attacked kernel.
[Moto G Android Development] MetalPhoenix45:
I don't know why you guys have problems with deep sleep, it works for me on stock cyanogenmod.

Sent from my XT1032
[Moto G Android Development] MetalPhoenix45:
Sent from my XT1032
[Moto G Android Development] SohamJ:
For people facing deep sleep issue, install this app -

https://play.google.com/store/apps/details?id=cn.wq.disableservice

Go in system tab.

Click on Google play services.

Scroll down to enable SystemUpdateService and SyncService if either or both of them are disabled.

Worked for me

Sent from my Moto G
[Moto G Android Development] Flashhhh:
Deep sleep is working for me. Use old gapps or u will face it. Not a kernel issue. And about dt2w, it causes a lot of hiccups so i am not adding it right now. If i find some stable solution for it, I'll surely add it

Cheers!!

Edit: Use the workaround suggested by [MENTION=4402830]soham jambhekar[/MENTION] in post #619