yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Ramdisk Issue

Hello everyone,

In case you upgraded to magisk 18.0 shortly after it was available, chances are high your ramdisk got damaged. Magisk 18.0 zip was silently updated after this incident.

If you face issues in TWRP, EXKM or FKM when flashing the kernel and are greeted by a message "error... ramdisk" below are the instructions on how to fix it!

Procedure to fix the ramdisk issue:

The ramdisk error is now fixed. Please take a look at this post from [MENTION=4544860]osm0sis[/MENTION] for more information:

Big thanks to [MENTION=4544860]osm0sis[/MENTION] and [MENTION=4470081]topjohnwu[/MENTION] for everything at this point here! And everyone else that helped in the process!

Important:

What do you have to do to get finally rid of the ramdisk error?

1. Flash back a stock clean boot.img either for stock rom or the custom rom you´re on. (not a backup from some time ago, a clean stock boot.img)

2. REDOWNLOAD(!) either magisk 18.0 or the latest canary directly from magisk manager and delete all old magisk zips on your device. (this is really important!)

3. Optional: Reinstall twrp.zip if you want to.

4. Flash the redownloaded magisk zip in TWRP

5. Flash my kernel either via TWRP, EXKM App or FKM App

6. Profit
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] geeksammao:
Hi,after updating to 5.0.0,I found the lift to wake gesture not working.

Edited:I turn on Always On and off,and lift to wake gesture seems to work properly again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Can i still use it on oreo?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Unless I don’t completely break all gyro related sensors in the kernel, lift to wake should work fine as it’s more a rom side implementation.

Only pie is supported. however you can flash it on Oreo and report back. Maybe that is helpful to some :)

Just backup boot in twrp and flash away. :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Woke up this morning and touchscreen not working, couldn't turn off or snooze alarm or reboot. Manually rebooted to recovery to flash other version.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
So you were on 4.5.x facing the freeze? Shouldn’t happen on 5.0.0 now :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
No, sorry it was 5.0.0. I was on charger, overnight. I also had [MENTION=8852292]xFirefly93[/MENTION] BlackenedMod 9.1 running.

I flashed 5.0 last night over EX 2.09.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Try it without the script and see if it happens again.

Also uninstall all other doze/google play services, greenify or naptime tweaks/apps.

Are you on a stock or custom rom?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Thanks, I'm on December Stock 9.0. No other tweaks except the 9.1 script.

I'll give it a shot tonight, before I go to sleep and to try and recreate the scenerio without the script. Is there any need to first flash the stock boot img? Or should I just flash over my current kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Maybe reflash stock boot.img or if you have time the factory image with -w removed just to rule out other factors.

If the phone isn’t responding after trying to wake it up see if it reboots by itself (wait a minute) and grab me a ramoops. If you have to force reboot it grab a ramoops too. Without a log there is no way I can help you unfortunately, other than blind guessing.

No one in the testing group has any issues for quite a while now so not sure what happened to you.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cuancena:
I don't know if this is kernel related, but I woke because my phone was so hot (I fell asleep with it on me). No apps were even open. Could very well be something else, but I found it worth mentioning.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joedajoester:
Well since the people who aren't having any issues probably haven't posted about it, I'm gonna. Running Kiri 5.0.0 and BlackenedMod 9.1 since last night and everything is so smooth so far. Too early to tell but it seems to be slowly sipping my battery. 41 minutes of screen on and I'm still at 96%. Apps are launching scary fast, even Snapchat launches instantly and has no startup lag. Also, the new zram compression is doing it's job pretty well I'd say. Apps stay in memory for a while and I haven't gotten a slowdown with a ton of apps open.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
I have a December boot.img. Where can I find a ramoops? Thanks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
This is a pretty good guideline :)

https://github.com/nathanchance/Android-Tools/blob/master/Guides/Proper_Bug_Reporting.txt
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] d33dvb:
Can we have Kali kernel features?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
I'm on 5.0.0, wake gestures are available for toggling etc in EXKM but don't actually work, though sweep2sleep does. Can anyone else check on this?

