yashsingh1/xdaforums huggingface dataset:
[Moto G Original Android Development] justanicename:
Any recommend tunables for Smartmax for the Moto G? Im looking for battery saving + good responsiveness for light usage of the Phone (like browsing, mail and GPS navigation).. Not gaming on this phone. Thanks!!

The default is still using a lot of battery.

Im using PMC BATTERY SETUP v8 and tweaked it a little.

awake_ideal_freq 300000

boost_duration 1

boost_freq 998400

debug_mask 0

down_rate 60000

ignore_nice 1

input_boost_duration 90000

io_is_busy 1

max_cpu_load 85

min_cpu_load 50

ramp_down_step 200000

ramp_up_during_boost 1

ramp_up_step 300000

sampling_rate 40000

suspend_ideal_freq 96000

Touch_poke_freq 1190400

up_rate 20000
[Moto G Original Android Development] techmachi:
Hai... first of all big thanks for spending your valuable time for our device.. I can't record any calls on Crdroid....only one side is recording not the voice of the other side is recording... I don't know where to ask.. whether on crdroid thread or Here.... sorry for inconvenience
[Moto G Original Android Development] saenta:
Does someone else have problems with the camera on Gummy? For me pictures are not saved (07.10 nightly)

Flashed any kernel over clean install

Otherwise best kernel so far I ever tested!

Gesendet von meinem Moto G mit Tapatalk
[Moto G Original Android Development] Slothboy:
Which Kernel should I use with CM?

The Any Kernel one? Or just the AOSP one?
[Moto G Original Android Development] Shivam Kuchhal:
Does it work on default CrDroid kernel? If you don't know then can you test please?

I am on Mahdi ROM and I don't have any such issue. Try rebooting and clearing cache.

It used to be a known issue earlier with 4.4.4 based kernels but I think it was fixed.

AOSP should work fine! :)
[Moto G Original Android Development] techmachi:
I tested it on default Crdroid kernel still the same issue... Can u tell me what ROMs should I test ?
[Moto G Original Android Development] Shivam Kuchhal:
Flash this too and see- http://d-h.st/vHp
[Moto G Original Android Development] droider007:
How can i disable s2w/s2s etc?
[Moto G Original Android Development] BachuArg:
Stock version didn´t work on my XT1032 GPE 4.4.4
[Moto G Original Android Development] Shivam Kuchhal:
Trickster MOD app.

Wait for sometime. There's a weird thing going on. It works on 4.4.2 GPE updated to 4.4.4 via OTA but doesn't work on 4.4.4 GPE flashed through factory images.
[Moto G Original Android Development] techmachi:
the fix you gave me didint work ... btw why did you gave me a camera lib file? does it have something to do with call recording ??
[Moto G Original Android Development] BachuArg:
It didn´t work on my GPE 4.4.2 updated to 4.4.4 via OTA
[Moto G Original Android Development] Shivam Kuchhal:
Sorry, I must have got confused. I thought you had same issue as [MENTION=888731]saenta[/MENTION]

Now, that's weird. All the testers said that it worked.
[Moto G Original Android Development] techmachi:
call recorder by skvalex works fine in CM 10/10 build i want to do within the dialler screen not from third party app.. when i selected the moto G as my model in the skvalex call recorder it switched to CAF method(from kernel method) ..i really dont know anything about CAF....i could test any ROMs just tell what build and things to do ..
[Moto G Original Android Development] Membrillo007:
Maybe a dumb question but I need and answer, im on stock rom now (odexed), if i flash this kernel it will deodex the ROM?, if not, how i do that?

Tap-a-talked from Moto G running PA 4.5 + Xperience Kernel.
[Moto G Original Android Development] kedar512:
[MENTION=4984300]Shivam Kuchhal[/MENTION] I have recently flashed stock 4.4.4

Before this I was on 4.4.4 but it was having bugs.

I changed 2-3 Kernels on that.

Was that the reason for all bugs?

Is it recommended to flash new kernel on newly installed os?

Thanks for your work

I am definitely going to try it:)
[Moto G Original Android Development] keenofhiphop:
Is it compatible with Moto G 4G peregrine?

Gesendet von meinem XT1039 mit Tapatalk
[Moto G Original Android Development] Shivam Kuchhal:
No, it won't do that.

Yes flashing kernel over clean flash of a ROM is always recommended. :)

Not yet. I don't own Moto G 4G but both are quite similar. I will look into this later.
[Moto G Original Android Development] tenjou_89:
DELETED
[Moto G Original Android Development] kedar512:
Core 0 is not going below 998Mhz

Deep sleep is very good but screen on time is less

