yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Q&A, Help & Troubleshooting] epig:
I've been experiencing random freezes that kick in about two or three days after installing a new custom ROM. Freezes occur, followed by FC prompts, which can be "Wait"ed and the app works again, but after a day or two of use, it just becomes painful waiting for the apps to resume or phone to wake up.

In the course of backing-up I've noticed that TWRP Nandroid backups are running into read errors (code 255). These can be fixed by going through the recovery.log and deleting the files that cause errors and rerunning the backup, repeating until all the corrupted files have been deleted. The phone also runs better after these files have been deleted, but it eventually happens again until the phone is almost useless. What is feels like, is old-time Wintel bad hard drive sector errors and it looks like it too when you see these read errors in TWRP, but everyone assures me Nand/Flash drives don't work like that...are there any other possible hardware issues?

The trouble began after I installed the final Resurrection Remix 5.8.5 (5.8.4 bluetooth didn't work properly). I've now tried also Nougat versions of Resurrection, Lineage and Carbon. Can't bear going back to MM but it might be the only solution.

I've followed installation instructions to the T, installing stock ROMs with Flashtool and then installing ROMs as described in OPs. I've tried both Magisk 14 and SuperSU. I've avoided rooting at all. I've Formatted (rather than Wiped in TWRP) everything except the external SD card. I've restored apps through Titanium. I've fresh installed apps from the market. Nothing works. I haven't tried not installing anything but what's the point of a phone with no apps??

I've followed some solutions posted by others with the same problem but not everyone describes their problem all that well but I still run into the issue. BUT, I keep seeing threads that die and no one says they fixed their issue - common but I'm thinking they gave up.

I haven't tried MM, but I might try Oreo first, if it's stable enough to run. Support in ROM forums is pretty thin though nowadays...:rolleyes: (check my other posts).

Anyone got thoughts on how changing kernels might help, and which kernel to use for Nougat?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Genesis Kernel for suzu

Features

- Sony RIC disabled

- dm-verity disabled

- DRM patch included

- Patches from CAF

- Patches from Google

- Added some CPU govenors

Installation

- Install the .zip file via TWRP (the boot.img will not work on it's own)

- For upgrades you can use FlashFire 0.53 - which is what I am using if your device is always with root access.

- Then flash SuperSU if required.

Downloads

*** Please do NOT create any mirrors ***

- Download Genesis Kernel From AndroidFileHost

Kernel Source Code

- https://github.com/ggow/android_kernel_sony_kugo/commits/android-7.1.1

Credits

- Sony | tobias.waldvogel | AndroPlus | cyanogenmod | sultanxda | franciscofranco | arter97

- If I have left anyone off then, apologies in advance and PM me to be added.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
New Build is Up

- Rather than maintain the list multiple times:

- Version History can be found here
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Mikolaj612:
Everything looks fine, but I don't know how to test DRM function properly.

Would be so kindly and help me out?

At the moment, WiFi, BT, screen/touch etc. working as it should :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Good news, thanks for that.

Check this post for how to check DRM status: https://xdaforums.com/showpost.php?p=52990972&postcount=3
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Mikolaj612:
Widevine and CKB are OK, there is nothing more on my phone.

So may I assume that your DRM fix is working?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Yes, that sounds like it's working just fine :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Mikolaj612:
After few hour of testing and normal phone usage I can report that there is no issues at all :)

I hope it will stay that way ;)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Gray47Maxx:
Looks intresting. What features are you planning to add next?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
can you include drm fix into kernel, not into /system/vendor ?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
I remember looking into this before when working the x compact and decided it doesn't work like that. I can't recall the exact reason.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] mcraeally44:
Would it be possible to include OC/UC control as well as .kcal support?

Thanks!
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
then, can i modify you kernel by myself and use it on my ROMs?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Yes, go ahead.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
I'm a little nervous about adding OC support to the X compact and X. On the X compact, the phone already overheats when under heavy load. That doesn't make a good case for overclocking on these devices for very little gain in real world performance.

I'll look into adding KCAL support.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] mcraeally44:
Has anyone played with undervoltage? I have very little experience with the SD650 running under a custom kernel.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Mikolaj612:
KCAL would be nice.

OC? I don't think so, X gets pretty hot when used as a video call device or while heavy gaming.

It would be better to add UC or give us a chance to modify some voltages for better battery life and less heat.

After all there is no error on my phone, Magisk work perfect, more advanced functions are working perfectly fine with your kernel.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] sebasrock156:
Some undervoltage recommended?

On another phones like Nexus 5 with ElementalX Kernel , SoC works fine using 750mah with OC@2,4/2,5Ghz (Yeah, Overheating is there), and UC@2,1/1,6GHz and 730mah...

