yashsingh1/xdaforums huggingface dataset:
[X Play Original Android Development] dictionary:
I think they are just saying that this is a kernel thread, and you shouldn't speak about other modules/applications.

I kind of see both sides. This thread really isn't the place to discuss issues for other things, but on the flip side, this kernel may be the cause of your issue with the other thing. Guess it's really just up to squid to decide, just hope the thread doesn't get derailed.

Speaking of which, since you don't have a thread up and you've mentioned it, how's cm12.1 [MENTION=6485916]squid2[/MENTION] ? I know you have certain issues, but other than those, how would you say it performs over stock? I guess this can be asked of [MENTION=1829889]vache[/MENTION] as well.
[X Play Original Android Development] squid2:
It's making progress. All the important things are working now. NFC, Camera, GPS, LED notifications, and the init binary are all working. What's needed now is a lot of cleanup and optimization. It's not as smooth as I'd like and there's a lot of cruft that was thrown in trying to make it work needs to be sorted out.

[MENTION=1829889]vache[/MENTION] had already taken care of the bulk of hacking things together to get it to mostly work. I've started cleaning and fixing things to get it into a more polished state.

You can follow our progress on GitHub here: https://github.com/boulzordev/android_device_motorola_lux/commits/cm-12.1
[X Play Original Android Development] ephumuris:
So what's the general consensus. Does this kernel actually break Moto voice. Or is that down to xposed?
[X Play Original Android Development] dictionary:
Man, now I'm itching for cm12.1 lol. Once these little lags are gone, this phone will be perfect. I miss my IR sensors, but I can manage.
[X Play Original Android Development] Nico3d3:
Personnally, for the first time ever on a cellphone, I can live without CyanogenMOD. I can't live without MotoVoice and MotoAssist and the interface is already bare to the bone. All I need now is a kernel optimized to use all the possibilities of that phone.
[X Play Original Android Development] dictionary:
Well, that's really the reason I want it lol. To finally fix this horrible lag at times. My 2014 X feels so much smoother. Also, if we could get a way to wave over the screen using the proximity sensor to wake the device. I'm currently using ACDisplay.
[X Play Original Android Development] Nico3d3:
I understand and I certainly wouldn't mind to have a little less lag but I do hope it will possible to get rid of the lags with only a tweaked kernel.
[X Play Original Android Development] dictionary:
Agreed
[X Play Original Android Development] bongd:
I think I can live without a custom ROM for once as well. After this kernel fixes some of the lag and brings in some nice optimizations I'll be happy as a clam.

Tested it out and it looks promising. My battery life is normally great but sometimes leaves a bit too be desired. Watching this thread line a hawk for updates lol
[X Play Original Android Development] LuizHenrique91:
I have seen lots of MXPlay users report that has kernel problems, that cause lags and battery drains.. As a user, I notice that too, but how do we know that's a kernel's problem? I mean, I don't doubt it is, I'm just curious about how can we say this. Did some experient user make some test that proves? Did Motorola confirm?
[X Play Original Android Development] Devhux:
In all fairness we don't fully know, but in general, rom/kernel developers are great at maximizing performance.

It just takes some time.
[X Play Original Android Development] daviss101:
Thanks for the kernel, how do you control the led? Couldn't find anything in settings? thanks
[X Play Original Android Development] paugustin:
You don't, it's limited to notification.
[X Play Original Android Development] Zobat:
Probably lame question but does this kernel support init.d?
[X Play Original Android Development] squid2:
Squid Kernel r8b for Lux

Great news everyone! I've fixed the Moto Voice bug in the previous version. I also updated to Linux 3.10.88. The download is up on the first post.

You may be curious as to how I was able to fix it even though Motorola hasn't yet released kernel sources for this device. Today, Motorola released kernel sources for the higher end Moto X Style (clark). It's a completely different device, with a totally different chipset, but it happens to have the same audio codec used for AoV (Always on Voice, a.k.a. Moto Voice). I just ported over the audio codec patches from Clark to Lux, and voila, Moto Voice worked.
[X Play Original Android Development] r3flux:
Kernel working fine. Moto voice working (was setup before install). Lollipop xposed working. Battery drain is fast. Not experiencing much lag (my one plus one was laggier). Using kernel auditor to reduce minimum processor speed. Thanks for a good job!