Anyways stability and performance is awesome:p

Very good job

Keep up the good work

Thanks:)
[Moto G Original Android Development] tenjou_89:
hey great kernel, very stable, no issues so far with v5. i have a little question though:

how can i manually modify stw parameters, and make them settle on boot?

ive tried fauxclock but the values dont stick after each boot. i would like to shrink the threshold, and modify the start, mid, and end points of stw. any ideas?
[Moto G Original Android Development] Shivam Kuchhal:
Frequency scaling is fine here. Thanks for the response. :)

Might be a fauxclock issue. I don't know much about these settings honestly, I have never played with them.
[Moto G Original Android Development] K3VYNC:
What are the best kernel settings for the best battery life?

(I'm a noob, pls)
[Moto G Original Android Development] KDB223:
Sorry if this question is too dumb to ask.

I'm on PA (stock pa kernel)

Which zip do I flash?

ANYKERNEL or AOSP?
[Moto G Original Android Development] Dan_Jacques:
I've tested all avaliable kernels to stock rom, but this has the better performance/battery balance. It's fast, stable and has a good battery life.

But... (yeah, I have some "but")

- There are some feature that I miss:

* Intelliplug

* Zram

* Intelli-ksm

* Intellithermal

* Simple algorithm on GPU

These features can be added? :cyclops:
[Moto G Original Android Development] Shivam Kuchhal:
Both will work.

Thanks for appreciation.

1. Intelli-plug is good but kernel already has default hotplug driver MP Decision.

2. zRam is quite useless on phones with 1 GB or more than 1 GB of RAM.

3. I have never used intelli-ksm, sorry.

4. For simple GPU algorithm, I will try to look into it.

But I am planning to leave any sort of participation in Android development till March of next year. I have very important boards examination coming up in March and I am not faring well in internals yet. My whole career depends on these exams. :(
[Moto G Original Android Development] andogeek10:
Best of luck for your boards man (10th?). I gave them last year so I know the feeling...
[Moto G Original Android Development] Shivam Kuchhal:
12th actually. Even more serious sh*t.
[Moto G Original Android Development] ironman38102:
I'm actually gonna do my board exams(CIE exams) in May/June damn I can already say its serious sh*t!
[Moto G Original Android Development] fermasia:
Thanks for your work and good luck with those exams!
[Moto G Original Android Development] ZareliMan:
The GPU has the simple_ondemand governor which is the closest.

Zram won't increase your performance or multitasking IMO, its not meant for some devices.
[Moto G Original Android Development] aravbb:
Which version to flash?

I have XT1033 converted to GPE 4.4.4. There are 3 versions of this kernel. Please let me know which version should I flash?

Do I have to flash the camera fix along with kernel or it is fixed in latest version?
[Moto G Original Android Development] fermasia:
If you are on stock Gpe, flash the stock version. No libs needed to be flashed.
[Moto G Original Android Development] K3VYNC:
You did an amazing job, man.

Keep up the good work!
[Moto G Original Android Development] samsontm:
Yeah. Thanks for really good job. And good luck in the future :eek:)
[Moto G Original Android Development] Shivam Kuchhal:
What is the battery life you guys are getting with the kernel? I'm getting slightly less than expected, also post your favourite settings for this kernel. I wonder if its the ROM problem, I'm on Mahdi. :)
[Moto G Original Android Development] mrbojangle69:
Unfortunately Phantom r5 doesn't boot on LiquidSmooth. :(
[Moto G Original Android Development] Shivam Kuchhal:
anykernel shall work fine!
[Moto G Original Android Development] mrbojangle69:
Finally I could make it work, last night I flashed anykernel but didn't pass the bootlogo, now I have flashed it again and it gave a system.ui fc at the first boot, rebooted and now seems to be working fine. Thanks Shivam.
[Moto G Original Android Development] Mchasard:
I just install your kernel instead experience kernel under slim Kat to improve battery life.... Just one thing strange , s2w seems to work except when I stay to long without awake my screen...I have install the aosp version not the aosp any kernel version... Is there an explanation?
[Moto G Original Android Development] Shivam Kuchhal:
If you had read the thread properly then you would have noticed that I clearly stated that S2W/DTTW isn't supposed to work in deep sleep.
[Moto G Original Android Development] Mchasard:
OK sorry Shivam I just would like to retrieve this feature on your kernel actually I test battery life...
[Moto G Original Android Development] Shivam Kuchhal:
I still didn't get replies for what I asked. How's the battery life with this kernel? I mean screen on time with total up time etc etc.
[Moto G Original Android Development] saenta:
6.05h running time 1.40h screen on time and 43% left.

