yashsingh1/xdaforums huggingface dataset:
[Moto X Android Development] makysssdroid:
Work on stock rom or CM rom only ?
[Moto X Android Development] adm1jtg:
Ok implemented the change above and so far no lag will report back as time goes on
[Moto X Android Development] DaRkRhiNe:
We have to write this in terminal emulator right? I am getting an error saying file not found in directory :(
[Moto X Android Development] zwliew:
Sorry typed that on my phone so it auto capitalized. CPUs should be just cpus. No caps at all
[Moto X Android Development] DaRkRhiNe:
Thanks it worked. One more thing I wanted to ask, does fast charge damage the battery in the long run? I searched the internet but didn't find satisfying answers
[Moto X Android Development] zwliew:
Your device and battery will heat up a little more, especially if you use your phone at the same time. Ideally, a li-ion battery should operate at below 50C, 45C is better if possible. Thus, as long as your battery operates below that threshold, it should be fine.
[Moto X Android Development] zwliew:
I've rebased some parts of my kernel to fix issues with CM 12. The more important stuff aren't implemented yet, but I'll get to it soon enough. For now, here is what I have for r4 of CM 12 kernel.

Download:

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

Features currently:

Voltage control

Fast charge

KSM

I'll get to implementing the rest of my changes soon. :)
[Moto X Android Development] flipm00de:
What cm12 ROm uses the CM12 kernel? Are there any moto x Roms for Lollipop other than the Unofficial one that the LTE data does not work on?
[Moto X Android Development] zwliew:
Currently only the unofficial cm 12 rom
[Moto X Android Development] flipm00de:
Okay thanks. Just wanted to be sure
[Moto X Android Development] adm1jtg:
For me after loading v4 I just went in with root explorer and edited the file changing the value in it from 1 to 2.

BTW that file didn't exist in v3

Update: just got another slow wakeup :(

Update2: changed max freq like specified earlier still not as quick waking up at times as v3. Sometimes no issue at all, sometimes slow wakeup. Not seen this happen on v3 at all so far
[Moto X Android Development] s5610:
Have no issue too. Running on XT1056 (4.4.4 XT1052 ) the previous build (r3) gave only 4 governors, now they are 6. I like it :o

My stable VID settings:

384000 [STRIKE]675[/STRIKE]750
486000 [STRIKE]700[/STRIKE]750
594000 [STRIKE]750[/STRIKE]800
702000 800
810000 850
918000 875
1026000 900
1134000 925
1242000 950
1350000 975
1458000 1000
1566000 1025
1674000 1050
1728000 1075

One question. Will I receive any benefit from using Infine Battery script along with zwliew Kernel? If probably yes, what should I install first? Thanks )
[Moto X Android Development] nicat93:
Sorry for noob question. Am I missing something or cannot I control any CPU stuff on stock rom or at all with this kernel? And how do I use fast charge? Will it just charge.. well faster?
[Moto X Android Development] KokoReyes:
Sometimes when I wake up the Phone Is Too slow on r4, moto x 1053 with epsilon 3.1
[Moto X Android Development] crisout:
I installed v4 and I cant turn on wifi, 4.4.4 brasil, I had to restore. Waiting for fix, great job.
[Moto X Android Development] adm1jtg:
ok so its NOT just me.... Was starting to worry :D
[Moto X Android Development] zwliew:
The Infinite Battery script messes with some of my interactive governor settings, such as the sampling rate, which is the rate at which the governor polls for new load and adjusts CPU frequency to match, to an extreme value. Furthermore, it restricts both CPU frequencies to the minimum(384MHz) on suspend, which could cause audio stuttering and slow wakeup.

I don't really recommend it.

If possible, can you provide me with a dmesg and logcat on r4? Stock, AOSP, or CM12?

$ su
$ dmesg > /sdcard/dmesg.txt
$ logcat > /sdcard/logcat.txt

Then attach the dmesg and logcat on a new post, thanks!

Are you guys using the Infinite Battery script stated above? If yes, can you try removing the script? I messes with some settings and sets max frequency to the minimum(384MHz) on suspend, which can contribute to slow wakeup
[Moto X Android Development] Travisdroidx2:
r4 and no battery script running flawless here. Excellent battery life also!! Great work!
[Moto X Android Development] crisout:
When I saw the problem, I restored immediately , could have any problem if Install V4 and go back flashing V3? or do you have the stock kernel?
[Moto X Android Development] zwliew:
There won't be any problem restoring to a previous version.
[Moto X Android Development] adm1jtg:
Epsilon ROM has ultimate battery built in. I have modded my install not to use ultimate battery. Testing now.... So far so good... Will report back over time.

Update: still have slow wakeup

Working on dmesg and logcat

Update2: https://www.dropbox.com/s/dgebbolneytlfed/Log Files.zip?dl=0

Logcat util I used was set to show errros only if you need more detail just let me know and I will re-run with no fiters
[Moto X Android Development] zwliew:
As stated on OP, I'll be stopping development on stock KitKat and AOSP KitKat versions until Lollipop drops(which will be who-knows-when?)

I'm currently in love with Lollipop and Material Design, so currently development will be only for CM 12, specifically BMc08GT's builds.

All future releases for CM 12 will be tagged as decimal-place releases, for example r4.1, r4.2, etc. Only once stock Lollipop arrives on our dear Moto Xs, will I release an r5 for both stock Lollipop and CM 12. AOSP KitKat may or may not be dropped then depending on the situation of CM 12 then(bugs, features, etc.)

Enough talk, here is r4.1 for CM 12. This is compatible with BMc08GT's 17/11 build.

Download:

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

Changelog:

1. Re-added fsync control

2. Undervolted CPU and L2 by 75uV by default; voltage control is adjusted to allow +50 or -100 voltage changes.

3. Re-added the heavily tweaked interactive governor and cpu-boost driver

4. Various CAF updates and fixes in GPU, audio and MMC

5. CAF updates in ondemand governor (not tweaked yet, but usable)

As the CM 12 builds are still quite early, my changes are minimal at best, and do not contain all the changes from r1-r4. I have not added the new hotplug driver as it is causing slow wake up for some users. Will continue re-adding useful updates from r1-r4 to the CM 12 builds.
[Moto X Android Development] Rudy_Ruettiger:
Never mind
[Moto X Android Development] zwliew:
What release - 1, 2, 3 or 4? Which version, stock KitKat, AOSP KitKat or CM 12?

Can you provide a dmesg and a logcat when it happens? Thanks :)
[Moto X Android Development] Rudy_Ruettiger:
I was using the other cm12 build with your kernel. I will start over with bmc08gts build and report back. Thanks for the quick reply.
[Moto X Android Development] gokart2:
Does this have init.d support? I didn't see it in the change log, but wanted to verify I didn't need to use my current stock kernel workaround. Don't want anything I don't need or to have it cause any issues. Only noticed the wake-up stutters like others noticed, just flashed back to r3 to give it a go. Thanks again.
[Moto X Android Development] zwliew:
R4 has init.d support. You can flash r4 then flash back r3.
[Moto X Android Development] adm1jtg:
I just downloaded init.d toggler from playstore to enable it
[Moto X Android Development] CurbThePain:
So basically the only error or bug I've encountered on this kernel is that all browsers fc upon loading the page. It gets partway done and says chrome or browser or any other 3rd party browser has stopped. Does anyone have the boot.IMG and all the files included in this kernel from the stock cm12? (The one with data working) I didn't back up anything but the boot.img.

