yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] Pac-Man:
I'm a NitrogenOS user, sorry for not testing that testing release :(
[Nexus 4 Android Development] xenyz:
Some feedback: it seems GCC 6.1.1 is stable enough, been using r05 AOSP CPUSET since release and no issues. A happy result is that with Android 7.1.1 and HellSpawn, I haven't had a SoD in a month.
[Nexus 4 Android Development] Has_anDroid:
thanks work kernel
[Nexus 4 Android Development] jolinnard:
Ok, so after fixing CM and AOSP-CPUSET (thanks [MENTION=3118524]xenyz[/MENTION] for the advice), all tests are removed and OP links should be OK:

HellSpawn-N4-Nougat-R05-AOSP-UBERTC-6.x.zip

HellSpawn-N4-Nougat-R05-AOSP-UBERTC-6.x-CPUSET.zip

HellSpawn-N4-Nougat-R05-CM-UBERTC-6.x.zip
[Nexus 4 Android Development] Applesan:
Dear [MENTION=5091819]spezi77[/MENTION]

Can you decrease amount of used frequencies to 13? Like on Taurus kernel, screenshot is below.
[Nexus 4 Android Development] spezi77:
Thanks for kindly asking. Could you please say what is the gain? ;)
[Nexus 4 Android Development] spezi77:
A few days ago I posted a new KA-Mod build which should solve the problem of dt2w not sticking after reboot.

Any feedback?
[Nexus 4 Android Development] Applesan:
As for me: I use Taurus and made for my Faster CPU undervoltage curve. If I use HellSpawn for some frequencies I have no experiences of UV. I have a lot of SOD.

And I think: more frequencies - more jumps of CPU. It is some positive battery affect of small amount of frequencies. I believe in that :D

Below is my UV.

Only for Faster CPU!

(red line - stock voltage, blue line - UV)

And I use some personal analogue of big.LITTLE technology:

on dialy use i see that 2 cores are more time online, for them I use 1026 MHz freq, and for heavy apps I use 1242 MHz for other 2 cores. This way I can decrease power consumption.

And reading this topic I noticed that using interactive governor and next CPU governor settings helps me "parks" 3 cores and 1 core stay online on 384 MHz when I do nothing with my phone (reading book, twitter (solid text)).

P.S. sorry for my bad english. :o
[Nexus 4 Android Development] bart.found:
I used Taurus kernel for a long time and when I switched to hellspawn I had same issues with sleep of death and random reboots... I assume that Taurus had vdd voltage boost active by default (which means +25mV in each frequency), while hellspawn doesn't! Raise your voltages by 25mV and you'll have the same configuration and the same stability you were used to have on Taurus
[Nexus 4 Android Development] dcshallot:
lineageos-mako has rolled out now: https://download.lineageos.org/mako

I did a clean installation.

HellSpawn kernel has the wrong screen color.(tend to yellow)
[Nexus 4 Android Development] spezi77:
Which kernel/version did you flash? Please read a few pages back. There is a fixed build of r05 for CM by jolinnard.
[Nexus 4 Android Development] dcshallot:
I can't download it by his link, and it's also r05. I should have a try then?
[Nexus 4 Android Development] spezi77:
No, I meant the post with these download links:

If HellSpawn-N4-Nougat-R05-CM-UBERTC-6.x.zip didn't work for you, then the lineage OS has again changed something in their codebase.

What is the situation with the AOSP build?
[Nexus 4 Android Development] dcshallot:
HellSpawn-N4-Nougat-R05-CM-UBERTC-6.x.zip

That's what I tried from your 1st post. Are they the same? And I did not try AOSP build ever.

I'm sure that I downloaded from https://www.androidfilehost.com/?w=files&flid=136250 but it's a old version. I'm downloading the new one. Update later.

Update: works fine! Thanks a lot!
[Nexus 4 Android Development] dcshallot:
Almost default settings. But the phone didn't deep sleep?
[Nexus 4 Android Development] xenyz:
Almost? :D

You gotta use BetterBatteryStats to find the reason.
[Nexus 4 Android Development] dcshallot:
Now, I'm trying CPU interactive, autosmp but disable screen off single core.
[Nexus 4 Android Development] moriel5:
Does this make sense to anyone?

