yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] 0xcafebabe:
I tried it and it gave me a boot loop.
[Nexus 4 Android Development] spezi77:
Good to know, I will have a look into it soon.
[Nexus 4 Android Development] ajo.koshy:
[MENTION=5091819]spezi77[/MENTION] does this work fine with pure nexus nougat?
[Nexus 4 Android Development] zephyr79:
I'd be surprised it's compiled for MM & works perfectly with it from my experience, I suppose you could try but don't hold your breathe, you may end up having to just reflash the Rom.
[Nexus 4 Android Development] spezi77:
HellSpawn is back.

Get R01 for Nougat from the OP. See 2nd post for changelog.

Have fun.. :laugh:
[Nexus 4 Android Development] Has_anDroid:
fake nexus rom 7.1 work ?
[Nexus 4 Android Development] spezi77:
Yes, it works.

View attachment 3919991
[Nexus 4 Android Development] Has_anDroid:
oh my god thanks ınstalled...... your answer magısk nexus 4 work ?
[Nexus 4 Android Development] Cristiano Lira:
Glad to see Hellspawn is back, spezi! Thank you for your commitment for our mako. :D Just one thing, it's not booting for me here using NitrogenOS 7.1 :/. It tries to boot a couple times then fails and enter in recovery, it can't past Google logo.
[Nexus 4 Android Development] ajo.koshy:
thank you so much for your awesome work :) . i was waiting for this to happen .. cheers!!
[Nexus 4 Android Development] spezi77:
Hum, could you share the init.mako.rc file before you installed hellspawn? Is it possible to make a logcat from the initial boost sequence with hellspawn? That would he great.
[Nexus 4 Android Development] chaostrodamis:
Agreed, same here
[Nexus 4 Android Development] Cristiano Lira:
init.mako.rc: https://drive.google.com/file/d/0B85q3kP-FMJbdXR6aGgtYkZFcFU/view?usp=drivesdk

I'll try to get the logs on PC and will edit this post.
[Nexus 4 Android Development] spawnofdonny:
Init.Marko.rc and recovery log if it helps

https://drive.google.com/folderview?id=0B7T3Xk54A6kfYkhyY2JFZ3MwaXM
[Nexus 4 Android Development] xatou:
Bootloop on latest beltz nougat rom too.

Στάλθηκε από το Nexus 4 μου χρησιμοποιώντας Tapatalk
[Nexus 4 Android Development] spezi77:
If you could share the artefacts (logcat, init.mako.rc) mentioned a few comments above, that would be a great help.
[Nexus 4 Android Development] Cristiano Lira:
ADB logcat in recovery left me with this:

"/sbin/sh: exec: line 1: logcat: not found"

But I could take a last_kmsg:

http://pastebin.com/3mc4wZSD [MENTION=5091819]spezi77[/MENTION]
[Nexus 4 Android Development] spezi77:
Hooray, that's even better. :good:
[Nexus 4 Android Development] Cristiano Lira:
I edited this post, now it has the correct log. :p
[Nexus 4 Android Development] spezi77:
I guess that the solution should be quite simple. In your new log I have found a security error. Which could mean that the ROM needs SELinux set to enforced, but the kernel was built to be permissive.

Christiano, when I will find a little time, I will notify you to install a test build. Alright? ;)
[Nexus 4 Android Development] Cristiano Lira:
Alright. :D

Edit: but the ROM SELimux is permissive. WTF.
[Nexus 4 Android Development] spezi77:
Hum, then I have probably mixed it up, and it is the other way around. :P
[Nexus 4 Android Development] spezi77:
Update! I have figured out how to solve the bootloop. Don't ask why, but you have to have a preinstalled ramdisk which is configured with Selinux=enforced in order to get hellspawn working.

Obviously in case of Nitrogen or beltz the default is set to permissive.

Solution:

Download the kernel from my NeXus4ever ROM: https://www.dropbox.com/s/swh5fn41xfq3w85/boot-enf.img?dl=0

In TWRP you should flash the boot-enf.img (select IMG), then install SuperSU and in a last step install hellspawn.

Enjoy! ;)

