yashsingh1/xdaforums huggingface dataset:
[Moto G Android Development] methuselah:
[MENTION=5857055]Flashhhh[/MENTION] I would like to suggest you something. I have no knowledge regarding kernel making but still. It is handy. D2w and all those wake features make our kernels unstable. Even Franco himself suggest users not to use them. It also create battery issues. Well just make two versions if you could of your kernel. One without any of this feature.

And make other completely optional for users to try at their own wish from command line.

[DT2W/S2W]

S2W

terminal -

Code:

echo 1 > /sys/android_touch/sweep2wake

boot - Create /sdcard/fkSettings/fks2w

DT2W

terminal -

Code:

echo 1 > /sys/android_touch/doubletap2wake

boot - Create /sdcard/fkSettings/fkdt2w

Bottom Half Screen DT2W (Only allows you to double tap

bottom half to turn screen on, instead of above.)

terminal -

Code:

echo 2 > /sys/android_touch/doubletap2wake

boot - Create /sdcard/fkSettings/fkdt2wps

S2Sleep

terminal -

Code:

echo 1 > /sys/android_touch/s2w_s2s

boot - Create /sdcard/fkSettings/fks2s

PWRKEY_SUSPEND (Turns off touch to wake when display is

turned off with power button, reenables when turned on, useful

for long idle periods, unaffected by sweep to sleep)

terminal -

Code:

echo 1 > /sys/module/qpnp_power_on/parameters/pwrkey_

suspend

boot - Create /sdcard/fkSettings/fkpwrks

Touch Wake Timeout

terminal -

Code:

echo 15 > /sys/android_touch/wake_timeout

(15 is an example, include the number of minutes you prefer)

boot - Create /sdcard/fkSettings/fkwt with number of minutes

to delay timeout (IE: text file with "15" inside)

I got this code from somewhere in XDA. Well you could try to use this. I will try to get the thread address.
[Moto G Android Development] Flashhhh:
I already have two versions available. One with dt2w and one without it. I think u didn't read the OP.
[Moto G Android Development] OldYellowBricks:
what are you talking about. he already has 2 versions out. Normal (no d2w) and Prime (with d2w). Read next time.
[Moto G Android Development] methuselah:
Yep sorry I always used d2w version.....
[Moto G Android Development] Ayaz ansari:
Flash normal version on xt 1033 dual sim running cm12, everything working fine but wifi does not going on.any solution ?
[Moto G Android Development] Flashhhh:
Make sure you are on latest cm12.1 nightly.
[Moto G Android Development] Ayaz ansari:
Sir actually my device bootloader is not updated so i am on cm12,please suggest which version is better for me.thnx
[Moto G Android Development] bhanu9999:
Use older r11 will be fine.

Or update the boot loader if u want to use latest one;)
[Moto G Android Development] Ayaz ansari:
How i can upgrade bootloader
[Moto G Android Development] bhanu9999:
U can update by flashing the whole firmware. Or using this i guess

http://xdaforums.com/showthread.php?t=3093793

I am not responsible for anything. Flashing a wrong bootloader can hard brick your phone. Read properly before doing anything;)
[Moto G Android Development] KalolParty:
[MENTION=5857055]Flashhhh[/MENTION] which hotplug do you recommend? Intelliplug or Bricked hotplug?
[Moto G Android Development] tungthorny:
Same with me. How to let wifi always on? because wifi go off when screen is off.

Thanks guys.
[Moto G Android Development] Flashhhh:
Try and see which one works better for you

Go to settings/wifi/advanced and see there's an option there.
[Moto G Android Development] tungthorny:
I did and I set Wifi always ON during sleep but its still not working. I think this maybe due to Rom.
[Moto G Android Development] layman806:
Get a stock lollipop firmware, search for motoboot.IMG in it. Then flash using fastboot mode and by tethering to computer:

fastboot.exe flash motoboot motoboot.img
[Moto G Android Development] hhp_211:
This is an advanced method to try, It has worked for me in the past, although some people have tried it and it not worked,,, so ymmv.