Gesendet von meinem Moto G mit Tapatalk
[Moto G Original Android Development] kedar512:
Comparatively less sot

I am on faux and applied faux recommended settings and I am getting much better sot

Deep sleep is great on r5

I don't know exact time but by observation of draining rate I can say that it is comparatively less

Performance is best

Thanks a lot and keep up the good work

:)
[Moto G Original Android Development] saenta:
Smartmax, tripndroid, 192000-1094400 no s2w or dt2w

Gesendet von meinem Moto G mit Tapatalk
[Moto G Original Android Development] K3VYNC:
What are the recommended settings for battery?
[Moto G Original Android Development] guitarfreedom:
I like so much this kernel. Very battery friendly and smooth at the same time.

Today I used it a lot, during long travel etc... I'm satisfied, thanks. :)
[Moto G Original Android Development] kedar512:
These are the faux recommended settings given in below post

https://plus.google.com/109078966818501160423/posts/WmU4Wu5fzPp

Reboot twice after applying all settings.

These are working great on faux kernel 014m.

I am getting screen on time upto 5 hrs till 20% is remaining on average usage.
[Moto G Original Android Development] Shivam Kuchhal:
Hello everyone! So here we are.

I am locking this thread because I have very important 12th standard boards examination coming up in March next year which are everything to me. None of my kernels are discontinued just yet. They might get updated to be inline with lollipop. Thanks for being with me! :)
[Moto G Original Android Development] OldYellowBricks:
no problemo mayn!
[Moto G Original Android Development] mschief148:
This Kernel will work on GPE?
[Moto G Original Android Development] Nandeh:
Installed on CrDroid build 9 and working fine, even dt2w in deep sleep... I feel the kernel a little less smooth than others, maybe it must settle.

Going to keep it for some days!

Thanks for this!
[Moto G Original Android Development] argo7:
Add fauxsound pls :))

Edit: testing. Is awesome!!

Enviado desde mi Moto G usando Tapatalk 2
[Moto G Original Android Development] faekplastik3s:
I saw your disclaimer in the second post, but I'm just asking for curiosity's sake, not asking you to implement this.

Why is overclocking apparently such a major issue on the Moto G? Is there a physical eFuse preventing it, or is the issue something software related? And if so, shouldn't this be a problem on other modern devices as well?
[Moto G Original Android Development] RenderBroken:
Looking good! Glad to see you here and hope to see great things!
[Moto G Original Android Development] pfufle:
I flashed this kernel on crdroid and it seems to be working very smooth....For a feedback on battery life I think ill wait for another day...

For people who do not have an inbuilt kernel tweaker in their ROM need to download a kernel tweaker (performance control is my personal favourite) to use features like double tap to wake and/or sweep to wake...good work shivam ?...I'll be trying it with other ROMs because I did not really like crdroid due to lack of customisations :P

PS: Thank you for including pocket mode
[Moto G Original Android Development] Shivam Kuchhal:
I haven't even looked into it yet. :p

So dunno.

Thanks mate! :)

Great to see positive response from fellow developers.

Thanks for posting your views but I recommend using Trickster MOD app for doing all the changes.
[Moto G Original Android Development] pfufle:
Trickster mod's full version is paid ?
[Moto G Original Android Development] tomhtg90:
Thanks for providing this kernel. Working smoothly in XT1033 on PA 4.43 (See my signature)

dt2w the most feature that i love for now.

Later, i'll report or give a review about the other things of this kernel.

