yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 & 5T Cross Device Development] eng.stk:
None, my own blu_spark source.

I add hw and other needed stuff were applicable (like gestures for instance, in which I follow LOS/OMNI patchset).

Don't need to keep asking the same question. People will reply if they want to reply.

wakelocks are requested from userspace by services, daemons etc and mostly when they are hw related, kernel is asked by them to perform the wakelock.

In general, all kernel wakelocks (which appears in BetterBatteryStats Kernel Wakelocks section for instance) can be blocked, it's up to you to choose want you want/need. Like I said, becasue of potential issues, you're on your own if you choose to do this.

Any other type of wakelocks are not mangeable by the wakelock blocker, which is only for kernel type ones.

By default kernel should run unencrypted on custom ROMs. If by any means it's not running, you can use an forced uncrypted zip and other workarounds, search the thread and other places for that kind of stuff.

I don't recommend and doesn't make sense to run anything unencrypted nowadays, there's plenty of ROMs that support latest FBEcrypto stuff used on stock OOS.
[OnePlus 5 & 5T Cross Device Development] kaihansen2001:
Sorry for double posting. Ok, that is why I couldn't block those NLP google play services wakelocks but I thought we could because in Boeffla info link provided, he put that wakelock as an example to be blocked.
[OnePlus 5 & 5T Cross Device Development] DylanTheVillian:
[MENTION=3873953]eng.stk[/MENTION]

This kernel kills the 'swap buttons' toggle in additional button settings on AICP. Any way to fix this? I don't see an option in any of the kernel tuner apps....
[OnePlus 5 & 5T Cross Device Development] MurdererFight:
[MENTION=3873953]eng.stk[/MENTION]

I noticed this while using logcat. Everytime i touch the screen or do something it says "Failed to apply optimization". It looks like something couldn't be read properly

Using blue_active with fastlane 1 and thredshold 35, tried to disable it but nothing happens

I'm on blue-spark oos r30, Official OOS 4.5.10 and Magisk V14

Haven't tried on stock one.

EDIT: Phone is encrypted, the app is MatLog
[OnePlus 5 & 5T Cross Device Development] wartomato:
If I remember it right, AICP implemented that without the need or use of the kernel (like the alarm slider too)...
[OnePlus 5 & 5T Cross Device Development] eng.stk:
That's because power hints from userspace that target interactive.

Since you have blu_active on, it gives that warning. Not a big deal.
[OnePlus 5 & 5T Cross Device Development] DylanTheVillian:
If I go back to stock kernel or EX kernel the button swap option is fine, but on this kernel for whatever reason the option to swap buttons is greyed out...
[OnePlus 5 & 5T Cross Device Development] eng.stk:
Blame fragmentation. Everyone does their thing, kernel developers can't make 10 variations to keep everyone happy.

This is one reason - between a couple others - why I don't give any support to custom ROMs.
[OnePlus 5 & 5T Cross Device Development] DylanTheVillian:
Understood! Thanks for your reply.

I will look to AICP and see if they can fix this somehow...
[OnePlus 5 & 5T Cross Device Development] wartomato:
Aehm...our maintainer will not like to change his implementation, so I guess... No. ?
[OnePlus 5 & 5T Cross Device Development] DylanTheVillian:
Ok, well if there is no way for me to fix, I guess I need to find a new kernel or a new rom ;)
[OnePlus 5 & 5T Cross Device Development] ivankolev:
Try this

https://www.technologyhint.com/remap-capacitive-buttons-android/
[OnePlus 5 & 5T Cross Device Development] JahSam:
Hi [MENTION=3873953]eng.stk[/MENTION] I know you don't provide any help on your TWRP version but I just wanted to let you know I faced a problem:

Was on your last version, with data formatted in F2FS, as i wanted to try a new rom I just thought about switching back to etx4 but totally forget to delete pin security. After a reboot, TWRP kept telling me "Decrypt took too long" every time i put my pin on. The only solution I found was to flash TWRP 3.1.1.1 though adb and then my pin worked as usual.