P.s.: Thanks to [MENTION= 69380138]Cristiano Lira[/MENTION] for his time to assist me in testing.
[Nexus 4 Android Development] thetearer:
Followed the above steps, using latest Nitrogen rom. Already had SU installed though. I'm guessing it has to be flashed again because of the boot img that we're flashing from NeXus4ever ROM. Phone has been on bootanimation for over 12 minutes now.

Bi of background - Installed Nitrogen rom, opengapps nano, unroot(to remove superuser), flashed SU.zip.

Later flashed Pixel Launcher as a zip file.

Follwed by the above steps:

1. Flash boot.img from link using TWRP

2. Flash SU

3. Flash Hellspawn Kernel

Did Wipe Cache & Dalvik Cache, phone is now stuck at bootanimation.

Suggestions? Recently started using the N4, was using an M8(damaged the display while opening up phone to change camera and micro usb port), so i'm back to N4 now. Any advise is much appreciated :)
[Nexus 4 Android Development] Tjoci:
Yes it's good.
[Nexus 4 Android Development] thetearer:
Phone didn't boot up for over 20mins.

Tried the same process after dirty flashing nitrogen ROM, followed by open Gapps nano, and then above mentioned steps. No luck. Phone still didn't boot up. Went back to stock kernel for now. I will give it another shot later after I've read up a bit more on the nexus 4. I may have something that's causing compatibility issues. Any other suggestions will be appreciated. On mobile right now, but I'll try out any suggestions/topics to read up on once I get home. Thanks :)
[Nexus 4 Android Development] spezi77:
Hum, are you using Nitrogen Android 7.1, correct?
[Nexus 4 Android Development] Tjoci:
#1083 post, on my phone its work.
[Nexus 4 Android Development] thetearer:
Yes I am. Only thing I didn't try yet is a full wipe + flash. Will try that once I get home. Probably something wrong because after first flash, I've dirty flashed ROM like 4 odd times.

Thanks for all the assistance guys, pretty sure the dirty flash is messing up something. Will try clean flash and report back with wifi once I'm back home :)
[Nexus 4 Android Development] spezi77:
Alternatively, you could try to flash revival r02, or ask [MENTION=5337411]Cristiano Lira[/MENTION] how he managed to get it to work.
[Nexus 4 Android Development] xenyz:
[MENTION=5091819]spezi77[/MENTION] could you please enable cpuset and sdcardfs for those of us on Fake Nexus? Cheers, thanks for the continued support!
[Nexus 4 Android Development] spezi77:
Well, I could see whether it is possible. Could you explain me how cpuset works. Is it a replacement for msm-sleeper or msm-limiter? What are the pros/cons? ;)
[Nexus 4 Android Development] Emandroid:
I have the NeXus 4 ever rom based on android 7.0

I want to install this kernel

Which version do i must install? Asop or CM?

Edit: I installed the aosp version. That's really good, in my opinion it is a Pro version of the NeXus ever rom's kernel

There are a lot of options:D
[Nexus 4 Android Development] xenyz:
sdcardfs is a new filesystem in Nougat (?). I'm not certain of the benefit, but on Fake Nexus it's used for internal storage:

mako:/ $ mount | grep sdcardfs
/data/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,multiuser)
/data/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,multiuser)
/data/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,multiuser)
/data/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,uid=1023,gid=1023,multiuser)

cpuset looks similar to cpu_boost and reserves cores for apps running in the foreground:

mako:/ # grep cpuset init.mako.rc
# update foreground cpuset now that processors are up
write /dev/cpuset/foreground/cpus 0-2
write /dev/cpuset/foreground/boost/cpus 0-2
write /dev/cpuset/background/cpus 0-1
write /dev/cpuset/system-background/cpus 0-2
write /dev/cpuset/top-app/cpus 0-3
writepid /dev/cpuset/system-background/tasks

I don't know how easy it is to do but if possible maybe just rebase Hellspawn Nougat on top of ganachoco's kernel repo?