https://play.google.com/store/apps/details?id=com.speedsoftware.sqleditor&hl=en - paid app

https://play.google.com/store/apps/details?id=com.gmail.heagoo.appdm - free app alternative

.
[Moto G Android Development] nmapper:
BUG?

Hi there

cm12.1 here.

r30 been installed in my xt1032, normal and prime version. Kernel Adiutor refuses change my CPU Frequency. He shows all, but when i select other freq than 787 Mhz, he changes by itself to 787Mhz...

WTF?

Thanks! Great work!
[Moto G Android Development] KalolParty:
Yeah unfortunately Kernel Adiutor has a bug which does that. Use synapse. The instructions to install synapse are given in the OP
[Moto G Android Development] nmapper:
Yep, it works! Thanks!
[Moto G Android Development] layman806:
Happened to me too. Rebooting solved it for me.
[Moto G Android Development] helnandez:
Hi OP, I am using Masterawesome's rom and I am using your R28. When I am trying to upgrade to R30, it is saying status 6 error.

Do you know why is that happening? Appreciated your help.Thanks.
[Moto G Android Development] Flashhhh:
Use latest twrp recovery only. And pls don't quote the OP
[Moto G Android Development] helnandez:
I am using the latest TWRP 2.8.6.0.

and I am on R28 optimus now.
[Moto G Android Development] Ayaz ansari:
Updated with flash tool also update cm 12.1 everything is ok now
[Moto G Android Development] Juste300:
Disabling ambient display is not working for me. I mean after Disabling ambient display my phone still goes into death sleep mode atleast 4 times in a day.
[Moto G Android Development] nmapper:
I tried rebooting, flash, reflash, and other kernel tweakers but i allways have the same.

Like i said in the upper post, synapse work for me

Anyway, thanks for your response.
[Moto G Android Development] rokban:
Trying the prime version since couple of days, everything working smooth, not a single issue, at times I think its even battery friendly than the normal version... D2w also working as it should. I don't know what more we can expect from optimus in future...bravo!
[Moto G Android Development] sandroj:
I second this. Gr8 work!!
[Moto G Android Development] DoctorStrange96:
Hey guys, for those of you who have XT1033's and have converted to gpe, Ive created a modified version of this kernel, which makes the phone be properly recognized as a gpe (falcon_gpe) and not as a dual-sim (falcon_umtsds); of course, this kernel is useful in case your favorite rom doesn't support dual-sim. Its based on R30, normal (no DT2W) version.

Hey [MENTION=5857055]Flashhhh[/MENTION], may I upload this version here, in case somebody wants/needs it?
[Moto G Android Development] Flashhhh:
There is a special thread in general section for xt1033 gpe converted users. Post it there. And REMEMBER i am not held responsible for anything.
[Moto G Android Development] DoctorStrange96:
Alright. But I'm doing some testing here. Ran into zero issues so far. The only difference between my version and yours is a modified init binary. The rest remains unchanged.

I will upload it there.
[Moto G Android Development] Flashhhh:
Yes ik about that. Thanks for the build.
[Moto G Android Development] riyosakura:
I got my first reboot on latest cm using latest prime version.