Don't know if it'll help you to find what's going on, but hope it'll help people as dumb as me forgetting to delete pin security before wiping / formatting.

Sorry for my bad English, have a nice day !
[OnePlus 5 & 5T Cross Device Development] eng.stk:
You can also try toggling values on this path /proc/touchscreen/key_swap maybe it helps.

It won't make you custom ROM switch work obviously, but you should be able to swap the keys :fingers-crossed:

Other than that, you're on your own.
[OnePlus 5 & 5T Cross Device Development] Alessandro999:
gaming lag on rr official 5 sept.. especially on asphalt 8... try to change on interactive governor , less lag but frame drops

fix please
[OnePlus 5 & 5T Cross Device Development] c_86:
Read the first post of this thread. Amazing... NO SUPPORT for custom Roms.
[OnePlus 5 & 5T Cross Device Development] Megaflop666:
Wait! You expect people to read before they post?! That's unheard of!!!
[OnePlus 5 & 5T Cross Device Development] jhs39:
What are blu_spark v43 extras? Why is there no explanation of what the dev is referring to anywhere in this thread?
[OnePlus 5 & 5T Cross Device Development] kaihansen2001:
Thats the Blu spark twrp
[OnePlus 5 & 5T Cross Device Development] obol2:
Can you use this recovery like a normal TWRP, i mean not with blue spark kernel.
[OnePlus 5 & 5T Cross Device Development] :
Sure, they are independent.

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 & 5T Cross Device Development] Pianoman144:
I cant enable my WiFi. It is automaically switching back if im trying to enable.. Anyone else?

Edit: I just flashed another Kernel to test an WiFi is working fine. There must be a Problem with WiFi on Version r30 then.

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 & 5T Cross Device Development] mrjuniork:
Can I, for trying out this Kernel, flash this Kernel without the dirty ROM flash option? Coz I got a backup of the stock kernel thru Flashify. I would restore the stock Kernel and then flash this one with twrp...
[OnePlus 5 & 5T Cross Device Development] obol2:
Thanks, do you know what this TWRP is different from official one?
[OnePlus 5 & 5T Cross Device Development] Yousmass:
WiFi is working very well on Version r30 on my side.

If you are using Magisk, then maybe there must be a problem with it. You should try to uninstall and re-flash Magisk.
[OnePlus 5 & 5T Cross Device Development] Pianoman144:
I will try it, thanks.

Yes it's working. Then it is the downloaded Magisk Version hmm

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 & 5T Cross Device Development] :
the difference is that you can restore data without problems

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 & 5T Cross Device Development] jhs39:
How does the Blu spark TWRP add any extras to the kernel? I have the Blu Spark TWRP and didn't notice anything obviously different from the official TWRP beyond the bright blue interface. I know the code is more up to date but I thought it was the same otherwise.
[OnePlus 5 & 5T Cross Device Development] eng.stk:
Newer upstream, performance tweaks and custom build blu_spark inside, device specific tweaks and fixes, goodies like dt2w and charge led enabled, kick ass theme. And it just works, all around ;)

Yep, a nice companion to the blu_spark kernel most would say ;)
[OnePlus 5 & 5T Cross Device Development] gvaram:
I know no support is given, but here are some logs from your twrp. Getting error 255. Was backed up with the same twrp.

https://www.sendspace.com/file/pfwadb
[OnePlus 5 & 5T Cross Device Development] Megaflop666:
Google can be your friend if you use it.