Maybe I'll try it if you're busy; I have a new (2012 :) MBP with a half-decent processor.
[Nexus 4 Android Development] spezi77:
I already tried to add in sdcardfs into hellspawn, but it wasn't possible to get it to compile. The codebase is very likely too old. So I think that you made a good suggestion by rebasing it. Btw, You are welcome to make code contributions. I had in mind to use the nougat branch of my n4e kernel:https://github.com/nexus4ever/android_kernel_lge_mako which is based on the Nougat kernel by zaclimon in order to add the cpuset feature. Once it is working stable, the hellspawn magick can be merged on top of that.

What are your thoughts?
[Nexus 4 Android Development] xenyz:
Well I'm not sure of zaclimons AOSP kernel source but afaik ganachoco/Fake Nexus is 100% up-to-date so that's why I first thought of it. It would be interesting to try both, but I'd choose the latter as everything is ready to go. I'll give it a try by cherry picking everything from your repo and see how many merges it takes.
[Nexus 4 Android Development] spezi77:
In zaclimon's base only cpuset is missing. You can see that he has revert the commit. However, I think that you have a preference now from where to start. Let's see how it goes... Best of luck! :fingers-crossed:

P.S.: I'm really busy this week, maybe there is a little time frame on Sunday for deving..
[Nexus 4 Android Development] zeeBomb:
What is. More stable? This or Nexus Revival? I'm liking the settings list here though? :D
[Nexus 4 Android Development] str3tch72:
Anyone tried it on latest SAOSP?

Wysłane z mojego Nexus 4 przy użyciu Tapatalka
[Nexus 4 Android Development] groovepeppy:
I use it on 7.1 2nd update of SAOSP with Alucard, runs pretty well
[Nexus 4 Android Development] chaostrodamis:
Using revival on nitrogen os. Pretty stable, but I can't wait to have hellspawn again. Its my all time go to kernel. Just can't get it to play nice on my device on nougat.
[Nexus 4 Android Development] fr3quency:
All fine here on Fake Nexus with stock kernel settings and no root. I always edit the kernel's settings using Kernel Adiutor but in this case I chose to keep the stock ones and it's pretty OK for my standards of performance.
[Nexus 4 Android Development] zephyr79:
[MENTION=3032862]spezz[/MENTION]i77 can't wait to test this on PN thanks for your continued support time & hard work :good:
[Nexus 4 Android Development] spezi77:
Just fyi: I started to do a manual rebase of hellspawn on the basic nougat kernel which I use in my N4E ROM. I have managed to compile it with sdcardfs. If things work as expected, then adding cpuset feature shouldn't be a big deal. Maybe already tomorrow I have a test build for you, guys.. Let's see. :rolleyes:

Cheers!
[Nexus 4 Android Development] xenyz:
Great news. I've been occupied with trying to get debian running on an old D-Link NAS I dug up instead. [emoji14]
[Nexus 4 Android Development] :
Anyone tested this kernel on a CM14 or CM14.1 ?
[Nexus 4 Android Development] spezi77:
Here is an early test build (AOSP) for you with cpuset: <!-- removed -->

Please let me know if that's how it is supposed to work.
[Nexus 4 Android Development] xenyz:
Yup cpuset works on Fake Nexus with default autosmp with their helper tool. sdcardfs didn't make it though?

mako:/ # while true; do sleep 1; cat /dev/cpuset/top-app/cpus; done
0
0
0
0-3
0-3
0-3
0
0
0
0-3
0-2
0-1
0-3
0-3
0
^C
[Nexus 4 Android Development] spezi77:
Hum, I think that i forgot to enable the build flag for sdcardfs, though the code changes are present.

I will send you an update by tomorrow.
[Nexus 4 Android Development] gutosilva:
[MENTION=5091819]spezi77[/MENTION]

Hello, I have looked your kernel and it seems like a very good option, but I use Cyanogemod 13. So I want know: Is CPU Governor change working with CM 13 now?
[Nexus 4 Android Development] spezi77:
Hey there,

I really don't know, but I think that chances are good that this problem is gone. I assume that it had to do with the issue that prevented us from toggling the SELinux knob.

Please make a check with the latest build, R02, which I have uploaded just a few minutes ago! This build is for Nougat, but ir should theoretically work also in Marshmallow OS.

Have fun!

;)
[Nexus 4 Android Development] Cristiano Lira:
Good to know that SELinux switch is working now. Now I can use HS as my primary kernel. :)