Edit. Also the phone does intermediately freeze every now and again
[Moto X Android Development] zwliew:
I've had no such problem, all browsers work just fine. Are you using BMc08GT's builds?

And about the freezing, can you elaborate on what kind of freezing it is(short stutter, hang, etc.) And when do you experience it?(scrolling, playing a game, etc.)

Thanks[emoji4]

BTW, you can just reflash the CM 12 ROM to get back to stock CM 12
[Moto X Android Development] CurbThePain:
Yes I'm using BMc08GT's build and while playing music or browsing the web my device will hang and or stutter a lot. Games freeze/hang and the lock screen becomes laggy and sometimes the device will just lock up. I'm using the xt1052.
[Moto X Android Development] Marco Lomas:
I dont have any problem, best battery on lolipop thanks to this :D ty!
[Moto X Android Development] zwliew:
Hmm...although I don't really experience any hangs or stuttering, this may well be because of the over-conservative tweaking of the Interactive governor and the CPU-boost driver. I'll make some changes in the next release.

Edit: noticed it now during installing of an APK. Will attempt fix immediately. Thanks for the report!

_____________________________________________________________________________________________________________________________

On another note, I'm getting kind of bored waiting for Lollipop AND the kernel source code to arrive on Moto X 2013. I'm assuming Motorola is working hard to bring 2014 features to us. :p

Thus, I've started making a new app using Lollipop's new gorgeous APIs and of course, Material Design. Hopefully I'll be able to get an Alpha(or Beta) build up soon.

Early preview of 'zwliew Kernel Master' app:

[IMG="Early preview of the 'zwliew Kernel Master' app"]https://s3.amazonaws.com/pushbullet-uploads/ujv4YOWPtwO-0A3QPMRqOG9sC0wq1EVLacyOD4kHiYhY/Screenshot_2014-11-19-17-17-13.png[/IMG]