There's several instances of this exact issue and it's all related to your phone and not the twrp. The general consensus seems to be not enough storage space on the device; but if you do some searching you might find a solution.
[OnePlus 5 & 5T Cross Device Development] loveboklove:
wow
[OnePlus 5 & 5T Cross Device Development] gvaram:
Yeah sure, why do you think I didn't look for the problem before posting anything? Also, developer might be interested in logs. I don't think it's issue of my phone. This TWRP has op5 specific fixes and optimization, right? Highly doubt it's storage related as well( have 70GB+ available). Also, restoring 10GB backup gives the same error as the 17GB one. On TWRP official GitHub, someone attributed this error to the offset blocks in tar archive. Will check later if I have this leaked strings issue.
[OnePlus 5 & 5T Cross Device Development] MurdererFight:
[MENTION=3873953]eng.stk[/MENTION] i have disabled perfd and now i don't have these errors anymore

Additionally, the phone now is much much snoother (especially in Real Racing 3 where i have some lags)

What is exactly perfd?
[OnePlus 5 & 5T Cross Device Development] eng.stk:
perfd is a performance daemon responsible to collect and manage power hints from/to userspace and kernel. I don't recommend having it off.

You can find more info on xda and Google about it ;p
[OnePlus 5 & 5T Cross Device Development] Thesuprememonkey:
Does anyone know the best read ahead value and best settings for Zen scheduler for best performance ?? Also any kernel tweaks for best performance would be helpful as well thank you :)
[OnePlus 5 & 5T Cross Device Development] rickysidhu_:
I read somewhere that if you have a 128gb phone, the ideal readahead is 2048 and for 64 it's 1024. This info could be outdated/inapplicable to this kernel, so take it with a grain of salt.

As for Zen, I think the dev chose that scheduler for a reason, so I'd just stick with it
[OnePlus 5 & 5T Cross Device Development] jhs39:
I prefer Deadline to Zen because I think it's slightly snappier--but that's just a personal preference. I use a read ahead value of 1024kb but the lower value the dev preset might be better for Blu Active or for the Zen scheduler. The dev probably preset the values he considers best for his kernel. The only setting there is a consensus on changing is to enable fastlane. I'm not sure why it isn't enabled by default since even the dev recommends activating it but maybe it introduces possible instability and that's why he leaves it for users to activate.
[OnePlus 5 & 5T Cross Device Development] Megaflop666:
I use zen and 2048, works great for me.
[OnePlus 5 & 5T Cross Device Development] :
What's the dev think about the read ahead thing ?
[OnePlus 5 & 5T Cross Device Development] Rebel7022:
Ask him. Be like hey dev what do you think of the read ahead thing, maybe he likes it, wtf is the read ahead. Is it tight? Can it help me get my thether on. I'm looking for dci p3 dowg
[OnePlus 5 & 5T Cross Device Development] ChavitoArg:
Hi, with this kernel the alarm with the phone turned off doesnt seems to work for me. Can anyone confirm this? Beside that everything is buttery smooth.
[OnePlus 5 & 5T Cross Device Development] MurdererFight:
Alarm with phone tuned off? Are you sure that OnePlus 5 actually have this feature?

ZEN scheduler is pretty good, dev should also include maple i/o
[OnePlus 5 & 5T Cross Device Development] ChavitoArg:
Check clock app settings, feature is on by default.
[OnePlus 5 & 5T Cross Device Development] MurdererFight:
I can't find it
[OnePlus 5 & 5T Cross Device Development] kushmanek:
how to enable fast lane and with which app? i read in this thread what it is but no one said what apl to use for enabling it
[OnePlus 5 & 5T Cross Device Development] laupuy:
Hi,

Take a look here https://xdaforums.com/showpost.php?p=73306748&postcount=82

;)
[OnePlus 5 & 5T Cross Device Development] str8str:
Actually doing the benchmarks deadline at 128 gives the best results. Zen etc are quite a bit slower

If you want a little better battery you could go with 1024 and noop
[OnePlus 5 & 5T Cross Device Development] jhs39:
I have two Blu Spark TWRP specific questions that I hope someone will answer. What are the recommended settings to make a nandroid backup that will reliably restore on the OP5 without errors and is it still necessary to remove lockscreen security before making a backup?
[OnePlus 5 & 5T Cross Device Development] rpugsley:
Glad to have your kernel again in my new phone.