One question: CPU set only works with Fake Nexus?
[Nexus 4 Android Development] spezi77:
There are a few commands which need to be inserted into init.mako.rc in order to use cpuset. Maybe you can enter the commands via terminal or adb shell.

You should ask [MENTION=3118524]xenyz[/MENTION] for guidance..

I could add these things into my next N4E build, if it's something worth to be added. I am still uncertain about its exact benefits.
[Nexus 4 Android Development] Emandroid:
Why after installing the cpu set of the kernel, is my N4 too slow?
[Nexus 4 Android Development] xenyz:
Also ganachoco wrote a helper, /system/bin/mpcpusetd that handles cores going offline and online and reapplies the settings.
[Nexus 4 Android Development] Emandroid:
I restored the R01 because the R02 is too slow

It uses only ne core

Edit: now it's the same with R01, why?:(

I think that the problem is the alucard hotplug....
[Nexus 4 Android Development] jhonnyx:
Emandroid, if you're using a tool to tweak the kernel, uninstall/stop it or see if you've got a rc.d script running that alters the cpu governor by default when starting the phone.
[Nexus 4 Android Development] spezi77:
I have an advice for you. ;)

Before installing a new kernel build, make sure to remove any settings previously applied in Kernel Adiutor or other tweaking tools. In recovery make a wipe of cache and dalvik cache partitions.

Following this procedure resolved for me any bizarre issues.
[Nexus 4 Android Development] Emandroid:
Thank you! Now all works fine with franciscofranco's hotplug and hellsactive governor:D
[Nexus 4 Android Development] ashjas:
does this have fast charge over USB connection?
[Nexus 4 Android Development] djskribbles:
For someone who doesn't like to tinker with kernels and just wants a stable kernel with a good balance of performance/battery life 'out-of-the-box', is this a good choice?
[Nexus 4 Android Development] Maxr1998:
Does the Nougat kernel still support kexec? I'm not that up-to-date anymore on MultiRom for mako.
[Nexus 4 Android Development] dragos281993:
I don't think multirom is compatible with Nougat yet. Or is it ?
[Nexus 4 Android Development] Maxr1998:
It kind of works on the 6P, that's why I ask ;)
[Nexus 4 Android Development] dcshallot:
After flash this kernel 07/11, I can't use camera with this cm14.1 ROM.

http://xdaforums.com/nexus-4/development/cm14-1-cyanogenmod-14-1-builds-nexus-4-t3492742
[Nexus 4 Android Development] spezi77:
Please share a logcat, or the issue will be ignored.
[Nexus 4 Android Development] Has_anDroid:
requestıng root access hkm not open
[Nexus 4 Android Development] dcshallot:
Please see the logcat and screenshot. Thanks for your work!
[Nexus 4 Android Development] dcshallot:
It's that normal? The phone is in idle but has at least 12 process.(I'm not sure if it named process)
[Nexus 4 Android Development] dcshallot:
cm 14.1 05/11（by stephanmc)

Kernel 07/11

Here's a question: after a reboot, and wait a few minutes for applying kernel settings. The 'DT2W' seems not work until I wake the phone by physical buttons. Is that normal or I should give you a logcat?
[Nexus 4 Android Development] spezi77:
I have never observed this. However, you are using a different kernel tweaker than I. When using Kernel Adiutor Mod to apply the settings everything works for me as expected.
[Nexus 4 Android Development] Ahmed Kassem:
Will you add support for faux sound again?
[Nexus 4 Android Development] spezi77:
No, I decided for franco's sound control which is minimalistic, and less error-prone.
[Nexus 4 Android Development] spezi77:
Please do me a favour and give this build a try: https://www.dropbox.com/s/9mlrnvdjr8npdwr/HellSpawn-N4-Nougat-R03-CM-UBERTC-5.4.zip?dl=0

:fingers-crossed:
[Nexus 4 Android Development] Ahmed Kassem:
I appreciate your decide but how can I control its arguments
[Nexus 4 Android Development] spezi77:
You have to wait until the next build (R03). I am testing it, and then publish it..

KA mod allows to turn it on/off.
[Nexus 4 Android Development] dcshallot:
Thanks! But sorry, it doesn't work(camera). And I'm trying to launch more processes to test a lag issue. I'll upload a bugreport even if it wouldn't happen.

