yashsingh1/xdaforums huggingface dataset:
[Moto X Android Development] army9000:
I have test cm13 stock kernel,tycoo's kernel,and this kernel,this kernel is the best in battery life and smooth,thanks for your great work!

I want to build this kernel:

export ARCH=arm

export CROSS_COMPILE=~/arm-eabi-4.6/bin/arm-eabi-

make msm8960dt_mmi_defconfig

make

build is success,and there are three modules:utags.ko,scsi_wait_scan.ko and wlan.ko.

but your kernel have four modules:adsprpc.ko,scsi_wait_scan.ko,utags.ko,prima_wlan.ko.

Could you tell me how to build your kernel please?
[Moto X Android Development] JCroffut:
Hey ZW, check your inbox in going to be sending you and mega a message about possibly working on a project together. I do a lot of work with the OctOs team building for the Moto X. Check your inbox tho boss.

Moto Octonaught
[Moto X Android Development] wizardknight:
Can anyone tell me if they have used this kernel with the hotspot set to 5Ghz? The stock one does not seem to make the change and broadcast on 5Ghz when that setting is enabled.
[Moto X Android Development] ysop:
Now flash AICP with this kernel can't boot.Loop in "Android is updating".can't boot to system.
[Moto X Android Development] army9000:
use tycoo kernel flash script can fix this
[Moto X Android Development] ysop:
i'm sorry but i really dont know how to do it.can you say more details or share kernel zip can flash directly?
[Moto X Android Development] kicker22004:
OK R2 test with my modules.

Boot [OK]

Wifi [Stuck off]

Signal [SIM ERROR Constant FC]

Logs Dmesg.txt

Logcat = https://drive.google.com/open?id=0B2aLFCgkLH9bS1Nlb0Y1NHN6Q3c&authuser=0

Update: This is the kernel that loads with Graphic glitches (i know it's probably AOSP is why but the sim does work if that helps you.

I removed the data folder from the zip because wasn't needed as i already have it.

Sorry logcat is large using DDMS
[Moto X Android Development] dray_jr:
everything you asked for is in this zip. i have 2 boot files one from the location you asked and the other boot.img is from the Sprint 4.4.4 OTA update zip also the About Phone has the build number in it. i hope this helps you if you need anything else just ask.

Sprint 4.4.4 Modules.Boot.Build Number.zip

https://www.mediafire.com/?es8sj9ut7gh825s

What carrier is your phone on and are you CDMA or GSM
[Moto X Android Development] kicker22004:
Republic Wireless

Android 4.4.2

Stock

CDMA based off of sprint.

Default.prop

#

# ADDITIONAL_DEFAULT_PROPERTIES

#

ro.carrier=sprint

ro.secure=1

ro.allow.mock.location=0

ro.debuggable=0
[Moto X Android Development] dray_jr:
intresting that you are able to get yours to boot without the FC. i mean i can't even use my phone at all if i have the kernel installed all it dose is FC
[Moto X Android Development] kicker22004:
I have to pound OK ever 2 seconds :P

Your sprint 4.4 stock right?
[Moto X Android Development] dray_jr:
never mind you are in the same boat i am but no i am on 4.4.4 stock but rooted and i used xposed and titanium backup to mod and detox my phone how i like.
[Moto X Android Development] kicker22004:
OK well i'm making you a kernel zip that will restore the files this kernel puts in place so you don't have to do a system restore after testing. To make it faster. Give me a few as i'm downloading your Sbf now.

I missed your File upload, grabbed your boot.img from there and your files needed. This Zip should restore any changes so you can flash any test builds with and easy way back. Can you test it please.
[Moto X Android Development] mikeoswego:
It looks like the kernel is different for different phones. I previously uploaded the Stock_4.4.4_kernel.zip file and have changed that post and attached file to indicate that it is for the Verizon XT1060 model Moto X.

I'm attaching that here as well.
[Moto X Android Development] kicker22004:
Yeah i remember reading somewhere that there is a different source for Sprint.

---------- Post added at 10:42 PM ---------- Previous post was at 10:30 PM ----------

As a side note if I run the Sprint 4.4.2 boot.img with my modules i can't work wifi. But with sprint boot.img and sprint modules everything works. Not sure if that will help anything lol.
[Moto X Android Development] dray_jr:
thanks for the stock kernel i will test it here shortly and report back. i dont mind having to restore from a nandroid each time but this would def be great if it worked it would be so much faster. the biggest thing i want to get working is this kernel for us sprint/CDMA user because we dont have any working custom kernels. So thank you both of you for the the time and effort y'all are putting into getting this done.
[Moto X Android Development] kicker22004:
The Thanks goes to Zwliew. I'm just trying to make it easier for his testers.
[Moto X Android Development] zwliew:
Can those with problems with the phone app FC(supposedly Sprint users) just reply simply: what your build number and android versiom under 'about phone' is.

I've a feeling the bug is due to mismatch source. I need the information so once I get home I can work on it.
[Moto X Android Development] kicker22004:
Republic Wireless

Build # KXA20.16-1.24-1.12

Android Version = 4.4.2

Messed up while playing in fastboot tonight and was forced to SBF lol. anyways if this info is of use i'll add it since i'm here.
[Moto X Android Development] caviera:
Could this works with X1058 international moto x?
[Moto X Android Development] zwliew:
It only has problems with Sprint variants
[Moto X Android Development] makysssdroid:
Greats stable and smooth
[Moto X Android Development] zwliew:
I see some really interesting differences in Sprint's ramdisk versus other carriers like Verizon(what I'm diffing against). :)