Wicked!
[OnePlus 5 & 5T Cross Device Development] Megaflop666:
There's no specific settings, it's twrp that has been modified to work properly and it works fine, I've done several restores.

It is always recommended to remove lockers settings to avoid decrypt issues. I've ran into that before and it can be a pain.
[OnePlus 5 & 5T Cross Device Development] jhs39:
I tried to do a nandroid backup with Blu Spark TWRP.. When restoring it I didn't get an error message but the phone wouldn't boot up and got stuck at the +5 logo. After giving it quite a long time I powered down and tried to boot again. Same thing. Then I booted into Blu Spark TWRP and did a wipe but left my internal storage so my zip files would still be there to flash but everything got wiped--although the bad backup might have done that. I was not able to successfully make a nandroid backup that restored properly on the OP5 using Blu Spark TWRP. It did not just work. That's why I asked if there were recommended settings to use or partitions to select to make a nandroid backup that would actually restore properly and give you a working phone instead of the mess I ended up with.
[OnePlus 5 & 5T Cross Device Development] wrongway213:
On stock OOS 4.5.10, decrypted currently, I am having a strange issue: installing this kernel, r30 OOS, via TWRP results in a TWRP bootloop/data wipe. Last night it happened and I restored backup and things were ok. I decided to try again today, same exact results. I'm new to OnePlus, but I searched and read the OP to ensure force encryption isn't enabled and such. The loop continues until it reboots about ten times to completely wiped data. I've tried searching thread for something on this and I haven't found a single hit. The only way back up seems to be restoring or setting back up - has anyone ever seen this or heard it mentioned? Haven't been at computer to pull adb logs, no recovery logs by the time I'm back up though. If anyone has a clue, I'd really appreciate it. I keep hearing this is the kernel for OP5 - hoping I can get sorted and see for myself. Any help would be greatly appreciated.
[OnePlus 5 & 5T Cross Device Development] eng.stk:
Like said above, no real need to.

Personally, I only backup Data (compressed) and EFS (good to have these if needed), always use sha2 Digest to check proper working files.

I never backup boot or system blabla, prefer to keep the ROM zips and/or boot.img and flash when needed.

I only use the phone encrypted FBE, since the beginning, never had to erase any lockscreen settings or anything (I have Pattern lock on boot also and fingerprints set).
[OnePlus 5 & 5T Cross Device Development] eng.stk:
Kernel installer doesn't force encrypt, but I only support FBE encrypted setups like stock.

Some setups need the no encryption zip and other workarounds, been talked already.
[OnePlus 5 & 5T Cross Device Development] jhs39:
Thanks. I'm not sure what I did wrong.

---------- Post added at 07:28 PM ---------- Previous post was at 07:19 PM ----------

You need to flash the no verify script before booting up.

https://xdaforums.com/oneplus-5/how-to/guide-how-to-decrypt-data-partition-t3642144
[OnePlus 5 & 5T Cross Device Development] aneeshmbabu:
Can I flash this blu_spark recovery with my existing recovery ??
[OnePlus 5 & 5T Cross Device Development] lekiaM:
Yes. It's just recovery.
[OnePlus 5 & 5T Cross Device Development] The_Fry_Guy:
Hey eng.stk! Used your kernel on my OnePlus 3t and so happy to see you now for my OP5! Loving it so far great job.
[OnePlus 5 & 5T Cross Device Development] eng.stk:
Welcome mate, enjoy :)
[OnePlus 5 & 5T Cross Device Development] jhs39:
Not sure what I screwed up the first time but the last two nandroid backups I made with Blu Spark TWRP restored flawlessly. Removing lockscreen security wasn't even necessary. Thanks again.
[OnePlus 5 & 5T Cross Device Development] The_Fry_Guy:
Got an error 225 when trying to do a backup it failed while backing up data. Running Pure Fusion OS ROM with encrypted data. This just happened a few minutes ago.