The maximum CPU frequency is not being respected by cores 2-4, only by the primary core.

I am using the AOSP kernel on Nitrogen OS.
[Nexus 4 Android Development] xenyz:
Using Kernel Adiutor? You must online all CPUs you want to adjust before changing frequencies.
[Nexus 4 Android Development] moriel5:
Thanks, I'll try doing that.

Update: It seems be in proper order now, will I have to do this after every reboot?
[Nexus 4 Android Development] xenyz:
If you select apply on boot, generally all cores will be busy during startup for at least a few minutes, and it will apply just fine.
[Nexus 4 Android Development] moriel5:
That is why I asked about reboots, as I had already set it to apply on boot.
[Nexus 4 Android Development] nARMstrong20:
By apply on boot it doesn't always mean at the exact moment you boot, I often takes a few seconds (you can set how long it waits before applying your settings in Kernel Adiutor settings)
[Nexus 4 Android Development] M4rf0:
Hi, I have problem with incoming calls on this kernel. When somebody call to me the screen is by 3-4 sec black and after this time I can see who is calling and something is wrong with ringtone it looks like it is interrupted by something. After couple of seconds everything starts to work ok. Manually unlock is working good but only with incoming calls I have problems. Are there any possible tweaks to make this working ok? This kernel is perfect to battery life and I don't want to use others :P
[Nexus 4 Android Development] spezi77:
Anyone else having this issue?

Which is your ROM?
[Nexus 4 Android Development] M4rf0:
Resurrection remix nougat, on quanta and stock kernel I don't have this problem. This looks like the cpu wake time is too long and when the phone starts to ringing phone can't wake up in short time. Everything else works smooth.
[Nexus 4 Android Development] moriel5:
I also get this issue, though the cases are extremely are.

Nitrogen OS over here.
[Nexus 4 Android Development] dragos281993:
Check your hangouts. I sent you a message.
[Nexus 4 Android Development] rodries:
Rigth, seems that MPDecision & Mako hotplug control are enabled simultaneously
[Nexus 4 Android Development] Cristiano Lira:
It started here too even with MPDecision turned off, It's like some part of it is still on even after turned off. If it's true, fixing it would increase battery performance really well.
[Nexus 4 Android Development] xenyz:
On AOSP ROMs you can't 'turn it off'; you have to remove the service from init.mako.rc so init doesn't keep restarting it.
[Nexus 4 Android Development] spezi77:
Hum, that's weird because I was full of hope that with this change MPDecision got killed: https://github.com/spezi77/hellspawn-N4/commit/ebc400a20f04da9c50d28d8190fafb69c9573972

Sent from my beanstalked N4.
[Nexus 4 Android Development] spezi77:
First off, I am looking into the recent changes between r02 and r05. I suspect to find in one place the cause for increased battery consumption.

In my observations, r02 has had an acceptable battery life..

You probably thought of adding a smartmax or smartass governor, isn't it?

Sent from my beanstalked N4.
[Nexus 4 Android Development] spezi77:
Deleted..
[Nexus 4 Android Development] Cristiano Lira:
Yep, in r02 battery life was better. I don't know much about governors but I said that because from the governos included on the kernel ondemand is the more battery friendly lol, that is not even known as being that great in saving power. I didn't even knew that smartass is compatible with our nexus, is it? But, sure, we could try new governors and/or tweak the ones we have. What governors could we try, if this is the path we will choose?
[Nexus 4 Android Development] xenyz:
Isn't that the in-kernel bricked msm_mpdecision? To disable the /system/bin/mpdecision usermode binary, you have to do it in the anykernel installer ( remember? :)
[Nexus 4 Android Development] mesaj:
As soon as I switch governor to hellsactive it crashes.

Using r05 cm ubertc 5.3

Logs hellsactive

http://pastebin.com/vyZQ641V last_kmsg

http://pastebin.com/my9xXyP8 dmesg

And to ondemand the same

http://pastebin.com/7fMeywk9 last_kmsg

