yashsingh1/xdaforums huggingface dataset:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
Here's my setup for slightly better battery, using Kernel Adiutor to tweak all this stuff:

Max CPU frequency: 1094mhz

Min CPU frequency: 200mhz

CPU governor: yankactive

Max GPU frequency: 310mhz

Min GPU frequency: 100mhz

Make sure you set the Apply on Boot option for all this stuff in Kernel Adiutor so it gets reapplied even after you reboot your phone. Also, perhaps you should set the Apply on Boot Time Delay to Immediately (0 seconds) in the app settings so there's no delay when the app automatically re-applies what you did on each reboot

EDIT: Just realized I posted this in the wrong thread, thought I was posting for SomeFeaK. Anyway, if the yankactive CPU governor isn't available in Squid Kernel, just use interactive or ondemand, that should be good enough
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Squid Kernel r20

After a long break, I've prepared a new version of this kernel. This is mainly a maintenance release to get up to speed on security patches, as well as bring in various upstream bug fixes. This kernel is probably the best patched kernel available for this device family as of today - there are hundreds of security-relevant patches here that haven't yet made it to the LineageOS kernel. This is partly a matter of patching policy - for LineageOS, apart from ASB patches, we carefully assess necessity and impact of each change prior to inclusion, whereas here, if I see a security patch that looks relevant, I cherry-pick it without much further analysis. Backporting all these changes to to the LineageOS kernel will be a very time consuming undertaking.

As before, the kernel should work on both Marshmallow and Nougat ROMs, and both stock and custom ROMs. The download is on the downloads tab.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Orjakone:
Working perfectly on Lineage OS, congratulations on your work [MENTION=6485916]squid2[/MENTION]
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] vicente001:
WiFi problem un AOSP-CAF.

Hi, excellent work!

But, i have a problem with the kernel.

Apparently, it is not compatible with AOSP-CAF 7.1.2 ROM.

At the time of installation, the WiFi stops working, showing the networks but not connecting to any.

When trying to connect to my WiFi, it shows "Saved" or "Authentication error".

That does not happen in the default kernel.

Edit: Added kernel log.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Ethan:
"Updated WiFi driver from CAF"

Well, when we installed a ROM caf (like AOSP-CAF) The WiFi only receives the error "Authentication problem"
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] LunarEclised:
would it be possible to add autoSMP hotplug as I prefer it over inteliplug. I would really appreciate it
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] sgace2:
Are the wifi problems fixed?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Alex230799x:
Well, i don't have any problem with the last versión. (r20)
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] fash99:
This kernel have the led notification turned on by default? Thank you
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] soaringowl2145:
So, what is the lowest SAFE frequency to undervolt harpia?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] anupritaisno1:
Hi just a question, can I send you pull requests for security patches on your repos?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Squid Kernel r21

This is mainly a maintenance release with security updates. I also cherry picked commits needed for Oreo support, so it may work on Oreo ROMs, but I have not tested it on Oreo. I only tested on CM14.1. This should also support the stock Marshmallow ROM, but if you had camera issues with your ROM version on r20, you'll still have them on r21. I have not yet added support for stock Nougat on harpia or lux - that will come with the next build.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] abhimanyuk:
Tested on stock 7.1.1 working great bro but camera not working
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Ashishsassy:
what chances are this kernal working with cdroid rom?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] CarterCox:
An update!! Awesome!! Never thought this would happen! Thanks!

By far the best kernel available for our device!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Gokulb1:
I tried on aex oreo... and sry to say it wnt work...stuck at bootlogo...
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ninjakira:
Maybe if you actually read the developers post instead of commenting blindly like on Facebook you would know its only for marshmallow and nougat ROMs not oreo. Try some freak 2.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] HlebK:
Camera doesn't work on the latest LoS build from 03Jan
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] lochNESSIE:
This isn't the LOS thread pal
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] HlebK:
It doesn't work with Squid kernel. Once I've restored built-in - camera works again.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
It needs the r22 version which I’ll be releasing when I get back from my work trip abroad. The code is done, I just need to build and release it.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jsday187:
Talk about a severe case of Foot-in-mouth disease [MENTION=7843264]ninjakira[/MENTION].

Here you are belittling a fellow XDA member [MENTION=5316036]Gokulb1[/MENTION]), for doing something you deem to be so heinous, you felt the need to inform them of their (allegedly) wilful ignorance, with an excessively patronizing response.

The irony of this is that, in doing so, YOU became guilty of the very thing you so condescendingly berated the other user for doing, namely: Not reading the developer's posts, and "Commenting blindly like on Facebook."

