yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] dcshallot:
Guess:

There're two possibilities cause reboot.

1,As you said, you noticed more then one hotplug resumed before a reboot, then maybe something controller/handler unknown need to be found.

2, I think this would be have a larger chance which is the f2fs. I consider there would not be many people use such format.

Anyway, you have a good patience to trace my issue, thanks a lot! The quanta reborn save my time and it's great great great!
[Nexus 4 Android Development] sudokamikaze:
I'm using f2fs on all my devices, and on mako too, have random reboots very rare, 1~3 reboots of all time when i using it

Checkout fork thread, new update
[Nexus 4 Android Development] zeeBomb:
How's this kernel with Nitrogen, battery life good?
[Nexus 4 Android Development] *Jonny*:
how you have f2fs on aosp? i try did it but i was bootlop...
[Nexus 4 Android Development] mattbirks:
Is there a way of pre-configuring the settings for the kernel (CPU governor etc) before flashing. To avoid needing root on my ROM to set these after flashing? I'm running Lineage and I like being able to use banking apps etc. I want to try this kernel, but want to pre-set it for better battery life rather than take the default settings.

Matt
[Nexus 4 Android Development] sudokamikaze:
AOSP ?

I'm using Pixeldust lol
[Nexus 4 Android Development] sudokamikaze:
I've used with nitrogen and noticed small battery drain, I would not recomend to use this kernel with nitrogen
[Nexus 4 Android Development] sudokamikaze:
Try to use Quanta-Reborn, it already configured for battery and performance
[Nexus 4 Android Development] *Jonny*:
i try with nitrogen os, but did you it with your twrp? I used some older from that forum, idk maybe that was problem :confused:
[Nexus 4 Android Development] sudokamikaze:
I used older version too, and it work flawlessly
[Nexus 4 Android Development] sudokamikaze:
Guys, someone wanna to test new build with OTG changes?

I'm trying to fix OTG problems
[Nexus 4 Android Development] moriel5:
I would love to, however I cannot even afford to buy a 1$ cable at the moment, so I can join the testing only next month.
[Nexus 4 Android Development] xenyz:
You will have to customize the kernel installer prior to flashing the kernel. This is a somewhat advanced topic as you will have to understand the init process and how to set kernel settings via shell script. That said, I have already made a custom installer for hellspawn earlier this year and could perhaps help you if you just want to change just a few settings. Send PM
[Nexus 4 Android Development] pfederighi:
Sure. Do you mean a newer version than the 2017-07-15 release? I tried OTG on that release. It worked fine for keyboards and mice (at least mine). I managed to mount a couple flash drives via terminal. For a little while I could read the directory structures, but eventually that would stop working. I was never able to open any files on the flash drives.

If you have a newer version, I'll test it.
[Nexus 4 Android Development] sudokamikaze:
lol, strange. Some users reported that otg isn't working.

I have some new features in kernel source, maple iosched for example. I will release at next week
[Nexus 4 Android Development] *Jonny*:
Lineage os still with reboots and music lags?
[Nexus 4 Android Development] dcshallot:
I use quanta-reborn, and I formatted to ext4 to avoid issues. Everything is fine now. (Los)

In sinai-n4, not sure.
[Nexus 4 Android Development] sudokamikaze:
Hi mate, please can you check it for me?

My headphones was broke and i cannot test it

It is a small action to do, open KernelAdiutor, open tab: I/O Scheduler, scroll down and set RQ Affinity to 1(default is 2)

And listen some music, but before all of this actions, download new release

UPD, You also can try that scheme:

Set hotplug to Intellihotplug and listen to music

And reboots noticed only one mate, and it caused by Chinese apps
[Nexus 4 Android Development] sudokamikaze:
UPDATED

Maple iosched, increased read/write speed and sqlite op/s

Sync with LineageOS sources

Optimizations

And bioshock profile tuned for mako

Checkout OP post, now kernel builds hosted on Basketbuild
[Nexus 4 Android Development] Pac-Man:
I cannot flash the kernel. Once I got an error related to patching ramdisk, another I got an error dumping/repacking image...