Edit: it appears that wake gestures do work, just not after putting the phone to sleep with sweep2sleep, need to use the power button instead
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
Stupid question, but would flashing a stock boot.img require me to reinstall currently installed Magisk modules?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Yes, it would clear all boot modifications including TWRP and Magisk. You will need to fastboot boot your TWRP.img and flash the zips in TWRP, just like after flashing a factory img. Then reinstall you Magisk modules.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flar2:
Not true at all :confused:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
I know, I've used kernels (including yours) with your gesture implementation and it's always been flawless. Did you see my edit though? Because they're working as expected, just not following a sweep2sleep for me, which is odd.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cuancena:
I'm also having trouble using wake gestures after sweep2sleep. It works a lot of the time, but something is definitely wrong.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
Thank you, I'll make a note of this.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Hello :)

I´m currently not at home over Christmas, so no access to my linux system.

I think I could reproduce what you hinted at. If ones uses sweep2sleep and tries to immediately use a wake gesture after screen off, the wake gestures fails sometimes. Wait for 3-5 seconds after sweep2sleep and the gesture works every single time.

I guess this is due to the CONFIG_SUSPEND_SKIP_SYNC option being utilized. Here´s the link pointing to the commit that implemented it a few years ago.

Excerpt from this commit:

The Linux kernel suspend path has traditionally invoked sys_sync()
before freezing user threads.

But sys_sync() can be expensive, and some user-space OS's do not want
the kernel to pay the cost of sys_sync() on every suspend -- preferring
invoke sync() from user-space if/when they want it.

So make sys_sync on suspend build-time optional.

I can only guess but I think with said config option enabled, the phone takes a bit longer to go completely offline when using sweep2sleep. Wake gestures therefore need the 3-5 seconds delay to be possible. Putting the phone to sleep via power button seems to be unaffected.

So my question to everyone here is. Would you prefer to save a bit of energy every single time you switch off your phone via power button or sweep2sleep, but have a 3-5 seconds delay until wake gestures are usable after using sweep2sleep?

Or should I remove the config option which saves a bit power every time the phone is put to sleep, but wake gestures are working immediately regardless of using sweep2sleep or power button to put the phone to sleep?

I think locking the phone via sweep2sleep just to wake it up again the second after, is more a test case than a "real-world" scenario. I guess most are still using the activate ambient display once lifted or notification arrives, so a wake gesture wouldn´t be needed in case a notification arrives? getting a call is also turning the screen on by itself.

I would like a few opinions on this :) I never noticed it until now and apparently everyone else in the test group too :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
I personally use the sweep2sleep, but I do not try to wake up the phone right after. I prefer to save some power.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] resurrect:
[MENTION=3428502]Freak07[/MENTION] i seei on cpu stats tath 1cluster can't set to freq min 300 and stay at min freq 1036 it's normal?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] murphyjasonc:
Mine is also showing a min freq of 1036 in EXKM but the small cluster is still going to 300 regardless. In the CPU stats the small cluster has been on 300 75% of the time even with the min freq set at 1036.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
Ah yes this is how it is functioning for me as well. I think the current implementation is okay. Once I saw that there was just a delayed needed after a sweep2sleep that makes it a non-issue for me because I really was only doing it in a testing way.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Basically what [MENTION=6097193]murphyjasonc[/MENTION] told you already :)

If you´re interested in a more in depth explanation take a look at the following posts:

https://xdaforums.com/showpost.php?p=76994111&postcount=341

https://xdaforums.com/showpost.php?p=76994584&postcount=346

Okay then I just leave it be for the moment as it works just fine during normal usage!

Thanks for getting back to me.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
[MENTION=3428502]Freak07[/MENTION] what is the likelihood of backporting the F2FS commits from the Pixel 3 to the 2/XL?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Probably next to none. It’s also deeply integrated into encryption.

Why would you want f2fs over ext4?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
The performance difference from Google's implementation of F2FS is noticeable in the Pixel 3. Would have loved to see it on the 2.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
The performance increase is not due to f2fs but more because of this functionality, take a look at this from pixel 3 kernel:

https://github.com/freak07/Kirisaku...fb8364a#diff-e60e5a684dfdf7fad66cab82644abc1a

I already tried to port it over to wahoo but it won’t load. I guess our firmware is not compatible.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
[MENTION=4167023]AndreiLux[/MENTION] mentioned in his review for AnandTech that the F2FS changes coupled with that HPB implementation makes the Pixel 3 the fastest phone around. A shame as you say, the changes are not compatible with our firmware.

Thanks for the feedback, appreciate it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
So nobody faced a reboot until now I hope? Thread is pretty silent. I hope that’s a good sign. :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Iloveeporkchop:
Smooth sailing here :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Benjamin_L:
Works fine so far, thank you for your work :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
No reboots here. Actually running better than past versions.

