yashsingh1/xdaforums huggingface dataset:
[Motorola Photon Q 4G LTE] arrrghhh:
lol the P's and Q's kernel is stock - https://github.com/arrrghhh/XT897-P-Q-s-Kernel

and the msm8960-common is CM - https://github.com/arrrghhh/android_kernel_motorola_msm8960-common

Hope that clears things up.
[Motorola Photon Q 4G LTE] JaceAlvejetti:
First thanks for the quick reply, and actually I am working on the CM I think, heck I may have pulled the wrong repo entirely but Like i said Ill let the pros handle my day to day, I just want to learn

alright ill look into the make bootimage Thanks again!

Edit- Yeah I am working on CM as i thought, so ill look into that route
[Motorola Photon Q 4G LTE] superp32:
Snapdragon battery guru gives me a full day of pretty heavy usage . Its made for our processor.
[Motorola Photon Q 4G LTE] skeevydude:
I been messing around with maek.sh and just finished flashing a CM10.2 kernel completely built and packed up with it (built from [MENTION=420530]arrrghhh[/MENTION]'s repo). While not completely finished and a bit down and dirty, it works and that's good enough for now. Remove the ".txt" extension from the attached script since we can't upload shell scripts here.

EDIT:

causes com.android.phone to FC, factory reset didn't help.....whatever cause I plan on updating in the morning anyways :p
[Motorola Photon Q 4G LTE] arrrghhh:
Hey, you got beyond a bootloop! I build the stock kernels no problem, but for some reason I could get the ramdisk issue sorted on the CM kernels...

If all goes well I should be getting (another) Q soon tho :)
[Motorola Photon Q 4G LTE] skeevydude:
Boots just fine only phone fc's. Could be a permissions error, old ramdisk...haven't really looked that much into it cause I was more concerned with getting it all to build and pack up with minimal errors. With any luck I'll figure out the fc issue tomorrow.
[Motorola Photon Q 4G LTE] timpohladthomas:
Good work dude!
[Motorola Photon Q 4G LTE] skeevydude:
CM10.2 Success

Finally managed to get a fully working CM10.2 kernel. Used ramdisk from Oct. 09 4.3 PAC, it built, booted, no service....reviewed terminal output and realized that the selinux defconfig wasn't being used, added it, and it works just fine :D

I'm gonna do a bit more cleaning up and I'll post something to github hopefully later this evening.

/only took me an hour to figure it out, but my knee has an infection and I had a really hard time walking and moving it on Friday and Saturday so I didn't get to it
[Motorola Photon Q 4G LTE] skeevydude:
Here's what I have so far. You'll need to set the first line in the script to the extracted directory ($DIR), add in the kernel to a folder named msm8960-common, and download a 4.7 toolchain and add it to $DIR/toolchains/arm-eabi-4.7. Once done, open a terminal to the extracted directory then type "./maek.sh" and wait a few mins and you'll have a nicely built kernel for CM10.2 based roms & it'll be packed up and ready to flash.

To do:

Set up a git repo for ease of use

Better & more verbose logging

Flags to use different toolchains/kernel/ramdisks/see next line

Incorporate other kernel tools (stuff like unpack-bootimage.pl)

Anything else....We'll cross that bridge when we get to it

/the toolchain I'm using is 403mb

//would take me 2-3 hours to upload it as well

///is not that hard to copy/paste (or link) the toolchain from your existing CM/PAC/Carbon prebuilt folder....or download one
[Motorola Photon Q 4G LTE] superp32:
I thought I had lost my noob status until your last post skeevy lol
[Motorola Photon Q 4G LTE] TecknoFreak:
Lmao

Sent from my Atrix HD using ProBAM rom and XDA 4 Premium
[Motorola Photon Q 4G LTE] lslacker:
Isn't this kernel a CM10.2 kernel?
[Motorola Photon Q 4G LTE] arrrghhh:
That comment was directed at Skeevy - when I tried building CM kernels standalone, I always had ramdisk issues. So I just make bootimage within the CM source, no problems.

Skeevy sorted out how to build standalone it seems. Since the ramdisk on CM can change, I still build in the source tree however.
[Motorola Photon Q 4G LTE] skeevydude:
All ya gotta do is dl the latest CM kernel if you see device-common update and rip that ramdisk.