See log file:

https://drive.google.com/file/d/0Bw8FwLEUutfcR3FhTV96RVdSZFE/view?usp=drivesdk
[OnePlus 5 & 5T Cross Device Development] eng.stk:
Search is your friend. Also you already know how this goes: no support for custom stuff means no support.
[OnePlus 5 & 5T Cross Device Development] str8str:
Sorry for my ignorance but how can you restore a backup that has no system image just data and efs? Am I missing something? What exactly do you check to backup in recovery? TIA
[OnePlus 5 & 5T Cross Device Development] zak.ns:
I'm only do beckap :

System

Data

Modem

Efs

With a fingerprint and patern, and i never had a problem with restore!
[OnePlus 5 & 5T Cross Device Development] The_Fry_Guy:
Yes sir! Back on stock now :)
[OnePlus 5 & 5T Cross Device Development] Chaplan:
Data is all you need to backup and restore to the previous state, EFS is a precaution, a good one.

You only use it in case of need.

Look at the quote, all is in there, system is ROM, boot.img comes with it.

Flash, restore and profit.

This workflow has been the game changer and I thank you for it.

You do know you have a fair share of guilt on my flashing disorder... :good:

It's been a long time now using it.

But a good old thank you is in order today. :angel:
[OnePlus 5 & 5T Cross Device Development] The_Fry_Guy:
Performance is unreal with this kernel and interactive gov with tweaked settings!
[OnePlus 5 & 5T Cross Device Development] riirezende:
Wich tweaks are you have used? Can you show screens
[OnePlus 5 & 5T Cross Device Development] The_Fry_Guy:
echo "80" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load

echo "1400000" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq

echo "40000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time

echo "20000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate

Taken from this: (a really good read indeed!)

https://xdaforums.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817

Just don't change the high speed freq as this is much lower than the device is already set to.

All I care about is performance, battery life isn't a big deal. I want the most out of my device and interactive gov is by far the most performance yielding one other than performance of course lol
[OnePlus 5 & 5T Cross Device Development] The_Fry_Guy:
Running great on 4.5.11

Link for full signed zip:

https://androidfilehost.com/?w=files&flid=220798
[OnePlus 5 & 5T Cross Device Development] eng.stk:
blu_spark r36

All right crew!

New build is up :highfive:

Also take a look to the rest of blu_spark v45 extras to get some nice and useful additions to the kernel.

This build features latest OOS 4.5.11 source drop. Custom ROM users should be also able to run it on Oreo adn I merged a patch to the button swap to work on LOS or LSO based ROMs as per request.

blu_spark_r36-oos_op5_0f76d00.zip

blu_spark_r36-custom_op5_ea747de.zip

Keep it real, keep it true, keep it blu :highfive:

Keep in mind: I will give no active support for custom ROMs (including OOS based ones).

Meaning, if using anything besides stock and stable OOS don't bother posting about it.

I am only interested on debugging stuff in stock and stable OOS (with logs and reproducible steps to replicate the issue).

Don't spam this thread with LOS or other ROMs stuff like "this don't work, my app doesn't open, etc" or debugging features.

Also don't go spam and bug reporting on ROM threads if using this.

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free ;)
[OnePlus 5 & 5T Cross Device Development] eng.stk:
blu_spark extras v45

All right crew!

Here's an updated TWRP with all the blu_spark goodies inside and fully synced with TWRP Android-7.1 branch (including more recent upstream than official TWRP) and some specific device fixes.

This will be the last build for N probably.

twrp-3.1.1-x_blu_spark_v45-op5.img

Keep it real, keep it true, keep it blu :highfive:

Wakelock blocker info and example script

I'm just sharing my personal mods since people asked, meaning no support will be given (don't bother post about it).