Curiously, with their Kernel App UI, you could make another type of Undervolting or force the SoC to other low frequencies... And when you try to install Higher Frequencies installing the kernel, the phone is locked later on Splashlogo/Bootlogo (For Voltage fault, I guess).

I think that you could some similar Kernel for this... And if you think put OC option remember the Overheat and some method for a cooler ;)

- Send from my Oven Xperia X (Bye paint, hallo Aluminium back cover :3).
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
One of the features I have added for the next release is undervolting - see here.

I'm updating the list as I go.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
can you include this 2 commit to your build? For full SuperUserMod.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Mikolaj612:
Any ETA for new version of your kernel?

After one week of testing I can tell one thing - everything is rock stable :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Yes, will put them in for the next release.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
New Build is Up

- Dated 11 January 2018

- Version 1.09

- Add KCAL for mdss post processing support

- Slightly undervolt CPU and GPU

- Add voltage control for GPU

- Add voltage control for CPU

- Add backlight dimmer option

- Enable all cpu cores for device boot-up

- Force selinux permissive

- Enable MirrorLink support for kugo

- Merge each upstream linux point release up to v3.10.104
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
As I do not have an Xperia X to test, can someone confirm v1.09 works?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] rheckr:
v 1.09 doesnt work for me. Reboots on very first Sony logo.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Are you running the latest .252 ROM?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
Confirm don't bootup with v1.09 on .252 fw. reboots every time
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
I'll take a look tomorrow to see if there is anything obvious causing this.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
fix

I have fix v1.09 kernel. The problem was with deleted folders on ramdisk:

View attachment 4387065

Just copy-past from other kernel and it bootup well.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Thanks for looking and finding the issue :)

Looks like git did not pick up all the files in the ramdisk. I'll fix my repository and re-release it.

EDIT: Looks like I forgot about empty folders and and the use of .gitignore.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Pouya Rezaei:
great job

can i use your kernel in my rom?can i modify your kernel?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
[MENTION=5897890]lubik1[/MENTION], can you send me a clean stock .252 boot.img.

The one that [MENTION=2220008]Mikolaj612[/MENTION] sent to me previously was modified.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Yes you can :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Pouya Rezaei:
thanks

i trying to help you improve the kernel
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
boot.img
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
New Build is Up

- Dated 13 January 2018

- Version 1.10

- suzu only

- Import clean ramdisk

- Add .gitignore files

- Import genesis kernel changes for ramdisk

- Disable sony_ric service

- Disable dm-verity
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Could someone test version 1.10 and report back please?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
Works Fine, Thanks
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Mikolaj612:
Yep new version is running :)

KCAL support is working and my phone boot up faster.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Gray47Maxx:
This kernel looks very promising. I'm on 1.10 now, and it would be interesting to see the ironactive governor in this kernel)))

Also, what do you think about fast charging through USB and Dynamic FSync in it?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
I have added the ironactive governor, will be in the next release.

Not sure if Dynamic FSync will make much difference to X and X-Compact. Let me know if you think otherwise.

Fast charging - will have to look into this one.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Gray47Maxx:
Hm, maybe it is. I just remember other Sony device, M4. It was crippled as... Its kernel was really bad, so do system...

Also, what features do you plan to add next? And what will happen with your kernel when Loire platform support by Sony will end? Will you move to custom kernels for custom ROMs?

Also, thanks for your work ;^)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
I'll take a look at Dynamic FSync and double check.

Features wise, we'll see what I have time for, however you can keep track of upcoming stuff because the latest commits are always here.

When sony's loire support ends, again we'll see. I have ideas but it's all a matter of how much free time I will have.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Adding dynamic fsync violates sony's userspace interface and causes the rom not to boot.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] venomxob:
After installing this kernel, the sd card stopped working. The phone constantly says that the card is damaged, in-phone formatting didn't help, formatting in general didn't help. Even factory reset didn't help. I had to reflash the phone to get it working.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] rheckr:
v1.10 works perfectly for me. Performance is awesome, we'll see how battery is.

Great work!
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
New Build is Up

- Dated 16 January 2018

- Version 1.11

- Add wakelock blocker driver

- Add ironactive cpu governor

- Add smartmax cpu governor

- Add smartass2 cpu governor

- Add barry allen cpu governor

- Add bioshock cpu governor

- Add cafactive cpu governor

- Add zzmoove cpu governor

- Add yanactive cpu governor