Had a little accident and wiped all the kernel stuff I was working on....bad line wiped everything stored in my $DIR :( so I gotta start again with that zip I uploaded the other day.

If you guys are gonna be there later today, I should have some free time for some twrp icr, probably around 4 central. That's the only guaranteed free time I'll have that won't be late in the evening till Thursday or Friday.
[Motorola Photon Q 4G LTE] skeevydude:
[MENTION=420530]arrrghhh[/MENTION]

Repacked your 10/15 CM2 kernel with the ramdisk from 10/20 PAC. Been 20 minutes now, no crashes, done some gov tweaking, zram, etc, and AHD PAC 10/20 is working as intended with the updated ramdisk. Flashable zip attached here.
[Motorola Photon Q 4G LTE] arrrghhh:
Hm, this seems to indicate my CM2 kernel no longer works on PAC. I did see something about PAC talking to kernel devs to update their kernels... So now I gotta release a separate PAC kernel as well...?

That's annoying. Perhaps I'll just let you do this for me, assuming you are willing to continue :)
[Motorola Photon Q 4G LTE] skeevydude:
I think the problem is differences between the pac device common and cm device common and when you build the kernel. Normally its just pac being a day or two behind, or in this case, just all the commons being updated and not the kernel...see the cm qcom-common and msm8960-common.

I have no problem throwing together an updated ramdisk when its needed. No sense building a whole rom for a kernel when a few drag-n-drops and terminal commands can do a good enough fix.
[Motorola Photon Q 4G LTE] arrrghhh:
I don't build the whole ROM... this is what 'make bootimage' is for ;).

I just don't want to make a third kernel if I can avoid it!
[Motorola Photon Q 4G LTE] lukkypuggy:
What is the latest kennel? 10/15? Out the repackaged one mentioned above,..
[Motorola Photon Q 4G LTE] skeevydude:
Latest from Arrrghhh is 10/15, I just repacked that kernel with the ramdisk from PAC 10/20 so the kernel would boot the rom. If 10/15 doesn't work on your rom the try the 10/20 repack.
[Motorola Photon Q 4G LTE] MistPhoenix:
On 4.3, the last kernel that ran smoothly on my razr m was 9/8 build. Idk what was changed drastically, but all kernel builds recently I have tried, all have some kind of lag associated with it. Has this been fixed in the last few builds? Last kernel I had an issue with was 10/12 I believe.
[Motorola Photon Q 4G LTE] arrrghhh:
I don't know what changed either, I don't really notice a difference.

So what is the lag you experience? Is there a particular app? Just moving around screens?

I just recently got another Q, so I guess I wasn't really running builds from September to compare. If you can find a date where it changes, that would be great. I could narrow it down to a commit then.

Otherwise... there's not really much I can do. This kernel hasn't really changed much from my perspective - I just take the updates from CM and merge them with my original changes.
[Motorola Photon Q 4G LTE] Tinchoska:
Someone on slimbean using this kernel?

Enviado desde mi Droid RAZR HD usando Tapatalk
[Motorola Photon Q 4G LTE] MistPhoenix:
Mostly moving around screens. I tried 9/15 and that was when noticeable lag started occurring. Im on slimbean 1.8.
[Motorola Photon Q 4G LTE] Tinchoska:
Android 4.3.1 sigue siendo 10.2?

Enviado desde mi Droid RAZR HD usando Tapatalk
[Motorola Photon Q 4G LTE] arrrghhh:
Definitely no lag here moving between screens. I spose I need to go back to kernels from September to truly compare, but I certainly do not feel any lag when moving between screens.

Edit - maybe it's the new animations ROM's have been integrating that give you the "perception" there is lag...?

English please. 4.3.1 is CM10.2, yes.

Are you having an issue with this kernel on Slim?
[Motorola Photon Q 4G LTE] Tinchoska:
Sorry for that, I was on automatic and just write... I was asking cause I want to try it on slim... and see if battery life gets better than slim stock kernel

Enviado desde mi Droid RAZR HD usando Tapatalk
[Motorola Photon Q 4G LTE] lukkypuggy:
If I recall correctly... It all happened around 9/14, definably before 9/19. And the lag is ROM wide, not just 1 certain app.
[Motorola Photon Q 4G LTE] TecknoFreak:
arrrghhh can you add fast charge to this kernel? I think it comes handy sometimes