---------- Post added at 01:23 AM ---------- Previous post was at 01:02 AM ----------

time earlier(kernel r02)

sometimes the phone lag so much and I open kernel auditor, noticed that only one cpu core online worked in 1350MHz and the other 3 offline. And I tried remove out all the apps from "recent apps", not helped.

If you think it might be helpful, I capture a bugreport(but I didn't remember if I did a reboot).

And then, I wiped system+dalvik+cache. And return to normal cm14.1+gapps.

Just now, tried kernel r03, not used a while and the lag issue didn't happen, so I'm not sure it would not happen any more. But the Camera doesn't work.

Here are the files. https://drive.google.com/open?id=0B6cOVSgFzFmvd21ucmFEMDZySTg

In the end of the logcat, I launched "open camera" again.
[Nexus 4 Android Development] gutosilva:
Hey man, I'm using "hellspawn-N4-mm-6.0-r18-CM-UBERTC-5.4" and everything is working fine but I found a very annoying bug: the phone don't receive notifications when screen is off, I need power the screen to receive Whatsapp messages, e-mails, etc... I tried change wakelock configs but without sucess.

Any sugest to solve this problem?
[Nexus 4 Android Development] spezi77:
Please add detailed information about the kernel settings, e.g.: CPU hotplug/governor.

Are you sure that it has worked before going to this kernel? Did you already check the ROM related settings?
[Nexus 4 Android Development] spezi77:
It is the CPU hotplug driver that determines how many cores are online/offline depending on the load.

I usually change it to mako-hotplug because I like it best in terms of performance/battery savings.

Could you try that one, and let me know the result?
[Nexus 4 Android Development] dcshallot:
Thanks! I'll try that today.

Update: mako-hotplug works great!
[Nexus 4 Android Development] gutosilva:
Using stock Cyanogenmod kernel all notifications are normal. When used hellspawn with stock configs I have this problem.

The current configs are: interactive governor (underclocked 1.2 GHz), Auto SMP Hotplug (without tweaks). No UV, no DT2W or another tweaks.

UPDATE:

Only Whatsapp is with this issue. Gmail, Telegram and others, are normal.
[Nexus 4 Android Development] spezi77:
R03 for Nougat.

Enjoy ;)
[Nexus 4 Android Development] dcshallot:
Big big great! Stephenmc's cm14.1 11/11 has rolled out too. I'm downloading.

Thanks a lot!
[Nexus 4 Android Development] :
Thank you for your hard work :)
[Nexus 4 Android Development] dcshallot:
Thanks for your hard work! And the camera still can't work.

Here's the logcat.

https://drive.google.com/file/d/0B6cOVSgFzFmveXdoSFVHNUdlbFU/view?usp=drivesdk
[Nexus 4 Android Development] spezi77:
Your logcat doesn't help me to further analyze the issue. It brings an error which points to an issue inside the ROM:

F libc : CANNOT LINK EXECUTABLE "/system/bin/mm-qcamera-daemon": can't protect segments for "/system/lib/libmmjpeg.so": Permission denied

Can you try to take a dmesg?

adb shell
dmesg
[Nexus 4 Android Development] dcshallot:
Here it is. Thanks a lot! And if you release a 7.1 rom, I would try it too.
[Nexus 4 Android Development] spezi77:
And here comes another one.. :rolleyes:

R03 hotfix: solve battery drain while device is in IDLE

* Revert faulty commits (smpboot) which prevent the device from entering deep sleep

My apologies! I didn't test whether the device can enter deep sleep as expected. I just realized it this morning after looking at the stats for battery consumption & used CPU frequencies.
[Nexus 4 Android Development] dcshallot:
After this installation, screen turns blue.
[Nexus 4 Android Development] spezi77:
Woops, I have missed out a small detail. Fixed: https://www.dropbox.com/s/faikqpsc4lcplb6/HellSpawn-N4-Nougat-R03-hotfix-CM-UBERTC-5.4.zip?dl=0
[Nexus 4 Android Development] dcshallot:
Thanks! I considered the old kernel is not stable, so I decided to install your 4ever rom instead. It's done just now. And I hope you should release the Android 7.1 version soon.