Great work.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Hormesis:
No problems so far!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] i42o:
I wish...

for some reason anytime that I'm under 30% battery and my phone loads Snapchat the phone beeps freezes up and restarts.. let's say for instance I am recording a video on Snapchat while playing Pandora the phone will lock up beep this annoying beep and then restart I've been facing this issue with this kernel for a bit and now I'mwondering if it's actually my phone going to the same battery issue that the Nexus 6p had..
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
I faced exact same issue regarding snapchat not Pandora but I'm on flash kernel

It happened once though and few days back
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Tornado15550:
Zero issues on my end either. No instability or random reboots whatsoever on my 2 XL.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joedajoester:
Snapchat makes my phone reboot too when at low battery. I believe it's the Pixel Visual Core since it quickly bursts in power draw then idles. Similar to how the CPU on the 6p would go max speed when you launched Snapchat and it made it shut down.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Reechings:
Anyone else having issues with magisk randomly losing root? I'm guessing it's rom related but was curious.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] gforceriders:
Nope I'm on Havoc and Magisk canary builds and not having any issues with root.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] wolfeyes30:
Running Havoc and I do but I'm not sure what's causing it. I just reboot and it's back

Edit: Also I haven't lost root on the latest canary magisk (18004) that was pushed on the 28th. We'll see.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
There is lots of chatter about losing root across many kernels and roms. Hopefully someone active in a lot of threads like a mod or maybe [MENTION=3730810]Badger50[/MENTION] has pooled together enough data to form an opinion...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Don't have any real conclusions my friend. Although it does seem to affect those more on custom roms on the P2XL, P3, and P3XL, and kernels using the upstream changes. Having said that, it's very random in nature, and doesn't appear to effect those on stock, rooted OS. I've had no trouble with loosing root using all the kernels available while on stock. Again, these are just my observations, and are to be taken with a grain of salt :cool:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jbarcus81:
Nothing major to report aside from random soft reboots..
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sportytony:
No reboots. Love this combination with blackened. Sometimes slide up from bottom to go to apps takes a couple of tries. But nothing much to say anything about. Just mentioning it in case you need more info.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] neekless:
Just curious what made you think it's rom related or kernel related instead of just magisk related?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Yeah and I'm on liquid with cesium with no issues either... Very strange like this phone. Lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Why is no one gathering just a ramoops when the phone reboots if it happens frequently? It´s just a matter of seconds. I know sometimes you´re at work and simply cannot look at your phone, but if it happens at a specific point it shouldn´t be to hard.

I do not use that particular app so I can´t comment on this.

Here´s a link how to get a ramoops. Thank you!

https://github.com/nathanchance/Android-Tools/blob/master/Guides/Proper_Bug_Reporting.txt

Soft reboots usually aren´t kernel related, but rather mod/rom related .
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update follows soon. I’m not at home these days but I set up a VM on my laptop so you guys get your security update! :)

Stay tuned :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 5.0.1

hey guys and girls,

here´s the update with January Security Update Patch merged in.

Latest upstream is included!

I wish everyone a Happy New Year :)

The installer includes again a little surprise. If you want to see it flash either through TWRP or FKM (enable stdout option in FKM) :) EXKM doesn´t display it properly!

Changelog:

- January Security Patch

For further details please take a look at my github!

Download is below :)

Download: https://www.androidfilehost.com/?fid=11410963190603894236

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Potential Ramdisk Issue

Hello everyone,

This message is for those that didn´t read it alongside my last update on 23rd of December :)

In case you upgraded to magisk 18.0 shortly after it was available, chances are high your ramdisk got damaged. Magisk 18.0 zip was silently updated after this incident.

If you face issues in TWRP, EXKM or FKM when flashing the kernel and are greeted by a message "error... ramdisk" below are the instructions on how to fix it!

Procedure to fix the ramdisk issue:

The ramdisk error is now fixed. Please take a look at this post from [MENTION=4544860]osm0sis[/MENTION] for more information:

Big thanks to [MENTION=4544860]osm0sis[/MENTION] and [MENTION=4470081]topjohnwu[/MENTION] for everything at this point here! And everyone else that helped in the process!

Important:

What do you have to do to get finally rid of the ramdisk error?