Sent from my Atrix HD using ProBAM rom and XDA 4 Premium
[Motorola Photon Q 4G LTE] lukkypuggy:
Fast charge? Dude this phone charges insanely fast compared to others. Would it blow up if it did charge faster lol?
[Motorola Photon Q 4G LTE] penser:
Atrix HD disagrees.
[Motorola Photon Q 4G LTE] Tinchoska:
Fast charger.... that's for usb connection charging right? If so that could be nice

Enviado desde mi Droid RAZR HD mediante Tapatalk
[Motorola Photon Q 4G LTE] arrrghhh:
I've already been asked this...

Here's my response when this question was first asked.
[Motorola Photon Q 4G LTE] lslacker:
Hey arrrghhh I notice a lot of commits for 10/22. You think we could get a build today? I've been using the stock carbon kernel after the 15th since your kernel doesnt play nice with it. Any ideas why your kernel doesn't work well with the later builds of Carbon, even though there haven't been any kernel commits (ie MMS won't even work at all on later carbon builds)? Is it fairly easy to add governors and overclocking to a kernel? I'm wondering if I could just pull the stock carbon kernel and rebuild with the features I need lol. Instead of having to wait for you on commits and such.

Any tutorials or writeups you can point me towards on building a kernel? Thanks again for all your support of these motorola devices.
[Motorola Photon Q 4G LTE] TecknoFreak:
Great, thanks my friend and good to know too.

Sent from my Atrix HD using ProBAM rom and XDA 4 Premium
[Motorola Photon Q 4G LTE] penser:
If you check the Atrix HD PAC thread, on page 65/66 skeevydude uploaded a kernel that should work.
[Motorola Photon Q 4G LTE] arrrghhh:
I'll get it built. On-site for work, so doing this from a hotel room... Not the easiest setup.

I don't think his kernel has the latest commits - it's basically my 10/15 kernel with PAC's ramdisk - I spose PAC is now doing something different with the framework.jar that requires all the kernel developers to modify their ramdisks.
[Motorola Photon Q 4G LTE] ryuben2k:
i tried to flash it to my CM 10.1.3 stable but the cyanogenmod turns to yellow and the screen became distorted and cnt access. by the way, i used the 10.1 kernel Oct 23. thanks
[Motorola Photon Q 4G LTE] arrrghhh:
What date is CM10.1.3 stable released?

You should try to match a kernel to that date.
[Motorola Photon Q 4G LTE] St.Noigel:
Stable 10.1.3 for XT 907, XT926, XT925 & MB886 is released 09/23