I may know how to fix the FC, but may need several test zip files with those who have problems.
[Moto X Android Development] dray_jr:
i dont have a issue testing them out just post them here and ill try them out and report back
[Moto X Android Development] kcipopnevets:
Works awesome on my Maxx. Cheers!
[Moto X Android Development] kicker22004:
If anything send us pm with the test builds so that way we don't confuse others here.
[Moto X Android Development] army9000:
1.Download 3.4.110_x_CM13_MM_kernel_v1.3.zip

2.Replace 3.4.110_x_CM13_MM_kernel_v1.3.zip's modules folder,zImage with the file extracked from zwliew-kernel-ghost-cm13-r13.zip

3.Clean 3.4.110_x_CM13_MM_kernel_v1.3.zip init.d folder

4. flash 3.4.110_x_CM13_MM_kernel_v1.3.zip

or you can wait,I'll post a new thread to release a new build zwliew kernel.
[Moto X Android Development] ysop:
thanks but zeliew-kernel.zip dont have modules folder and zImage...just see META-INF and system folder and boot.img.:confused:

I will wait for new build.
[Moto X Android Development] army9000:
1. system\lib\modules

2. zImage can be extracted from boot.img,you can find tutorial
[Moto X Android Development] ysop:
thanks,now boot,but wifi can't turn on,wait new build.
[Moto X Android Development] necktru:
Someone has tested this kernell with Oct os (mm) ??

xt1058
[Moto X Android Development] Hasuris:
This is (was?) my last hope for an alternative kernel for the latest and last stock rom of this phone. I don't understand what happend. After all the rage about lollipop (stock)development just died :(

Pls keep developing it to some kind of final stage. This will run on my phone, till it dies.
[Moto X Android Development] kicker22004:
Yeah that's the same boat I'm in right now. Just want this stock kernel.
[Moto X Android Development] Johnny Wong:
OctOS has a pretty customizable kernel. It would be nice if we can overclock though.
[Moto X Android Development] iRoger:
Does it work on CM13 ROM?
[Moto X Android Development] chandrash3khar:
Tried with AICP ROM on the 05th May build getting bootloops.
[Moto X Android Development] zwliew:
The kernel is outdated and out of sync with the latest CM updates now; don't use it.
[Moto X Android Development] abacate123:
Hey man, can't you update it? I mean, it's a great kernel to get lost...
[Moto X Android Development] kicker22004:
All the more reason to release a stock rom version ;)
[Moto X Android Development] riyosakura:
hei there. will you update the kernel for final release?