If your cat get's on fire you're on your own ;p

No mirrors allowed

If you like my work, donations are always welcome.

Don't forget to hit thanks and rate the thread nicely, it's free ;)
[OnePlus 5 & 5T Cross Device Development] kingjuqp:
Wondering if this works on oreo:laugh:
[OnePlus 5 & 5T Cross Device Development] kaihansen2001:
Me too.
[OnePlus 5 & 5T Cross Device Development] Rebel7022:
A lot of you have been on xda for a hoT minute. You know people don't read. Why you acting all shocked.. Give me a break
[OnePlus 5 & 5T Cross Device Development] The_Fry_Guy:
Deleted. Forgot no support for TWRP
[OnePlus 5 & 5T Cross Device Development] SynisterWolf:
Thread cleaned,

Lets keep the off topic out of this development thread. if you are seeking help, logs help a lot. If the developer has already address the issue and it cant be resolved you must leave it be. they dont work for you and they dont owe you anything.

Remember to stay on topic and post with the up most respect towards developers and members of this community alike.

this will be your only warning.

Wolf
[OnePlus 5 & 5T Cross Device Development] mrjuniork:
How can I deactivate certain wakelocks? Is there an app that can access the possible wakelock settings? I can't find anything in the Kernel Adiutor app...
[OnePlus 5 & 5T Cross Device Development] jhs39:
If you are talking about blocking kernel level wakelocks you need to create a script to do it. I think there was a detailed explanation posted earlier in the thread when the Boeffla Wakelock Blocker function was added to this kernel. If you are talking about app level wakelocks the kernel can't do that.
[OnePlus 5 & 5T Cross Device Development] MurdererFight:
Clean flashed 4.5.11 and flashed blue spark r36: phone is much more responsive and faster! Thanks dev for this kernel!

Now, EXKM has updated and it include a generic wakelock blocker.

What we should block?
[OnePlus 5 & 5T Cross Device Development] NekroLime:
Does the new version of the kernel require latest firmware? I am using the custom one
[OnePlus 5 & 5T Cross Device Development] jhs39:
That's strange. Nothing like that shows up in Kernel Auditor but there used to be a screen like that in older versions of Blu Spark.
[OnePlus 5 & 5T Cross Device Development] Dieppy:
New generic wackelock blocker is included in the new update of ex kernel manager so it's normal that in kernel auditor you don't see that screen
[OnePlus 5 & 5T Cross Device Development] mrjuniork:
Yes, I was talking about Kernel level wakelocks. But since EXKM was updated with generic wakelock settings, my wishes have been fulfilled :)
[OnePlus 5 & 5T Cross Device Development] kalakahua:
Hi,

Each time i restart the phone i lose the values of Fastlane=1 and Threshold=35 and appears the initial 0 and 50. I've tried with Kernel Adiutor and EX Kernel Manager and the same issue. Any ideas?
[OnePlus 5 & 5T Cross Device Development] :
Did you activate "set on boot" at the top of the settings?
[OnePlus 5 & 5T Cross Device Development] kalakahua:
Of course.
[OnePlus 5 & 5T Cross Device Development] :
Cleared data of kernel Adiutor after flashing kernel?
[OnePlus 5 & 5T Cross Device Development] kalakahua:
No, i'll try that. Thanks.

---------- Post added at 02:32 PM ---------- Previous post was at 02:27 PM ----------

Solved :good:
[OnePlus 5 & 5T Cross Device Development] jhs39:
I didn't know ExKernel Manager could add its own feature to a kernel like that.
[OnePlus 5 & 5T Cross Device Development] LimitsX:
What is the custom kernel for? and for which roms will it work?
[OnePlus 5 & 5T Cross Device Development] Megaflop666:
Custom means anything not OOS. If I understood eng.stk correctly on another thread, it will work with the AOSP, pure Nexus, and lineage rom's that you can find in here.