1. Flash back a stock clean boot.img either for stock rom or the custom rom you´re on. (not a backup from some time ago, a clean stock boot.img)

2. REDOWNLOAD(!) either magisk 18.0 or the latest canary directly from magisk manager and delete all old magisk zips on your device. (this is really important!)

3. Optional: Reinstall twrp.zip if you want to.

4. Flash the redownloaded magisk zip in TWRP

5. Flash my kernel either via TWRP, EXKM App or FKM App

6. Profit
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
New kernel with latest upstream 4.4.170 is going to drop probably today :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
Looking forward to it. This kernel is superb.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
wait will soon be over ;)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 5.0.2

hey guys and girls,

As promised new release with latest linux-stable merged in.

Please take also a look at the next post, just in case! Thank you everyone :)

Changelog:

- Update to 4.4.170

For further details please take a look at my github!

Download is below :)

Download: https://www.androidfilehost.com/?fid=11410963190603899473

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
[MENTION=3428502]Freak07[/MENTION] any possibility that you'd be able to bring over the TCP BBR congestion control algorithm, as now found in [MENTION=4800121]Sultanxda[/MENTION]'s kernel for the Pixel 3? Or is this incompatible because of the Linux kernel version used?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Hello,

it´s not a matter of simply backporting only the BBR commits but also various dependencies for mechanisms BBR utilizes.

As it stands now even BBR on a 4.9 kernel is not the "complete" BBR "deal".

Take a look at this post: https://xdaforums.com/showpost.php?p=78746833&postcount=41

Also you have to keep in mind downstream speed won´t be "magically" increased by using BBR. BBR mostly is a sender oriented congestion control. Which benefits servers or parties which have to host a lot of data.

See also here:

https://blog.donbowman.ca/2018/03/25/speedtest-bbr-consistency/

It might be possible to backport the needed changes to a 4.4 kernel, but if it´s worth it is another story and depends entirely on the usage!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 5.0.3

hey guys and girls,

New release with latest linux-stable 4.4.171 merged in.

Changelog:

- Update to 4.4.171

For further details please take a look at my github!

Download is below :)

Download: https://www.androidfilehost.com/?fid=11410963190603908944

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
Thanks, appreciate the feedback.

Another question, because I'd like to understand this better: why would different devices have different versions of the Linux kernel? Should Android devices as a whole not be on the same version of the Linux kernel, especially where the OS is the same?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MrMeeseeks:
From my little understanding, it is more on the SoC which Linux kernel version is used. For example, the Snapdragon 835 is on 4.4 but the 845 runs 4.14.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Benjamin_L:
The mi a1 community ported the 4.9 kernel. I wonder how they made this happen
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
the SD 845 runs the 4.9 kernel not 4.14.

Yes excatly

While it may be doable, it´s a huge effort and will probably result in a not as stable as the original kernel the device shipped with.

All device specific drivers are written for a specific kernel version. Porting the kernel from 4.4 to 4.9 would require a tremendous lot of work to rewrite/make sure these drivers still work as intended. (touchscreen, display, storage, vibrator etc).

Linux-Stable and Google Security updates provide important fixes to the kernel as it is now :) Linux-stable alone up to 4.4.172 are several thousand commits I believe. Not all may be relevant to our device but the ones that are, are included!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
New release with 4.4.172 and February Security Update will drop soon!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Maverick Jester:
Makes sense, thank you.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
hey guys and girls,

Here´s the update with February Security patches merged in.

Linux-Stable-Upstream is now bumped to 4.4.172!

Changelog:

- Update to 4.4.172

- February Security patches merged in

- Built with clang 7.0.2 now! (previously 7.0.1)

For further details please take a look at my github!

Download is below :)

Download: https://www.androidfilehost.com/?fid=11410963190603915787

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
What's the difference between clang 7 and clang 8?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Clang 8 is more recent than clang 7.

Pretty sure you find more info on that searching via google.

Previously 7.0.1 was used now 7.0.2. Google updated their repo with prebuilt clang approximately a week ago.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
I was thinking maybe you could why you are using clang 7 and not clang 8
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
It’s more trusty and worked very well for quite a time now.

Don’t want to introduce a factor that may cause instability at this point.(although it’s quite unlikely to be related to clang, but I had something similar happen in the past). Kernel seems to be finally stable for everyone :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] seardna:
Thank you for your excellent kernel , it's the stablest kernel I ever had .