Weeb Kernel

david19au

Senior Member
Jul 17, 2012
407
95
58
Prague
Weeb Kernel v2.22 CodeName: Pandemonium

Downloads:
OxygenOS // Custom ROMs // Omni based Custom ROMs (OmniROM, TreskMOD) // Hax (CodeName Phoenix, Dirty Unicorns)

Changelog:
- Compiled using AOSP Clang 9.0.1
- Upstreamed to latest CAF tag [LA.UM.7.4.r1-04800-8x98.0]
- Revamped EAS implementation [Thanks to Josh for the base and several backports by Kuran and some by others and me]
- Moved to using a 625 Hz timer
- Re-enabled KALLSYMS
- Added ULPS mode
- Performance cluster underclocked to 1958400 kHz - Does not affect performance significantly but has improvements in device temperature and some decent improvements in battery [Disabled by default]

Default setup:
top-app/schedtune.prefer_idle = 1
foreground/schedtune.prefer_idle = 1
top-app/schedtune.boost = 0 [My reason for the top-app schedtune.boost being zero is that we do not really need any boosting when nothing significant is going on, for example, watching a youtube video, or the network indicator changing every second or so. For this reason, I have set it to 0, it does not seem to affect UX in my testing and should be just fine.]
Dynamic Schedtune Boost = 15 [Duration: 1500ms]
top-app/schedtune.sched_boost = 15
CPU Boost = 1171/1056 [Duration: 500ms]

ZRAM Tuning:
swappiness = 8
dirty_ratio = 5
dirty_background_ratio = 2

Kernel variants:
#oos:- This is for OxygenOS. It should also work for HydrogenOS but it's not tested directly by me. I'm typically using this myself.
#custom:- This is for ROMs that use Lineage's implementation of the Qualcomm WLAN Module, that is, inlined and WITHOUT Sultan's hacks.
#omni:- This is for ROMs that use CAF's implementation of the Qualcomm WLAN Module, that is, as a module. eg. Omni, Treskmod
#hax:- This is for ROMs that use the Qualcomm WLAN Module as inline and with sultan's hacks to make it load during device init call. eg. CodeName Phoenix, Dirty Unicorns

Note:
Unfortunately, none of these work with each other, so each variant is for itself. Pick the right one before reporting that wifi doesn't work, thanks. Also, note that sometimes, on Pie, the ROM might just reject the WLAN module for no good reason and it's not unique to our device. I've seen and confirmed that this issue happens on other 4.4.x devices like Whyred as well.
To solve this, simply reboot or reflash the kernel. If neither of these work, dirty flash the ROM and then kernel again. If you're flashing Magisk, please flash it BEFORE the kernel to retain ramdisk changes (if) made by the kernel.



Announcement:
As of this release, I've decided to move the source to the [raphielgang] organization repository.
You can find the new source link for stable builds here.
Major thanks to @raphielscape and the rest of the people for their help. :)
Do you recommend enabling the underclocked performance cluster? Or what was the reason behind disabling it by default?
 

idkwhoiam322

Senior Member
Apr 19, 2015
578
1,332
0
Do you recommend enabling the underclocked performance cluster? Or what was the reason behind disabling it by default?
In my experience, the battery and performance is pretty much the same as if it was 2361 MHz but device runs cooler (3-5°C). No reason for it being disabled by default, I might re-enable it later*shrugs* Default settings are just what I use.
 

idkwhoiam322

Senior Member
Apr 19, 2015
578
1,332
0
I'm on derpfest. High brightness mode not working from qs toggle. Only works from settings only. Also deep sleep is very bad. Tell me what other things you want. I'm very much disappointed by deep sleep of custom ROMs.
HBM fixed in upstream, will be there in next build, whenever that is.
Commit: https://github.com/whoknowswhoiam/weebmsm8998-pie/commit/2b627101654e74938c234f20a9cbaea5e94821ef
I'm not sure about deep sleep, share some BBS stats maybe, but I check on both stock kernel and mine on OOS and stats with wifi/data on are similar for deep sleep so I'm fairly sure it's not a kernel issue. Will still see though.
 

sleepwalking0593

Senior Member
Jul 25, 2017
1,031
283
83
Noida
HBM fixed in upstream, will be there in next build, whenever that is.
Commit: https://github.com/whoknowswhoiam/weebmsm8998-pie/commit/2b627101654e74938c234f20a9cbaea5e94821ef
I'm not sure about deep sleep, share some BBS stats maybe, but I check on both stock kernel and mine on OOS and stats with wifi/data on are similar for deep sleep so I'm fairly sure it's not a kernel issue. Will still see though.
Yeah i guess. Deep sleep issue is of custom ROM. Moving back to oos now. There is nothing special in BBS that's why i can't track it. 2 power display kernel wakelocks.
 

idkwhoiam322

Senior Member
Apr 19, 2015
578
1,332
0
If the cable used is not good your phone's battery will be damaged and it will burst. You have to download any kernel manager app and find usb fast charging in that and enable it
What the actual f lol


How do I enable fast charging, and why is it disabled by default?
Fast/Dash charging is enabled by default, only USB Fast Charging is disabled by default - That's when you connect your phone to a PC, for example.
 

sleepwalking0593

Senior Member
Jul 25, 2017
1,031
283
83
Noida
What the actual f lol



Fast/Dash charging is enabled by default, only USB Fast Charging is disabled by default - That's when you connect your phone to a PC, for example.
If usb fast charging was safe OnePlus would already implement it as they promote dash charging and stuff. + It's not safe to charge using 3rd party cable using usb fast charge. It can damage the battery. It's not safe. There is a magisk module that keeps dash charging always even above 90% also. Doesn't mean it's safe.
 

idkwhoiam322

Senior Member
Apr 19, 2015
578
1,332
0
If usb fast charging was safe OnePlus would already implement it as they promote dash charging and stuff. + It's not safe to charge using 3rd party cable using usb fast charge. It can damage the battery. It's not safe. There is a magisk module that keeps dash charging always even above 90% also. Doesn't mean it's safe.
Never said it was. Was added on user request. But the battery won't blow up lmao