yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] sudokamikaze:
Of course

As I can see they didn't release new build which contains my binder changes(they won't work without kernel patch) yet

And yes, build is updated, when they release update I'll immediately re-upload kernel which will support that
[Nexus 4 Android Development] sudokamikaze:
Also, I have updated links, you should re-download new build

I set ASMP as default hotplug
[Nexus 4 Android Development] bgoel4132:
Presently using aosp build with fake Nexus with spectrum set as balanced and it's been going great so far hope battery stats be great too

:fingers-crossed::fingers-crossed:

Are the links updated again for aosp also.
[Nexus 4 Android Development] Sam Nakamura:
Are there any changes made (i.e to /system) that makes dirty flashing the ROM necessary or is fine to just flash the updated kernel? What's your recommendation?

Thanks for this update, looks very promising! :highfive:

Edit: Is there a kernel version for lineageOS 15.1? According to the OP it's (still) for Nougat only, are we meant to use this for Oreo as well? Is the description just not yet updated?
[Nexus 4 Android Development] sudokamikaze:
I always update all links
[Nexus 4 Android Development] sudokamikaze:
Just install as always

I have no plans about LOS 15.1 and i'm not sure they will
[Nexus 4 Android Development] d_g_m_2000:
thanks for the builds, this kernel make my nexus usable.

i have two questions:

1- I currently run lineage 7.1.2 with your kernel 3.4.113, in order to have the your last build do i have to reflash lineage to get stock kernel? or just performance a dirty flash...

2- like [MENTION=7125933]Sam Nakamura[/MENTION] said previously: is there a build for lineage 15.1? or just for aosp based on roms....

thanks in advance for your comments.
[Nexus 4 Android Development] sudokamikaze:
Always when you're updating just flash new build in recovery

But do not forget to backup /system & /boot aswell

If you want back to stock rom's kernel - just make a dirty flash

There's no build for LOS 15.*

LOS builds are only for Nougat & Maybe Marshmallow

Other builds are suitable for Oreo/Nougat AOSP & Unlegacy
[Nexus 4 Android Development] d_g_m_2000:
thanks for your replies....

next to me is flash unlegacy or nitrogen + your kernel to enjoy oreo...

again, thanks for your hard work!!
[Nexus 4 Android Development] sudokamikaze:
Maybe i'll make a support for that too but i'm not sure yet
[Nexus 4 Android Development] sudokamikaze:
Also, if something goes bad - Please capture logcat(if you can of course) and attach here

I'll try to fix problem as fast as I can
[Nexus 4 Android Development] Sam Nakamura:
Thanks for the clarification, I thought you meant your kernel now supports "everything" by this comment...

https://xdaforums.com/nexus-4/development/sinai-n4-kernel-t3614605/post76557379

Just a misinterpretation, all fine, very happy with the current kernel, I'll drop logs in case I find something but it looks all just fine atm... :)
[Nexus 4 Android Development] bgoel4132:
Seems like battery drain fix is very promising for all but not for me don't understood why but had a drain from 74 to 60 overnight actually the same drain as before please guide me [MENTION=7970097]sudokamikaze[/MENTION] what can I correct

I currently have balanced set.in spectrum
[Nexus 4 Android Development] Sam Nakamura:
Are you sure that this drain is kernel related?

I few days ago I posted about idle drain here:

https://xdaforums.com/nexus-4/orig-development/rom-unlegacy-android-project-t3587540/post76583126

That's something you could check out too, this should clearly show what drains your battery...
[Nexus 4 Android Development] bgoel4132:
Will report back to you soon.
[Nexus 4 Android Development] sudokamikaze:
I had only 5% with opened apps + wifi overnight

I'll look again

Also, which firmware you're currently using? I have another idea that might work, so i'll provide testing build but before I must know which firmware you're using and that's why i'm asking
[Nexus 4 Android Development] bgoel4132:
Currently I am using fake nexus last built..

