yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] ++Addy98++:
In call proximity sensor doesn't work after flashing the latest build. Is there any way to make it work?

RR -final build

ElementarlX 1.11
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rishivg:
okay so m using this amazing kernel with aospa since 3 months!! Frankly loved this kernel a lot... Most Stable one!! Thanks to the dev for this amazing kernel!!! thank bro!!

Just wanted to ask can we underclock the cpu i.e. <650mHz? Is it possible to do so!!

This can save battery while sleeping and drain would be much less...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] creeve4:
Several times each day, DT2W does not work even after multiple taps. I have experienced this on stock with v1.02 and various custom ROMs with 1.09 and 1.11. Does anyone else experience this?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Use sweep up to wake. It's more reliable, less prone to accidental wakes and does not interfere with phone calls
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Gronkdalonka:
nope, vdd restriction was off from the beginning
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] spadyrus:
i know but it can get automatically on time later, check it in kernel auditor when you have the mhz stuck, or try turning off core_control too

:)

I disable core control and vdd restriction always stay off
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] username8611:
I don't know if you saw further down in the thread, I found my answer. It's not a bug, it's what the chip does when battery is around 10% or less. Everything returns to normal when the battery is back at a reasonable level.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] japg2000:
I have that problem too. Vdd restriction gets automatically on from time to time, and then Min CPU frequency gets stuck at 1689Mhz.

I haven't touch core_control but as a temporal fix i've programmed this script to be executed every 30 minutes with crond:

echo > '0' > /sys/module/msm_thermal/vdd_restriction/enabled
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] spadyrus:
the script fix works, but i dont know how to do :V , and then i disabled core_control and the vdd restriction always stay off and i dont get more stuck at 1689 mhz
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Kamkor82:
Ok...so I'm running the latest AICP on my G5+ 64gig...and with the stock kernel I noticed stuttering, lagging on certain things, and I chalked it up to the phone itself or the ROM (though I ran the same ROM on my X Pure without these issues...)

Yeah...I installed this kernel..its seriously like a new phone. The first thing I tested was Mario Run. Before, even with the graphics turned down it was a laggy mess.

Now, I can run it high graphics smooth as silk.

Hangouts and Allo fire right up now without a long delay. I honestly didn't expect such a night and day change. I'm not sure how much can be attributed to me having it overclock or not but this kernel is keeping me from throwing this phone through my windshield lately. There use to be significant lag (5+ seconds) on Arrow launcher populating the app drawer after reboot. Now it was instant. Tangible results. I'm guessing stock kernel and AICP wern't playing nice and it was affecting every app.

Heck i'm going to drop the money for the ElementalX Editor even though I probably wont use it just out of appreciation here. In fact, just did. Great job on this!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NeoandGeo:
There was definitely something messed up with your previous install with regards to the stock kernel, probably had some combination of setup/downloading/storage caching/stuck with low mhz or something, the kernel could have also settled down a misbehaving app or two. Glad you got it sorted though, this kernel is definitely a bit better than stock with regards to performance.

I have a question before I start to do some ROM hopping. Is the 2.01 version literally for stock 137-67 or will ROMS past that version number, IE 137-83 work with it as well. If it's the former, what sets 137-67 apart from all the other versions?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
The different versions are needed for the camera to work.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kbs24:
I also would like to know for sure which elemental x g5 kernel to use with the latest North America update, 137-83. I flashed this rom earlier today, then Elemental 1.02, and camera did not work. Did some troubleshooting, seems definitely connected to the kernel 1.02.:confused:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Did you try 2.01?

I haven't received the update yet.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Swastikj:
Multi rom

Does it support multi rom
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] DustArma:
For retus 137-83 use kernel 2.01
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
That moment you notice even though [MENTION=4684315]flar2[/MENTION] just put "los updates" there's a slight change other than that and it make you happy lol
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Update!!!

LineageOS and custom ROMs

ElementalX-G5-1.12-los

Changes:

-LineageOS updates
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] eric.clay42:
I'm running ElementalX 1.02 right now and received a notification for the new retus update.

I managed to do a poor job of naming my boot.img backups and I'm not sure which one is the correct one to restore so I can take the update. Does someone have a MD5 or other sum they could post of the boot image they used so I can find the right one?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
Any update for .67-5 update .