The developer's last post in this thread, which is literally 3 posts previous to the one that you took offense to, clearly states that commits were added to the most recent kernel revision with the intent of adding support for Oreo, they just hadn't been tested.

It would seem to me that [MENTION=5316036]Gokulb1[/MENTION] was directly responding to squid2's addmission of not having tested it on Oreo, by posting that he flashed the latest Squid Kernel revision on an Oreo ROM, but it resulted in a bootloop.

Maybe next time you should take your own advice as to avoid making of yourself a hypocrite.

In addition, the name of the kernel you suggested they try instead is SomeFeak 2 (link to thread), not "some freak 2." (just a friendly FYI)
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Squid Kernel r22

This update brings a large serving of security updates. I finished it ten days ago on New Year's, but I only found time to release it today. Despite the branch name, I'm not formally supporting Oreo based ROMs at the moment. I've tested this on LineageOS 14.1, but it should also work on similar ROMs and on stock Nougat.

This release also brings updates to camera drivers, with support for newer userspace drivers found on Nougat ROMs for harpia and lux. Be aware that ROMs with old camera drivers will not work on this new release.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] anupritaisno1:
That's really expected, looking at how you picked commits to support 64-bit binders and did not pick any support commits for the 32-bit binder which the device actually uses
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
I don’t know what you are talking about. The binder code I’m using is byte for byte identical to what every Oreo ROM for this device is using. I haven’t tested on Oreo, some headers may be different, and I’m using WiFi as a kernel module for Nougat support. This is why I’m not formally supporting Oreo at the moment.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Squid Kernel r22b

This is a minor release with bug fixes related to the audio drivers. It should fix the ACDB loader (fixing low audio volume, speakerphone etc.). It also has some audio driver related security fixes. As usual, the download is on the downloads tab.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] CyanonyMous:
it works with rom 8.1, it has no errors?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] varikap:
Good morning ... sorry for my google-english translator.

For the camera to work? I have to modify something?

ROM version: [ROM] [OFFICIAL] [7.1.2_r24] RESURRECTION REMIX [5.8.3]

Thanks for your work.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] HlebK:
Hi, you don't need to modify, just install it.

BTW, r22b works well with the latest LoS build.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] varikap:
google.camera 4.2.035 = error

Camera motorola v 5.1.13 = error

camara org.cyanogenmod.snap = error

all give communication error with r22b. with r21 ok.

Thank you.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DXTN1:
lemme respond to this one: (en español más abajo)

So the new kernel updated the camera drivers, so the ROMs that didn't updated yet can't interface with the camera, In the response you've been recommended LineageOS, but I like RR better, it's better in all aspects.

El nuevo kernel actualizó los controladores de cámara, por lo que los ROMs que no se actualizaron para usarlo no van a poder hacer interfaz con las apps de cámara, En la respuesta que te dieron recomendaron LineageOS, pero la verdad prefiero RR, es mucho mejor en todos los aspectos.

Espero haber sido de ayuda, mi estimado Madrilense, un placer ayudar a gente latina en foros en inglés :V
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] FallenOcean:
Hey bro, be careful ... There are rules that says you must write in english and optionally write below in your native language

Don't get angry with me, the reason I'm telling you this is because there are moderators or some people that will warn you and taunt you in a rude way ... Have a great day
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DXTN1:
ow $hit, been posting for a while, never managed to read the rules, I'm editing it with the english tranlsation up top. thanks for the heads up m8
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] varikap:
ok, ok I understand that it does not work with RR, (for not being updated), my question would be ...: Is there any way to include drives or Camera app to correct the error, or can only update current rom?

Your response in Spanish is appreciated, so as not to break the rules, I accept it in English. Thank you very much.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] FallenOcean:
Hello bro ... The "followers" of "Squirt" Kernel (haha) and SomeFeaK Kernel are waiting with a lot of anxious that holy Camera Driver. Because Nougat and Oreo in Moto G4 Play Camera doesn't work very well with those awesome kernels. Only that fix, and we will be happy

[Spanish Rocks!]

Hola hermano ... Los seguidores del Squid Kernel y SomeFeaK Kernel estamos esperando con muchas ansias ese bendito driver de Cámara. Porque tanto Nougat como Oreo en nuestros Motos G4 Play no funciona correctamente con esos geniales kernels. Solo ese arreglo y todos estamos felices...

By The Way ... Why [MENTION=5817781]facuarmo[/MENTION] call his nice kernel "FeaK" ?? :S

https://www.urbandictionary.com/define.php?term=Feak ... It's so weird jajaja ... A "Wet Fart with Excrement" ??? Hahahahahahha
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jasonmerc:
He said he won't be supporting Oreo I believe, hell just be working on getting the kernel functional for Nougat for now.