Request: double tap to wake possible? :D
[X Play Original Android Development] Berlino:
Yes sure. :good:
[X Play Original Android Development] Ahmed29sam:
Will this effect the quick charge on Moto x play
[X Play Original Android Development] Forbizzn:
Nope, had this kernel installed for 2 months and doesnt affect quick charge. Charges from about 10 % to 100% in 1 hour 30 min approx.
[X Play Original Android Development] Ahmed29sam:
Thanks mate! Pm me to get add in Moto x play WhatsApp group
[X Play Original Android Development] eskamhl:
I'm facing some reboots but it's only since few days, I'm using 11d kernel with a stock rooted+xposed rom.

I'm not sure it's kernel related but I didn't install any new module or kernel related app recently so I don't know what to think.

I've attached sys/fs/pstore folder if [MENTION=6485916]squid2[/MENTION] or someone else can help :angel:
[X Play Original Android Development] squid2:
Hmm, the log shows a crash caused by NULL pointer dereference but provides little context of what's going on. The call stacks seem to show nothing going on in kernel space. Here's the meat of the crash:

5373.713378,0] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[ 5373.713404,0] pgd = c0004000
[ 5373.713411,0] [00000004] *pgd=00000000
[ 5373.713424,0] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 5373.713431,0] Modules linked in: wlan(C)
[ 5373.713446,0] CPU: 0 PID: 32118 Comm: kworker/0:3 Tainted: G C 3.10.93-g15931b7-01591-g374a36e #1
[ 5373.713460,0] task: cd630a80 ti: df312000 task.ti: df312000
[ 5373.713476,0] PC is at process_one_work+0x28/0x538
[ 5373.713483,0] LR is at worker_thread+0x12c/0x428

I haven't encountered any such crashes myself and don't know what the cause is, particularly due to the vague nature of the call stacks down in the log. Usually, what are you doing when the reboots occur?

If the same type of crash starts happening for others, I could try making a build with CONFIG_DEBUG_OBJECTS_WORK enabled for more detailed logs for this type of issue.
[X Play Original Android Development] eskamhl:
This last time I was doing many stuff at once. Like installing an heavy apk in background, loading an heavy site with chrome but when I scrolled fast through the homescreen ( Nova ) and touched an icon the phone got stuck for a second and then rebooted itself.
[X Play Original Android Development] paugustin:
Just had a reboot but pstore folder is empty ?

Edit : I don't see the files because I am not root. Should be able to get them through TWRP...
[X Play Original Android Development] baleoncito:
Does not enter Deep Sleep, a solution please? I have installed Rom Stock
[X Play Original Android Development] scottdanpor:
Flash again and clear cache. Mine sleeps well with stock rom. If that doesn't work you'll have to figure out which app is keeping your phone awake. Better battery stats will tell you.
[X Play Original Android Development] manan001:
Hey [MENTION=436307]squid[/MENTION] bro r u anymore working on this kernel???
[X Play Original Android Development] carl_oak:
The last update was just 15 days ago. That's not too much for a kernel. I please be patient. I'm sure [MENTION=436307]squid[/MENTION] is getting his attention on personal things and cm13. :)
[X Play Original Android Development] Davirus849:
I found it very stable for now. I don't feel there's is a need for an update soon.
[X Play Original Android Development] roberth1990:
Location services is often the saboteur, mine wouldn't go into deep sleep untill I disabled it.
[X Play Original Android Development] stazz83:
Guys, how many of you use the lionfish CPU governor and what are your exact settings for the big.LITTLE core clusters, please? Meaning, do you enable it for both big and little?

Currently I'm on stock squid settings and would love to try the lionfish way, but I'm not sure if I understand the governor well enough to get the best of it.
[X Play Original Android Development] LuizHenrique91:
Squid explained how it works. It's like a conservative governor, but with higher frequencies when needed.

I tried it once and it's really more power efficient, but I felt the phone a little slower, so I returned to interactive.

I think you need to set it up for the two clusters.
[X Play Original Android Development] stazz83:
I'll try out different settings. St the moment it's interactive big and performance LITTLE.

I'd be happy to know about experience and tips of the others as well. Cheers!
[X Play Original Android Development] scottdanpor:
I'll just say, don't use Lionfish for both and 200MHz minimum. It worked for me for a while but after a couple days resulted in a bootloop with optimizing apps every time. I'm not knocking it, probably 200 was too low.

