yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] tetsuo55:
Hi [MENTION=5939657]SonyRiFle[/MENTION] and [MENTION=5162288]danishaznita[/MENTION] ,

This problem is pretty much the same for every phone unless it was designed in such a way to run at 100% load for extended periods of time.

To solve the issue there are a few things you can do.

*Lower heat generation by undervolting

*Lower heat generation by underclocking

*Tweak/replace system files and settings to improve performance (calculations per watt)

*Tweak/mod the application (game) to reduce its load on the system

The first 2 can be done with Zombie kernel and kernel aduitor.

The third is harder to do, a game that uses a lot of SQL commands could benefit from a tweaked libsqlite.so for example. If it is at all possible, getting a newer driver for our GPU could help too.

The last is easier, you can use GLTOOLS to lower the requirements of the game to the point where you can play it without issue for longer periods of time.
[Xperia Z Original Android Development] BaDKaRmA:
Can you make a kernel with only display tweaked and d2w and some small features excluding heavy features like fsync cpu boost, all remain stock tunables etc and maybe name it as zombie kernel lite something :) That would be great ;)
[Xperia Z Original Android Development] dedito:
hey Tommy-Geenexus, i edited Sysfs Paths for Kernel Tuning via Solid exproler, but after reboot it's changed to default again. where did i wrong ?

Thank you
[Xperia Z Original Android Development] CosmicDan:
That's not how it works. Any changes at all to SysFS will be reset when the device reboots. They are effectively stored in RAM, like tmpfs - it's not a HDD (or eMMC in this case). I.E. sysfs is volatile storage. It's not permanent, the changes you make need to be reapplied on every boot.

I don't even think you can rename sysfs things, I've never heard of anybody trying something like that. My educated guess is that it won't work at all, because the kernel still "looks for" the value at the original path it created.

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] dedito:
oops my bad. i found someone share the script to turn on dt2w and turn off 2 core.

thanks for the explanation.
[Xperia Z Original Android Development] yeyi01:
Giod day boss ? can you share the link of that please?
[Xperia Z Original Android Development] Bobbi lim:
[MENTION=5243932]Tommy-Geenexus[/MENTION] which version is compatible with 5.0.2?

My build number is: 10.6.A.0.454
[Xperia Z Original Android Development] St.Jimmy90:
B15 should be fine:

https://www.androidfilehost.com/?fid=24052804347807359

This was asked before though, please use the search function next time ;)
[Xperia Z Original Android Development] Tommy-Geenexus:
I do not recommend installing anything but the latest build. Older builds have a thermal driver bug and should not be installed.
[Xperia Z Original Android Development] Bobbi lim:
I searched but I couldn't find what I want and thus I asked.

Thanks for the heads up but I guess I have to give your kernel a pass (not that I don't want to flash it but I can't!)

I'm having a Xperia Z with an unlocked bootloader but I've tried using the XperiaRootKit (I think that's what's it called or something along that line) to root but it didn't work.

I decided to flash the dual recovery that I used last time (but this time, its the latest) and although the installer says flashing was a success, I couldn't boot into recovery at all.

I haven't touch the phone for quite a few and thus I'm lost. I'm used to owning a HTC, Nexus and OnePlus where flashing recovery uses fastboot commands like "FASTBOOT FLASH RECOVERY RECOVERY.IMG" and not with installer and stuff
[Xperia Z Original Android Development] GasperP:
What app do you use for that kernel?
[Xperia Z Original Android Development] tetsuo55:
Download b23 and extract boot.img.

Open flashtool and select flash and then fastboot mode

On the right select kernel to flash, and then flash the boot.img you extracted.

boot the phone into TWRP by holding volume down and flash what you need to flash. To get permanent stuff, as the fastboot flash is temporary
[Xperia Z Original Android Development] Bobbi lim:
I think you misunderstand my post or I might have phrased it wrongly :eek:

My main point is, Xperia Z isn't like a Nexus, HTC or a OnePlus One whereby you can use fastboot commands first time to flash a custom recovery and after that just simply flash the kernel zip in recovery. For the Xperia, I need to use an installer bat file (found in xz dual recovery thread!) to install a recovery.

The last time I flashed a custom recovery, the recovery wouldn't stay upon reboot.

In normal circumstances:

-Flash (whatever) in recovery

-Reboot

On Xperia Z:

-Flash (whatever)

-Flash recovery

-Reboot

If I forgotten to flash recovery the second time, I lose my recovery and need to flash it all over again.
[Xperia Z Original Android Development] tetsuo55:
thats exactly what i am saying.

You can fastboot a recovery, and then flash the permanent recovery through zip file.