http://pastebin.com/Pr25cxrt dmesg
[Nexus 4 Android Development] spezi77:
Something went wrong for you. Try to install r05 over r03 or lower. Or revert to kernel that comes with your rom, and then install r03, then r05.

Sent from my beanstalked N4.
[Nexus 4 Android Development] spezi77:
I think that you should consider this

Important information about kernel installation & issue with "battery drain" in older kernel releases (r01-r04):

If you should observe that this kernel eats your battery even when your phone has been switched to AIRPLANE mode, then it is clear that mpdecision service is running in the background, even though it appears to be disabled when we look into KernelAdiutor app.

There are currently a few well known ways to kill mpdecision.

1. Install/use my BeanStalk rom or just flash the boot.img which has this setting already configured in the kernel ramdisk and then dirty flash a new version.

This is the command which I use in my ramdisk (init.mako.rc)

# Disable mpdecision
stop mpdecision

Note: I have observed that when dirty flashing two times in a row the ramdisk configuration could get lost.

2. Manually stop mpdecision, by entering the command: stop mpdecision in the terminal.

3. Improved anykernel installer (r05+). I managed to rewrite the anykernel installation script. Thanks to [MENTION=3118524]xenyz[/MENTION] for contributing ideas.
[Nexus 4 Android Development] Jakub_Z.:
Hmmm... Within two days I had two random reboots. I didn't even noticed them - just realised those after seeing battery chart. Anyone else has those too?

On previous build there wasn't any restarts. Guess I can't dirty flash older build? :D
[Nexus 4 Android Development] redj12:
I installed this kernel and there are some points. La battery life was bad. I will try to disable mpdecision as you said. I can't change the governor. If I do it, my phone freeze and then reboot.

I am on the latest CM.
[Nexus 4 Android Development] spezi77:
Hey there!

Good news, starting with r05+ (check OP), clean and/or dirty flashing will work without any issues, and I have managed to insert the "stop mpdecision" command into the ramdisk patcher.

BTW, the new anykernel installer will reuse the ramdisk of your previous kernel and apply a patch with my HellSpawn Kernel Tweaks.

Enjoy.. ;)
[Nexus 4 Android Development] kol1124:
Thanks for all bro, good job! ?

Wysłane z mojego Nexus 4 przy użyciu Tapatalka
[Nexus 4 Android Development] tslnox:
Stability test

Hello,

I was trying to undervolt the phone, using about week old CM 13 nightly with hellspawn r05 tc5.3, trying both HKM and UKM (Synapse). First the issue was, even when I undervolted one "step" (-12500) and ran Stability test, my Mako crashed within minute. My cpu bin is "faster".

Cores showed passed test runs 0, only RAM runs passed (last try did 22 runs).

System log showed "emtpy" (sic).

After many tries, I tried to run scaling stability test again, but without UV. Also crashed, without even completing first core pass.

Anyone has an idea what to try or what logs to provide?

Thanks
[Nexus 4 Android Development] spezi77:
Please try r05+ and let me know if battery life has improved.

BTW, I started today to integrate bricked-hotplug from the dev named showp1984. My intention is to offer you an alternative hotplug driver which is not too aggressive, but still gives a smooth & fluid UX and looks promising when we talk about battery life.

Sent from my beanstalked N4.
[Nexus 4 Android Development] spezi77:
Hey there,

I have to admit that I never tested to undervolt this kernel, and I am not sure about the wins and losses by doing so. In other words, I am very glad to receive your feedback.

Could you please explain what exactly you mean with "run scaling stability test"? Is it a tool or app?

Thank you and have a nice day.. [emoji16]

Sent from my beanstalked N4.
[Nexus 4 Android Development] spezi77:
First off, please try r05+. In this version dirty flashing should be just fine..

