yashsingh1/xdaforums huggingface dataset:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
It's a bit stupid given that it simply causes confusion.

I'm not the first to be confused...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Its not my invention :p. Im sorry i just clarified it for u
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
Sorry, wasn't having a go at you and thanks for clarifying.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BenParz:
[MENTION=5533673]milouk[/MENTION]

Sir, so you said in previous versions that if I come from another kernel, I have to flash the boot.img from my ROM. So, if I am using a custom ROM, should I flash its boot.img or should I flash the one that came from the stock ROM (MIUI)?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
If you havent flashed yourself another custom kernel on top of your rom the jjust flash Sphinx. Otherwise restore stock boot image :)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BenParz:
So by "stock", you mean the one that comes from the MIUI rom and not from the custom ROM I am using?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
By stock i mean miui or custom rom. Any rom thst you havent flashed a kernel on
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
I think he means the default kernel for whatever ROM you're using.

E.g. you use pe caf, flash Franco, then want to flash Xtreme. Before flashing Xtreme you should flash the default pe caf boot.img again first.

Mind you I've flashed one custom kernel over another without doing this and didn't notice any obvious problems. Maybe I didn't test for long enough...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BenParz:
Okay, just a final clarification (sorry for being too needy.xD), if I am currently using CrDroid and, say, I flashed Franco's kernel, before I flash your kernel, I have to flash the kernel that comes with CRDroid?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] abeloman:
Yup, extract boot.img from ROMs zip, and flash using TWRP. After that, you could flash whichever kernel you want
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BenParz:
Do I need to disable magisk modules first before flashing the boot.img?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] abeloman:
Not necessary, but you'll need to flash magisk again to recover modules (all of them will be disabled after flashing stock clean boot.img)

Then, the steps would be

1) flash clean boot.img

2) flash new kernel

3) flash magisk

4) profit
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BenParz:
I do all of this in one go? Or do I need to boot up first and then go back to recovery to flash magisk/kernel?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] abeloman:
Clean boot and new kernel could be at the same time. Magisk probably will need another reboot
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BenParz:
Okay, mate! Thanks for the clarifications!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] shouk_1987:
2 and 3 are interchangeable

It won'take a difference flashing magisk b4 kernel or the opposite
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] TioCareca:
[MENTION=5533673]milouk[/MENTION] when we will use your kernel app? ?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] JJ111:
He answered that not so long ago:

https://xdaforums.com/showpost.php?p=79159379&postcount=2547

"By mid June it will enter the Play Store hehehe"
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Marella ram_youtubr:
[MENTION=1465495]moliu[/MENTION]k can you add ra53xx drivers in ra28xx and try to add usb hid patch for Nethunter users from reference of https://xdaforums.com/oneplus-5/development/burgerhunter-t3638810.with https://drive.google.com/file/d/1SFODXt5dU4nQ66NhBEXgQBRsQVLQM6t2/view?usp=drivesdk patch.I have already done this in my old phone Honor 6x.it was working fine.but I need that to be in spinx kernel
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Sure i can try. What does it do.?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Marella ram_youtubr:
Basically Hid patch makes your phone like usb rubber ducky.Rubber ducky is a tool which is made my Hak5 team which works like a keyboard and mouse but just in a small drive but does the work which we pre program.For reference read these https://shop.hak5.org/products/usb-rubber-ducky-deluxe
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] cyanides13:
Hey Milouk thanks for the hard work, will your kernel manager app have kcal presets included?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Ill try and include it :)

Yep...yesterday i was working on it. ;)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Nash123:
Had the same problem with wifi. But sadly no idea why it happened.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] elkatronix:
Confirm too
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
About vibration did you enable "Sys Override vib setttings"?

Regarding zram not persisting off after reboot might be an ex kernel manager. Can you test with Kernel Adiutor?

Thanks a lot forr you kind words man
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
1) Calibrate you battery.

2) reflash rom

Cheers and sorry for the incovenience. Its not my fault. Its a known thing for xiaomi when reverting from a custom kernel to lose wifi on stock
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Sorry for that. Try callibrating your battery and give it 2 days to sync with the hardware.

See above.

Very well said mate :)

It a known thing on xiaomi phones when going to stock kernel from a custom to lose wifi. Reflash Rom
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] thomas140:
Hi Milouk,

Really appreciate your kernel. but how to calibrate battery, because I have never tried before.:eek:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Jaskirat singh:
posting this before plugging in charger ??.