Recently had to do a force shutdown because of system got hang abruptly.
[Nexus 4 Android Development] sudokamikaze:
OK, I got it. Please test new build please

Here's testing builds:

AOSP

UA

Thanks in advance
[Nexus 4 Android Development] bgoel4132:
Thanks a lot with report back soon.
[Nexus 4 Android Development] bgoel4132:
Hi @ sudokamikaze these are the BBS stats from the 22nd may built hope these may help you to recognise my drain. ??

Currently testing the 23rd may built.
[Nexus 4 Android Development] sudokamikaze:
Oh that's awesome! Thanks for logs

Anyway, I had 1% overnight (4 hours of sleep)

On those testing builds
[Nexus 4 Android Development] bgoel4132:
currently testimg the build will post logs and drain tomorrow morning
[Nexus 4 Android Development] bgoel4132:
sorry to say that but again had a drain from 91 to 75 overnight :crying::crying:

we all know [MENTION=7970097]sudokamikaze[/MENTION] you are trying hard to get corrected and it is dor many but i dont know why itis not working properly for me.

??
[Nexus 4 Android Development] sudokamikaze:
As I can see in dmesg

Something is always wakes your CPU

My dmesg looks almost like yours and this is really strange

Go to your kernel adiutor > Wakelocks tab > enable all of them
[Nexus 4 Android Development] bgoel4132:
i am using spectrum and as mentioned by you one can't use ka and spectrum both at aame time what can i do
[Nexus 4 Android Development] Has_anDroid:
[MENTION=7563399]hauckk@sfreserves.org[/MENTION] BEST FRİENDS THANK YOU
[Nexus 4 Android Development] sudokamikaze:
My kernel doesnot have mp_decision but in logs i see that it working

download kernel auditor, disable mp_decision and enable intelliplug

UPD: just catched this error when using shadowsocks, i try to fix, thanks for the logs
[Nexus 4 Android Development] dcshallot:
You're welcome! Btw, mp_decision has a warn that if changes frequency could have problem, so I always avoid to use it, though I would not change CPU. I'm using kernel adiutor mod, dt2w is amazing.

When the force reboot happened, the settings like (bioshock -default settings,

intelliplug -default settings,

dt2w,

lmk very aggressive,

GPU -400 simple).

I usually set up shadowsocksr(yes, ssr) to get over gfw, at that time, I was using taobao to confirm I had received package pressing the payment password, it lag for a while then reboot.

I hope this could be helpful. Thanks for your hard work!
[Nexus 4 Android Development] dcshallot:
I just got two reboots.

Interactive -default

Intelliplug -default

Io -noop 512 read ahead

Lmk -very aggressive

USB cable plug-in.

I was downloading via wifi 400kb/s using baidu pan.

The second time, downloading background, and I used es file manager viewing the log file (html view), then it reboot. Maybe cause by high CPU temperature? Now I switch to mako-hotplug.
[Nexus 4 Android Development] sudokamikaze:
I got same error when typing PM to my friend in social network
[Nexus 4 Android Development] sudokamikaze:
I have a small idea, maybe it work

Download older build, and do your actions with shadowsocks

Please try with this build and provide a logs, thanks!!

here links to older build

https://www.androidfilehost.com/?fid=673368273298959218 CM