this kernel really boost cm13 performance, as of know, no more kernel that patched with the latest cm kernel.
[Moto X Android Development] kucher5:
are there cifs support in the kernel?
[Moto X Android Development] dray_jr:
That works also
[Moto X Android Development] Kittiesoncrack:
Android Verison: 4.4.4

Build Version: KXA21.12-L1.28
[Moto X Android Development] Travisdroidx2:
Running two full days now. Very snappy and running well! Nice work and thank you! No issues what so ever. Verizon xt1060 Dev edition Eclipse ROM 4.4.2
[Moto X Android Development] gskelter:
Running 24 hours and have great petformance tmo 4.4.4
[Moto X Android Development] adm1jtg:
Guess that makes me running the longest as I loaded just a few minutes after he posted and still running great
[Moto X Android Development] kicker22004:
Not sure if you will see my message but r.2.2 rest build WORKS!. Thanks so much for your work to help us out.
[Moto X Android Development] mikeoswego:
r2.2 seems to break WiFi AP HotSpot on Verizon XT1060. WiFi appears to be enabled, when selecting AP mode, WiFi turns off as normal, AP never comes up and then it is not possible to enable WiFi again without rebooting.

r2 has been working great for the last few days.

Logs attached for unsuccessfully trying to enable AP on r2.2 and successfully on r2.
[Moto X Android Development] KokoReyes:
wifi problem

on latest update theres something that breaks wifi, i turn it off a bit and then i had to reboot to turn it on again, back v2 everythings normal :good:, thank you for your work :highfive:
[Moto X Android Development] ConstantHero:
Same results here with r2.2, xt1060, krypton 1.4.1.
[Moto X Android Development] kicker22004:
On Republic Wireless I can confirm no WiFi issues here. (Sprint should be the same) tho I don't tether.

Update: Found an issue!

Republic wireless can make/recieve wifi calls.

With this kernel i can call others on wifi and it works fine. Also off of wifi both in/out calls work as expected.

Issue:

ON WIFI CALLS IN

*No speakerphone

*I can't hear them

*They can't hear me

*Can't hang up

*Forced to hard reboot
[Moto X Android Development] zwliew:
Can you Sprint users turn on Wi-Fi after disabling it, without rebooting?

[MENTION=907126]kicker22004[/MENTION]4, can you make your problem clearer? I don't really understand the issue. Thanks!
[Moto X Android Development] kicker22004:
Sorry was at work.

Ok I'm on republic Wireless They are able to make and recieve calls sms/mms over wifi. With your kernel installed the calls work as expected with the CDMA Network, but when i'm on wifi i can make a call but can not receive a call.

https://republicwireless.com/

I'm going to test this with the Sprint kernel and see if it shows the same issues. It could be hooks that Republic Wireless needs for it's wifi calling. There is no RW source code that's why i'm looking at sprint.
[Moto X Android Development] dray_jr:
idk if it works i am installing the second test kernel i will post back asap and let you know what happens

Edit: everything seems to be working fine except for I can't turn wifi on as for the stock restores it that was made that works perfectly thank you so if we can fix the wifi I think we're good to go
[Moto X Android Development] kicker22004:
Update it seems my WiFi calling issue is also with the stock sprint kernel as well. Damn I was hoping not. I'm not sure I'll be able to get a working kernel with WiFi calling. If you car to look into it let me know what you need. There is some source code on Motorola's site for 4.2.2 its tagged RW
[Moto X Android Development] dray_jr:
I don't care so much about WiFi calling I just need to be able to turn my Wi-Fi in and off because I use it a lot once we get this fixed I will try using this kernel as a daily driver and see how to works out
[Moto X Android Development] kicker22004:
Your on sprint so you don't have WiFi calling. That only applies to me in this thread.