I've had awesome experience with this kernel.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
You can google it ?. Try 2-3 full cycles. Charge to 100 and then let it die repeat 2-3 times

Looks legit ;)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Jaskirat singh:
just hit 10hr sot

have to plugin coz its on 1% for so long
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] tezukaryoma:
reflash back rom and stock kernel, battery display correctly again
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] JJ111:
No, he doesn't have. He owns a MI8, which is similar. But it is not unlocked yet, since with Xiaomi you need to wait 30 days until you can unlock it! Lucky that Poco (Sub-Brand of Xiaomi) managed to reduce it to "only" 3 days.

Big thumbs up, that milouk nevertheless is releasing Sphinx for us Poco F1 users :)

And if some of you also wants to help him to test the Kernel on our Poco F1: just write him am PM, I am sure he will appreciate your help.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Damoedge:
You should let the phone totally die and turn off to calibrate your battery...

For all people with battery issues to calibrate your battery properly you have to charge it to 100% and leave it charging for 1 hour after 100%... Then let it totally discharge until the phone turns off because the battery is dead... This is known as a "full cycle" so do this at least 2 times so that the battery stats calibrates the battery and knows your hardware usage... After you do this your battery is calibrated to your hardware and usage and then don't let your phone die anymore start charging it like you usually do...

Remember you have just installed a new Kernel which is one of the most important things on your phone controlling your phone so some people will have issues with incorrect battery percentage issues ??
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pepo930:
Draining your battery to 0% wears it out. The optimal battery percentage is between 20 and 80%.

Batteries lose around 20% of their charge every 300 full charge cycles.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Draining your battery to 0% 2-3 times in order to calibrate it doesnt wear out the battery that much ;)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Damoedge:
Yes some of what you say is true but can be debated at times as well.... That's why i said only do it 2 times... Some recommend that you do this 3 times ?

Every since i had my first smart phone every which was the very old "HTC Hero" i would let my battery totally drain any chance i get and i have never seen any bad affects of doing this if anything i would notice my battery last for longer... i have even used an app called "battery shut down manager" an old xposed module which would stop Android from shutting your battery down at 0% because you have to remember that when your phone shuts off at 0% it is not really at 0% it's not a true 0% there is anyways still a little bit of power left in the battery for emergency calls or emergency broadcasts, your battery is not totally dead.

But most of us don't do what i used to do, with today's big batteries in our phones when we go to bed at night we plug the phone in to charge and there is usually above 20% left when we do this... And with our Poco monster lol I've usually 40% left at night time before i plug it in...

The above process in my other post is just to calibrate a battery for who ever wants to try it... i know it does definitely work ??
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] tezukaryoma:
Is it any other way like wiping battery stat? laz time i on other 3 custom kernel on xda, all no battery display problem (except random reboot problem), this kernel work well only the battery display problem :good:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Man i dont know what to say.

Poco has the same source code as Mi 8.

I have the same kernel for mi 8. Literally not even ONE has reported this issue. If i knew what causes this -if anything- i would fix it. But i got no clue. Sorry about that.

In the end what matters the most is the battery life being extended no matter how the percentages behavior is.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Damoedge:
You can wipe battery stats after first full cycle.. That is after a total drain and total charge and it's best to wipe in recovery before you plug out your charger after it has been changing for 1 hour after 100%
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Jaskirat singh:
i already calibrated the battery on day when i flashed this kernel.i do this every time a flash a new kernel. doing this since nexus 4 days ???

and no need to full drain. just full charge you battery, delete that battery info file(requires root) and reboot then unplug charger
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Damoedge:
Good morning milouk,

I haven't messed with notification LED'S since my old Sony Xperia S days, what a great flagship that was ?

I have a question for you...

In sys/class/leds..... What is the value for max brightness is it 100 or 225 like in the old Rom's ?

Thanks again for your amazing Kernel ?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] cyanides13:
Nice! I can't wait for it's release ?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Version 2.7

Ahoy everyone :)

Time for a new update ;)

Changelog:

-Upstreamed to Linux 4.9.166

-Improved Frequency switching

-Improved Bluetooth performance

-Improved K-Lapse

-Added some more Power Efficient Workqueues

-Merged some UFS improvements

-Checked out ion to Android Q Developer Preview 1

-Fixed usb tethering.

-Merged some wakelock power saving commits

-Merged Lineage 16 Branch

-Updated WireGuard

-Many More --> Check GitHub

Installation:

If you are coming from another CUSTOM kernel then dirty flash your ROM and then flash Sphinx.