Please look at /proc/last_kmsg to find out more details. It is the kernel log from the previous boot. Save a copy (# cat /proc/last_kmsg > /sdcard/last_kmsg.txt) and upload it somewhere, e.g. pastebin.

Sent from my beanstalked N4.
[Nexus 4 Android Development] Mrcactuseater:
If you're adding in new hotplugs, could you add autosmp? It's very smooth

Tapatalk'd from my Dirty, Hellspawn'd Mako
[Nexus 4 Android Development] dcshallot:
Lineageos 14.1 nightly 0125, this issue happens too.
[Nexus 4 Android Development] spezi77:
Hey [MENTION=2002216]jolinnard[/MENTION]

I have replaced the cpu freq limiter used in this kernel. Could you please have a look into the new commits and make a test build?

Thanks in advance! :fingers-crossed:
[Nexus 4 Android Development] moriel5:
Update: Now it seems to be happening most of the time.

I hope the new CPU frequency limiter will help.

And I am sorry spezi77, I am out of thanks for the day (I should be able to press thanks again within a few hours, if not in a few minutes.
[Nexus 4 Android Development] spezi77:
NP, just thank God! :D
[Nexus 4 Android Development] moriel5:
We think alike.

Praised be God, or as his most used name in mine native tongue, Hashem.
[Nexus 4 Android Development] jolinnard:
Hi, I've tried a quick build before sleep, but msm_limiter fails. Full AOSP build log: https://hastebin.com/iyipuraluy.coffeescript

I'm still using uber-arm-eabi-6.x toolchain.
[Nexus 4 Android Development] spezi77:
Hum, I have missed out something.. I will try to look into it later tonite.
[Nexus 4 Android Development] spezi77:
[MENTION=2002216]jolinnard[/MENTION] compiler error solved. Please make a retry. :D
[Nexus 4 Android Development] jolinnard:
HellSpawn N4 Nougat R06 is up!

Build done :)

Links:

HellSpawn-N4-Nougat-R06-AOSP-UBERTC-6.x.zip

HellSpawn-N4-Nougat-R06-AOSP-UBERTC-6.x-CPUSET.zip

HellSpawn-N4-Nougat-R06-CM-UBERTC-6.x.zip

Edit: msm_limiter seems to be working fine. I can set different governors and frequencies per cpu. Cool.
[Nexus 4 Android Development] dcshallot:
Entry time I have a look at the app, cpu governor always blank, so I'm not sure if the settings work?

Btw, incoming calls black screen issue fixed. Thanks!

Lineageos 14.1 0131.
[Nexus 4 Android Development] M4rf0:
Problem with screen and sound on incoming calls is still present... Tested on r06.
[Nexus 4 Android Development] jolinnard:
Enable per-core control or clean Kernel Adiutor data.
[Nexus 4 Android Development] dcshallot:
I've clear its data, but it's still blank. Per core control is hard to use.
[Nexus 4 Android Development] spezi77:
Good to know that black screen issue is gone.

Cpu governor not being displayed is afaik an issue with KA app -- nothing to be worried about.

Edit: just temporarily disable msm_limiter for changing CPU gov, afterwards re-enable it.
[Nexus 4 Android Development] dcshallot:
I'm sorry, I just have a call after a long time phone sleep. Until the ringtone stop, the screen didn't wake up.
[Nexus 4 Android Development] M4rf0:
Uff, so I am right that this is still present problem :P
[Nexus 4 Android Development] spezi77:
Please make a test. Turn off msm_limiter. Is the problem still persistent?
[Nexus 4 Android Development] dcshallot:
I've turned it off, but I'm not sure if it is normal: after a ringtone ring up for few seconds, the screen wakes up.
[Nexus 4 Android Development] M4rf0:
I also turned it off and when phone wibrate and starts ringing the screen is black but after 2 seconds it wakes up. No more problems with strange sounds.
[Nexus 4 Android Development] Jeffj0092:
When i install this kernel in Cosmic OS lastest build, my color screen tints between yellows,greens and oranges, anyone know how to solve this? Maybe the kernel is not compatible at all with the rom?
[Nexus 4 Android Development] M4rf0:
Did you try CM version?
[Nexus 4 Android Development] Jeffj0092:
No i dont, only the AOSP, ill give it a try and see

Update: Working well the CM version
[Nexus 4 Android Development] spezi77:
Hey [MENTION=2002216]jolinnard[/MENTION]

Another idea for a new test build: https://github.com/spezi77/hellspawn-N4/commits/n-7.x-dev

Removed all commits related to msm-sleeper. :fingers-crossed:
[Nexus 4 Android Development] jolinnard:
Kernel build done. ZIPs are uploaded here: https://mirror.lnx.im/android/mako/hellspawn/R06_test/
[Nexus 4 Android Development] dragos281993:
Great. That's gonna fix the screen-on delay on an incoming call.
[Nexus 4 Android Development] spezi77:
Let's hope that it works. BTW, credits to Dragos for figuring this out! ;)
[Nexus 4 Android Development] Has_anDroid:
thanks rr remıx work ?
[Nexus 4 Android Development] M4rf0:
Testing in progress on clean installed RR 5.8.1 rom :)
[Nexus 4 Android Development] Has_anDroid:
thanks rr rom work
[Nexus 4 Android Development] M4rf0:
Sadly problem still exists. Audio and screen issues as in previous builds.
[Nexus 4 Android Development] spezi77:
Which CPU hotplug/governor?