- Added dynamic fsync (currently disabled / doesn't work)

NOTE: Please note I have not tested all these features, some may require some minor tweaks which I plan to clean-up before the next release. So if you find anything wrong then do let me know so I can include it. Enjoy :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
I will take a look into this. Keep your sdcard, if it is indeed something in the kernel then your card should still be ok.

What is the exact make model of your sdcard?

Could you also post dmesg and logcat so I can see what happens when you try to access or format the sdcard?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] venomxob:
As I said I reflashed the phone, to solve the problem. Now the card works again.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Sorry, multi-tasking is a bit off this morning. Looks like there are a number of items merged from linux upstream, one of which is probably responsible. I'll try to get this fixed up for the next release.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] hhjadeja007:
Is EAS implemented in this kernel already?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
No EAS is not implemented. Looking into it.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] SteelK:
bugs in 1.09 and problems in v1.09

1. ExFAT does not work on v1.09. Formatting SDcard Smasung 64gb fails. (At the DRM-fix .252 kernel, everything works fine)

2. v1.11 does not work on the Dual version, BootLoop. (I tried both through TWRP and via FastBoot):eek:

I have unlock BootLoader, Stock Android 7.1.1
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Gray47Maxx:
Confirming bootloop. I have 5121, it's bootlooped as well... Is the problem in ramdisk again?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Pouya Rezaei:
hi [MENTION=5749760]ggow[/MENTION]

can you update kernel for oreo?

this is F5121 oreo stock kernel link:

http://www.mediafire.com/file/8vitb4otk1lxj7g/kernel.sin
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Yes :)
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Sony haven't release the 34.4xxxxx kernel sources yet. When they do I'll begin work on it.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Glassed Silver:
I'm a complete custom kernel noob.

Is EAS part of the stock kernel?

Anything else I'm missing out on with yours?

How about Safety Net, Android Pay? (provides I use Magisk without Xposed)

Encryption is disabled, too right?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
- EAS is not part of the stock kernel

- Safety NET and android pay can be obtained using Magisk

- Encryption is not enforced

- Anything else? There are more features in Genesis than stock also the phone seems a lot snappier in terms of real usuage.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] Glassed Silver:
Thanks a lot. I'll jump in as soon as Oreo is ready. :laugh:
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] hhjadeja007:
Is development stopped for this kernel?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] zacharias.maladroit:
Would be a shame, since the device really has potential

[MENTION=5749760]ggow[/MENTION]

import the Sony FIPS driver, e.g. CRYPTO_DEV_SOMC_FIPS_KSCL (that one is for the Z5)

and make sure you compile it INTO the kernel

that way you will be able to make all sorts of changes and the kernel will STILL boot and/or work

e.g. you had to revert: net: do not track how many files in flight in unix sockets,

with the newly built FIPS driver kscl.ko (if applicable),

kernel development will be much easier

and that change can still be used without problems
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] ggow:
Thanks for the info. I haven't abandoned this. I have just recently been promoted at work and it's hectic especially with a little person too. Hardly any free time. But will continue once there is a moment.
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] zacharias.maladroit:
oh :confused: - in that case - many congrats on both ends :)

Take care
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] A Good Kid:
Hello.. I get stuck on Sony logo after flashing on 252..
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] misacek28:
The GENESIS kernel does not work on the samsung screen for repair I had another rom

The GENESIS kernel does not work on the samsung screen for repair

I had another rom different

Thank you
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] lubik1:
[MENTION=5749760]ggow[/MENTION] i know, you have not a free time, but maybe you can update you kernel for 8.0.0 and latest sources? If it possible i can donate you for your time, appreciate your work, with best regards, lubik1
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] misacek28:
i need to send me the exact ROM (link) to which this kernel will work to 7.1.2 and 8

i need to send me the exact ROM (link) to which this kernel will work

to 7.1.2 and 8.1 does not work

Thank you

---------- Post added at 05:18 PM ---------- Previous post was at 05:08 PM ----------

please ;)give me instructions on which rom works well

---------- Post added at 05:24 PM ---------- Previous post was at 05:18 PM ----------

+ what is the fastest and best for you rom?
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] YasuHamed:
was running on rooted .252 (stockrom on 7.1.1)

flashed the kernel (via twrp)

device freezes at sony Logo :(
[Sony Xperia X ROMs, Kernels, Recoveries, & Other D] tareqabamawi:
Sony Xperia X Dual

I did not understand what is the use of this file?

Does this mean a file

boot.img?
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Carlsbad1:
Hello,

I have a Galaxy S4 (SGH-I337, AT&T) running Android 5.0.1 that I successfully rooted yesterday. I ran Root Checker to confirm. The phone worked fine. I then started deleting bloatware to free space. I rebooted 2-3 times during the day as I was deleting programs. Finally I deleting the wrong program/file.

Now the phone starts and goes to the page where I would normally need to enter my data encryption password, but, no keyboard exists. The phone seems fine, I could make an emergency phone call as it stands, but the lack of a keyboard to enter the password is a game stopper.

I am computer literate but not so on my phone. Am I stuck? Is there a solution?

Thank you in advance.

Mark

P.S. I have a backup using Titanium Backup. If I could get past the password screen, I could theoretically restore the deleted program/file.
[Samsung Galaxy S7 Edge Questions and Answers] emsitek:
Hello ! :)