https://www.androidfilehost.com/?fid=745425885120736439 AOSP
[Nexus 4 Android Development] dcshallot:
Can't I use ssr? It's different with ss. I'll try it tonight, I'm outside.
[Nexus 4 Android Development] sudokamikaze:
You can, but when im using ss and typing someone then phone reboot
[Nexus 4 Android Development] dcshallot:
OK ? I'll try then.
[Nexus 4 Android Development] dcshallot:
I just compare the md5, this link point to a same one in my phone while I downloaded another with md5 9f49cb4c6b35977a9d87ab540aacb5bd, I'll try this one this time.
[Nexus 4 Android Development] dcshallot:
Shadowsocks left a zombie process and the public servers aren't helpful so I uninstalled it. And, this kernel no reboot, for now.
[Nexus 4 Android Development] sudokamikaze:
Please provide a screenshot in about phone
[Nexus 4 Android Development] dcshallot:
Here you are~
[Nexus 4 Android Development] sudokamikaze:
Thanks, do you have any issuses?
[Nexus 4 Android Development] dcshallot:
Seems no, thank you for staring on it.
[Nexus 4 Android Development] sudokamikaze:
Kk, i'll add some features today
[Nexus 4 Android Development] dcshallot:
Great!

I'm not sure whether it's an issue that the music lag while switching network on screen off.

-interactive max screen off 1350

-mako hotplug