Although 2.01 installs well but experiencing issues with magisk modules
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Hey [MENTION=4684315]flar2[/MENTION] what version of the kernel should I be using now? On a new software update for the north American version. Also if you haven't gotten the update it's posted on xda already under twrp flashable stock roms or something like that
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
I'm on the same NPN25-137-83 version using EX 2.01 with no apparent issues after 2 days.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Thanks. I flashed without an issue. It even made me pass safety net! Now I just want working overclock ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
Sir can't we expect sound control for speakers too , I used a custom kernel for nougat and Oreo based custom roms and in that sound control for speakers worked flawlessly .

Thanks for your awesome job sir
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
I'll have a look.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
Ohhhh wow that's fu****g amazing .

I can share that custom kernel with you .

Thanks so much I use your kernel on two devices now , buying exkernel has been an amazing experience .

Thanks sir , thanks so much
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Hey [MENTION=4684315]flar2[/MENTION] is overclock working now?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NothrAnimeAddict:
Version for android oreo?

i recently flashed lineage os 15 onto my phone and would like to overclock it, there is no other kernel for this version that has that feature
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
Can you also add OC on next update .

In 2.0x it doesn't seem to work .
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
It never did work. He said he'd look into it but hasn't given a progress update yet
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
I am pretty much sure it will be implemented in next version . [MENTION=4684315]flar2[/MENTION] do you need latest boot ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
How are you so sure bro? Did you talk to him or something?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
Just hopeful
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Oh. Same here actually.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Which kernel was that? I think I played with speaker control early on and there was a reason I removed it. Distortion or something.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
View attachment 4303878

This one I used on all nougat custom roms .
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
It would be much helpful to just name the kernel, I'm not going to install a random unknown kernel.

Bit anyway, it doesn't matter. I looked back and see that I had speaker gain but removed it because of distortion in some games. It seems to work in most cases, but causes enough of a problem that I can't have it in the kernel.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
Sorry but it isn't available on xda .

Yeah on initial build it was there and worked perfectly for us

But could you add it again may be as a different version.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vettejock99:
So it's not just mine then? It seems like the modules install, but then they never show. I thought it was a TWRP or ROM thing. With a TWRP update the merge error stopped, but they still don't ever show/enable for me.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
[MENTION=4684315]flar2[/MENTION] your kennel is breaking off screen gestures on lost roms
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
They have made too many modifications to my code. I haven't looked at it for a while, but you can probably switch it back to kernel-only operation by setting /sys/android_touch/wake_gestures to 0
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
I don't understand what you're saying in the last part. Is that the path for a text file that I need to modify? And is this something you're going to fix? I love your kernel bro!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Yes, modify that file, it should fix it. I have to look into it though. It's not really something i want to "fix" because I have standardized these paths across many devices for many years.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vettejock99:
[MENTION=4684315]flar2[/MENTION] Some time ago, I think someone was talking about these magisk module issues and the response suggested they ask you to make the -los mods to the stock version to fix it. Any chance if you do an updated version you could put in some of those fixes/enhancements? I need to move to -83 because of the volume and wifi issues, and the only reason I've held up is no new Elemental X. Even pointing to the tweak edits as you mentioned with the last post would help. Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
I thought these issues were already fixed when I updated f2fs. Does anyone know what needs to change?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vettejock99:
Thanks for the speedy reply, and sorry for the delay in mine but I wanted to double-check. It wasn't the kernel. No modules showed installed as I noted, but coincidentally I got an update notification for Magisk Manager 5.4.0 today and when it updated the modules all started showing installed. There was a V4A issue, too, but after that I was able to sort it out. Thanks so much!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Well I have to be honest man..... This kinds sucks. Just seems like the kernel is always gonna have stuff broken on our phone. Don't get me wrong you're a great Dev and I know this isn't something that you get paid a lot to do but the features that I looked forward to aren't really working bro. Not *****ing just can't wait for it to be fixed to the level you have all the other great devices you develop for
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
The only problem I can see is the custom ROMs have messed up wake gestures by changing things in ways they should not have. They work fine on stock.

And the overclocking frequencies, which I still cannot figure out, because I can't get into the phone with adb to debug it. I have factory reset and wiped all my adb keys, and still can't connect to this phone with adb. Never had such a problem before.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Mmmm anyway we can help out with that? I don't mind testing. Also maybe [MENTION=1829889]vache[/MENTION] would be able to give some insight on the gestures seeing as he implemented them. We have a telegram group you can talk to other devs on as well
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
Hi [MENTION=283883]vettejock99[/MENTION],