After long weeks of searching the answer and solution to my problem, I am exhausted. So I would like to ask the biggest Android community for help :)

Well, I know it's not new, but I have problem with my S7 Edge (Exynos) performance :p

I experience FPS drops in almost every game I play. As for games it's not that irritating, but recently I have bought Gear VR and while having this thing so close to your eyes, you see every frame skipping.

Apps for checking the CPU throttling shows that after 5-10 minutes the 4 bigger cores slow down to about 50% of their full speed. It leads to ~30% performance slow down.

I tried every solution that doesn't require root access and warranty void. For example: disabling certain packages and services (Game Launcher, Game optimization service); different settings in Game Tuner; performance mode; factory reset etc. Nothing works.

Does this kind of problems can be repaired on warranty? I know that in order to fix this you can change kernel setting, cpu governor etc but ofc they don't do that in Samsung Service Center. Is it possible for them to replace the main board and cpu with Snapdragon one?

I would not like to root my device because I didn't want to lose my 3 years warranty and I am using a lot of applications that may not work with a root.

Thank you in advance for all your replies :)
[Samsung Galaxy S7 Edge Questions and Answers] high_voltage:
Did you try the game performance mode? As the "performance mode" is just screen resolution and brightness. The game mode is the real performance mode where the temps throttling is relaxed and higher clock speeds allowed(you can also edit the profile to set the resolution manually to wqhd). You can also try to set the resolution to full hd and see how it goes (tho for VR it won't be cool, but for the test it won't hurt). Also if the phone is new, it will need atleast 10 days to settle and become faster, smoother, better. Apply updates if they are pending too.

Otherwise you can't do much without root, but even then you are limited to what you can achieve so be careful + samsung have a fuse into the chip that burns out when you root the phone, it's not possible to hide the intervention and they can deny warranty for that reason (and often do so).
[Samsung Galaxy S7 Edge Questions and Answers] emsitek:
Thank you for your reply :)

Yes, I've tried "game mode" but there is no difference. Changing resolution to Full HD helps for a while, but the Gear VR software doesn't work properly on anything other than WQHD. It just doesn't scale properly and you are unable to see whole content.

I'm just wondering whether every S7 Edge has problems like mine. I understand throttling after 20-30 minutes of intensive gameplay, but ~40% slow down after 3-5 minutes seems strange, especially because phone doesn't even get warm.
[Samsung Galaxy S7 Edge Questions and Answers] high_voltage:
Hard to tell, got the phone, but no vr... :/

Otherwise I don't have problems with gaming, the game mode smooths a little the already fluid gaming(but then again, the game I play mostly is vainglory and that game runs great on htc m8 that is almost 4 years old). You are talking about some more massive performance drop. Many phones start to throttle early and throttle hard, samsung is one of them for sure (they want the phone cold).

[MENTION=1144067]hamdir[/MENTION] can you lend a hand on that one? You are tons more experience with VR than me.
[Samsung Galaxy S7 Edge Questions and Answers] emsitek:
Well, there is an app called CPU Throttling Test on Google Play. I would be really thankful if you give me information how your phone behave in this app. Mine throttles hard after 3-8 minutes. Clock speed of the better cores goes down to about 1.6GHz each. Sometimes even below 1.5GHz.
[Samsung Galaxy S7 Edge Questions and Answers] high_voltage:
From a cold phone, 1.9GHz almost right away(I guess the highest freq is only for burst load, like app launching) and kept for 8 minutes then drop to 1.57GHz on the big cores. So I think it's in line with your result.
[Samsung Galaxy S7 Edge Questions and Answers] emsitek:
Yeah, that would be it. Thank you for your time. So it seems to be normal, I hope I'll get used to it somehow :rolleyes:

I also wrote an email to Oculus, maybe they heard sth about this issue and know a fix for frames skipping.
[Samsung Galaxy S7 Edge Questions and Answers] nexidus:
The notorious feature known as DVFS is the likely culprit. Some forum members suggest it throttles the GPU and CPU to improve benchmark results or otherwise to protect the device. I've noticed it can lock-up and end up overheating the device but that's just an anecdote.

You can try forcing the app to run at a lower resolution which Samsung's Game Tuner does for some games, or find other solutions for unrooted devices like capping CPU frequency for a smoother experience.