If you ever flash anything that touches these files then yes you will have to reflash recovery before rebooting
[Xperia Z Original Android Development] Bobbi lim:
Managed to flash the kernel but resulted in a bootloop :confused:

Edit: I figured out why the device bootloop-ed. The kernel is for	10.7.A.0.222 whereas mine is 10.6.A.0.454 which in other words, I'm trying to flash 5.1.1 kernel on a 5.0.2 ROM. [MENTION=5243932]Tommy-Geenexus[/MENTION] do you remember which version is the latest for 10.6.A.0.454 aka 5.0.2? Please don't recommend me the latest as it send the device into a bootloop.

Edit 2: Attached image was the answer to my question.
[Xperia Z Original Android Development] tetsuo55:
On the nut dual recovery website you can download a kernel for any version
[Xperia Z Original Android Development] Tommy-Geenexus:
Upgrade to 5.1.1. Do not install anything but the latest version. I may pull all older Kernel versions off Afh.
[Xperia Z Original Android Development] Bobbi lim:
I had quite an issue with updating this phone from 4.4 to 5.0.2 so updating to 5.1.1 will be postponed. Anyway, I don't think that 5.1.1 will be better than 5.0.2 in terms of battery life (speaking from experience - OnePlus One & Nexus) where 5.1.1 battery life was horrendous when pit against 5.0.2

Just to check, in Zombie-b15_stable_rev1 is there any hotplug & CPU/input boost built into the kernel? I'm not seeing their settings in Kernel Auditor.
[Xperia Z Original Android Development] BaDKaRmA:
Solution For Heating problems and phone turning off:-

Goto

1)device/sys/module/acpuclock_krait/parameters/boost.... Del value Y and type N save it

2)device/sys/kernel/msm_thermal/allowed_high_freq.....Del value 810000 and type 1026000

3)device/sys/kernel/msm_thermal/shutdown_temp.....Del value 75 and type 80

Change governer tunables to these values using kernel auditor app:-

io_is_busy :-1

Sampling_rate :-50000

Only change these two values

Uploaded UV values screenshot below for better performance and battery.

If anyone who can make init.d scripts dat would be great!
[Xperia Z Original Android Development] bubbeld:
is this kernel compatible with the newest firmware of the xperia z ?
[Xperia Z Original Android Development] Dzepar:
If you mean with BN: 10.7.A.0.228, yes. ;)
[Xperia Z Original Android Development] bubbeld:
does it work on lbl ?
[Xperia Z Original Android Development] codfx:
sorry. nope!
[Xperia Z Original Android Development] ProudRed:
Looking for best battery saving settings using kernel auditor as my battery is 3 years old. Suggestion from experts are welcome.
[Xperia Z Original Android Development] Simeon Petkov:
Need help guys. I've got a Xperia ZL C6502.

Flashed it on 5.1.1 omni rom- shows sony screen, then blank, reboots into recovery.

Flashed it on 5.0.2 resurrection remix rom- just stays blank.

I am doing it the same way- flash the zip, then reboot in fastboot and flash the img.

Please help, how can I flash it. I want this kernel.
[Xperia Z Original Android Development] dedito:
This kernel is only for STOCK Sony based rom
[Xperia Z Original Android Development] mr.lan:
How to active conservative, please
[Xperia Z Original Android Development] St.Jimmy90:
Use Kernel Audiutor
[Xperia Z Original Android Development] mr.lan:
Not in gpu! ??
[Xperia Z Original Android Development] Xspeed:
I flashed TWRP (normal), but I don't know how to access it. I tried holding/pressing volume keys, but no success. Am I doing something wrong?
[Xperia Z Original Android Development] suatsari:
[MENTION=5292510]XspeedPL[/MENTION] Tap on the screen when the led flashes
[Xperia Z Original Android Development] Othman998:
There is new version of TWRP

3.0.0

download link: https://dl.twrp.me/yuga/twrp-3.0.0-0-yuga.img.html

To install it but .img in the internal storage then rename it to twrp.img then open terminal emulator app and type:

su

dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel

Note: this recovery doesn't support multi-rom!
[Xperia Z Original Android Development] Xspeed:
lol, I'd have never thought of tapping the screen to enter the recovery.

Btw, does that APQ work for anyone? If I change max online CPUs to anything below 4, all cores are active anyway.

Can I change APQ to anything else? I need something more battery-friendly :/
[Xperia Z Original Android Development] maykp:
I'm facing some problems