I think thats why 10/23 kernel don`t work!
[Motorola Photon Q 4G LTE] lukkypuggy:
I find the baked in kernel from CM works best with this PARTICULAR build. I've tried MANY versions of this kernel and it just doesn't want to play nice, works great with carbon!
[Motorola Photon Q 4G LTE] pir8man:
Sept. 15th CM10.1 kernel is probably the best choice for that release. The Sept. 29th CM10.1 release may also work. I wouldn't expect any others to be compatible.
[Motorola Photon Q 4G LTE] lukkypuggy:
I've tried back to 9/15 I Believe... And still not much of an improvement.
[Motorola Photon Q 4G LTE] pir8man:
How do u mean? Not booting with either kernel?
[Motorola Photon Q 4G LTE] lukkypuggy:
I've tried since 9/15 till the current one and yes, they ALL boot. But they are pretty choppy compared to the CM10.1.3 stable that came out on 9/23 I believe.
[Motorola Photon Q 4G LTE] mic213:
[MENTION=420530]arrrghhh[/MENTION] I've been building kernels like you do with using cm source and building bootimage and ran into the problem with PAC not working with the CM kernel due to the ramdisk differences. But i noticed that when I built the bootimage, in the folder with the boot.img, there's a file called kernel. I was wondering about it and figured its like the zImage used in the anykernel zips, so I decided to test it with an anykernel zip with CM10.2, PAC, and Carbon and it worked perfect. So, to save you the trouble with ramdisk issues, just use file 'kernel' as the zImage with an anykernel zip.
[Motorola Photon Q 4G LTE] pir8man:
I would suspect your kernel settings before i suspected the kernel itself.

here is what I would do. use no-frills to set wheately governor and row scheduler. max to your processors max listed and minimum to 384mhz. go to settings and block other apps from overriding the settings. then reboot. try it out and report back.

performance should be perfect and decent battery life. then u just need to optimize battery voltages.
[Motorola Photon Q 4G LTE] arrrghhh:
Yes, this is if you want to distribute the kernel to ROM's which have funky needs for RAMdisks... PAC is the only one I am aware of. There's another fellow who is rebuilding my kernel for folks who want PAC.

Thanks!
[Motorola Photon Q 4G LTE] stevie13.xo:
PACs a little buggy.. Checking Auto brightness freezes up the phone for a couple seconds and more but I can't think of what they are
[Motorola Photon Q 4G LTE] lukkypuggy:
Should I use 10/23 kernel with 11/02 carbon?

Or is there a new one coming out soon.
[Motorola Photon Q 4G LTE] arrrghhh:
Yo,

I pretty much update when CM updates. There was a small update to the defconfig today, and there is a new kernel as such :)

See the CM post (#5) about how to track whether my kernel is up-to-date or not!
[Motorola Photon Q 4G LTE] St.Noigel:
Just flash 11.03 CM kernel to Carbon XT907 11.02 nightly and have no WiFi.
[Motorola Photon Q 4G LTE] hugodefcon:
Same here, but on a 925.
[Motorola Photon Q 4G LTE] arrrghhh:
Weird, let me doublecheck the kernel zip...
[Motorola Photon Q 4G LTE] jtommyj:
I can verify that the WiFi is working fine on my xt926 running skrilax 11-4. However it does not turn WiFi on with the older builds. You guys using this kernel may need to update your builds seeing that arrrghhh stated cm just changed something hence the new kernel.
[Motorola Photon Q 4G LTE] arrrghhh:
This is a good point, I also can't find anything wrong...
[Motorola Photon Q 4G LTE] stevie13.xo:
Northing wrong here latest nightly
[Motorola Photon Q 4G LTE] Mykalmunlight:
Wi-Fi

Nov 3 kernel update killed my WiFi too. ROM info attached.
[Motorola Photon Q 4G LTE] arrrghhh:
Update your ROM or stay on an older kernel.
[Motorola Photon Q 4G LTE] Mykalmunlight:
OK sorry.
[Motorola Photon Q 4G LTE] Byakko Custom:
That's a 11-02 Nightly.

You're trying to use a newer kernel on an older nightly.

Did you see when the built-in kernel was built?

Just like arrrghhh said, either update the nightly, or use an older kernel. Try the 10-23 build.

53 65 6e 74 20 66 72 6f 6d 20 6d 79 20 41 74 72 69 78 20 48 44 20 75 73 69 6e 67 20 74 61 70 61 74 61 6c 6b 2e 2e 2e
[Motorola Photon Q 4G LTE] Mykalmunlight:
Yeah I got that when he said it.
[Motorola Photon Q 4G LTE] XBlackChaosX:
I'm currently using CM 10.1.3 and i'm trying to look for a version of arrrghhh's kernal that works for that but so far when i tried the september 29th,30th, october 29 version of the 10.1 versions of the kernal but my screen starts flickering. Is there a version that i can use that wont cause this problem.

I'm using a Droid Razr Maxx HD (GSM)
[Motorola Photon Q 4G LTE] arrrghhh:
Stock kernel works fine tho...? As in the kernel provided with CM 10.1.3.
[Motorola Photon Q 4G LTE] penser:
Hey arrrghhh, I love your kernel, but it looks like some Atrix HD (MB886) people are having troubles with it on Carbon. Could this be the same issue as PAC with Carbon also having a modified ramdisk? Also which would be the correct kernel to use for Carbon, CM2 or stock?
[Motorola Photon Q 4G LTE] arrrghhh:
Definitely do not use stock.

The CM 10.2 based kernel would be the one to use.... perhaps I need to start repacking these with anykernel. Kind of annoying.

I'll doublecheck my kernel works on the latest Carbon. I'm a bit behind testing patches and doing some other things... plus, real life is a drag sometimes :p
[Motorola Photon Q 4G LTE] XBlackChaosX:
Yes, the stock CM 10.1.3 kernal works fine, no flickering or stutters at all, but when i install any of the above kernals that i listed i get alot of flicking and stutters.
[Motorola Photon Q 4G LTE] arrrghhh:
Looks like that was built last around 9/23 or so - did you try my Sept. 15 kernel?
[Motorola Photon Q 4G LTE] XBlackChaosX:
No I haven't. I'll try now and let you know of how it went.

---------- Post added at 03:20 AM ---------- Previous post was at 02:57 AM ----------

So I tried the September 15th build of your kernel for my device and I still get flicking just not as bad as with the others and I also notice stuttering still especially when I scroll either on my home screen or in an app.

Sent from my Droid Razr Maxx HD (GSM)
[Motorola Photon Q 4G LTE] hugodefcon:
Does this kernel support sweep2wake?
[Motorola Photon Q 4G LTE] arrrghhh:
It does not. I was looking into it, seems quite complex to implement - also seems like it would keep the touchscreen on at all times...

Just like that double knock to wake.
[Motorola Photon Q 4G LTE] Jl6owa:
Double tap to wake is very useful function I think, I couldn't live without it on my past phone.

Do you have it in plans?
[Motorola Photon Q 4G LTE] arrrghhh:
Again, just like sweep2wake, the touchscreen has to always be on - which seems like it would drain battery.

Not only that, porting it is probably a bit beyond my abilities.
[Motorola Photon Q 4G LTE] EcHoFiiVe:
Sorry if this has been asked already, but has anyone tried the latest kernel with the latest CM11? About to try it now, just wanted to know if it would work beforehand.
[Motorola Photon Q 4G LTE] kabaldan:
Such feature would have to be implemented directly in the touchscreen firmware (which is just an alien binary blob for us). No chance to do it just by kernel level modification while preserving reasonable battery life.
[Motorola Photon Q 4G LTE] arrrghhh:
I don't believe it works with CM11. I probably need to build a version for that... I think SELinux is required now.
[Motorola Photon Q 4G LTE] EcHoFiiVe:
PSA: Don't try it.
[Motorola Photon Q 4G LTE] jtommyj:
I did yesterday. No go.
[Motorola Photon Q 4G LTE] arrrghhh:
Once my device gets CM11 officially, I'm sure I will be able to build a kernel for it ;)
[Motorola Photon Q 4G LTE] penser:
Would your stock kernel work with our 4.4 AOSP builds or is it for 4.3 or some other version?
[Motorola Photon Q 4G LTE] TecknoFreak:
No it will not work.
[Motorola Photon Q 4G LTE] arrrghhh:
Not sure what you mean "our" 4.4 AOSP builds...

I doubt the kernel is the same, there surely are changes.
[Motorola Photon Q 4G LTE] kabaldan:
Regarding 4.4: So far, there are changes to ramdisk, but no necessary kernel patch yet...
[Motorola Photon Q 4G LTE] arrrghhh:
Ah, maybe that's why AOSP 4.4 didn't boot for me...
[Motorola Photon Q 4G LTE] Coronado is dead:
Should this still work on the new RAZR M Verizon update (stock ROM)? Thanks!
[Motorola Photon Q 4G LTE] arrrghhh:
I didn't realize there was a stock ROM update.

What's the (Android) version number?
[Motorola Photon Q 4G LTE] Coronado is dead:
Not sure, I haven't installed it yet because of my affinity for your kernel ;)

Discussion is here: http://xdaforums.com/showthread.php?t=2512149

I don't know if that title is the number you are looking for.
[Motorola Photon Q 4G LTE] arrrghhh:
Looks like it should be fine.

All I can say is try it and let me know :)
[Motorola Photon Q 4G LTE] penser:
Arrrghhh, any ETA on 4.4 stock kernel? I really love your kernel and I'm running our AOSP build and I love them too. I don't want to have to make a choice.
[Motorola Photon Q 4G LTE] arrrghhh:
Hm? There won't be any stock 4.4 for the moto's. Sorry.

I'd imagine there will be a CM kernel, when that is available :)
[Motorola Photon Q 4G LTE] Coronado is dead:
Do you mean you won't make stock 4.4 kernels? Because Moto hasn't decided if 4.4 is hitting the M/HD yet. Their site says 'Future Plan Comming Soon.'
[Motorola Photon Q 4G LTE] arrrghhh:
I can't make something which there is no source for yet.

If moto drops kernel source for a new kernel, I can definitely revamp my stock kernel source. So far, based on what I've read, the moto update is 4.1.2 still... not even sure if they made any kernel changes, probably not.
[Motorola Photon Q 4G LTE] penser:
What's the difference between Moto's kernel and the kernel dhacker and skeevy are using to build 4.4 AOSP? And I'm assuming a 4.4 kernel for, say, N4 would brick us?
[Motorola Photon Q 4G LTE] arrrghhh:
My device won't boot AOSP.

Sorry.

Don't flash kernels which are not meant for your device...
[Motorola Photon Q 4G LTE] Coronado is dead:
Ah, I just misread you. I thought you were stating that Moto had changed the future plans to 'Staying on 4.1.2' is all.

Thanks for the clarification.
[Motorola Photon Q 4G LTE] Coronado is dead:
I installed it on the new update, and it seems to be running great!
[Motorola Photon Q 4G LTE] arrrghhh:
Well, my device does boot AOSP!

Managed to get it built today - the kernel doesn't look any different, but I would imagine there are RAMdisk changes...

I'll look into this, should be pretty simple, although will require a different boot.img.
[Motorola Photon Q 4G LTE] RyogoNA:
Sorry if I may sound lame.

I wanted to ask how come that 4.3 roms on xt926 work quite smooth, almost without any stutter and 4.3 roms on xt907 are really laggy. Hell, even 4.2 roms have graphic glitches on xt907 that mb886 and xt926 don't have.

Is there any specific reason of this? Like x907 needs some device-specific optimizations of kernel or else?
[Motorola Photon Q 4G LTE] TecknoFreak:
That is great
[Motorola Photon Q 4G LTE] Blackest Pain:
So will the kernel boot with AOSP 4.4 on Atrix HD?
[Motorola Photon Q 4G LTE] arrrghhh:
It seems like just the ramdisk has changed. Let me repack it and see.
[Motorola Photon Q 4G LTE] timpohladthomas:
I can attest to this kernel running awesome on 4.4. Good work arrrghhh!
[Motorola Photon Q 4G LTE] Coronado is dead:
I simply cannot wait for the 4.4 update and for great people like arrrghhh to be their hands on the new kernel. Amazing work arrrghhh.
[Motorola Photon Q 4G LTE] jtommyj:
Where it be? Where it be ? Been jonesing for an arrrghhh kernel since 4.4 busted on the scene lol
[Motorola Photon Q 4G LTE] arrrghhh:
Haha, I wanted to test it out first ;)

Looks good to me, I will be uploading shortly!

Edit - kernel is up, check the CM post. Enjoy!
[Motorola Photon Q 4G LTE] timpohladthomas:
Haha...sorry mine was built inline with my ROM.
[Motorola Photon Q 4G LTE] penser:
Awesome! Its working great! By the way, arrrghhh, I've been meaning to ask, why do you comment out the giant syringe in your updater-script?
[Motorola Photon Q 4G LTE] jtommyj:
OK I'm looping so I'm doing something wrong apparently. On xt926 , ART enabled. Doing some digging now. Tried without ART with same results. Is anyone else using xt926 with good results before I do too much digging? Nandroid is my friend lol.
[Motorola Photon Q 4G LTE] arrrghhh:
Just some leftover stuff from the updater-script I pulled to make it in the first place. After flashing this latest one, seems I need to make a new one for AOSP - and I'm not sure if it's the new TWRP or what but the box of asterisks didn't fit in the screen at all!

Which 4.4 ROM are you flashing?

Also, this shouldn't be required - but did you try doing a factory reset?
[Motorola Photon Q 4G LTE] jtommyj:
OK, just as a little background I'm a crack flasher from way back lol. OK, all clean flashes. Both dhackers and epinters 11-19 builds using dhackers 11-18 kk gapps, pa 4.4 gapps, and still looping. Once it did attempt to boot but got immediate FC's on theme engine and NFC service and wouldn't allow me to move forward. So I think before I put anymore time in I'll wait until someone with an xt 926 has success. Fwiw all your previous kernels have been awesome with no issues whatsoever.