Update: My wifi can turn off and on but only until i activate airplane mode then it stays off. Here is a video with logcat during the video.

https://drive.google.com/file/d/0B2aLFCgkLH9bTUxKMlNOck4wNkE/view?usp=sharing
[Moto X Android Development] kenosis:
Running 2.2 on XT1053. Epsilon v3.1
[Moto X Android Development] adm1jtg:
Also on epsilon 3.1 and xt1053 but haven't updated yet still running v2 thought all the changes since we're for sprint users
[Moto X Android Development] zwliew:
I've pushed test release r2.9.

1. The Wi-Fi bug whereby Wi-Fi cannot be enabled after disabling it should be fixed.

2. Sprint/Sprint-based releases compatibility should be fixed. (No more phone app FCs!)

3. Moar optimizations and performance improvements!

4. Merged a patch from Google which should help to reduce Wi-Fi wakelocks -> better battery life

5. Misc improvements

Download here and try it out:

http://xdaforums.com/devdb/project/dl/?id=9527

If there are no more bugs found, this is pretty close to a r3 release :highfive:
[Moto X Android Development] kicker22004:
Well looks like this may not work for me guys.. My Wifi calling is still dead. I've made a video showing what i mean with a log during. After the call starts the phone starts going to a crawl...even if i choose to not take the call it will freeze. Any ideas?

https://drive.google.com/file/d/0B2aLFCgkLH9bbTh6bEJpamlnVkk/view?usp=sharing

This is the same with 2.2 and 2.9
[Moto X Android Development] zwliew:
Can you send me the stock 4.4.4 boot.IMG for your device? And does this happen with r2 or any release before that?
[Moto X Android Development] kicker22004:
I do not have 4.4.4 on this device.. Sadly still waiting for it. Only 4.4.2. I've made a zip to restore my files with my boot.IMG and modules. Look a few posts back I uploaded it for you.

And yes since you got sprint working this has been my issue.

Look at post #80 for my zip
[Moto X Android Development] droids@m:
I am on XT1052 European version with Krypton v1.4.1 all seems to be good on the latest.......
[Moto X Android Development] dray_jr:
i am trying to out the new upfate now i will report back on my findings thanks again.

Edit: everything seems to be working I am find to be testing that kernel out the next couple day and I will report can get work OP finally a kernel for us sprint users thank you very much
[Moto X Android Development] jakereeves31:
Anyone gotten this to work on a DROID MAXX?
[Moto X Android Development] zwliew:
It shouldn't work, sorry
[Moto X Android Development] zwliew:
r3 is out! I've spent quite some effort and time on this release, hopefully you like it :)

I've patched the F2FS filesystem, which is the filesystem used for userdata, with updates from Moto X 2nd Gen. This should noticeably improve the I/O performance on userdata :D

Some noticeable battery improvements can be seen as:

1.Kernel mpdecision is more conservative, thus CPUs aren't hotplugged as aggressively.

2. Some subsystems are using more power efficient workqueues.

3. some CAF patches which improve battery life in the long run are merged.

4. Kernel is using the conservative GPU governor, which scales frequencies more conservatively.

Enjoy :angel:

Download:

http://xdaforums.com/devdb/project/dl/?id=9557

Now I'm off to CM to test preview CAF buid :fingers-crossed:

Edit: There is still the small issue regarding Republic Wireless users not being able to call using WiFi. I'm still working on it.
[Moto X Android Development] adm1jtg:
Locked and loaded.. No issues loading will report back as time goes on