:highfive:
[Moto G Original Android Development] pfufle:
I installed performance control to enable dt2w but it looks like the kernel doesn't like performance control...It keeps changing the minimum frequency to 1190mhz with performance control....
[Moto G Original Android Development] siddharthnair96:
Paranoid Android v4.43 Fantastico... smooth and works how it should impressed..
[Moto G Original Android Development] Shivam Kuchhal:
Its not a kernel bug. :rolleyes:
[Moto G Original Android Development] pfufle:
Also, my phone failed to go into deep sleep at night.....10 percent idle drain :(
[Moto G Original Android Development] Nandeh:
That's not due to kernel. You must have any App causing this issue...
[Moto G Original Android Development] deeplyyoung:
Flashed Phantom V1 on my XT1033-crDroid- B10

so far going Good:good::good:
[Moto G Original Android Development] Shivam Kuchhal:
So how's it going so far guys? :D
[Moto G Original Android Development] draco259:
Kernel has been working great! No lag and good battery life. The kernel overall for my uses is awesome, my only request is faux sound ?

Thanks for the great kernel!
[Moto G Original Android Development] deeplyyoung:
Till now loving it... Going good for me... A request for Faux Sound if possible..

Rest it's going good.. See SS
[Moto G Original Android Development] amit.lohar:
[MENTION=5149175]deeplyyoung[/MENTION] did u make a clean flash..like reflashed build10 n then flashed this kernel OR did u simpy wiped cache and flashed kernel.

M also on crdroid b10.
[Moto G Original Android Development] deeplyyoung:
Bro this time have reverted to stock then upgraded to stock 4.4.4 then flashed clean crDroid B-10 n flashed Phantom...

Results r in front of u...
[Moto G Original Android Development] amit.lohar:
Why did u go to stock?? :confused:

I will also do a clean installation of crdroid n this kernel. :good:
[Moto G Original Android Development] deeplyyoung:
I flashed stock cuz my SOT was very weird, less then 2:30Hrs...that's the reason I reverted to Stock for proper cleanup...
[Moto G Original Android Development] amit.lohar:
Yeah my screen on time is same around 2.3 to 3 hours, even on stock :(

Never got more than that.
[Moto G Original Android Development] deeplyyoung:
Try clean flash with phantom, m damn sure u will come over it...

Good luck buddy...
[Moto G Original Android Development] srisurya95:
Which kernel control app should I use?

---------- Post added at 07:45 PM ---------- Previous post was at 07:44 PM ----------

How did you enable d2w
[Moto G Original Android Development] tomhtg90:
Using trickster MOD. set the dt2w on specific tab
[Moto G Original Android Development] Loki[ITA]:
on mokee lastest nightly bootloop on the first logo
[Moto G Original Android Development] Shivam Kuchhal:
Mokee developers didn't do any changes which can break compatibility especially when my kernel is using anykernel updater. For now, AFAIK none of the current kernels are working so I guess we'll have to wait for word from Mokee maintainer.
[Moto G Original Android Development] Loki[ITA]:
so isn't my phone problem, am i right?
[Moto G Original Android Development] tiithe:
Hmm .. I'm using latest nightly and there is no problems. First boot after kernel install, has taken longer but next boot was very quick.
[Moto G Original Android Development] Shivam Kuchhal:
Next update for kernel should be released soon. ;)

Spoilers-

Merged in some patches from 4.4.4 kernel source release from Motorola.

Some secret sauce. :p
[Moto G Original Android Development] DiegoBaeza:
it's working flawlesly with N5 Experience R8.5, really smooth, but i'm having a problem with dt2w: when pocked mode it's activated (cellphone it's upside down and proximity sensor is triggered) d2tw stops working, even when it's in normal position and nothing in front of the proximity sensor.
[Moto G Original Android Development] Nandeh:
It happens to me too with all kernels that work dt2w with deep sleep... Really is not much annoying, you can wake with power button and then dt2w starts working again.
[Moto G Original Android Development] DiegoBaeza:
yeah, and with pocket mode from lock screen notificaions turned on (turn screen on when cellphone is pulled out from pocket), is almost unoticeable, but is a bug and must be reported :silly:
[Moto G Original Android Development] Shivam Kuchhal:
I can't reproduce this issue yet. It might be some app of yours causing it.
[MENTION=5438598]RenderBroken[/MENTION] any ideas?
[Moto G Original Android Development] Nandeh:
It happens randomly to me, not everytime I put the phone in my pocket. I hope I can help more with that...
[Moto G Original Android Development] DiegoBaeza:
maybe it's something with roms. i use N5 Experience R8.5, that already comes with dt2w but without pocket mode build in, only lockscreen notifications comes with a pocket mode (diferent things, i know, but both use the sensor proximity in sleep mode), and when disable the last one, pocket mode in dt2w doesn't work at all.

logcat doesn't show any relevant info, only this every time i touch the screen when it's locked:

I/qdhwcomposer( 394): handle_blank_event: dpy:0 panel power state: 0
I/AKMD2 ( 424): Suspended.

as a tip, i use rederbroken kernel, but with c-rom 7.0, and both pocket modes live and work together without problems.
[Moto G Original Android Development] RenderBroken:
I will check your source over to see if I find anything of note.

---------- Post added at 12:45 AM ---------- Previous post was at 12:23 AM ----------

Is this a change you authored?

https://github.com/shivamk11/android_kernel_motorola_msm8226/commit/3e1e0209e91184a561aff60dd48c8528ca731d80

I don't have this commit currently. Maybe this is causing a logic breaking issue. Other than this it matches my own source so If it works on mine but not on yours I would have to point out the differences. Let me know if that helps!

Kind Regards,