I have xperia z c6602 lollipop 5.1.1. recently I flashed zombie kernel then my mob automatically turn off when mob heated. I can't play online games. Plz help me
[Xperia Z Original Android Development] codfx:
That's because of thermal control. Click here for solutions.
[Xperia Z Original Android Development] maykp:
I can't change anything in root folder using xplore,root browser mob is rooted

I can't change anything in root folder using xplore,root browser mob is rooted

---------- Post added at 11:32 AM ---------- Previous post was at 10:54 AM ----------

I can't change anything in root folder using xplore,root browser and all apps what to do? How to change plz help ?
[Xperia Z Original Android Development] neildalal:
Make sure you have granted super su permission to the root browser app. You can see it in the super su app. If you dont get any prompt to grant root access then try uninstalling and reinstalling the app..
[Xperia Z Original Android Development] maykp:
I know how to change files but in root/sys I can't change anything in my xz
[Xperia Z Original Android Development] Cr33D OrB:
Same problem here..

After reboot Everything gone.
[Xperia Z Original Android Development] maxxx83:
What error you get in file explorer and what file explorer you guys use?I use xplore and all is applyed and works after reboot.
[Xperia Z Original Android Development] Cr33D OrB:
So i just tried using xplore

AFTER reboot it doenst stick old states again..

Thats the Problem

If anbody has a solution i appreciate any help..

:)
[Xperia Z Original Android Development] maxxx83:
Sorry guys,setting not sticking after reboot for me to.I use it before on existenz but truth is i can't remember did i check is settings applyed after reebot.Sorry again for falshe answer.
[Xperia Z Original Android Development] Kelvin blaze:
Wii be any update for termal fix?.....just play online game for few mins,phone shuts down.....
[Xperia Z Original Android Development] Cr33D OrB:
Yeah would be nice if there came a Patch
[Xperia Z Original Android Development] Stevan Dj:
you can "fix" that by changing this value to whatever you like

/sys/kernel/msm_thermal/shutdown_temp

mine is set to 115 lol :silly:

make a script so it applies everytime you reboot the phone
[Xperia Z Original Android Development] Cr33D OrB:
Okr thx however the Script is the Problem

Lets Google a Bit xD

---------- Post added at 20:18 ---------- Previous post was at 20:01 ----------

#!/system/bin/sh

echo 100 > /sys/kernel/msm_thermal/shutdown_temp

Okay thx

.
[Xperia Z Original Android Development] Kelvin blaze:
I got try this ady, but it's not saving after boot...
[Xperia Z Original Android Development] Tommy-Geenexus:
This is a safety measure to prevent hardware (mainly battery) damage.

Simply offline 2 CPUs when gaming, then the temp stays in an acceptable range.
[Xperia Z Original Android Development] Cr33D OrB:
So the init.d isnt working? [MENTION=5409356]Kelvin blaze[/MENTION]

And [MENTION=5243932]Tommy-Geenexus[/MENTION] how to 'offline 2CPUs when gaming'?
[Xperia Z Original Android Development] Kelvin blaze:
U can offline cpus at kernal adiutor in cpu option....