Could you use different combinations to see whether it changes anything?
[Nexus 4 Android Development] M4rf0:
All was "stock" governor for sure was hellsactive, to hotplug I don't look. This week I will test it. On previous test build, when the msm limiter was off phone works good but the battery life was poor.
[Nexus 4 Android Development] kgb9488:
[MENTION=5091819]spezi77[/MENTION]

Will you planning add faux sound in your kernel ?
[Nexus 4 Android Development] xenyz:
It's been included for a while, look under /sys/class/misc/soundcontrol

Edit: oops, I guess that is Franco's sound
[Nexus 4 Android Development] dcshallot:
Incoming call issue still happen. I just have a call but it didn't ring up and the screen keep sleep. I just want to see my chatting messages and notice there is an incoming call. Lineage os 14.1 0214.
[Nexus 4 Android Development] dcshallot:
What are the default low member killer values of cm rom? I feel lag after a long day of use.

Now I've updated to lineage OS 0302, it has a kernel change too, please update your kernel when you have time, thanks!
[Nexus 4 Android Development] dcshallot:
Here's a situation.

1. Reboot into recovery and install ROM update

2. Install kernel zip, it's R06 test

3. Mount system and remove stk

4. Reboot system

During the booting, I don't touch it

5. Leave it alone, and keep it locked then fall asleep

6. Wait a few minutes, I think it's enough to load mod kernel settings, but:

--max frequent lock in 702

--governor unknown

--kernel limiter enabled

Then the phone lag so much until I set manually.

It seems that I have to unlock into home page otherwise it won't apply the settings.
[Nexus 4 Android Development] Jhajjar:
Lineage OS 14.1

My N4 is stuck at boot animation loop after flashing "HellSpawn-N4-Nougat-R05-CM-UBERTC-6.x". I am using	"lineage-14.1-20170309-nightly".:eek:

---------- Post added at 06:02 AM ---------- Previous post was at 05:59 AM ----------

Also is there a way to use " Logitech c270 webcam" by OTG support hack?
[Nexus 4 Android Development] S5830er:
OTG with CM14

Can not delete this post.

Got OTG working on CM14 with kernel HellSpawn-N4-Nougat-R06-CM-UBERTC-6.x.zip

and activating OTG with KernelAdiutor-Mod.apk .
[Nexus 4 Android Development] xBane_:
Cpu oc?
[Nexus 4 Android Development] Has_anDroid:
7.1.2 support aosp
[Nexus 4 Android Development] spezi77:
So, it doesn't work with 7.1.2?
[Nexus 4 Android Development] Has_anDroid:
coming soon ?
[Nexus 4 Android Development] Mrcactuseater:
It does, I can personally confirm.
[Nexus 4 Android Development] spezi77:
Great, then there won't be any update coming. ;)
[Nexus 4 Android Development] zephyr79:
Is R05 the latest version?
[Nexus 4 Android Development] spezi77:
Yes, the last official/stable one.
[Nexus 4 Android Development] sudokamikaze:
Selinux wont disable on marshmallow latest build
[Nexus 4 Android Development] spezi77:
You could try the latest build. Even if it says nougat, it is likely to work on older ROMs, too.
[Nexus 4 Android Development] TheLastCanadian:
How does one get DT2W enabled on the actual device? IS there a particular ROM that supports it out of box?