I'm running interactive now with stock rom.
[X Play Original Android Development] LuizHenrique91:
I use a xposed module to change the governor to lionfish with the screen off, performance for selected games and interactive by default. I couldn't note some battery life gain with screen off yet, because I started this setup yesterday.

For gaming, I felt the performance better, but it drains more battery. Fair :laugh:
[X Play Original Android Development] stazz83:
I just got the device yesterday and I won't play with minimum frequency for now. Let's see how the first battery discharge goes.

I'm very happy with the smoothness of Squid kernel, comparing to the stock experience.
[X Play Original Android Development] DARKEASC:
With 11d i have random reboots too in stock ROM, i am not using xposed. I just rolled back to r10g and the problem is gone.

I flashed r11d again and it crashed while playing a video with MX Player.

How can a create a log to post it in case it crashed again?
[X Play Original Android Development] squid2:
Logs after a device reboots due to a kernel panic are available in /sys/fs/pstore and are visible to root.

My suspicion is that conflicts between ClusterPlug and the stock ROM power/performance management [mis]features are still causing problems. Try disabling ClusterPlug after bootup by running as root:

echo 0 >/sys/module/cluster_plug/parameters/cluster_plug_active
[X Play Original Android Development] DARKEASC:
No more reboots observed. Attached the logs in the pstore folder. If it reboots again, i will post the new logs.

Thanks
[X Play Original Android Development] squid2:
Thanks for the logs. They appear to show exactly the same crash pattern that [MENTION=2205551]paugustin[/MENTION] had on the stock ROM with r11d. Try running my new r11e build (where ClusterPlug is disabled by default on the stock ROM where it conflicts) and see if you encounter any more crashes.
[X Play Original Android Development] squid2:
Squid Kernel r11e

I've posted a minor maintenance release that fixes some race conditions in CPUFreq code along with other bugs. It also disables ClusterPlug by default on the stock ROM due to problems that can occur when it conflicts with power management features of the stock ROM. It will remain enabled by default on recent CyanogenMod builds and similar ROMs (such as PAC ROM by [MENTION=4493088]Shreps[/MENTION]), as those ROMs are intended to work with ClusterPlug.
[X Play Original Android Development] nicopi:
can i use this kernel on stock rom?
[X Play Original Android Development] scottdanpor:
The post right above yours should answer your question, as well as the changelog in the OP. And the installation instructions.
[X Play Original Android Development] dictionary:
Bingo. And people wonder why we get so frustrated sometimes with people, smh.
[X Play Original Android Development] AtomicStryker:
Would the CPU freq issue you mentioned have led to problems with sound, possibly? With 11d i had problems with the sound getting stuck on "low power" mode or even not working at all after plugging/unplugging of headphones and Google Play being interrupted by phone calls.

For that matter, even on stock there was this strange "amp up" when sound started playing from standby, the first second would be really quiet, only then would the speaker dial up and get somewhat audible. Is that normal on the MXP?
[X Play Original Android Development] Lavesh05:
Is there any way to turn on led notifications without root?? I want to get future official updates so i dont want to root it
[X Play Original Android Development] XxStatiX:
Nope.

Sent from my XT1562
[X Play Original Android Development] Electric Flute:
In fact, rooting won't prevent you to receive OTA update. Custom recovery does.

Just root with temporary custom recovery, so you can keep stock recovery to still receive OTA.
[X Play Original Android Development] K.khiladi:
Nope you can't.
[X Play Original Android Development] Lavesh05:
Can u guide me how to do that? I just want led notifications and future offical updates
[X Play Original Android Development] Gopinath15:
Check Google. How to unlock bootloader of moto x play. And once you finish doing. You can install twrp recovery and install this kernel.

One by one. Ping me thr hangouts if any help needed
[X Play Original Android Development] K.khiladi:
If anyone flashes custom kernel like squid kernel, then even when he has just temporary custom recovery how can anyone install ota when the phone runs on custom kernel?

Moreover I don't think it's good to have temporary custom recovery as anything can go wrong and custom recovery can save the phone by going back to old build.
[X Play Original Android Development] Ahmed29sam:
Please add double tap to wake in your next update if possible! We would love it. Thank you
[X Play Original Android Development] eskamhl:
I must admit that I haven't faced self reboot with r11e since the release, excellent work [MENTION=6485916]squid2[/MENTION] :)