If you are coming from Sphinx Kernel , just dirty flash Sphinx.

If you are on a Rom that uses a custom kernel as STOCK , dirty flash Sphinx.

FAQ:

[/B]

-I'm having a huge drain what to do?

-Make sure your bluetooth is turned of and reboot.

-I'm Not entering deep sleep what to do?

-It is a known R O M issue. You need to turn off bluetooth and reboot, then turn it on again and never reboot again with bluetooth ON.

-My phone gets very warm when i play PUBG what to do?

-It's just physics. You cannot do much.

If you have any other questions join our telegram group t.me/SphinxKernel

Finally:

If you enjoy Sphinx kernel and would like to support me, Click Here to buy me a coffee

Cheers Guys and Enjoy :D
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] DanteGR:
Thanks buddy. Long time no see :)

Swiftkeyed from my Poco F1
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Hehehe im here just mention me if you need me ;) enjoy
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Tyranitar13:
please check, 2.7 it cant boot up with bootleggers rom (stucking on white screen).
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bla.blub:
Thanks for the update,

and I loved that point on the faq ;)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Arti42000:
Thanks for update

I get heavy lags on Pixel Experience CAF while launching/switching/closing apps, because frequencies don't scale or scale too little

Stock kernel bumps frequencies to highest level when launching app, your kernel doesn't

Also, your kernel doesn't scale frequencies on lock screen so face unlock needs more time to unlock the screen
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Glassgg:
working fine for me im on 9.3.28 bootleggers latest build
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bla.blub:
No problems so faar after a day. Ron miui EU weekly 9.3.21
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Chnithinkrish111:
I have tried same 2 and then 3..then some Google apps are crashing so I have to install magiskhide props config module through magisk to make my phone working without crashing apps
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
ehi guys i wanted to propose a somewhat stupid but perfectly reasonable test: would you mind add this to the kernel bootline

noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier

and see if there is any performance /battery life improvement for the phone?

i know THIS IS A SECURITY RISK.

But i would run my phone like this if it meant a substantial performance increase.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
Have you tried this yourself?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
i can't for multiple reasons, like my phone is being shipped and it's going to come in the next days so it's going to take at least a week until i can try to get back into development.

But, i did test this on my i7 4770k and it's about 15 to 20% speed improvement.

The commands i posted disable every mitigation possible for spectre and the like.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] mostafa asal:
You know what!

I've been wandering between kernels for a looong time, and yours is a piece of art.

Thanks for your hard work.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] BlueFireSiege:
Phone didn't boot up / was bootloop after flashing 2.7. MIUI Stock Stable 10.2.3. Reverted to 2.6, still great!
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pipyakas:
arent those spectre patches only for Intel CPUs? maybe that's why you're seeing a performance improvement
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
Sadly no, there are a lot of the mitigation in place for the a75 and even some for cortex a 55/53 so we should see some improvement. Can someone test this? Worse scenario it won’t boot . Medium scenario does nothing for the performance. A year later and more there are still no exploits in the wild. So I would like to have this as an option. I will begin to work on this as soon as I can make the whole tool chain etc on my build server and I have a device.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pipyakas:
What is the linux kernel version you're running on? I did a quick google search and saw that it's default since 4.20/5.00, which is miles ahead of 4.9 that our phone's using
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] slatera18:
It's a stable branch, which is Rock solid in terms of stability. Those are for Linux Desktop machines.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pipyakas:
That's not the point anyway. I'm just saying that for those boot params to work, it has to be there first. Kernel 4.9 was announced in 2016, and the Spectre patches was introduced like last year, so I wonder if it's actually going to matter

I just tried on my laptop with an old i5 2450M and the single core improvement was massive (2429 to 3212 - almost 30%) but it would be much less on a new CPU, and especially a mobile one that's not going to hit peak performance all the time
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] slatera18:
30% gain is a lot. For mobile SOC I don't think it will help a lot. Normally people don't do some heavy lifting from phones. Will help in gaming though. Won't mind testing if it was implemented.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
First and foremost, it’s a change that would take you guys literally five minutes of your time to test. Instead of speculating you could give it a try and report back.

Second, the mitigation are backported into the lts kernel like the 4.9 but often without the more advanced versions of the mitigation -aka the faster versions of the mitigation.

Third, 30% of performance is a freaking generation. It’s going from 845 to 855.and it’s 30% of time spent less in loading pages, decoding images, compiling art, etc. Fourth, these mitigation hit hard both networking and storage so it’s another portion where cpu usage and battery life would improve since it would require to use way less time to load up apps and less cpu usage.