And I'll have to tell facuarmo that, I don't think that was his intention ??
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DXTN1:
Hahaha it's obviously referring to the toned down, more colloquially used definition that refers to a weird guy. Imho SF has battery issues, but I love the over/downclocking capabilities.

PS. It's too bad there isn't a forum as reliable as xda in Spanish (there's htcadictos, but nothing as professional as xda), but one can manage nowadays in foreign languages.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] varikap:
:good::good:@DXTN

"PS. It's too bad there isn't a forum as reliable as xda in Spanish (there's htcadictos, but nothing as professional as xda), but one can manage nowadays in foreign languages."

:good::good:

It is true, a long time ago that in the forum "htcmaniacos" the subject was very relaxed ...

at least on this phone ...:crying::crying:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] HlebK:
There's some bug with the latest LOS from 24.01.

When I unplug earphones, LOS thinking that earphones are still in jack.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Why is this being reported here vs the LOS thread?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DXTN1:
Why is this still reported here, that's an old bug
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] HlebK:
It's not recorded for me with in-built kernel.

I'm facing with this first time and I 've never faced with this before.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] pinofly:
Screen goes black on calls

I just installed the 22b version on a stock nougat and each time i make a call the screen goes black as if i had it on my ear. Has anyone this problem?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Sounds like your proximity sensor is acting up. While you device is in a state where the screen goes blank on calls, try using a sensors testing app and see if the proximity sensor works in those. Also share a dmesg log from when you're in this state.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Skeeterdrums:
I've noticed some issues with Bluetooth audio connecting as well as headphone audio issues with the latest version on nouget. I had to restart multiple times to clear these issues, so I ended up back on version 22. Is the latest version still backwards compatible?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MICTOL:
Hi, i'm new here, just want to confirm, if you install this kernel (r22b) on lineage OS 14.1 build and then (using the lineage ota updater to ) update to a more recent nightly build, will the new nightly build kernel override this ? Thanks Squid for this awesome kernel by the way.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] spiked_mistborn:
It will override. Looks like the next LOS 14.1 nightly that's due any time now includes kernel fixes for the headphone detection issue and I think the video recording issue also, so you might want to use the stock kernel after the next update unless you don't need these fixes.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MICTOL:
Thanks spiked for the reply. This means, if i want to keep this kernel I shouldn't update the lineage build right? I get no heating at all with this kernel Vs the lineage's.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] spiked_mistborn:
You can update the LineageOS build, and all you have to do is reinstall the squid kernel after each update. Enabling advanced restart in developer options makes this process pretty painless. Download update, reboot to recovery, flash update, flash kernel, profit.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MICTOL:
Nice! Thanks once again spiked and also Squid. You guys are awesome.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hockeymikey:
I'm having issues making calls with this kernel. It calls fine, but I can't hear any audio or anything. I'm on Verizon if that makes a difference. The weird thing is that every other kernel fixes this issue that is present in a fresh install of Lineageos 14.1. I'm still using squid because it fixes the camera issue.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] phuckt:
Is this compatible/flashable using twrp-harpia 3.2.X?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ShivangAgrawal:
fastboot boot <kernelfile> doesn't work for me. Waited up to twenty minutes, tried five times but no luck. Am I doing something wrong?

crDroid (latest build) on XT1602
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] UnitedShoes:
Just wanna check, does this support Oreo? Specifically AOSPExtended?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MICTOL:
Flash at owner's risk with oreo. It might work and might not.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] oddMLan:
Just a headsup, it doesn't work in Pixel Experience (Oreo). Bootloops
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] eatmydirt01:
Doesn't work with my Moto g play stopped wifi camera and flash from working.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] UnitedShoes:
Seems to not boot AOSPExtended on 8.1. It gets to the AEX loading screen but never boots.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MICTOL:
I hope you made a backup of your kernel ?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] UnitedShoes:
Of course! Does anyone know of a good Oreo ROM I can run?

Edit: not somefeak2. One with a working camera would be nice.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MICTOL:
You ment kernel right ? (that works with oreo roms).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] UnitedShoes:
Oops, yeah kernel
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Martin Silva:
Probably a lame question, but only to be sure:

In the OP it's stated that f2fs are updated, but is this fix included?

I saw in the Magisk thread that some Motorola devices' stock kernel have a bad F2Fs implementation and a custom kernel with said fix should be used.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] mario156090:
No new update, is the project closed?

Enviado desde mi Redmi Note 4 mediante Tapatalk
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
It's a mature kernel targeting an EOL device. What's there to update?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] mario156090:
Update of the features friend.