PS: I vote for the dt2w too, if it can be implemented :P
[X Play Original Android Development] Higgsy:
Getting some random reboots with 11e and 01/12 CM 12.1 build. See below the last_kmsg. Seems to be having issues mounting partitions, forcing mount and then deciding to reboot.

http://pastebin.com/7FqCS8yw
[X Play Original Android Development] Damian:
Installed on xt1562 5.1.1 dual sim and i receive boot loop. Any suggestion?
[X Play Original Android Development] paugustin:
What rom? I'm using an XT1562 dual sim with no issue.
[X Play Original Android Development] sas46:
My phone says that I've got headphones plugged in (and I haven't) and it's causing no audio from any speaker, I can't even male any call because of it

Can it be a kernel fault? Mine is 10g
[X Play Original Android Development] manan001:
No first check if any pin is permanently pressed in jack.
[X Play Original Android Development] Kraken99:
Please add DT2W gesture if possible. Thank you for the wonderful kernel.
[X Play Original Android Development] Damian:
LUX_RETASIA_DS_5.1.1_LPD23.118-22_cid7_subsidy-DEFAULT_CFC
[X Play Original Android Development] dreinulldrei:
Hi there, just gave this a try... r11e on Dual SIM 1562 with French 5.1.1. So far working well, however, I can't get the notification light to work. Tried a few apps to set LED, but no luck so far. I am using the stock ROM. Any ideas where to push to turn on notification LED support?

squid2... thanks for releasing this!
[X Play Original Android Development] LuizHenrique91:
Are you sure you flashed the kernel properly? It should start to work right after you flash.
[X Play Original Android Development] dreinulldrei:
Used squid2's TWRP build and system info showed me the correct kernel dated 2015-12-01... If there's anything in particular to check... I can do this... fully rooted and know how to work with the usual tools.
[X Play Original Android Development] LuizHenrique91:
So I don't know. Anyone?
[X Play Original Android Development] meisanerd:
Yah, it should be working by default in most of the usual apps (gmail, sms, etc...). You could try installing Lite Flow Light (https://play.google.com/store/apps/details?id=com.rageconsulting.android.lightflowlite&hl=en) and run a test to see if it comes on.
[X Play Original Android Development] dreinulldrei:
I did but it simply did not show any light coming on. :(

Trying to figure out if there's anything I might check, e.g. some config file or similar...
[X Play Original Android Development] paugustin:
OK, same as mine and it works flawlessly. Can you try resetting your phone and flash the kernel again.
[X Play Original Android Development] scottdanpor:
Tap the edge of the screen when it is laying flat and it will activate the screen. Dt2w is redundant on this phone. Now knock code, that would be something useful but likely not possible.
[X Play Original Android Development] Damian:
I tried 3 times with freshly installed and rooted rom. What kernel version are You using?
[X Play Original Android Development] paugustin:
I'm using r11e.
[X Play Original Android Development] Damian:
I have exactly the same.
[X Play Original Android Development] dreinulldrei:
BTW... I used squid2's TWRP r4 to flash (the one with the fix for Aroma installers). As everything else is working AND because it DOES flash the kernel, I am assuming that this is not the culprit. Maybe someone can shed some light if there is something in the installation ZIP that could go wrong (leading to the correct kernel being used and displayed in phone settings but breaking notification light).
[X Play Original Android Development] scottdanpor:
I take it this isn't meant to work with stock marshmallow? I gave it a try and got stuck at the Android boot logo. I hate not having led. ?
[X Play Original Android Development] paugustin:
No this is for Lollipop.

---------- Post added at 05:25 AM ---------- Previous post was at 05:24 AM ----------

Are you using the latest TWRP by Squid2 to flash?
[X Play Original Android Development] manan001:
After using the latest build i find that when i change big or little default governs to any other governs i get random boots or SOD. then i need to reboot the phone. once i reboot for sometime it works and again SOD starts. for example i tried to change big cores to conservative and small to Lionfish.
[X Play Original Android Development] dreinulldrei:
Which one would this be? R4 with patches for Aroma? That to my understanding is the latest...
[X Play Original Android Development] Damian:
[/COLOR]

Are you using the latest TWRP by Squid2 to flash?[/QUOTE]

No. I'm using this one: twrp-lux-2.8.7-v2

Can You tell me what version i should use?

Or give a url to download please.
[X Play Original Android Development] scottdanpor:
That is the proper version. You are using the Gmail app? I tested by sending myself an email (Nine app) and then turning off the screen, it just worked with nothing extra to do. :silly:
[X Play Original Android Development] Damian:
Yes i'm but not gmail is a problem here. I just want to know what TWRP version i should use to flash this kernel on rooted stock rom without boot loops. When i flashed with this one above i had boot loop.
[X Play Original Android Development] scottdanpor:
You're using the same one I used. But it never hurts to try the other one, it's worth a shot. Also maybe download the kernel again just in case you have a bad download, if you haven't tried that already. I hope you get it sorted.
[X Play Original Android Development] Damian:
Kernel was downloaded separately for each flash. Everytime i had a bootloop. Newest ver. of kernel and TWRP as above.
[X Play Original Android Development] Manpreet-Singh:
Thank you for sharing information.
[X Play Original Android Development] Pumpino:
Should this kernel work with CM13? It bootloops for me. I'm guessing it being "based on stock" means that it won't work.
[X Play Original Android Development] dictionary:
Stock 5.1 and cm12.1. Cm13 already comes with a custom version of this kernel
[X Play Original Android Development] manan001:
does any one face following issue:-

1)during on going call if i plugin handsfree and whne screen goes off i am unable to wake the screen.

2) during call when i click on loud speak if i want to disable loud skeaper i am unable to wake to screen.