I'm the person who asked for including the fix for f2fs in the 1.x releases. The reason is quite simple: with the Motorola's stock kernel the f2fs module doesn't provide support for mounting loop devices in a f2fs partition. This fix only provides this function, that it's required for Magisk for run.

Regards!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vettejock99:
Thanks for the info. So we're also running into a similar issue I think, over in the Moto E4 (Qualcomm) (perry) forums, where we get a mount error for magisk_merge.img. We don't have a custom kernel for stock, so I'm guessing this is part of it. Is this an edit we can make manually or does it have to happen in-kernel?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
Other custom kernels has this option enabled.

Will be then added to his kernel?

:fingers-crossed:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Has nothing to do with the kernel. I'm passing saftynet just fine
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] ravinder0003:
70000th thank...

Thanks a lot bro for the amazing kernel.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] CryptoRishabh:
This is also available in atack11 kernel v3 then why should i flash this?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
If you don't see a reason to flash then don't flash. It's your phone
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] CryptoRishabh:
Oh oh actually I'm noob and i dont know the difference at all i want to know that
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
[MENTION=4684315]flar2[/MENTION] for some reason I'm getting some crazy sound glitches when playing injunstace 2. It was working fine before the kernel flash. Also what happened to ElementalX CPU gov?

---------- Post added at 12:49 PM ---------- Previous post was at 12:48 PM ----------

Well let start with you can overclock. I would say that's the biggest advantage
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Update!!!

This release fixes glitchy sound, unfortunately it required removing speaker gain adjustment. You can adjust vibration for Moto one button nav, I will update EX Kernel Manager today with the setting. The EXKM update will add full support for this device. Finally, I added a few wakelock blockers, which can also be enabled/disabled with EXKM.

Stock ROM

ElementalX-G5-1.01

Changes:

-fix glitchy sound

-add adjustable vibration for Moto one button nav

-allow isdbt module to load

-add wakelock blockers
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] attack11:
Wow, That wast fast ! Thanks a lot ! :good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Vaibhav Dalakoti:
Please try to add control for charging current So we can decide wether to fast charge or normal
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
I will look into it.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
I just pushed an update to EX Kernel Manager adding support for this kernel and its settings (version 3.20). It should appear on the Play Store very soon.

-Moto one button nav vibration adjustment is on the Miscellaneous screen

-fingerprint as home settings are on the Gestures screen (you can change the vib strength and configure which button the fingerprint will emulate)

-sweep2wake, sweep2sleep and doubletap2wake settings are on the Gestures screen, with adjustable vib strength

-Sound control is on the sound screen (only headphone and mic gain supported on this device)

-Update or install ElementalX on the ElementalX updater screen

-The app does a million other things too.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
If only I had money to pay for it. As soon as I have three bucks it's yours lol
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Tomadock:
Looks like wifi isn't working for me either. Stock rom with Magisk root. I'm attaching a logcat for further troubleshooting.

https://drive.google.com/file/d/0BxLUuiD3Ts0LemZ0V2JMb3dadms/view?usp=drivesdk

Edit: Just wanted to add that I'm thankful for all of your hard work. Just bought the app to show my support.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Type "lsmod" in a terminal, you should see wlan. If not, I would need to see your kernel log from the command "dmesg"

I don't know why it would not work. I've installed it without root on a clean stock boot.img and it works, so if installing Magisk breaks it, then Magisk is broken. However, another user said he installed it with Magisk and all was fine.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Tomadock:
I flashed ElementalX again and it brought back wifi. Super weird. Anyways false alarm, all seems to be working. Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
I'm using the new version of magisk and I'm just fine. I think people are either a) flashing. This on top of another kernel or b) restoring the stock boot image and forgetting to install the wlan zip fill to fix wifi. I had the same issue and fixed it by installing the zip file and never had an issue from there. Also are we going to get the ElementalX gov? I really like that gov. Also we already have an option to use the fingerprint sensor as a home, back, and recents button. It's call one button nav. We kinda don't need that from the kernel
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] attack11:
You must flash Magisk and after that elementalX , If you update or flash magisk with elementalX installed you loose WiFi , Flashing ElementalX again,as you see,fix its