Furthermore, in order to communicate better with you guys, I've set up a new Google+ community. This allows for easier reporting of bugs, releasing of builds, etc. Hope to see you there! :D

zwliew Kernel Google+ community:

https://plus.google.com/communities/116811972020519595224
[Moto X Android Development] CurbThePain:
Thank You so much :) it takes a while for the errors to actually arise. It works fine for about 10 hours after installing the kernel then I get some freeze issues like spotify wont even work or load past a blank screen and facebook force closes then Ill just re-optimize the apps by wiping cache and dalvik cache. Its a temp fix till the browser bugs out. The browser issue has happened on both users builds of cm12. But hey no problem always here to help!
[Moto X Android Development] s5610:
On KitKat I use Kernel Tweaker+Busy Box, or SetCPU. These are the best, for my opinion. If you'll manage to beat them in ease and usability, would be great )

Little off the topic: which app can show physical cores load level SEPARATELY? E.g. I want to know what frequency and how many cores are used when I launch a certain game, or other load.
[Moto X Android Development] perfoliate:
Trickster MOD will show you individual core frequency.
[Moto X Android Development] zwliew:
I intend for the app to feature all the available tunables in my kernel, and possibly include an auto-updater when I have time.

Use System Monitor or Trepn Monitor. Both of them have 'flying monitors' that float above any app to allow you to monitor load, cpu frequnecy, etc.
[Moto X Android Development] orky87:
Have you tried Performance Control? Good effort and thought has been put to it and it's open source.

OP nice to see you making a matching kernel app looking forward to using it.
[Moto X Android Development] d14gvn:
you're using r4 version of the kernel??

---------- Post added at 08:37 PM ---------- Previous post was at 08:16 PM ----------