is such issue faced by anyone? i am using latest kernel of squid2 and open gapps.
[X Play Original Android Development] LuizHenrique91:
which ROM?
[X Play Original Android Development] manan001:
Cm 12.1 squid2 rom
[X Play Original Android Development] Pumpino:
Will we be seeing a kernel for stock Marshmallow soon?
[X Play Original Android Development] paugustin:
Why do you even ask? Android 6 has not even been officially released on the X-Play. Just wait and see, as always an Android M kernel will be released when someone is ready to release one.

First rule of XDA: you should not ask for an ETA.
[X Play Original Android Development] LuizHenrique91:
Squid plans to release a version of his kernel compatible with Marshmallow soon
[X Play Original Android Development] DARKEASC:
Hello squid, 3 random reboots again in a week. Logs attached, can you check them, please?

Edit: I am in stock ROM
[X Play Original Android Development] amunarjoh:
I've seen a couple of reboots as well. Once during deleting pictures from the gallery, and once when deleting some youtube favorites.
[X Play Original Android Development] Nico3d3:
I don't want to be pushy, I understand it can't always happen in the blink of an eye especially while we're barely starting to see Marshmallow OTA being pushed by Motorola (Canadian OTA appeared yesterday). I was just wondering if the modified version of squid kernel used in CM13 would work on stock Marshmallow?
[X Play Original Android Development] begemot.pipu:
Marshmallow already officially relised for moto x play))
[X Play Original Android Development] droider007:
To make 6.0 compatible kernel, kernel sources are needed which is not released by motorola yet
[X Play Original Android Development] begemot.pipu:
Ok, but you told about marshmallow in previous post)
[X Play Original Android Development] Nico3d3:
Oh you're right about source code. Now, I remember the saga about the long time we had to wait to get kernel source for the original Lollipop kernel. I remember it was frustrating and we all agreed that Motorola was violating the GPL because they fail to release source code as soon as something new is released. I checked on Motorola's GitHub and indeed, there's nothing related to Marshmallow yet: https://github.com/MotorolaMobilityLLC/kernel-msm
[X Play Original Android Development] squid2:
Thanks for the logs. Unfortunately I don't know what's causing your reboots. The log is reporting a soft lockup on CPU 0 leading to a watchdog timeout. It appears to be getting stuck in some networking code. I've never seen this lockup before. I've only been running CyanogenMod lately and haven't had any unexpected reboots for months. Next time you encounter such a crash, capture a log again and I'll look for similarities in the backtrace.
[X Play Original Android Development] squid2:
Squid Kernel r11f for CM13

I've posted a CM13 compatible build. The file is named squid_kernel_r11f-lux-marshmallow.zip. This build is meant for CM13 only. It might work on CM12.1 , but it will likely misbehave on the 5.1 stock ROM. It will also not work on the 6.0 soak test. Lollipop users should stay on the r11e build.
[X Play Original Android Development] droider007:
R11f has KCAL support?
[X Play Original Android Development] anks095:
can I install it on stock marshmellow ?
[X Play Original Android Development] scottdanpor:
Seriously? You quote the entire first post AND can't read a few posts back?