This patch works! thanks!
[Nexus 4 Android Development] Ra1d3R:
how can i change dt2w profiles? (like bottom half, center etc.)
[Nexus 4 Android Development] Emandroid:
Will this kernel be compatible with your 7.1 rom? (NeXus4Ever)
[Nexus 4 Android Development] spezi77:
Use my Kernel Adiutor Mod.
[Nexus 4 Android Development] spezi77:
Yes, it is very likely. The latest builds have been successfully tested with Fake nexus 7.1.
[Nexus 4 Android Development] Ra1d3R:
I installed it but couldn't find the option for dt2w profiles. there is only enable/disable option :/
[Nexus 4 Android Development] spezi77:
Hum, then you should wait until I made a fresh build. Seems that I have forgotten to update the .apk
[Nexus 4 Android Development] Has_anDroid:
Fixed fast charge =?
[Nexus 4 Android Development] vedantdude:
There a problem with it?
[Nexus 4 Android Development] AhapxoNahk:
Kernel in nitrogen rom (7.1)

I have a nitrogen rom in my phone but i want to install this kernel, but i don't have a bootloop or brick, someone are running this kernel in nitrogen rom 7.1?
[Nexus 4 Android Development] zeeBomb:
This or Nexus Revival? Which is better
[Nexus 4 Android Development] MtG92:
[MENTION=5091819]spezi77[/MENTION] I'm curious, why did you go with Franco sound control instead of faux123 on the latest version?
[Nexus 4 Android Development] ashjas:
I am having some issues with WiFi once in a while. R03 release of your kernel, on nitrogenous ROM. WiFi search does not find any WiFi points to connect to. Secondly,anyone experienced low ram? I get low to about 50mb left after including cached processes. Anyone?
[Nexus 4 Android Development] cct92:
Which are the differences between HellSpawn-N4-Nougat-R03-AOSP-UBERTC-5.4-CPUSET and HellSpawn-N4-Nougat-R03-AOSP-UBERTC-5.4?
[Nexus 4 Android Development] xenyz:
-CPUSET has a feature included in Nougat enabled at the kernel level. Afaik the only ROM this will properly work with is Fake Nexus ROM, so if you're using anything else just skip it.
[Nexus 4 Android Development] Sonoo:
@ spezi77 As per your instructions in dragos's ROM thread. ROM build 13/11. Hellspawn R02 Nougat. Using ROM with revival v2. Wanted to try Hellspawn, dirty flashed ROM, Super SU and then Hellspawn (in this order), booted to system, lost root. Tried flashing SuperSU in recovery, NO root. Repeated 2 times (was under the impression that the Super SU had to be flashed right after ROM to retain root). Then dirty flashed ROM, SuperSU and Revival v2. Booted to system. Root functional. No further experiments done till date.

Plz advize!!
[Nexus 4 Android Development] spezi77:
My advice is straight forward: install the latest R03 (hotfix). R02 is the cause of your problem. :laugh:
[Nexus 4 Android Development] cct92:
After I flashed this kernel I noticed a battery drain during the night, when I put the phone in Airplane Mode. I have the conservative cpu governor and the row i/o scheduler.
[Nexus 4 Android Development] Has_anDroid:
1728 mhz not ?
[Nexus 4 Android Development] zeeBomb:
I tried using this, the non CPUfix version, and using the screen option was somewhat off in the build. Like the exponential brightness set it to the max when having it off didn't do much with it being dim...

Other than that its nice. I guess Spezi you moved on back to hell with this kernel project then N4 revival, correct? That kernel on M was great on that, so I thank u. I wish Tripindroid makes a return, loved that I/O scheduler!
[Nexus 4 Android Development] spezi77:
[MENTION=7233277]Ra1d3R[/MENTION] Today, I made a fresh KA-Mod build: https://www.dropbox.com/s/a9vfo4zfdzxbfvm/KernelAdiutor-Mod.apk?dl=0
[Nexus 4 Android Development] Has_anDroid:
HKM dont work please opened hkm root access waıtıng 1 mınute ok root access open hkm menu dont freezıng program ?