Enviado desde mi Redmi Note 4 mediante Tapatalk
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Ah...change for the sake of change.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] tecnicopascoal:
Thats the best kernel, can you make support oreo?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
FYI - OP is dealing with a family matter. Don't expect a response anytime soon. Enjoy this excellent kernel and Nougat based ROMs which are a nice fit for this device.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] tecnicopascoal:
I use that kernel with Unoficial Lineage marshmallow, I just want flash that kernel with my dualboot oreo so like the mm. I am usingthe edge to the oreo
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Whatever. Option isn't available at present.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Squid Kernel r23

This is a maintenance release with lots of security fixes. It also brings binder updates to make the source more compatible with Oreo. However, the builds I've posted for r23 are still for Nougat ROMs only. I've migrated to the Linaro GCC 7.3 compiler, and fixed numerous compiler warnings in the process.

On harpia, I've also picked the commit improving headphone detection reliability.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Castaldelli:
Squid first wanted to thank you for everything you did for the harpia. And with regard to the kernel in all roms i flash the flashlight stopped working but the rest is perfect as usual.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Which ROMs did you try this on? When the flashlight breaks, does the camera keep working? At the very least, this kernel should work with stock Nougat and recent builds of official CM 14.1. This expects a ROM using updated camera drivers (from Stock Nougat). The CM14.1 camera drivers were updated in January this year. Any ROMs that haven’t been synced with official CM14.1 device/kernel/vendor code since January will have issues with r22 and newer.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Castaldelli:
I flash in the last Viper os (07/07/2018) and flash in Xperiance (11/11/2017) and the camera in both cases work normally.

---------- Post added at 10:33 PM ---------- Previous post was at 10:32 PM ----------

I flash in the last Viper os (07/07/2018) and flash in Xperiance (11/11/2017) and the camera in both cases work normally just flashlight stop working.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Rainerber:
I flashed the kernel this morning and it worked . Thanks for your work.

The only isuse I noticed is the deactivated flash in the buildin camera app.

In app settings, it can't be switched on.

(LineageOS 14.1.20180726-NIGHTLY-harpia )
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Thanks for the report. I’ll look into it when I get a chance. This kernel is certainly supposed to work properly on LineageOS 14.1.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] spiked_mistborn:
The flash is working fine for me when set to on or auto in the LineageOS camera app. I'm on 14.1-20180823-Nightly with the r23 kernel. The only issue I've found is low audio volume when recording video. Weren't the camera drivers updated in the last couple weeks? Maybe the ROM that Rainerber is using, 14.1.20180726, is expecting the older drivers?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] squid2:
Thanks for sharing your experience. For the most part, I only cherry picked changes I applied to the LineageOS kernel for this release, so I never expected any flash issues to occur. Two users (@Rainerber and [MENTION=7262889]Castaldelli[/MENTION]) have reported flash issues with this kernel, but it seems to work fine for you. I’ll see if I can reproduce their issues.

If I can reproduce it, I’ll fix it. Otherwise, to be honest, I don’t really have time to debug rare issues that I can’t reproduce myself. I have a huge number of projects on the go (this kernel for 5 devices, official LineageOS for 7 devices, unofficial LineageOS for more devices, TWRP for 8+ devices) and I have a huge number of projects and responsibilities outside XDA.

The low audio volume in video recording is due to some amplifier configuration issues. The stock audio HAL loads an amplifier configuration file (/system/bin/ap_gain_mmul.bin) and does something with it (presumably program or configure an amplifier). It also uses the camcorder-mic-bf usecase. If anyone wants to fix the low audio recording volume on custom ROMs, the “proper” temporary fix would be to copy over the stock audio HAL, stock libmotaudutils.so, and ap_gain_mmul.bin. Alternatively, you can crudely fix it by forcing mono audio recording for videos (as some have been doing).

When I have time, I’ll look into reverse engineering the stock audio HAL to see what is needed to properly configure the amps.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] jgbertoldo:
Hello.

In the case of g4play, mod by [MENTION=6751265]srfarias[/MENTION] corrected the problem. From what I saw, some parameters were modified in the audio configuration (media_profiles). Suddenly it can be added in the next builds.

link to mod: https://xdaforums.com/g4-play/themes/mod-moto-g4-play-mic-volume-fix-video-t3826986
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Rainerber:
Only for information: Today I upgraded to 14.1-20180823 but the flash still can't be activated.

I noticed that the kernel changed back to 3.10.49. after the OS update ?

Is this a known behaviour ?

Independ of the kernel version the I can't activate the flash.

Thanks and regards

Rainer
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] spiked_mistborn:
OS updates include the stock kernel also, so you will need to reflash the squid kernel after doing an update. You can long press an update in the LineageOS updater and export it to make the process easier.

With your screen off if you hold the power button for a two count does the flash turn on?