I did have one minor issue on 1.9 and 2.2 when charging the battery % via xposed navy times doesn't update properly. Aka I check charging status ACD it might day 86%. Then green charging light does of a few min later and when I check again it's 100. So seems the issue is only in reporting. Will not know for a day or 2 if this is present in current v3
[Moto X Android Development] zwliew:
That is a problem with stock.
[Moto X Android Development] athulele:
Everything working awesome with xt1052, epsilon 3.1
[Moto X Android Development] jakereeves31:
Why not?:(
[Moto X Android Development] kicker22004:
Thanks a million for even taking the time to help us republic wireless users. We are few but we still appreciate your support. After all this is now the only kernel Dev that took the time to help sprint users. Give this Dev some thanks guys!!
[Moto X Android Development] zwliew:
I'm using purely Moto X kernel sauce and ramdisk, no Droid Maxx or common inside.
[Moto X Android Development] Travisdroidx2:
R3 is running smooth and like a champ on my Verizon dev edition running Eclipse 4.4.2! Thanks a lot and nice work!
[Moto X Android Development] ss12108:
I've run r2, r2.9, and I'm going to flash r3 right now on my Maxx :)
[Moto X Android Development] zwliew:
Turns out it does work on Droid Maxx! My bad :p
[Moto X Android Development] ss12108:
r3 booted fine too...nice work!
[Moto X Android Development] jakereeves31:
Hmm, the time I tried to flash it I got to the point where it should boot and then the top half of the screen went black and the other half was still at the booting logo and then it bootlooped from there.
[Moto X Android Development] ad fu:
Does your active display still work? I tried this on my Ultra and active display wasn't working. Tried r2 and r3 with same results and wiped.
[Moto X Android Development] rebretz000:
Kernel running fantastic on my Verizon Moto X Dev.

I'm just running stock 4.4.4
[Moto X Android Development] Johnny Wong:
The stock Droid Ultra/Maxx 4.4.4 rom comes with active display 1.2.29 or something like that and it seems very sensitive to non stock kernels. The only way I have gotten it to work is by flashing Snake's Venom ROM which is a Moto X 4.4.4 port and then flash the kernel. I've tried this and I'm currently running Faux's and both have functioning active display.
[Moto X Android Development] ad fu:
Cool, thanks for the info!
[Moto X Android Development] dray_jr:
So I have noticed one thing for sprint users I don't get 4g much anymore my phone seems to be in 3g in the places I used to get LTE
[Moto X Android Development] ss12108:
I just uninstalled active display, rebooted, and reinstalled from the play store and mine is working fine.
[Moto X Android Development] ad fu:
Thanks, just tried that and it appears to be working correctly.
[Moto X Android Development] zwliew:
With both Moto G's and the 2nd gen Moto X already receiving official OTAs for Android 5.0 Lollipop, that leaves us, 1st gen Moto X owners.

Rest assured, once the Android 5.0 Lollipop kernel source drops, I'll immediately update my own source to bring Android 5.0 Lollipop support as quick as possible. :)

In the meantime, here's a short glimpse at what I've been working on currently for the next release. Here is r3.1:

http://xdaforums.com/devdb/project/dl/?id=9595

From the time I got the phone, I really did not like how the built-in mpdecision works. Basically, mpdecision is in charge of hotplugging and some other CPU/GPU frequency scaling. MPDecision hotplugs CPU1 on every touch input; so even if you aren't doing anything intensive on your phone, as long as you are touching the screen, both CPUs will be on. This is great for performance and smoothness, but can be detrimental to battery life.

Thus, I've added a new hotplug driver and disabled mpdecision's hotplugging. This new hotplug driver is quite optimized currently and still works really smoothly. The tunables can be found at /sys/module/msm_hotplug/. Now, CPU1 won't be hotplugged on every touch and hotplugging of CPUs is more conservative.

TL;DR: I've replaced the previous hotplug driver, which is probably the most important power management tool, with a more conservative hotplug driver so battery life should be a lot better. If the new hotplug driver doesn't work as well, report in the thread and disable it by:

echo 0 > /sys/devices/system/cpu/cpu0/rq-stats/hotplug_disable
echo 0 > /sys/module/msm_hotplug/enabled