I can only choose ondemand(I haven't tried yet)? In quanta kernel, interactive works well.
[Nexus 4 Android Development] sudokamikaze:
Music like shuttering or like lags?
[Nexus 4 Android Development] dcshallot:
like shuttering, pieces. The musics are offline(downloaded). Some are 320kbps, some are lossless
[Nexus 4 Android Development] *Jonny*:
I confirm, I have the same problem

:rolleyes:
[Nexus 4 Android Development] sudokamikaze:
OK, I got it

I'll provide build with re-enabled wakelogs for you
[Nexus 4 Android Development] Sam Nakamura:
I don't see it that bad, your idle drain is 2,2% an hour which is reasonable considering you're using Google services / location and I see almost all infamous Google services wakelocks, alarms and processes keeping your system busy. There're just 21 kernel wakelocks, most prominent "msm_hsic_host" with 43min/6.1 percent, this means for me that potential drain is from Google services, not from kernel wakelocks, however I'm not a pro in reading BBS logs, I suggest you to post the log to the BBS thread with a question about improvements you may be able to do or if it's a kernel related issue, which I honestly doubt but again there're much better people reading those logs over in the BBS thread...

The BBS log should be done within 1 minute after waking up the device from at least 6 hours of sleep, yours have a screen on time of 12+ minutes, which could give significant changes to the log...
[Nexus 4 Android Development] bgoel4132:
ohh i didn't knew that really

and sure i will post logs in bbs thread in search of a solution.

thanks for your consideration.

---------- Post added at 12:21 PM ---------- Previous post was at 12:19 PM ----------

thanks a lot a lot a lot for your special attention and consideration for just me i am highly oblidged by your gratitude dedication and attitude to get everything and everyone satisfied. :angel::angel:
[Nexus 4 Android Development] Sam Nakamura:
Check this out to get it perfectly right

https://xdaforums.com/showthread.php?t=1179809&p=72467976
[Nexus 4 Android Development] sudokamikaze:
I've charged my phone and installed fresh testing build again

Launching BBS to get real battery drain %
[Nexus 4 Android Development] bgoel4132:
100 to 90 overnight

since over a month i was on mobile data yesterday my plan got finished and i encountered wifi blackouts too as i switched to wifi for internet access
[Nexus 4 Android Development] bgoel4132:
Bug report
[Nexus 4 Android Development] Sam Nakamura:
I assume those 2 posts belong together?

10% overnight drain doesn't sound to bad, depending on how long the night was, for me it's constantly 0,9 - 1% per hour idle drain (on Wi-Fi which is usually more batty friendly), this is pretty good in my opinion for elder devices, considering that modern hardware further reduces the energy need, modern hardware is simply more effective by nature, so not bad for this old lady...

In general I think there isn't much more improvement to gain without reducing functionality, i.e. limiting installed apps and Google services but I wouldn't recommend it as this is usually quite a hassle, opens room for further problems and could introduce undesired behavior (not getting notifications, etc.) and all that for just something like 0,5% better idle drain, that's not worth it, in my opinion...

Do you mean "Wi-Fi drops" with your explanation? I experienced that sometimes (on UA with SINAI-N4) the Wi-Fi disconnects for may half a second and then reconnects, nothing really bad but noticeable, however this happens rather occasionally, so no logs and therefore I'm unsure if ROM or kernel related
[Nexus 4 Android Development] bgoel4132:
actually i am using fake nexus and has a great wofi blackout at regural interval of 15 to 20 min continuous use on wifi the wifi is completely gone and shows disabled when tried to reconnect

i could only reconnect by a restart or a trick which i believe to be perfect without a restatrt for all kind of wifi blackout that is to switch on hotspot and switching it off thi trick always works for me and wifi comes back until the next blackout.
[Nexus 4 Android Development] sudokamikaze:
Here's my battery log

I'll test another testing build and report with stats tomorrow
[Nexus 4 Android Development] Sam Nakamura:
Not bad, 1,3/per hour... But your using franco's naptime :), anyways no extensive kernel wakelocks - so I would be really surprised if drain issues were kernel related...

What's the radio / modem you're using? Looks unfamiliar but I could be wrong...
[Nexus 4 Android Development] sudokamikaze:
I'm using latest radio img from Google's factory image

Of course i'm using Doze, greenify used as well :D
[Nexus 4 Android Development] Sam Nakamura:
Don't know why I was thinking this then... :cyclops:

I usually use it too (there's a great greenify magisk module which makes it run in privileged mode) exept on this device so far and I can't complain, it sleeps like a baby... Using a pretty limited setup as it's just a secondary device but basic functions like doze is working, there's no excessive drain from kernel or system for me...
[Nexus 4 Android Development] moriel5:
Alright, I am ready to test undervolting by 50mV now, with my current results (on the latest kernel + latest modded Kernel Adiutor, no undervolt, both "hellsactive" and "smartmax" governors tested) showing no noticable differences as to temperatures, and having a baseline on "smartmax".

One thing I had noticed, is that "smartmax" does bring a slight performance hit, however temperatures are also slightly lower (by about 2 degrees, however this is consistent).

Another is that today I had updated NewPipe, and performance there with "smartmax" is now equal to "hellsactive"'s performance before the update (thermals are the same, though).

And the last thing, until I manage to get some silver, I have reciever a copper plate of 14mm X 14mm X 0.5mm, which I plan to place in my phone (along with some "Arctic Silver 5) once I finish testing the -75mV undervolt.
[Nexus 4 Android Development] eadzon64:
good luck with that,

with my setup I had to scrape the copper a bit

to fit the backplate right

Be careful without that, one broke in the process

In my setup i'm having really good results usin elementalX and AutoSMP
[Nexus 4 Android Development] TundraLK520:
I tried using sinai with UA, with spectrum the rom became very sluggish and response time also increased and this was just with gapps amd no other app installed. No matter which profile was selected there was delay in animations. I don't know whether it was spectrum or the kernel itself that caused this. Used the UA only build.
[Nexus 4 Android Development] bgoel4132:
any new build for us to test..
[Nexus 4 Android Development] bgoel4132:
had a sod recently on the testing build

sod's are rare on my phone but yes they do occur once in a regular interval of 5 days
[Nexus 4 Android Development] bgoel4132:
recently encountered screen freeze while using YouTube. with latest testing build
[Nexus 4 Android Development] sudokamikaze:
There's a bad news

I decided to stop development. Sorry about that

I have no time & desire for that...

I've got a job and so on

Instruction: How-to swith back to ROM's kernel:

1. Download fresh build of your rom

2. Go to recovery and perform dirtyflash

3. Wipe cache

4. Reboot to OS
[Nexus 4 Android Development] sudokamikaze:
I had to re-open thread and I'll keep it opened until [MENTION=5358804]moriel5[/MENTION] send his changes

I also release last testing changes which worked well
[Nexus 4 Android Development] moriel5:
Alright, I have finished with my -50mV undervolt.

No stability issues whatsover, and a consistent drop of 1-2° (I'm guessing about 1.5°) celsius under load.

Now for the last leg of the journey, -75mV.
[Nexus 4 Android Development] sudokamikaze:
Unlegacy team pushed their new build which contains my binder changes

So, I've pushed new build(link in OP post) which creates compatibility

Enjoy
[Nexus 4 Android Development] bgoel4132:
thats great that you had not stopped updating this kernel

we all are very thankful for that.

---------- Post added at 04:10 AM ---------- Previous post was at 04:08 AM ----------

@sudokamikaze can you please update binders in aosp build also
[Nexus 4 Android Development] sudokamikaze:
Enabling 64-binder requires to update device-tree. Not all maintainers want this and I'm not team member of LIneageOS/ETC

Also if you enable 64-bit binder mode in kernel and device-tree(e.g ROM) doesn't support that - you'll get bootloop

I'm only member of Unlegacy-Android & PixelDust

I've updated build as I said before I stopped development. I'll continue my work in the middle of summer or maybe in the end
[Nexus 4 Android Development] TZTL:
Can I flash this kernel to Los 15.1 official build? If not when will it be available
[Nexus 4 Android Development] sudokamikaze:
You can't. And there's no plans about that.
[Nexus 4 Android Development] sudokamikaze:
Hi there guys! I'm back!

Changelog:

sdcardfs updates from latest kernel_common/3.10 branch (which are already in Unlegacy's & LineageOS' kernel)

Rebased sources, I've made cleanup of unneeded & buggy changes. Now UI works smoother

Optimizations from UA's hammerhead's kernel

F2FS Updates (Probably I've already released a build with it but I don't remember exactly so I decided to mention that again)

Removed spectrum support because I don't really use it and i'm not sure that someone still using it

Ramdisk cleanup. Now kernel flasher hooks into rom better(Especially for Unlegacy-Android rom). It means that kernel settings which I've set in ramdisk will finally work.

I hope that battery drain have disappeared because my battery isn't in perfect condition

And kernel will have Android Pie support as soon as it gets ported to mako

Links are updated! Check them out!
[Nexus 4 Android Development] bgoel4132:
Cheers I am in a mood to throw a great party for you. Kudos to your dedication and thanks a lot.

Will report back soon after installing.
[Nexus 4 Android Development] sudokamikaze:
Warning for Unlegacy-Android users

I've made a mistake in ramdisk configuration so you will see MPDecision & Thermald in your KernelAdiutor

And you must disable them - or you will encounter wakeup/performance/batterydrain problems. I'm working on it and I will release new build shortly
[Nexus 4 Android Development] sudokamikaze:
Build which fixes those mistakes which I mentioned before is pushed!
[Nexus 4 Android Development] bgoel4132:
the latest build along with gcam tool fix and google cam version 3.2 fixed video recording for me in faie nexus rom

which was the only problem in the rom

others please confirm the same
[Nexus 4 Android Development] sudokamikaze:
Cool! Did you encounter battery drain?
[Nexus 4 Android Development] bgoel4132:
no i didn't encounter a battery drain.

everything just works fine but yesterday my phone rebooted of no cause and the camera stopped functioning completely on all apps which got fixed after a reboot

dont why this happened the same had happened earlier too but the camera was functioning properly then.
[Nexus 4 Android Development] KitsuneFoxy:
Does this still cause the powerhal spam in catlog relating to touch boost when mpdecision is off? aswell as the mpdecision being unable to change cores and such? Or is that something in the rom that needs to be told to ignore?

Also checking the OP, It says to use the kernel auiditor mod, but that's really old, Will KA-mod reborn also work?
[Nexus 4 Android Development] tinynja98:
Hello, I'm trying to install this kernel, but everytime I do, when I reboot, I get stuck on the Google screen right before the system boots. I have tried installing this multiple times on top of NitrogenOS and CarbonROM (ROM, then GApps, then Kernel), each time making sure to wipe everything (and no errors occured) except internal storage, but the same thing happens everytime (I get suck on the Google screen when I reboot). I have TWRP 3.1.2-0 installed and all the partitions are formatted as ext4 (though when I press on "format data" I get an error "unable to wipe '/data' -- unknown file system 'auto'. Unable to format to remove encryption.", I don't know if this is related?). I do not get any error during the installation. Any help would be very appreciated!
[Nexus 4 Android Development] Sam Nakamura:
If you try to flash this kernel on anything lineageOS based remember that the version for lineageOS based ROMs is only supported to android 7 nougat, an Oreo based kernel is only available for AOSP based ROMs.

If you followed this information outlined in the OP already and still have issues proving logs would be a great idea, TWRP has a logging feature where you can grab logs after a failed flash...

Edit: [MENTION=7970097]sudokamikaze[/MENTION] nice to see you back man! :highfive:
[Nexus 4 Android Development] tinynja98:
Well as far as I know, NitrogenOS should be AOSP based and therefore it should work with the AOSP version of the SINAI kernel? Here are the logs as you suggested (fyi I installed NitrogenOS (2018-08-07), then OpenGApps Aroma (2018-08-21) and then SINAI N4 AOSP (2018-08-16)).
[Nexus 4 Android Development] Sam Nakamura:
Yeah, you're right nOS is AOSP based but also heavily modified in comparison to the very stockish UA builds, maybe that's the issue - I never used nOS on my devices so I have no idea but this kernel ran brilliantly on UA Oreo, that's why I'd assume a custom ROM issue, have you searched the nOS thread for reports about Sinai? Maybe others reported incomparably or something before...

Edit: I'm ****ty at analyzing logs but obvious things I see are issues with fstab.mako and ramdisk (line 872 & 895) which point to a incompatibility for me, but I probably miss something here and I think there's nothing anyone exept [MENTION=7970097]sudokamikaze[/MENTION] can do about it (if even) - compatibility aims primarily for UA!
[Nexus 4 Android Development] sudokamikaze:
Only on Unlegacy-Android spam will be suppressed on such versions as 7.1/8.1

It's old but working properly and without issues. I haven't tested Reborn version and I'm not going to.
[Nexus 4 Android Development] sudokamikaze:
On which rom version you trying to install?
[Nexus 4 Android Development] sudokamikaze:
Such strange thing.. Fstab is replacing completely, not patching. I will check the logs later
[Nexus 4 Android Development] walterego221:
Hi, I saw that the quanta-reborn was closed.

I'm looking for a kernel compatible with lineageos 15.1 to change the voltages, can you tell me if this new kernel works for this?

thank you
[Nexus 4 Android Development] sudokamikaze:
Quanta-Reborn doesn't work with android 8.*

And this kernel doesn't work with newest lineageos too.
[Nexus 4 Android Development] KitsuneFoxy:
Wish this kernel worked on marshmallow

Quanta is ok, just lacking the lower speeds hellscore can do. Like 184, 97 mhz on cores.
[Nexus 4 Android Development] tinynja98:
So any update on my logs regarding NitrogenOS not booting after the install of this kernel? NitrogenOS and SINAI would make a pretty much perfect combination for me so I'd very greatly appreciate it if you could help me make it work! :)
[Nexus 4 Android Development] amir.susul:
im waiting for this fix too
[Nexus 4 Android Development] buacan:
I am having the same problem as tinynja98. Been using
[Nexus 4 Android Development] sudokamikaze:
Sorry about delay, I've been working hard those weeks
[Nexus 4 Android Development] sudokamikaze:
What's the problem of using 7.1 at least? I've been on it whole time
[Nexus 4 Android Development] Jacobgacs:
Stuck on Google Logo for 20 mins