flashed, "no SIM detected"
[Moto X Android Development] gunnerv:
Yeah, the kernel borks data on latest cm12 update. :) all is well tho, I am missing the kernel :(

Sent from my Moto X
[Moto X Android Development] CurbThePain:
No the r4.1... I'm sorry but my device died after flashing a bootlogo so I'm no longer going to be over in the Moto X section. Rip my Moto X. Wish I had another
[Moto X Android Development] adm1jtg:
There are almost always ways to recover it
[Moto X Android Development] zwliew:
Please do not flash my kernel over newer releases until I announce that they work on it, or until I update my kernel. I was completely unaware of the newest 20141120 release so I didn't announce anything, sorry. I'll update my CM 12 kernel to r4.2 by the end of today that will work on 20141120 release.

I will also be making announcements on the G+ community so do check it out:

https://plus.google.com/communities/116811972020519595224
[Moto X Android Development] zwliew:
New zwliew_Kernel release for CM 12!

Compatible with BMc08GT's 20141120 build!

r4.2 this time round.

Download:

Edit: Some problems, removed till fixed

Changelog:

1. Better SD performance due to F2FS updates and improvements from Moto X 2014 and some minor patches

2. Using power-efficient workqueues for some subsystems

3. Disabled FSync and software CRCs by default for better I/O performance (Can be enabled, check post #3 on XDA)

4. Overclocked slimbus driver for better audio performance

5. Upstreamed to Linux v3.4.49

6. Removed unnecessary debugging and stuff, resulting in a smaller boot image. Minor improvements in performance can be expected due to less overhead.

7. Increased input boost freq and made interactive governor more aggressive in staying at higher frequencies --> reduce UI jank such as when installing an app or listening to music﻿
[Moto X Android Development] gunnerv:
Been creeping all day

Sent from my Moto X
[Moto X Android Development] zwliew:
Sorry guys, something unexpected happened in my family so I can't update my kernel for a few days, possibly up to a week.
[Moto X Android Development] fakieskr8333:
Sorry to hear that man, hope things work out OK. Take all the time you need.
[Moto X Android Development] gunnerv:
It's all good man, hope everything is alright!

Sent from my Moto X
[Moto X Android Development] vineeth_38:
r4.2????

waiting for r4.2 to be available for download. :D
[Moto X Android Development] Travisdroidx2:
You will be waiting a couple of weeks. Please no one ask for updates at this time!
[Moto X Android Development] jakereeves31:
Read the damn thread.
[Moto X Android Development] no_un_bot:
Like, seriously?

You and your kind are the reason why developers get tired of developing for self-entitled individuals.
[Moto X Android Development] s5610:
Thanks for pointing me in correct direction, they're all great ) Links for people who might be interested in these appies: Trickster MOD, Trepn Profiler, System Monitor, Performance Control.

p.s. After few days got that my "stable" undervolting isn't stable, what a "surprise". Had to raise a bit. Testing further. I will have the opportunity to measure current directly from the battery on next week (got 1055 for parts), will investigate undervolting impact on battery saving.

no_un_bot

Hey, I believe that it was unintentionally. Let's all wait for topic author return, and hope for a cloudless future )
[Moto X Android Development] Henil Shah:
Hey I have flashed this kernel. However I have lost network and do not have any signal now. I have the moto x xt 1052.
[Moto X Android Development] gunnerv:
Should have read the thread...

Sent from my Moto X
[Moto X Android Development] GazerZhang:
Thanks a lot but I think there is a little bug?

Well I am using the Moto X XT1053 on Unofficial CM12.

When I flash the r4.1 my phone could not have any cellular network signal,, while it had signal with the r4. And in R4 the LTE is not working....

---------- Post added at 04:14 AM ---------- Previous post was at 04:03 AM ----------

Ohhh well never mind. just read you update in the thread.. Sorry.....
[Moto X Android Development] Henil Shah:
Please help me and advice me if it could be fixed or not
[Moto X Android Development] fakieskr8333:
You will have to sit tight until the Dev comes back and gets an update out for the newer builds. Just reflash the ROM file in recovery to get the old kernel back and wait.
[Moto X Android Development] Travisdroidx2:
Reflash your stock boot.img Or reflash CM and not the kernel from here after. I am assuming you lost your data on a CM build? This was covered in this thread.
[Moto X Android Development] Henil Shah:
Well no i didn't!:D
[Moto X Android Development] zwliew:
It's currently Wednesday where I am and in a few days I'll be back at home. Hopefully I'll be able to get r5 up for CM 12(that works with latest build) and (maybe) stock KitKat during the weekends.

Skip to bottom for TL;DR

With all this free time I had in the past week, I was able to review my previous changes to the kernel and filter out the patches that do not seem to have a noticeable improvement.

Therefore, I'll be revamping the kernel in r5, starting from scratch with a new set of patches. A couple of important patches will be carried over, while those that aren't so useful will be discarded.

It is important to note that after installing r5, changes made to the PowerHAL have to be reverted. Specifically, /system/lib/hw/power.msm8960.so.bak has to be renamed to /system/lib/hw/power.msm8960.so. This is because an in-kernel solution to input boosting still has to be further tested.

Stock mpdecision is also used over the custom hotplug driver introduced in an earlier release for the same reason.

For now, the patches that will definitely be carried forward are:

1. Updates and tweaks to the interactive governor and the ROW scheduler

2. Voltage control, fast charge

3. Some general improvement patches from previous releases

TL;DR: For most of you, you do not have to worry about what I wrote before. I will bake in a script to r5 that will take care of everything. After all, this is aimed to be a flash and forget kernel. Just know that some serious revamping of the kernel will happen in r5.

Look forward to the release during the weekends. :)
[Moto X Android Development] DaRkRhiNe:
Plz do support stock Kitkat . :fingers-crossed:
[Moto X Android Development] zwliew:
I want to but with stock Lollipop coming soon, I have less reason to support stock KitKat and motivation to work on KitKat anymore is dipping.

Furthermore, Lollipop has been doing wonders for my battery, and I need to be on Lollipop to test my in-development zwliew_Kernel Master app.

If anyone is able to beta test the stock KitKat kernel (Sprint/Sprint-based users, please do too) before the release of r5, I'll try my best to get r5 out for stock KitKat.
[Moto X Android Development] St.Noigel:
I can test beta ))