LineageOS 1st august ROM (unofficial compilation from this post, which is the same as official), latest TWRP recovery.
[Nexus 4 Android Development] sudokamikaze:
Did you flashed custom kernel's before?
[Nexus 4 Android Development] hauckk@sfreserves.org:
what worked for me for quanta reborn kernel was wipe all partitions except data and internal then reflash rom and gapps and new kernel and root and addons and then reboot

it wont boot first time but second reboot it will boot up at least that was my experience

I am on colt os rom which I believe is los based if im remembering correctly
[Nexus 4 Android Development] *Jonny*:
Fine, i will install los today :)
[Nexus 4 Android Development] sudokamikaze:
Hmm strange. I can easily swap between my kernels without any problems
[Nexus 4 Android Development] hauckk@sfreserves.org:
Its probably because I'm using multirom twrp which is 3.0.0-0
[Nexus 4 Android Development] zephyr79:
I know it's abit of topic but do you know if that version supports landscape mode?
[Nexus 4 Android Development] pfederighi:
Hello [MENTION=7970097]sudokamikaze[/MENTION].

I tried your latest kernel in order to test OTG. So far it works well. I was able to mount an NTFS flash drive, copy files, and play an mpeg movie straight from the drive. I was not able to get the flash drive to be recognized when connected through a powered hub.

The OTG would eventually disconnect on its own and then reconnect almost immediately. I think I might have a defective OTG Y cable. I'm going to get a new one and we'll see if it's the cable or the OTG implementation. It might be a while, since I almost never used the OTG feature, but I'm sure glad it's there when I do want to use it.

Thank you for your work.
[Nexus 4 Android Development] *Jonny*:
I installed los and all works without any problems For that moment, i didn't have reebots yeat and music lag so work perfect! But could you tell me how i can switch to f2fs? I try but i have error when system up (System Does not support or something) please small guide, maybe I forgot something :eek: :cool:
[Nexus 4 Android Development] sudokamikaze:
Hmm, my anykernel replaces default fstab(it will come with firmware) to my modified to work with f2fs

I just formated /data and /cache, then flashed firmware + kernel, maybe lineageos(mako build) doesnot support f2fs
[Nexus 4 Android Development] sudokamikaze:
Thanks a lot man! OTG implementation only one for mako. and there no way to change it
[Nexus 4 Android Development] Pac-Man:
Reboting the device and installing after that worked perfectly :)

Yes, I did. Since the Nexus One.
[Nexus 4 Android Development] sudokamikaze:
I asked about mako, not about your expirience :D

Maybe error caused by another custom kernel, for e.x you flashed Quanta-reborn, then trying to flash Sinai but this example work
[Nexus 4 Android Development] Pac-Man:
I didn't flash a custom kernel until now, I was with pure LOS. I was updating the rom... I don't know what happened, but I got it working :)
[Nexus 4 Android Development] sudokamikaze:
Glad this works!
[Nexus 4 Android Development] Pac-Man:
Are you going to update the kernel with the upstream changes from LOS? I'm thinking on changing the rom to SlimRom because my CPU went to 100% without any reason this morning (I'm using LOS right now, the same compilation as your kernel) :)
[Nexus 4 Android Development] sudokamikaze:
Yep, i already merged changes, and all of this time i tested kernel

Today i'll update
[Nexus 4 Android Development] sudokamikaze:
UPDATED Links updated in OP post

Changelog:

Now using MSM_LIMITER instead of MSM_SLEEPER, Please, use Kernel-Auditor-mod to configure it!

Fixed CRC Toggler

LineageOS sync

Some changes related to sched