I think it works,but the shut down problem still have,although I offline 2cpu still the same...
[Xperia Z Original Android Development] Cr33D OrB:
Try init.d
[Xperia Z Original Android Development] Kelvin blaze:
I try ady,still same.....
[Xperia Z Original Android Development] JesXZ:
can i flash this kernel in Resurrection Remix 6.0.1 Rom?
[Xperia Z Original Android Development] codfx:
This kernel is ONLY for STOCK 5.x!
[Xperia Z Original Android Development] Sir_DiamonD:
Can i flash at last odin stock 5.1 .228 or only .222?
[Xperia Z Original Android Development] kael2404:
[MENTION=5243932]Tommy-Geenexus[/MENTION] could you consider porting your kernel to 6.0 roms like ressurection remix or cm13? I miss your kernel features on rr rom..
[Xperia Z Original Android Development] Kelvin blaze:
Me too.......
[Xperia Z Original Android Development] random_n00b:
How can I uninstall this kernel to get back to stock? (My last nandroid is kind of old... :( )

I'm experiencing stuttering with the Google Music app when the screen turns off. I just want to rule out that is has something to do with the kernel.

I flashed the stock kernel partition with Flashtool, but I'm not sure if that restores full stock.
[Xperia Z Original Android Development] St.Jimmy90:
That should be fine.
[Xperia Z Original Android Development] random_n00b:
Just FYI, I rolled back to a very old nandroid backup (w/o the zombie kernel) and the stuttering issue is still there.

So it seems NOT to be connected to the kernel.
[Xperia Z Original Android Development] sina.badboy:
Thanks, it works great
[Xperia Z Original Android Development] masteriori:
After installing this kernel, I feel like there's an orange/warm tint to the screen but can't quite find the right RGB values in Kernel Adiutor. Help will be appreciated.
[Xperia Z Original Android Development] ungrost:
Hi guys! My question is, after you install this kernel, I still can not install multirom, as the kernel does not have the patch. I tried different versions of the kernel installation. It did not help. that will advise in this case? phone: sony xperia zl.
[Xperia Z Original Android Development] fiorezy:
Oh thank god I thought it was my screen :laugh:
[Xperia Z Original Android Development] masteriori:
For the time being, I have set RGB values to: Red(251), Green(253) and Blue (254)
[Xperia Z Original Android Development] fiorezy:
Not even close, I had to flash this kernel to disable this weird orange tint
[Xperia Z Original Android Development] deojames:
Seems USB tethering is not working in existen z. 4.0 ROM, anybody with solution?
[Xperia Z Original Android Development] DahakePL:
...deleted...
[Xperia Z Original Android Development] Simon G:
Can i flash Kernel on cm12.1

Gesendet von meinem Xperia Z mit Tapatalk
[Xperia Z Original Android Development] pelur:
eXistenZ Premium 4.0.0

How to use this kernel for eXistenZ Premium 4.0.0? I installed zombie kernel but "Unfortunately, phone has stoped" and then bootlop

Thanks

Sorry bad english..
[Xperia Z Original Android Development] DahakePL:
I flashed multiple times without any problems
[Xperia Z Original Android Development] Simon G:
Download offline

Gesendet von meinem C6603 mit Tapatalk
[Xperia Z Original Android Development] DahakePL:
How to fix this weird orange tint :/ ??
[Xperia Z Original Android Development] YanTashikan:
How to install only bl hack wrom this rom?
[Xperia Z Original Android Development] Sammy612:
If anyone could help me out.... Thanks in advance...

1. Currently on existenz 4.0 and i want to intall zombie kernel , is it worth it.. I've heard that it has really good colors..and features

2. Which is the best rom which is most stable and smooth.
[Xperia Z Original Android Development] nattaj9:
restart my mobile
[Xperia Z Original Android Development] nicek8:
Hi! I have problem with kernel. When i using navigation, or playing games, my phone is heating, and going to off. I try to change setting in /sys/kernel/msm_thermal/shutdown_temp, but it's not working.. changes, are don't saving. Any solution? Please, help!
[Xperia Z Original Android Development] danishaznita:
That means that it still exceed your new values, let say 80, but your phone goes beyond 80 so it shutdown. I suggest u put 90 and test again, (my phone went 115 when using navigation, Crazy!)
[Xperia Z Original Android Development] nicek8:
Changes in the file not saving i said.. check my previous post. Max temperature is 75, and i haven't any idea to change, and save it..

Any solutions?
[Xperia Z Original Android Development] danishaznita:
Oh my bad i missed it. Do you change settting via terminal or edit the file directly?
[Xperia Z Original Android Development] nicek8:
I dont change via terminal, i try to edit file directly, but after reboot changes is returning to stock values (75C)
[Xperia Z Original Android Development] danishaznita:
I see, okay. Long ago, the dev said that this is a security feature, everytime you reboot, the change will revert back to stock. So we really do need to change the setting every reboot. The easy method is to use echo in terminal
[Xperia Z Original Android Development] Rumman Shaikh:
I've made this script to solve the above problems.(Try at your OWN RISK though :P)

Move this script to /system/su.d (If you have supersu installed) with permissions 0755(rwxr-xr-x) and reboot. :D

Download Here

XDA Y U SO AWESOME?? ?(????) ​
[Xperia Z Original Android Development] G-UN1T:
whether it works?

whether it works with cyanogenmod 13 or 14.1? thanks
[Xperia Z Original Android Development] wakas_razaq:
i'm using MIUI's marshmallow and need DT2W feature. Will this kernel be useful?
[Xperia Z Original Android Development] danishaznita:
no

and no
[Xperia Z Original Android Development] truefriendcz:
What supported ROM with this kernel? Do you can build list supported ROM? Thanks
[Xperia Z Original Android Development] Wadow:
How to disabled apq hot plug

And Enabled mpdicision...
[Xperia Z Original Android Development] ArmadiloDS:
Anyone managed to install magisk?
[Xperia Z Original Android Development] zegoo:
[MENTION=5243932]Tommy-Geenexus[/MENTION]

Hi and thanks for of your job.

I'm actually using a Z5C always under LL 5.1.1 (.200) for many valuable reasons ... My phone has root's rights, DM verity off, RIC Off with rootkernel method using my own stock kernel.

How to get a fully workng stock kernel as yours to have a better vibrator strength ?

As on one of the features included in your kernel : "Adjustable Vibrator Strength".

Mine is very down ...
[Xperia Z Original Android Development] hani1337:
i read the instalation guid above but i didnt understand can you pls tell how to install it step by step ? and it works for lb ?
[Xperia Z Original Android Development] RJinxed:
I know I'm very late to this but does anyone still have a mirror for this version? I really want this kernel but I don't like APQ hotplug since it burns my phone cause of the cores not turning off even when under load.
[Xperia Z Original Android Development] Tommy-Geenexus:
For those with turned off phones, i you charged the phone it may became too hot and turned off, although i can't tell anything without log.

Also no log = not kernel related, most likely caused by the Android system.
[Xperia Z Original Android Development] CosmicDan:
Not always. No log just means the kernel didn't panic; if there's a problem with power management for whatever reason and the phone instantly powers off, then obviously there would be no log. Android system has 0% control over hardware, its all provided by the kernel.

I wasn't charging the phone when it happened to me either, was just sitting on my coffee table.

I've not had even a slightly warm phone with this kernel, and never had this occur in any other firmwares until now... by process of elimination, it must be the kernel.

For all we know its a safety function kicking in on the boot loader or something, without logs all we can do is speculate, as you suggested... But I don't see how its technically possible at all for the Android OS to cause it; indirectly or otherwise.

Anyway, what I've changed is only disabling one core, lowering touch boost frequency, and changing some volume in faux sound - literally nothing else. Did have fast charge enabled but now that's off - even though I was not charging when I got this issue, we'll see how I go for next few days.

It could very well be a bug in the original Sony source too, which only surfaced now due to e.g. compiler flags. I've seen stranger things! So please don't mistake this for criticism friend, we all appreciate the work and effort you've taken here :)

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
It is possible that the OS causes reboots, happened to me too some time ago.

However we'll never know.

I haven't had a reboot on Stock Sony for almost a year now, so it surprises me that there are so many issues occuring.

I'm always open for critism ;).
[Xperia Z Original Android Development] CosmicDan:
It is indeed a mystery. Granted we have voltage and thermal control, but I've not touched them... something like a hard power cut suggests it's a very low level problem because the kernel was unable to catch it. Like thermal sensor malfunction or something. But I don't know everything, I shouldn't be so quick to dismiss the possibility that it is a firmware issue - but I just don't see how is all.

Well, I'll keep using the kernel regardless. I'll keep the issue on my mind to see if I find any clues in case it happens again. Seems very difficult to diagnose this but.

And I have no idea why some people had such severe issues but others don't. Maybe they never flashed FTF and just went the hacky-route of the ZIP update for KitKat > Lollipop that was posted, or installed some bad app that was eating CPU *shrug* but heat for me is perfect, no issues at all. Battery life is a little lower than stock though, not sure why but I dont mind too much.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
Yeah you're right.

I can't really comment on battery life, it seems like it improved a bit, but i don't care much, all i want is better (thermal) performance.
[Xperia Z Original Android Development] comax70:
No reboot or problem great
[Xperia Z Original Android Development] kingvortex:
Just woke up to find my phone was charging offline. I pulled last_kmsg but it was corrupt. Last few lines were this:

2#'3.36%9#5]�Disabl)ng n/n-bk/t CPUs ..�
[ :�72.#?5 -)_ m3m? m_enter
[ 2373*#;0259] mko_`m_%.t$r� p/w

Looking through dmesg, I find similar entries like:

<4>[ 1179.087341] Disabling non-boot CPUs ...
<6>[ 1179.108581] msm_pm_enter
<6>[ 1179.108581] msm_pm_enter: power collapse

It looks to me like the phone was just entering suspend and it shutdown instantly, but I'm no expert at reading logs.
[Xperia Z Original Android Development] aidfarh:
Thanks for the response. I've determined that my kernel panics were somehow caused by Xposed Additions. I disabled the xposed module and so far I'm not having any more kernel panics.

Another thing, I was having serious lag and I've discovered that this is probably due to having Adaptive Brightness enabled. After disabling Adaptive Brightness the lags are gone. I don't know whether this is kernel related, though, since I haven't gotten around to reflashing the stock kernel to test Adaptive Brightness with it.
[Xperia Z Original Android Development] Tommy-Geenexus:
Seems thermal related.

The Phone gets hot while charging, so i could imagine that it turned off due to high temperatures.

The stock thermal driver is less agressive, so it probably won't happen with the stock kernel.