Now I`m on your r4.1 stock - it just amazing- smooth and good battery life (now I have 41% with 1d 10h on use / 1.02h talking time and 1.55h screen)

P.S. ROM - GPE (GMS edition)
[Moto X Android Development] DaRkRhiNe:
But there is no r4.1 for stock; only till r4!! .... Or is there?
[Moto X Android Development] St.Noigel:
Oww... Sorry... I'm stupid.. :silly::eek:

r4... You are right
[Moto X Android Development] adm1jtg:
I am stock and still on r3 which doesnt have any issues at all r4 for me had the slow wakeups but r3 no issues at all after weeks
[Moto X Android Development] zwliew:
Been testing for the past week during my free time and slow wakeup and stuttering during some operations are completely gone. :D
[Moto X Android Development] DaRkRhiNe:
If not r5, pplzzz just release a version of r4 with fixed slow wakeups, because r4 is rock solid in performance and battery life.

And thank you for your work.
[Moto X Android Development] CsR0501:
I come from faux's kernel but this kernel looks amazing so I'm gonna test it!

Thanx for your great work!

P.S. no slow wakeup till now...

Enviado desde mi XT1058 mediante Tapatalk
[Moto X Android Development] zwliew:
I was talking about the upcoming r5 :p

According to users, r3 doesn't have slow wake up though so you could use that for now.
[Moto X Android Development] CsR0501:
I'm in r4 and I don't have slow wakeups at all... [emoji12]

Enviado desde mi XT1058 mediante Tapatalk
[Moto X Android Development] MCJD:
Double tap to wake?
[Moto X Android Development] zwliew:
Unnecessary feature since we already have Active Display. You can just wave your hand over the IR sensor at the top, or move your device a little to wake the phone. Furthermore, DT2W will only cause further battery drain to our puny battery size.
[Moto X Android Development] beny ms:
I think if you add s2sleep it will be nice sir :D

I really love your kernel ,6hour Sot that incredible

By the way i'm nexus 5 ex user :D
[Moto X Android Development] zwliew:
I'll look into S2Sleep soon.
[Moto X Android Development] droids@m:
6 hour SOT.....:confused::confused::confused:

Really I am jealous can't get past 4h....
[Moto X Android Development] adm1jtg:
I assume that 6 hour SOT is on cm12 not stock kk
[Moto X Android Development] beny ms:
I use krypton 1.4.1
[Moto X Android Development] s5610:
Erghhh, now I have them too :mad:

The problem has appeared aproximately after 2 days of use r4 on my Sprint, flashed to EU Retail. Sometimes phone awakes quick, sometimes not, up to two seconds delay.

Dear zwliew, we NEED stock update, no doubt, pls pls pls :D
[Moto X Android Development] adm1jtg:
If you go back a little ways in this forum he has already said until he releases a stock update... and this is halted on development for the moment that you should just use R3. I have been using it almost since the day he released it and it is awesome and doesnt not have these issues. Just use R3 until he decides to pick up dev of stock again.

---------- Post added at 11:29 AM ---------- Previous post was at 11:28 AM ----------

and which kernel version R3 or R4?
[Moto X Android Development] s5610:
Well, I did already flashback, but will you blame me for asking all the juices for our moto's? (go for Lolly is kinda gamble, so KK) Who is against having more speed and more battery hours. The kernel is mother of all.

I like very much the idea of zwliew, his concept - flash-n-forget. That is deadly simple, quick, and effective. Great project ) I'm ready to sit tight and wait as much as it takes. Not so much of custom stuff on Moto X.
[Moto X Android Development] KokoReyes:
can i use r4.1 on AOSP KitKat or just r4?
[Moto X Android Development] s5610:
KokoReyes

Install it with confidence )
[Moto X Android Development] samuraix21:
Yeah, not sure if I want to...
[Moto X Android Development] kenosis:
4.1 does not work on Stock 4.4.4, right? I installed on XT1053 Stock 4.4.4. Screen turns black during Moto boot animation.

My false. 4.1 is for CM12 :D
[Moto X Android Development] zwliew:
r4.1 is only for CM 12. Latest release for stock KitKat is r4. I'll make it clearer in OP soon.

r5 which is coming soon will first be for CM12, then for stock KitKat.
[Moto X Android Development] gunnerv:
Any chance it has fast charge? And any plans to implement the active display?

Sent from my Moto X
[Moto X Android Development] zwliew:
The kernel has had fast charge since r1. There is no way to implement active display in the kernel, or even the ROM.
[Moto X Android Development] gunnerv:
I thought the sensor part of ambient display was on a kernel level, I got the two confused lol

Sent from my Moto X
[Moto X Android Development] zwliew:
The ROM needs to have Ambient Display enabled. Specifically, an overlay in the device tree to enable Ambient Display, which is implemented in the framework.
[Moto X Android Development] DaRkRhiNe:
Bmc008 had stated that , to have a working Ambient Display , they have to port some thing from msm8974 to msm8960 at kernel level. By any chance can you do that so we can have a working Ambient display on CM12. Just a suggestion :fingers-crossed:
[Moto X Android Development] beny ms:
I use r4

Sent from my XT1058
[Moto X Android Development] mac1996:
I am getting no service when flashing latest kernel... Tmo xt1053 gsm unlocked
[Moto X Android Development] zwliew:
State whether it is the AOSP Lollipop or stock KitKat version. If it is AOSP Lollipop version, it is expected as I haven't updated the kernel for the latest builds, as already stated in OP.
[Moto X Android Development] mac1996:
Oops it says stock.. My bad..??..flashed on aosp.?? ..sorry thank you for your contribution..