[MENTION=4684315]flar2[/MENTION] what are your thoughts about power efficient workqueues? Do you notice some battery improvements without compromising performance too much ? Or the diference isnt noticeable? If there is any ... Already rated the thread 5 stars,Thanks a lot for your work,Always wanted a phone with a kernel manteined by you or franco... :D
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Tomadock:
Gotcha, thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] roygbiv859:
I'm still getting a vibration while unlocking phone with fingerprint on 1.01. No more vibration on one button nav or locking phone with FP. Is there anyway to add this to the kernel?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mikeyinid:
I have had the same issue with ADB on this phone. I'm able to use it on my work PC but not my personal PC where I've never had the issue before. I've tried everything.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Probably in kernel seeing as it's related to the f2fs module
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
Try to reformat your data partition with "ext4" format and retry to install Magisk. If the problem is this "bug" inside the kernel, then this will resolve your problem. However, "ext4" isn't good as "f2fs" for internal writable storage.

Note: For change from "ext4" to "f2fs" you need to: 1) Backup your "data" with TWRP (only possible if data is not encrypted, or if your TWRP can decrypt it) 2) In TWRP select advanced format, change filesystem type, and format "data". 3) Restore your "data" backup. 4) Reboot.

Regards.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] KingCartman:
If i want to go back to stock Kernel after flashing ElementalX, I have to flash the stock "boot.img" right?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
I also had that adb issue and fixed by pastings same adb public key toy device and adb debug works now

Sir , with lot of respect and hope , i want to request for just an alternative build with the sound control for speakers there , i used on very early builds of ElementalX and using some mods fixed the crack in loudness .

Sir , please can you build a version for us , without updated kernel upstream will do .

Thanks for your awesome work , sir.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vettejock99:
Thank you. I've tried to do this and while I'm sure it's likely I made an error in the steps, now my phone will only boot back to TWRP. I've even tried converting back to f2fs and restoring, but nogo, just keeps going back to TWRP. Any suggestions on how to recover my ability to boot?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vettejock99:
Nvm. Flashed stock then restored and it boots.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
I just installed some software from Motorola and I never had the issue again
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
Yes. This trouble is because the "boot cause" is not reseted! The bootloader has a flag that indicates the "origin" of the boot.

Try this: Boot to TWRP and inside the recovery select boot to system. This boots normal? Then do a reboot... The problem is fixed?

If the problem isn't fixed, try then this: flash the stock recovery, and after boot to the recovery select reboot. I feel this will fix for sure the problem. After, try to reflash TWRP.

Regards.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] dhk.-:
[MENTION=4684315]flar2[/MENTION] can you please update 2.01 stock version? in the NSPS25.137-67-6 build, 1.02 breaks camera and wifi, 2.01 breaks camera and also magisk wont work.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aki_007:
No such issues for me , except magisk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nightwalkerx22:
Works fine here too
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] dhk.-:
Same build? NSPS25.137-67-6? For me it is killing camera... and no magisk...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
Try wiping the Dalvik cache. Camera will definitely work, version 2.01 is up to date with latest Moto kernel source.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] diegomartinezlovey:
Version 2.01 stock is compatible with magisk or supersu???
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nightwalkerx22:
Mine is NPN25.137-67-5
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
I'm on NPNS25.137-33-11 (EU version). Though the build is updated to the latest august safety patch, the 2.01 version breaks camera (also after wiping cache and dalvik cache). Magisk and the safetynet fix work fine however.

Luckily in the 1.02 version all works fine. So that's the one I'm running! Only annoying thing: EX Kernel Manager keeps telling me there's an update to 2.01... I know! But I want a working camera...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nightwalkerx22:
I have 2.01 too with the only difference being the ROM, mine is NPN25.137-67-5 (Indian Variant) but camera works fine here.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] RavePG:
Fast charge?

Hey, I flashed RROS 7.1.2 and this kernel with it. I noticed that my charging speeds went down, even with the TurboPower charger, that came with the phone. While the TurboPower charger does definetly charge quicker than a standard 5V 2A charger, it still is somewhat slow, especially when in use (2-3h from 0-100% when in use), and on stock rom and stock kernel it was about 1-2h when in use. So, the question is, does this kernel support any kind of fast charging?

Cheers,

RavePG
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flar2:
It's 100% identical to stock

Charge speed can be throttled by the thermal engine or reduced due to the activity of the phone. Nothing to worry about.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] RavePG:
Alright. Thanks for the support and the developement!