I've got this kernel installed, but all the kernel apps I'm finding don't allow one to enable this; doubletap2wake for instance says that the kernel is unsupported. I understand that's probably on their end of things, but I'd like to know how I enable this feature?

I'm currently running XenonHD (7.1 base) w/ Hellspawn (HellSpawn-N4-Nougat-R06-test1-CM-UBERTC-6.x).
[Nexus 4 Android Development] spezi77:
You can use Kernel Adiutor Mod app linked to this thread. You can find it in the OP.
[Nexus 4 Android Development] TheLastCanadian:
Excellent. I'd found this by googling in the interim, but I appreciate your assistance.

The power button on my N4 was iffy, so my mother will be very happy with this option. Thanks for helping to keep an admirable device alive!
[Nexus 4 Android Development] hauckk@sfreserves.org:
Deleted
[Nexus 4 Android Development] HubrisRev5:
does the kernel pass safetynet checks if used with magisk? (im on nitrogenOS)
[Nexus 4 Android Development] majster95:
When r06 version ? :)
[Nexus 4 Android Development] zephyr79:
The developer no longer owns this device so I'm guessing no time soon.
[Nexus 4 Android Development] armanatz:
I have been trying to get USB-OTG to work with the latest Pure Nexus ROM and R05 but I can't find the setting in Kernel Adiutor. Am I missing something?
[Nexus 4 Android Development] hauckk@sfreserves.org:
Miscellaneous controls and msm USB otg toggle should be in there
[Nexus 4 Android Development] xenyz:
Use KA-Mod from OP download section.

(Kernel Adiutor proper from Play Store got worse (for me) with background services causing CPU usage / battery drain. )
[Nexus 4 Android Development] zephyr79:
I have witnessed the same recently
[Nexus 4 Android Development] minerek:
Which kernel is the best for drain battery? i have Nougat on Nitrogen OS.
[Nexus 4 Android Development] spezi77:
I highly recommend you to try the SINAI kernel by [MENTION=7970097]sudokamikaze[/MENTION] which is based on hellspawn kernel source:

https://xdaforums.com/nexus-4/development/sinai-n4-kernel-t3614605/page11
[Nexus 4 Android Development] xenyz:
I will try it out, but hellspawn r05 has been the most stable kernel ever since release for me... We shall see :)
[Nexus 4 Android Development] minerek:
Thank you. Now I have it and testing:D we will see;)
[Nexus 4 Android Development] spezi77:
You're welcome! Please keep us posted about your kernel benchmark.. ;)
[Nexus 4 Android Development] minerek:
Unfortunately, I went back to the original kernel with the system update. The battery was even worse and there was a problem with the sound, creaking like a bell ringing.
[Nexus 4 Android Development] moriel5:
I personally can say that the SINAI kernel brings the perfomance and features that the HellSpawn kernel brought to my device, while fixing the (admittedly few) bugs I had with it.

Additionally, I had swapped out my battery with a new one, and switched over to CRDroid from Nitrogen OS (and as a result, I had switched over to the LOS variant), and now I easily get 6-8 hours of SOT, with the system running very smoothly and quickly (governor: Bioshock, hotplug: Mako, CPU frequency: 1134Mhz, GPU frequency: 200Mhz, noGAPPS).
[Nexus 4 Android Development] Bidibu:
OTG

Will I be able to use OTG with this kernel flashed on latest LineageOS?
[Nexus 4 Android Development] Dv2y:
Is that right? Six hours SOT on a Nexus 4?
[Nexus 4 Android Development] pfederighi:
I believe it. I experimented going without gapps once (with KitKat) and my battery life doubled. Sadly, I like the convenience of the Google infrastructure...
[Nexus 4 Android Development] zephyr79:
I can also confirm without gapps battery life is much better but also performance is slightly better also.:silly:
[Nexus 4 Android Development] moriel5:
Precisely, although that would depend on your particular setup.

I have an obsession with ultra-light apps that don't squander power features (as in power user, not as in electricity).
[Nexus 4 Android Development] moriel5:
This kernel is outdated, you should try SINAI-N4, which is partly based of HellSpawn.