Try it out and let me know how much difference there is in battery life, smoothness and performance. Everyone's daily usage of his/her phone is different, so your input is quite crucial.

Thanks. :highfive:

P.S.: I've enabled many tunables in the kernel due to popular demand. They can be found on post #3. I'll be constantly updating it to reflect changes in the kernel.
[Moto X Android Development] athulele:
Seems running fine on my xt1052. Runs as smooth as before.

EDIT - I notice that it's lagging while turning the screen on as well as a few seconds (10-20s) after i turn on the screen. Also, music stutters after screen is off. [MENTION=5604178]zwliew[/MENTION]
[Moto X Android Development] kicker22004:
Just by chance you find any info to a possible fix for us Republic Wireless users? I figure it's not anywhere close to priority but figure i'd ask.
[Moto X Android Development] zwliew:
Still working on it. Anyone has the boot image for a Sprint 4.4.2 variant?
[Moto X Android Development] kicker22004:
Yeah here it is.

https://docs.google.com/file/d/0B2aLFCgkLH9bWFFCN0NIdFY0d28/edit?usp=docslist_api
[Moto X Android Development] dray_jr:
Are the kernels updates that you're posting compatible with Sprint or is there a separate update for Sprint
[Moto X Android Development] zwliew:
My kernels are compatible with Sprint since r3. Only Republic Wireless has problems WIFI calling.
[Moto X Android Development] zwliew:
Try changing /sys/module/msm_hotplug/suspend_max_freq to 1134000 or a higher CPU frequency. It's not lagging for me in both situations, however.
[Moto X Android Development] XAlexander_AlexanderX:
I gotta say, this is the best kernel I have used on the moto x. Keep up the good work ! ???
[Moto X Android Development] rockmen1:
Unlocking from active display screen will somewhat freeze for couple of seconds with r3.1. I am using pattern password.
[Moto X Android Development] zwliew:
Does setting /sys/module/msm_hotplug/suspend_max_freq to 1134000 fix the lag on unlocking?

echo 1134000 > /sys/module/msm_hotplug/suspend_max_freq

Or any other cpufreq greater than 1026000. For example, 1242000, 1350000, 1458000, 1566000, 1674000, or 1728000.

Please report back if one of the higher cpu frequencies fixes the problem.
[Moto X Android Development] rockmen1:
None of the 1242000, 1350000, 1458000, 1566000, 1674000, or 1728000 I set fixed the issue. Then I did a re-flash of r3.0 and reboot, then re-flash r3.1, the lag was gone. Strange enough.
[Moto X Android Development] zwliew:
No problem, I'll add a wakeup boost to the new hotplug driver, so that it maxes out the cpu power to make resuming of the device as smooth as possible.
[Moto X Android Development] adm1jtg:
Faux had this same issue... Never got resolved. Was related to graphics drivers and very intermittent. Not seen it on r3 or any previous at all and I use it all the time
[Moto X Android Development] zwliew:
How about settings /sys/module/suspend_max_cpus to 2?

echo 2 > /sys/module/suspend_max_cpus

If it still doesn't solve it, do:

echo 2 > /sys/module/suspend_max_cpus
echo 1728000 > /sys/module/suspend_max_freq

I think the problem lies with the new hotplug driver switching off CPU1 and limiting max frequency to 1026MHz on suspend
[Moto X Android Development] gokart2:
Been awhile since I've been on here, busy with projects and work. Very nice to finally see a usable Sprint kernel. Thanks! You mind if I put a link to the OP in my Sprint stock roms thread?
[Moto X Android Development] zwliew:
Sure :)
[Moto X Android Development] adm1jtg:
couldn't get these commands to work and those files dont exist by default.

I could just manually create those files right the first with a value of 2 and the second with a value of 135000?

also at least on my install i use ultimate battery with sleep profile of 384/384 and wake of 384/135000. Issue of slow wakeup is only present on 3.1

Not seen this issue on 3.0 or anything previous ONLY 3.1