I never got this on the earlier version. Maybe cm update is not implemented yet on the latest prime version, causing instability.
[Moto G Android Development] sayash5:
im on 10/5 cm with r30 prime working fine right here, maybe latest cm was the issue?
[Moto G Android Development] aj38584:
Please consider this logcat screenshot urgently.. MX player causing crash..
[Moto G Android Development] aj38584:
This one too
[Moto G Android Development] Flashhhh:
No issues here running R30 on official cm nightly. Which rom r u using? Did u do clean flash? Pls provide more info
[Moto G Android Development] aj38584:
Answer is yes to all of Ur questions.. And I m using bliss pop..
[Moto G Android Development] OldYellowBricks:
Is there a way to make the phone see the 2nd slot as the 1st one? I got a friend that messed up his 1st slot lol
[Moto G Android Development] Shub77:
Latest CM12.1 nightlies are not working fine, see thread, and I can confirm. Not an Optimus issue, imho.
[Moto G Android Development] DoctorStrange96:
Dont know bud... :( Maybe there is, but i cant do that
[Moto G Android Development] Juste300:
Following is working for me might not work for someone else due to different settings e.g.

Sleep of Death Solution:

ENABLE:

1. Use Intelliplug (CPU hot plug) it will not trigger sleep of death.

DISABLE:

1. Disable Ambient display in your rom (blisspop rom e.g.)

2. Using MSM Mpdecision will trigger sleep of death (at least for me)

Hope this help's someone.
[Moto G Android Development] aj38584:
Flash..just checking this logcat

[5/17, 05:18] aAsheesh: http://pastebin.com/j0TNzM7d

[5/17, 05:18] aAsheesh: New logcat every single video player crashing.. For me..confirmed
[Moto G Android Development] riyosakura:
Have you tried 2 maximum cpu screen off? Its on msm mpdecision setting.
[Moto G Android Development] hhp_211:
No issues here

FlexOS, R30 prime

Mx player 6 different video formats

Rock stable
[Moto G Android Development] aj38584:
If u hvnt facing such problems.. Then you should guide us..instead tell me Ur status:confused:
[Moto G Android Development] hhp_211:
I'm saying it does not appear to be a kernel issue, as I'm using same kernel and video player as you without issue...
[Moto G Android Development] aj38584:
Then I think my device going to die..as I m the only facing this:banghead::banghead:
[Moto G Android Development] rohit1990:
Help

Whenever I flash this kernel in philz touch custom recovery.After checking about of device it still showing stock kernel ie I am using flex is so it is showing flex kernel only..any help please :(
[Moto G Android Development] Flashhhh:
Pls use latest twrp recovery only
[Moto G Android Development] rohit1990:
Can you share me the link for latest TWRP Recovery ...thank you
[Moto G Android Development] Dr. Brawler:
Wut rom u using man? I can confirm video works in PAC, Xenon and Broken. Also make sure to do a clean flash. Let boot. Then reboot recovery to wipe cache and install kernel

---------- Post added at 11:47 PM ---------- Previous post was at 11:39 PM ----------

http://xdaforums.com/moto-g/development/recovery-twrp-2-8-2-0-touch-recovery-t2980621
[Moto G Android Development] rohit1990:
help

I tried to flash your kernel with latest TWRP but still no working..it was working Wid me 1 week before..but after updating FlexOs test I am facing this problem :(
[Moto G Android Development] aj38584:
I'm using Bliss pop..
[Moto G Android Development] Dr. Brawler:
The last 5 pages thread is ppl having problems. I'd change roms bro. It seems lately cm fixes and breaks things at the same time. That's y I stay aosp. Good luck
[Moto G Android Development] Flashhhh:
I don't understand why people come and post every random bug they face on a kernel thread. It could be a rom issue or a mod that u r using. Pls investigate first. So u guys want to say that R30 worked perfect when released and now it doesn't work? If u get any problems do a clean flash. Or else try other rom bcoz it might be related to your rom.
[Moto G Android Development] aj38584:
I m just asking not blaming ur work..if u can understand the logcat..then please reply
[Moto G Android Development] Flashhhh:
If u enable dt2w then proximity sensor is always going to be active

If u disable dt2w then proximity sensor will turn off!
[Moto G Android Development] Flashhhh:
Use trickster and go to specifics and click on screen wake control and enable from there
[Moto G Android Development] mallikarjun170:
Ya i have enabled but how to use it to wake up the screen.
[Moto G Android Development] Flashhhh:
I have told it many times in the thread(pls search before asking)

Btw u can swipe from left to right to wake the screen and u can put it to sleep by swiping from right to left on the navbar!
[Moto G Android Development] mallikarjun170:
Sorry, I will check next time.

Thanks.
[Moto G Android Development] ivke101:
Work's well on vanir
[Moto G Android Development] deltafile:
Can you please re-add intellidemand ?

You removed it in the last update :(
[Moto G Android Development] talhask:
mine is not flashing ..... what to do???
[Moto G Android Development] twist3d0n3:
Probably a bad download, try again.
[Moto G Android Development] Flashhhh:
I'll add it in next release
[Moto G Android Development] deltafile:
Thank you!

Your kernel rocks :D
[Moto G Android Development] ReaverV2:
great work on the kernel so far, one request any chance of seeing CPU underclock (96mhz, 192mhz), or GPU overclock (520mhz).

Thankyou for including intelliactive!.
[Moto G Android Development] Flashhhh:
CPU underclock may come but about gpu overclock NO
[Moto G Android Development] iDynamics:
Installed, wiped caches, but for some reason when I press the power button my screen doesn't turn on and my phone reboots.

I tested this on the last 2 CM12 nightlies.

edit:

I should also mention that I didn't change the governor or alter anything except for the read ahead cache to 1024.
[Moto G Android Development] prgprg:
Intellimm support?

---------- Post added at 10:05 PM ---------- Previous post was at 10:03 PM ----------

Why? I don't want to be rude just I want to know if it is bad for the phone. Is it useless?? I have always used it when it was aviable
[Moto G Android Development] Flashhhh:
I'll add intellimm but i am not going to add overclock
[Moto G Android Development] Flashhhh:
I am using it on cm12 nightly only

Working perfectly here.

Maybe u shld clean flash the kernel with the rom and try faux recommended settings!
[Moto G Android Development] KDB223:
I got the camera freeze issue after flashing this.

I guess KSM is turned off?
[Moto G Android Development] Flashhhh:
Which rom?

Edit: it's not a kernel problem, it's related to your rom!
[Moto G Android Development] Flashhhh:
Clean flashing rom+kernel will solve your issue
[Moto G Android Development] riyosakura:
If you wanted to ask. Ask in the proper place. This is optimus kernel thread. ?

Your problem is definitly rom issue, since cm12 user doesnt have any problem with video.

Try updating your rom or switch to more stable rom such as pa, aosp, or cm.?
[Moto G Android Development] B.O.B RAY:
Its working on blisspop for me.
[Moto G Android Development] keepercito:
philz touch works for me to install this kernel
[Moto G Android Development] rohit1990:
Solution

After flashing this kernel..format dalvik cache and cache must..it will definitely work..no matter which rom you are using..please note dont keep this kernel zip file in any folder directly keep it under internal storage.100 % this kernel work any custom rom.
[Moto G Android Development] Juste300:
Nop.
[Moto G Android Development] aj38584:
OK ..I was just asking for logcat meaning ..since u people r dev..
[Moto G Android Development] MetalPhoenix45:
I think I know the solution as I use blisspop as well, go to developer options and change "Use NuPlayer instead of Awesome Player".

Anyways, I've never faced this issue, so I'm not a 100% sure it will work. I hope it works for you. :)
[Moto G Android Development] aj38584:
Oh k..thnx for reply..thnx hitted as well:thumbup:

But no luck..:(I think my device got corrupted:):) please tell me how to go back to starting point
[Moto G Android Development] MetalPhoenix45:
Go to recovery mode, and do a factory reset.

My work: SmoothGKernel for the Moto G, and remember always hit the thanks button if anyone helped.
[Moto G Android Development] aj38584:
After that..:confused:
[Moto G Android Development] layman806:
After that, use your moto g! [emoji1] But, make sure you have a backup of all your apps and data!
[Moto G Android Development] MetalPhoenix45:
I recommend an adb backup or titanium backup because twrp backup saves settings data, which is probably the reason why this was happening in the first place.
[Moto G Android Development] PeterImmel:
[MENTION=5857055]Flashhhh[/MENTION] I'm just testing R31 for about 1 hour now (found it on androidfilehost searching for falcon :p )

It runs really good and I like that you slimed it down. Mako hotplug seems to be really good....

I'll report again after a full battery cycle.
[Moto G Android Development] Flashhhh:
It's just a test version. Need to add some optimizations and tweak franco hotplug. But it's pretty solid for now.

Btw i am gonna announce it now. I've removed intelliplug and bricked hotplug and added franco hotplug aka mako hotplug. It works well. I am still testing it. Will be included in next release
[Moto G Android Development] Bharat701HD:
I am using Cm 12.1 based rom + optimus kernel but sometimes (most) when I wanted to unlock phone I just can't ! Even dtw not works , I have to plug the charger to on the screen. Then only I'd am able to unlock it .
[Moto G Android Development] Ouenz:
+1 same isue as me
[Moto G Android Development] nicolasrojo25:
Hi, i think that the issue is from cm12.1 and the based roms because i'm using the latest version of unnoficial slim by anerik and works great,the same with the aosp version of alberto
[Moto G Android Development] Sajoeee:
what's everyone's recommended settings?
[Moto G Android Development] Flashhhh:
If u r using latest cm12.1 nightly, make sure to disable ambient display. Users confirmed that disabling it solves the issue
[Moto G Android Development] sharath_babu:
[MENTION=5857055]Flashhhh[/MENTION] , is the sleep of death with ambient display solved in upcoming build??
[Moto G Android Development] Bharat701HD:
Yes yesterday I thought that probably ambient is causing problem so I turned it off ..I think problem is solved now ..thanks ☺ !!
[Moto G Android Development] Flashhhh:
Kernel Update

Note: Clean Flash is required or at least dirty flash rom+kernel to avoid any issues

Updated the kernel to R31.

This one has been built from scratch. So Many Changes have been done.

The support for prime version has been dropped just because its incompatible with ambient display and ambient display now serves a similar purpose. You can use it to wake up the phone.

And yes Don't panic if Min Freq boosts to 1094 MHz. It's a part of input boost. More info in post #3.

Some Notable Changes:

- Reworked Build Flags. Now Built with -03,Graphite,Strict Aliasing & A7 Tweaks

- Removed Intelliplug

- Added msm-mpdecision hotplug (Pls read post #3)

- Removed Intellithermal & Added Franco's Simplified Thermal driver

- Enabled Kernel Neon Mode

- New Hotplug Infrastructure

Better check Github as there are many more changes.

Cheers!!
[Moto G Android Development] sjandroiddeveloper:
Does it have dt2w feature and is it working normally

And what is NEON mode
[Moto G Android Development] layman806:
Thanks for taking the NEON in!
[Moto G Android Development] Flashhhh:
Dt2w was removed due to incompatibility with ambient display. Now u can use ambient display to wake up device.
[Moto G Android Development] sharath_babu:
how can ambient display wake a device when we need??

it only wakes if there's any notification's right?? .... not when we need ,
[Moto G Android Development] sjandroiddeveloper:
Ambient display does not fully work on moto g

It only wakes up device when notification arrives

The other feature of ambient display that is to wake up device whenever we pick it is not working on moto g
[Moto G Android Development] rokban:
If you move your finger near proximity sensor the screen wakes up, whether there's any notification or not... In moto G moto doze is working flawlessly and ambient display also quite good ( Vanir ROM ,commotio,B84,20th may build)
[Moto G Android Development] sjandroiddeveloper:
I was strictly talking about ambient display

What is said above is absolutely true

And I know how moto doze off works
[Moto G Android Development] rokban:
well it was not intended for your post, i should have quoted or atleast mentioned post number, which is 1607 by sarath babu...
[Moto G Android Development] sjandroiddeveloper:
Well since your post was below mine and you didn't quite anyone so I thought you were replying to mine

But as it turns out

False alarm
[Moto G Android Development] sharath_babu:
can some one brief me about NEON mode?? tried googling it , din get much knowledge :(
[Moto G Android Development] rokban:
[MENTION=5857055]Flashhhh[/MENTION] just to confirm R31 is preconfigured?
[Moto G Android Development] NeoPreacher:
maybe this one could be helpful: http://www.arm.com/products/processors/technologies/neon.php
[Moto G Android Development] Flashhhh:
Sort of
[Moto G Android Development] zack1175:
The latest cm12.1 nightly have the ambient display functions perfectly(include wave to wake and wake when get out of pocket
[Moto G Android Development] kucingbaik2:
going back to optimus kernel prime R30 cause on R31 d2t wake up not working
[Moto G Android Development] layman806:
Could you rephrase your question (or comment), please?
[Moto G Android Development] Dr. Brawler:
R31 doesn't have d2w so he's going back to r30. I'm about to follow suit lol
[Moto G Android Development] aouerfelli:
Same, really need that feature.
[Moto G Android Development] sandroj:
I'm also used to dt2w & it's implemented brilliantly in R30. Also amazing battery life! I'm getting about 1 day's extra usage after flashing R30. Fantastic work by [MENTION=505617]flashh[/MENTION]. Surely in future he will add many more interesting things to his work.
[Moto G Android Development] Dhakkon:
Recommended settings are in kernel by default?
[Moto G Android Development] Flashhhh:
It's conflicting with ambient display. You will have issues of device not waking up at all sometimes if u have both enabled.
[Moto G Android Development] Dr. Brawler:
We don't use ambient display. Some roms don't even have it implemented or working
[Moto G Android Development] aouerfelli:
It's your kernel man, you don't have to add it. You have a good reason, because of the confliction with ambient display. I just prefer dt2w and as some people said, not everyone uses ambient display.
[Moto G Android Development] antarix:
I think we all dt2w lovers should start a rally in support of the feature[emoji12] [emoji16] [MENTION=5907878]Dr. Brawler[/MENTION] [MENTION=5915591]ahmad.o[/MENTION] [MENTION=5981332]sandroj[/MENTION]
[Moto G Android Development] aouerfelli:
Nah. It's his kernel, so he can so whatever he wants. If I find time someday, I might compile this kernel with dt2w.
[Moto G Android Development] hhp_211:
Understood.

Some don't have a need or desire to use ambient & dose even when it is included.

I fall in that category.

I only want dt2w feature.

I'll never want my device display waking up to briefly inform that someone texted me, or calendar reminder, etc.

But i can realise to some that is 'the' feature for them.

I know I'll be keeping R30 for now.

Just keep doing your thing experimenting here and there and keep sharing your great works with the community
[Moto G Android Development] Flashhhh:
Ok I'll see if i can get prime version out. But not for now. I can't do anything for a week now
[Moto G Android Development] Dr. Brawler:
Not our place to do such things lol
[Moto G Android Development] aouerfelli:
Thank you so much. Sorry if we pressured you too much.
[Moto G Android Development] Flashhhh:
You guys can use R30 prime for now. I just removed dt2w because i can't tell every user to disable ambient display while they use dt2w. If i add it in OP, then also there are users who don't read it and then come and keep reporting issues.
[Moto G Android Development] aouerfelli:
Yeah I know what you mean. I'll respond for you if you want.
[Moto G Android Development] hhp_211:
That would be most kind

Yeah that reading problem,, it only takes 600 or so of them to spoil it for others

lol. I sometimes wonder how some even found xda, let alone a Motorola thread containing a custom kernel for their very own device, not to mention the whole unlocking bootloader and all...

#truth

#truthhurts

#SorryForRantMode
[Moto G Android Development] antarix:
Just a funny way to request for a feature he tried and did improve it over time.

I miss dt2w in r31.
[Moto G Android Development] Dr. Brawler:
Tis coming bro (=
[Moto G Android Development] antarix:
Yes, read it after I posted.

I'm glad it'll be back.
[Moto G Android Development] Dr. Brawler:
Ppl who can't read OPs deserve no reply imo