Increased battery a bit by tweaking dirty background ratio, inspired by [MENTION=4356552]Applesan[/MENTION] thanks!
[Nexus 4 Android Development] hauckk@sfreserves.org:
Thanks for fixing crc toggle I actually use this feature and am happy to see it works on this kernel now thanks a lot :laugh::highfive:
[Nexus 4 Android Development] sudokamikaze:
Just remember that you reported about it and fixed :)
[Nexus 4 Android Development] *Jonny*:
I formated /data and cache then your twrp can't mount /system (still ext4) i don't know why, also i was bootlop but After 2 hours of testing that work :cowboy: Can u tell me why on nexus 4 we can't format /system to f2fs? I had before galaxy s4 and i can did that without any problems :confused: Thanks for your hard work!
[Nexus 4 Android Development] sudokamikaze:
To format /system as f2fs you need to modify fstab of my kernel to get it work, also you need compatible rom with it, leave it with ext4
[Nexus 4 Android Development] *Jonny*:
Music lags back :( 2 days ago was all fine....
[Nexus 4 Android Development] sudokamikaze:
Strange... I'm running with AutoSMP hotplug, Intellimm gov and maple sched, no lags on poweramp
[Nexus 4 Android Development] Perlado:
Hello friends, to see if you can tell me, I read the forum but still do not understand, you have to activate all the kernel options using the application adiutor, you have to configure any of the options? If I put someone a good optimized capture I would appreciate it very much ... thank you for your time and your work

Edit//

Another question, every time I update the lineageOS rom the kernel loses the activated values, is this normal?
[Nexus 4 Android Development] sudokamikaze:
When you update your ROM, just reinstall kernel

Best settings are this:

CPU governor BioShock/intellimm

Battery tab: archpower on

Maple iosched

CPU hot plug: Autosmp
[Nexus 4 Android Development] Perlado:
Hello friend, thank you very much for your work and your answer I will try with your indications how big you are.

Edit// Half of those options I can not find, it will be due to the language, I could do some capture, thanks..
[Nexus 4 Android Development] Thevista:
I have installed aosp Sinai latest version on aoscp 4.1 rom, when I rebooted I'm seeing different colors... Please help...
[Nexus 4 Android Development] sudokamikaze:
Install LOS variant
[Nexus 4 Android Development] sudokamikaze:
Find a kernel auduitor mod link in this thread and in settings, set force English option
[Nexus 4 Android Development] Pac-Man:
Can this kernel be used with NitrogenOS? It's AOSP, so I assume I can...
[Nexus 4 Android Development] sudokamikaze:
Sure, you can. I've used it. But wait some time, i'll release new build today with fix to battery idle drain
[Nexus 4 Android Development] Pac-Man:
I'll be waiting :)
[Nexus 4 Android Development] sudokamikaze:
Updated!

LineageOS sync

Fixed battery drain!

sched speedup

also removed iosched switcher, no more random reboot's when wakeup'ing

Compiled with latest QUVNTNM GCC 6.4
[Nexus 4 Android Development] Kelvino9:
I'm using the latest SINAI kernel with the latest LineageOS weekly and I can't change the CPU Govenor.

I'm using Kernel Adiutor mod to change the settings, but my Nexus 4 would restart after selecting any CPU Governor.

Is there anything else i can do to change the governor from Bioshock to Hellsactive for example?
[Nexus 4 Android Development] tyler999:
great kernel work perfectly with nitrogen os . thx for your work.
[Nexus 4 Android Development] sudokamikaze:
Try kernel adiutor mod, search links in this thread
[Nexus 4 Android Development] Kelvino9:
I'm using kernel adiutor mod. Every setting I use works, but I can't change cpu governors on LineageOS without the phone reboots immediately.

[via Nexus 4]
[Nexus 4 Android Development] sudokamikaze:
Strange, try to enable Per CPU control and set all cores with your governor

If this not works, please, attach a logs
[Nexus 4 Android Development] Kelvino9:
Sadly I got the same result which ended in an immediate reboot. I hope the logs are taken correctly. Thanks for your assistance. http://cloud.tapatalk.com/s/59ac8a2ec81c3/logs_Sep_04_2017_00_59.zip

[via Nexus 4]
[Nexus 4 Android Development] sudokamikaze:
Thanks for the logs. Try to use different kernel utility. Synapse for example
[Nexus 4 Android Development] Kelvino9:
Okay thanks for the advice. I will try that tomorrow morning. Your kernel with non lineage roms and kernel adiutor always worked flawless since you released your first version. It must be something with LineageOS I assume. I'll report back as soon as I find the time.

[via Nexus 4]
[Nexus 4 Android Development] M4rf0:
At first disable msm-limiter, then you will can change the cpu governor. Please also look at Cpu hotplug because as I see not all of them will work in lineage os. I have crDroid rom which is based on LOS and I have cpu gov set at blue active and cpu hotplug on auto smp. This configuration works very good, with nice battery time and also without restarts. I only have problem with audio of my ring, when phone is on sleep state it takes long to light display and the sound is "jams" .
[Nexus 4 Android Development] Kelvino9:
[MENTION=5869441]M4rf0[/MENTION] thanks for sharing. Blu_active does really seem to be working with LineageOS without crashing. Need to read up on what Blu_active does but it seems to suit my demands. Thanks again.
[Nexus 4 Android Development] sudokamikaze:
BTW, fixed your issue, today rolling new update
[Nexus 4 Android Development] Kelvino9:
Thank you so much for your efforts in fixing the issue with LOS. Looking forward to try the update.

[via Nexus 4]
[Nexus 4 Android Development] sudokamikaze:
I tested new commits, they are bring many random reboots. At this moment I'm fixing these issues
[Nexus 4 Android Development] sudokamikaze:
Updated!

Now kernel have "-Stable" prefix

FIxed music lags and reboots when writing data to flash

Fixed [MENTION=337991]Kelvino9[/MENTION] bug

Since I have less free time now i can't provide weekly/monthly builds

If you had any bug please leave information in this thread and when i get any time i'll check
[Nexus 4 Android Development] Kelvino9:
Thanks for your work!

I just tried the latest version of SINAI with the latest version of LineageOS (clean flash) and I had the same issues as with the previous version of SINAI.

Once I would change the CPU Governor with Kernel Adiutor Mod to hellsactive it would instantly reboot. If I pick elemantalX it would block KA Mod and you have to force close the app. Trying to change it again will freeze the phone and eventually soft reboot. Previously working governor Blu_active didn't load either for me without freezing and rebooting.

I'll stick with this Kernel, but won't touch the CPU governor anymore. I'm still glad you spent some of your free time for this Kernel.
[Nexus 4 Android Development] sudokamikaze:
Strange, i thought it work if i revert to MSM_SLEEPER
[Nexus 4 Android Development] Kelvino9:
Don't worry, I guess LineageOS just doesn't want to play nice. Everything else on your kernel seems to work fine and besides the governor issue it really runs smooth. Appreciate your support for the Nexus 4.

[via Nexus 4]
[Nexus 4 Android Development] granazis:
[MENTION=7970097]sudokamikaze[/MENTION],the best ever made kernel fo mako,iam using the 10/08 build and not updated yet as iam very satisfied w/your suggested settings,now running on AOSCP rom -> runs flawless,no reboots at all, no lags.....

Thanx a lot for your work on our N4,i have had looong time to see a such work!

Best regards,Christos Thimis.
[Nexus 4 Android Development] cupanoodle:
I recently switch from Quanta to Sinai and there is one setting that I can't seem to find.

I am unable to set Analog Volume Gain which was an option with Quanta and the Quanta tweaks app. Using Sinai and Kernel Adiutor I see Volume Gain, however this seems to be a digital gain as when turned up all the way there is noticeable distortion. Any ideas, do I need to go back to an old version of quanta to get this feature?

Phone: Nexus 4

OS: LOS 14.1-20170921-Nightly-mako

Kernel: 3.4.113-SINAI-N4-Stable

Root: Magisk v14.0
[Nexus 4 Android Development] sudokamikaze:
Quanta uses different sound options
[Nexus 4 Android Development] uglyfatandalive:
hey, good kernel but it seems a bit laggy when i reboot/boot the phone. For about a minute my Nexus lags alot. Not using any tweaks. Im woth Nitrogen OS. ty
[Nexus 4 Android Development] sudokamikaze:
You should to tweak kernel. Even any hotplug disabled by default to prevent problems

For e.x choose hotplug and set governor that you like

It's basics
[Nexus 4 Android Development] Cristiano Lira:
Just for you to know: bluetooth isn't working properly on this kernel, don't know about quanta. AOSP.
[Nexus 4 Android Development] Shooting Star Max:
What's the problem? I use Bluetooth headphones with this kernel everyday.
[Nexus 4 Android Development] sudokamikaze:
Bluetooth transfer?
[Nexus 4 Android Development] sudokamikaze:
BTW, i'm going to restore old audio controls
[Nexus 4 Android Development] Cristiano Lira:
Bluetooth sound speaker, won't connect.
[Nexus 4 Android Development] nickimsonikimsi:
No i am using all day
[Nexus 4 Android Development] sudokamikaze:
Hi guys, today is great day because it's time to flash new update!

Many changes from fusion repos. Special thanks to [MENTION=6994234]Chippa_a[/MENTION] and [MENTION=2233641]AdrianDC[/MENTION]

Changelog:

SDCARDFS Changes(it will speed-up write/read speed)

WCNSS Prima updates from LineageOS

Prima CVE's fixes

A lot of changes to MSM stuff and many bugfixes and improvments!

Check links in OP post!
[Nexus 4 Android Development] dcshallot:
Is it coming soon about quanta reborn?
[Nexus 4 Android Development] sudokamikaze:
Yep, today evening or tomorrow's.
[Nexus 4 Android Development] sudokamikaze:
Update

Links updated at OP post!

More stability + performance

Now default governor is "hellsactive"

Tuned autosmp hotplug

more optimizations

and... DT2W Vibration toggler!

By default vibration disabled

To enable
echo 1 > /sys/kernel/d2_vibro/d2_vibration
To disable
echo 0 > /sys/kernel/d2_vibro/d2_vibration
[Nexus 4 Android Development] chopoLet:
Is it compatible with Oreo roms?
[Nexus 4 Android Development] sudokamikaze:
No, not yet.
[Nexus 4 Android Development] sudokamikaze:
BTW, i've almost ported kernel to Oreo, i'll release test builds on next week
[Nexus 4 Android Development] sudokamikaze:
Update! Download links updated at OP post

Changelog:

Latest CVE fixes from lineage and from CAF

Oreo compatibility!

Now you can install kernel only on AOSP-based Oreo roms. LineageOS/CM based roms will get "yellow color problem"

If you having any bugs with Oreo please report with logs(logcat/dmesg/last_kmsg), thanks!
[Nexus 4 Android Development] vedantdude:
UKM failed to install...is UKM not supported? Kernel aduitor crashes a lot for me, and the min frequency at boot was 1024, had to change it to 384.
[Nexus 4 Android Development] sudokamikaze:
Without any logs or information i'd won't fix it
[Nexus 4 Android Development] nefescalanadam:
Actually i do but stickmount get ''busy'' error
[Nexus 4 Android Development] hauckk@sfreserves.org:
Otg has to powered on nexus 4 do you know that so you need a y cable and power supply
[Nexus 4 Android Development] nefescalanadam:
i have already y-cable
[Nexus 4 Android Development] Has_anDroid:
validius rom not work kernel color problem sorry :D
[Nexus 4 Android Development] dcshallot:
I'm using bioshock and intelliplug, and the Google music player lag for a while when the network switch between 3G and wifi (walking on foot, max screen off 1026Mhz, others by default too). Is that normal with such config? When I'm using quanta kernel, it's normal (interactive, mpdecision).
[Nexus 4 Android Development] dcshallot:
I got a system force reboot. Maybe caused by app or kernel or ROM. Please tell me the reason if you could. Thanks~
[Nexus 4 Android Development] hauckk@sfreserves.org:
Set cpu minimium to 486 and turn CPU governor to on demand
[Nexus 4 Android Development] *Jonny*:
That kernel work great with lineage os, without any bugs and problems, thanks for your work! ?
[Nexus 4 Android Development] HubrisRev5:
Does this kernel request bootloader info? i.e. is it safetynet compatible? (I have yet to find a custom rom+kernel combination to pass safetynet checks)
[Nexus 4 Android Development] sudokamikaze:
Thanks for the logs

What rom do you use?

And you downloaded the hotfixed kernel?(updated op post download links yesterday)
[Nexus 4 Android Development] sudokamikaze:
Don't know about this, I'm not sure is it safetynet compatible
[Nexus 4 Android Development] sudokamikaze:
You have a yellow interface?
[Nexus 4 Android Development] dcshallot:
Lineage os. The last build yesterday. And the kernel too, I installed it last night. It's a fresh one.
[Nexus 4 Android Development] sudokamikaze:
Try to reflash with this build https://www.androidfilehost.com/?fid=673368273298959218

Maybe it work
[Nexus 4 Android Development] hauckk@sfreserves.org:
Quanta cm version 21 fxes this I think it is a ROM problem it happens very rarely anymore
[Nexus 4 Android Development] dcshallot:
It's already in this build, I installed it last night. The force reboot happened this morning. (Time zone+8)
[Nexus 4 Android Development] sudokamikaze:
kk, i'll try to fix tonight
[Nexus 4 Android Development] Has_anDroid:
yes yellow and brown color problem sorry:confused:

---------- Post added at 04:02 PM ---------- Previous post was at 04:00 PM ----------

quanta aosp versıon yellow problem again cm version no problem ?
[Nexus 4 Android Development] dcshallot:
Did you find out the reason? Sometimes I just consider the chinese apps haven't complied with the development rules.
[Nexus 4 Android Development] hauckk@sfreserves.org:
You have to flash cm version
[Nexus 4 Android Development] xenyz:
Nothing to fix, as it's not a kernel issue :)

BTW, links in OP don't point to the Oreo version, so had to dig around on basketbuild to find it.
[Nexus 4 Android Development] sudokamikaze:
What?

Releases for oreo and nougat have same name!
[Nexus 4 Android Development] vedantdude:
The download link in the OP points to the 28/10 build.
[Nexus 4 Android Development] granazis:
Thats not rue,ofc have the same name 28/10 -> dnlded for oreo 28/10 named too -> result -> bootloop when flashed to aoscp rom and how to take logs on that state?So there is no compatibility w/aoscp oreo rom as you said imo or something must be corrected on kernel or a discrimination needed abt that.

Any explanation as we are so confused?

[MENTION=7970097]sudokamikaze[/MENTION]

Tnx in advance.

Regards Christos Thimis
[Nexus 4 Android Development] xenyz:
SINAI for Oreo proper link.
[Nexus 4 Android Development] sudokamikaze:
AOSP and LOS versions almost SAME!

LOS version had 3 commits for "yellow" interface fix

UPD!

I've corrected links, sorry about that
[Nexus 4 Android Development] sudokamikaze:
Check links please, i've updated them
[Nexus 4 Android Development] TakuyaMK:
Hi!

Is the kernel at the frontpage updated with the "yellow-fix"?

Thank you!
[Nexus 4 Android Development] sudokamikaze:
As i said(at op post, bellow from links) LOS(with fix) doesn't compatible with oreo yet
[Nexus 4 Android Development] MajorPotadroid:
I think he means if the actual kernel you uploaded and linked has the yellow fix for LOS N, or LOS N doesn't suffer that bug in the actual build of the kernel :)
[Nexus 4 Android Development] sudokamikaze:
LOS(And others based on it) doesn't suffer bug on Nougat, I haven't found any solution for oreo yet
[Nexus 4 Android Development] jon10110:
OTG problem

Good evening, I am running Mako Nitrogen OS O and the latest Sinai-M4 but am unable to get OTG working for USB Drives. I enabled MSM OTG USB in the app but nothing works, and when I reboot it shows as off again even though I set to apply on boot. Is there something else I should be doing? Thank you in advance for your consideration
[Nexus 4 Android Development] gc2712:
I am very interested in an answer to this question too. Very keen to have OTG working on Nitrogen oreo OS