And no, the a75 does not have any mitigation in hardware as all the cpus that are out there, a76 included, so it's still impacted as long as it uses speculation and it's out of order.

https://www.androidauthority.com/qualcomm-snapdragon-855-performance-benchmarking-942690/

look here- it's about the same performance increase the guy with the i5 measured. for free.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
UP
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
Hi! Would you take a look at this?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
To be honest thats very interesting. Though i dont think 4.9.x kernels include these patches (at least the debug paths are not available..ill have a further look in case im missing someone.) . Though even if there was an option i wouldnt disable these patches as it making a kernel insecure on purpose. But if you want you can do it yourself from terminal
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
it will take me at least a week before i have the phone up and running custom software... it's going to arrive to me today, and then we have the 72 hour period from xiaomi. why don't you test this for me? As an example, it has gains even on a raspberry pi 3. it's literally a 10 minutes work and you won't even have to recompile the kernel, but i'm sure a lot of people would be interested if it shows significant gains. And i can assure you that they back-ported all these patches to all LTS kernels and they have to patch all phones with this regardless of their LTS status or not.

i mean to ask this- how do you change the kernel boot command line? i i'm unfamiliar- last "dev phone" i worked on was the 5x a few years ago.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] oniemjan:
any chance on getting (wired) xboxcontroller support?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Ill do it just for research purposes. The way id do it is to edit the grub settings for s permanent solution if we are talking about desktop. If we are talking about mobile phones just create an init.d script that echoes 0 to all the available flags.

Im trying to do it. I dont own one so i cant test it
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
I think that these options can only be switched off at boot time, thorough the boot arguments. I know how to do that on grub of course but I have no idea in how to do that on an android kernel.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] oniemjan:
i'd be happy to test it for you... (although i only own a wired xbox controller)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
You can do this with any device you own ,those arguments are universal as long as it's a Linux kernel
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] SnOOpeRa:
First of all thank you for the great kernel, but something happens on my setup from time to time and can get is why, I saw at the kernel zip, in the default settings script this section

according to it /dev/stune/top-app/schedtune.boost should be set on 0, but on my system continues to be set on 20 at boot/default, (Miui-eu latest beta 9.3.28, but was the same for previous betas too), kernel is working nice, just this thing driving me nuts :) , first when i boot when idle screen on min freq on the small cluster downs to 300mhz, but after some time ( random time, i can get it a pattern or so, sometime is hours sometime is days) the min freq stuck at 1,2ghz of the small cluster which rises the drain screen on and only reboot fix it. After some reading i got that this parameter can be involved. When try to change that value to something else from 20, it goes back to 20, thought i cannot write to /system is the problem. Try mount it in twrp, even after mount /system r/w this stuck did not come back for a while and i thought its gone, but no, it appeared at some point again. I mount /system r/w, tested it like edit build.prop which works, but still never can change /dev/stune/top-app/schedtune.boost from 20 to 0. Even after reboot when everything works perfectly when try to change that value nothing happens, started to think that is somehow hardcoded somewhere, default setting script set to 0 but nothing happens, in the OS every try to change it nothing happens, some idea what maybe the problem?

p.s: I saw in the previous pages some other people having the same problem, if some of them have fix it somehow and can give a clue will be nice :)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] milouk:
Yeah but im not sure where "bootline" is -if it exists- in android. Ill run s test though in the weekend to see if theres a significant performance overhead

Cool ill make some changes and let u know.

The truth is that Miui is very aggressive in terms of kernel settings. Many devs dont support miui and i know why. Many of my settings are getting overwritten by miuis aggressive and forcing nature. Unfortunately theres not much you or i can do. Regarding frequency stuck at 1200 is becaause of thermal throttling. Let it cool down a bit and check again ;)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] sireangelus:
.

Usually it's compiled in, you can find it inside the makeconf in these cases. It's called boot

Arguments. Usually this line includes root= so it's quite easy to find

Why would thermal throttling rise the speed at idle?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Damoedge:
Good question...I would like to know this as well...we can't blame everything on thermal throttling ??
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] smem0813:
hello , i can't decide between franco and sphinx kernels i don't know which one is better

can any body help me please?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] raptorskate:
Just try them both, all I can say is Sphinx is more directed to balance (performance/battery) and Franco is more directed to battery but it does have good performance
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
It's not a question of "better/worse" but which, of any, is most suitable for your specific needs. And the only way to find out, as advised above, is to try both and make your own mind up.