Zachariah
[Moto G Original Android Development] Shivam Kuchhal:
Umm... No, I also just cherry picked it because sensor was always on regardless of current of state of dt2w or s2w.
[Moto G Original Android Development] Shivam Kuchhal:
Anyone facing an issue that sometimes when you take your phone out of your pocket and its touch doesn't respond? I got it when I had disabled both dt2w and s2w.

[MENTION=5438598]RenderBroken[/MENTION] can that commit cause it? During this issue I also noted that proximity sensor is turned off.

Tried clean install and changing ROM too. [MENTION=4403780]TeamMex[/MENTION] and [MENTION=4525074]alin.p[/MENTION] can you help?
[Moto G Original Android Development] Bundizle:
i dont know if its kernel related or rom related av seen complains abt the latest carbon plus validus n also omni(currently using) i dont know what is happening..at first i thought it was a kernel issue because it first happened with teamex's kernel changed to phantom and now green machine,still the same...
[Moto G Original Android Development] Shivam Kuchhal:
You're talking about the issue I told?
[Moto G Original Android Development] Bundizle:
yes
[Moto G Original Android Development] Shivam Kuchhal:
AH...!!! Finally someone with same issue with me. Looks like its caused by some code derp in dt2w or s2w. I will start from scratch to see whats causing it.
[Moto G Original Android Development] Antieco:
Not working on Stock 4.4.3. just FYI ... probably has been told before on the thread
[Moto G Original Android Development] Quasar:
This thread says [AOSP] on the thread topic .__.
[Moto G Original Android Development] RenderBroken:
So just to confirm, Touch doesn't work when you first take it out of your pocket right? But you can use the power button to wake it or not? I dont know if you typed wrong or what but if the power button still works to wake the device, if you disabled dt2w and s2w, of course touch wont work to wake the device. But as I said it may be a mistype.

I just want to confirm as well whether or not its an SoD.

Let me know.
[Moto G Original Android Development] Shivam Kuchhal:
I meant that touch doesn't respond. Power button wakes up device but I can't open anything, everything is functional and doesn't freezes but it just doesn't recognizes the touch. I can even hold power button to open power menu but I can't select anything in it because of no touch detection. I hope you get my point here. I obviously won't talk about not working dt2w/s2w if I have turned them off. :p
[Moto G Original Android Development] RenderBroken:
Ok I got ya now lol. I thought so but just had to make sure. I have not had that issue nor any complaint like that with my own kernel. As I said earlier the only difference I could find between our files regarding this is that one commit I posted a page back I think. I had not spent the time to trace the function and see if I could find and issue (not superman at c++) but its the only thing I could find of note. Maybe its just a place to start looking.
[Moto G Original Android Development] denzel09:
No this is from alin. My source: https://github.com/michael1900/falcon_stock/commit/d28a787a7576a8eb845180a7ff70a73ea74c9d36

Render, I don't remember, do you have not cherry-pick that commit?
[Moto G Original Android Development] alin.p:
Suspend module

One of the biggest problems I find in every kernel that includes my DT2W/S2W commits is that they don't use Powersuspend or any other suspend modules like Earlysuspend or LCD_Notify. As you can see in the touchscreen and proximity drivers' code, there is a lot of important code inside #ifdef CONFIG_POWERSUSPEND tags. Your config does not contain that configuration so that important code isn't even compiled.

I'm not saying you should use Powersuspend. You can use whatever suspend module you want, but you have to adjust the code accordingly. For example if you want to use LCD Notify instead, you should change #ifdef CONFIG_POWERSUSPEND to #ifdef CONFIG_LCD_NOTIFY, remove the powersuspend handler and add whatever handler LCD Notify uses, and probably change the name of the suspend and resume functions.
[Moto G Original Android Development] TeamMex:
You need add propper config like to as alin says.

you should add support powersuspend or edit the files for it to be executed in EARLY_SUSPEND

you can use patch in attached files

for use

git am powersuspend.patch

for revert if any issue

git am --abort
[Moto G Original Android Development] Shivam Kuchhal:
But guys I'm using powersuspend too. I didn't enable it in defconfig because it was enabled by default in kconfig.

Here's the commit-

https://github.com/shivamk11/androi...mmit/551e280644eefb5a8faece4fa0d778ceb7fe9c04
[Moto G Original Android Development] TeamMex:
Well if you post a DMESG and LOGCAT (when the bug is pressent) maybe we can find the issue ;)
[Moto G Original Android Development] Shivam Kuchhal:
I tried nearly everything but can't reproduce this issue at will even after many tries. :(

It happens only when I am out and can't take logs.