yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] CosmicDan:
I've already done it, results are not as good as I was hoping. Stress testing in StabilityTest app, it originally took about 40 seconds for the thermal throttling to kick in but after the mod it runs for about 1:30 until throttling kicks in.

I'm not planning on writing it up any time soon, mostly because 95% of people out there are not willing to tear their phone apart (not only do you have to remove the back plate but also the entire mainboard and the metal cages), plus you would need to buy thermal grease and a copper sheet (I used 0.2mm thickness) and industrial gear to cut, flatten and then buff the pieces of copper sheet.

In a nutshell, unless you're adept with hardware hacking and/or phone repairs and wouldnt be too upset about one tiny slip destroying your mainboard (getting those cages off is tedious and dangerous), I don't recommend it.

But I did take photo's and ill eventually write something up. Eventually.
[Xperia Z Original Android Development] xdagfg:
Aright thanks for your quick reply, photos will do.
[Xperia Z Original Android Development] langeveld024:
[MENTION=1844875]CosmicDan[/MENTION]

I'm interested in it, I do car remaps and chiptuning too and I'm not afraid of these kind of operations (nice and hacky projects) so if you have some time to put it online sometime would be fun :)
[Xperia Z Original Android Development] codfx:
Great! Wake me up when MultiRom is available. ;)
[Xperia Z Original Android Development] comax70:
V10 wifi disconect

Inviato dal mio C6603 utilizzando Tapatalk
[Xperia Z Original Android Development] Furrydaus:
So,

D2TW does not register the haptical feedback apparently.

S2W also doesnt work entirely

Not entirely sure on how to lower the brightness to lower than '10'.

From ExisTenZ Y.

Im New to the Xperia Z comunity. Came from the Xperia SP. Dont mind me haha
[Xperia Z Original Android Development] kingvortex:
Most kernel tweak apps won't activate the haptic feedback for DT2W. You can use the script I posted here to activate DT2W/S2W and haptic feedback.
[Xperia Z Original Android Development] Furrydaus:
Thanks for the pointer. I thought that script was for fixing D2TW or something. Took me about 2+ hours to finish reading this whole thread. Really nice to see loads of good progress here. Unlike the Xperia SP forums :p

---------- Post added 27-07-2015 at 12:37 AM ---------- Previous post was 26-07-2015 at 11:59 PM ----------

Is it possible to increase the haptic feedback (vibration) for the double tap to wake function or is it a fixed value from somewhere else?
[Xperia Z Original Android Development] Tommy-Geenexus:
It's fixed.
[Xperia Z Original Android Development] CosmicDan:
I'm still on b8 but just in last few days I also notice phone sometimes randomly disconnects from Wifi and access point gone (but others still there), have to disable wifi and re-enable. Re-enable takes some time to come back, up to a minute.

May be bug in wifi router for us, since nobody else has reported such issue. Maybe Sony bug in ROM even.
[Xperia Z Original Android Development] Tommy-Geenexus:
This happened to me on Stock too. Not sure where this is coming from.
[Xperia Z Original Android Development] comax70:
B9 work fine for me my router don t have problem

Inviato dal mio C6603 utilizzando Tapatalk
[Xperia Z Original Android Development] Tommy-Geenexus:
Haven't touched wifi at all in the lastest version.
[Xperia Z Original Android Development] Tommy-Geenexus:
A quick question to y'all:

Would you like to enter recovery via touching the screen rather than pressing volume buttons?
[Xperia Z Original Android Development] langeveld024:
Just use manual brightness, if you want automatic brightness to take this in consideration, follow my guide over here: http://xdaforums.com/showthread.php?t=3161998
[Xperia Z Original Android Development] Furrydaus:
Manual brightness apparently isnt that low. Ive had experience building roms that pushed my Xperia SP to the display value of 1 but 5 still looks abit too bright. Nonetheless, ill try and experiment.

---------- Post added at 10:56 AM ---------- Previous post was at 10:55 AM ----------

The haptic feedback still feels abit too soft for my liking. Although if its a hassle for you, you can completely ignore this request :)
[Xperia Z Original Android Development] Tommy-Geenexus:
Manual brightness is lowered to the minimum kernelspace supports.
[Xperia Z Original Android Development] Tommy-Geenexus:
I can make it configurable, no problem.
[Xperia Z Original Android Development] codfx:
Two or Three taps to enter recovery? YES!!! :D
[Xperia Z Original Android Development] Tommy-Geenexus:
Already done, will be in the next release (i'll push one last stable release soon).
[Xperia Z Original Android Development] CosmicDan:
Seriously? Tap to enter recovery is necessary? You guys are weird [emoji14]
[Xperia Z Original Android Development] langeveld024:
Not necessary but I think it's a nice feature since we have to smash our volume buttons less.

It was also present on XZKernel.
[Xperia Z Original Android Development] Tommy-Geenexus:
Think of it like a life-time extension for the volume keys.
[Xperia Z Original Android Development] CosmicDan:
Was just joking around, meant no offense. Good point, though I'm not a compulsive flasher like most of XDA haha.
[Xperia Z Original Android Development] langeveld024:
Lol xD
[Xperia Z Original Android Development] Tommy-Geenexus:
Just tried to mod Kernel Adiutor and add some stuff. It's harder than i thought, need to learn some Java first :D
[Xperia Z Original Android Development] CosmicDan:
Ha sorry, it's really difficult to make time to do it when one works on Java as a day job.
[Xperia Z Original Android Development] Tommy-Geenexus:
Nvm, i just messed around a bit as i need to get some java knowledge either way.
[Xperia Z Original Android Development] CosmicDan:
I've actually switched to Dirty Unicorns 9.5 for the moment, only been on for a few hours but wow @ battery life and performance of it. I may stick with this unless i find another critical bug (thermal throttling is broken so I don't suggest anybody use it IMO, even with my heatsink mod I still feel unsafe). Sorry! However...

...I would like to take a crack at porting some few features from Zombie kernel over, if I can. I've only a novice understanding of C(++) but I definitely would like to see a Zombie Unicorn kernel (not a request, I know you're only interested in stock firmware). But I honestly don't know if I'll have the time to maintain it either so.... hrm decisions decisions.
[Xperia Z Original Android Development] Tommy-Geenexus:
The thing is, my Z is still my main phone.

So i can't reset and wipe and have no motivation to flash other roms.

But i can help you in maintaining a Unicorn Kernel for sure.
[Xperia Z Original Android Development] Furrydaus:
Honestly, I feel that the Xperia Z should put 2 cores offline when not in high loads and only activate it when the phone is high load (like when playing) there shouldnt be a immediate activation just because there is a bit of more load like multitasking. Been noticing this a lot in the kernels in the Z. Ive still gotten good performance om my Xperia SP which generally is slower because it is able to streamline workload properly apparently and not get too hot. May sound ironic but if you compare the specs, you expect the z to perform better but in fact, the z could outperform and not heat too much if it streamline things properly which I dont really see currently in the z
[Xperia Z Original Android Development] CosmicDan:
Compared to DU kernel, I've noticed stock and Zombie have VERY aggressive core enabling and clock scaling. Even with boost off in stock/Zombie and aggresive multicore powersaving, touching the screen and scrolling tends to aggressively ramp. Not the case with DU kernel.

How many times did I just say aggressive?

However (and to support what Tommy just said), DU has had one random soft-reboot for me so far and has occasional lag tantrums. For me as my daily, I can put up with that though. Only reason I'm sharing this is as I'm not sure if its kernel or rom related. Maybe DU kernel source can help with battery life tips though, code wise. I wouldn't know, probably obvious [emoji14]
[Xperia Z Original Android Development] Tommy-Geenexus:
I think aosp kernels use interactive as default gov, right?

Ondemand is quite aggressive, i configured it to quickly ramp up/down depending on load.

Btw. currently i'm working on a new gpu scaling policy which will increase battery life due to keeping gpu clocks lower.
[Xperia Z Original Android Development] Tommy-Geenexus:
Ideally apq_hotplug should offline CPUs 1-3 on low load and bring them back up fast enough.

But i have no motivation to rewrite the hotplug driver currently (and this won't change anytime soon).

The main issue creating heat is, as i just discovered, the trustzone GPU policy.

The GPU wastes way too much time on 320 - 400 MHz, where 200 or even 128 MHz would be enough.
[Xperia Z Original Android Development] CosmicDan:
Yeah they do, didn't notice that sorry. Here's the default parameters for interactive:

Yeah I always set GPU Max to 200mhz, the most intensive thing I do is YouTube and occasional 2D game and both work fine with that! AOSP kernel has no GPU governor setting either, maybe you can tune the conservative/powersave one (whatever it was called) in Zombie to be a bit less aggressive?
[Xperia Z Original Android Development] Tommy-Geenexus:
Yeah, thats the point about conservative (the name reveals it already ;)).
[Xperia Z Original Android Development] afeeq:
Why my setting for GPU governer didnot stick to what I choose? It alway stay ondemand
[Xperia Z Original Android Development] Furrydaus:
Finally, remembered the name for the feature (More like crapware). Anyways, we definitely need to rework the GPU portion to allow better performance and less heat. Not sure if we run updated Adreno 320 drivers though. The latest Xperia SP Kernels have it now after a port by another helpful developer. Trustzone is a bit far too annoying especially on the Z which has heating issues due to the S4 Pro
[Xperia Z Original Android Development] CosmicDan:
So I take it switching from trustzone to, say, msm profiler is not as simple as a kconfig switch? Is it baked in as proprietary binaries or something? Or just not written to be as modular as a full-fledged ARM Linux kernel (for obvious restriction of size given in eLinux kernels)?
[Xperia Z Original Android Development] Furrydaus:
Not quite sure. I never was good at developing kernels. I'm pretty sure the Xperia SP utilized the msm profiler but I don't think its that easy to switch lol. Hoping to hear more from a kernel developer :)
[Xperia Z Original Android Development] Tommy-Geenexus:
An additional driver has to be added, with some similarities and key differences.

The main difference is that trustzone calculates the freq via a closed source "black box", conservative calculates load based on hard-coded thresholds.
[Xperia Z Original Android Development] CosmicDan:
Figured as much. Seems weird that ARM's proprietary security extensions would manage GPU governor though!

I wouldn't call myself a kernel developer but I've had quite a bit of experience (and luck) with backporting/forwarding things before. Pretty interested to dive-in and clone a bunch of AOSP kernels for our SoC from other devices and see what kind of tricks they've done that differ to Zombie/Stock. I'm not sure I'll be sticking with Dirty Unicorn yet but I digress.
[Xperia Z Original Android Development] Tommy-Geenexus:
While messing with kgsl i found that conservative (and trustzone too probably) are switching freqs even when they are supposed not to (means there needs to be locking code implemented).
[Xperia Z Original Android Development] Tommy-Geenexus:
Good news: I got a full trustzone replacement policy working!

That means: Energy saving/Performance/Conservative Scaling Modes, adjustable polling interval and adjustable GPU load thresholds packed into the "Conservative" KGSL policy.

It was quite some work, the clock scaling on the base driver was broken, glad that everything is up and running now.

I'll do some testing and publish a build later this week. Gotta get some sleep now :D
[Xperia Z Original Android Development] CosmicDan:
Wow, that was quick! Well then looks like I'm moving back to stock :D
[Xperia Z Original Android Development] Tommy-Geenexus:
I promise you'll like it ;)
[Xperia Z Original Android Development] Tommy-Geenexus:
Alright guys, new build is up!

Remember, this is a test build, i'll need your feedback on conservative, also please play around with the sysfs options

and if you find e.g. perfect up_threshold settings, i'll review and add them in.

Changelog:

* Increased mm readahead to 256kb

* Boosted L2 Frequency for 1026 MHz CPU Frequency

* Made vibration strength tunable for dt2w/s2w/s2s

* Implemented "Conservative" KGSL policy

I figure the OP needs an overhaul, i'll update it asap and describe all sysfs paths.
[Xperia Z Original Android Development] codfx:
Flashed right away! waiting for sysfs paths. :D
[Xperia Z Original Android Development] Tommy-Geenexus:
Done, check 2nd post :)
[Xperia Z Original Android Development] codfx:
Good job Tommy! I have two questions:

1. How to enable S2W?

2. Is it safe to under-volt? If YES! We can recommend stable minimum voltage level for each frequency after some testings.
[Xperia Z Original Android Development] Tommy-Geenexus:
Look @ the 2nd post.

I made this so people find the answer by themselves (searching) ;).
[Xperia Z Original Android Development] codfx:
I tried putting "2" there. I will play around it again. I have edited my post soon before your reply. Please give a reply for that too. Sorry :(
[Xperia Z Original Android Development] Tommy-Geenexus:
Sorry. It's always 0 = disabled, 1 = enabled. If you activate dt2w s2w is active too.
[Xperia Z Original Android Development] codfx:
S2W didn't work for me. DT2W works well. That's why I tried with other numbers. LOL :p

---------- Post added at 07:59 PM ---------- Previous post was at 07:32 PM ----------

Here's another request from me.

*Tap2Unlock: http://xdaforums.com/android/software-hacking/kernel-tap2unlock-tap2wake-feature-t2965344

Just have a look there of you interested in Tap2Unlock. :D I'm not forcing you btw. :D
[Xperia Z Original Android Development] Tommy-Geenexus:
Thanks, but i see no need for this.
[Xperia Z Original Android Development] xdagfg:
Going to flash also, i cant stand getting a temp of 80c while streaming from youtube. Thanks Geenexus.

*Just flashed your latest build with twrp, but the phone did stuck on the waves loading(waiting some time now and it dint go any further so far).

What could be my mistake?
[Xperia Z Original Android Development] Tommy-Geenexus:
What rom?
[Xperia Z Original Android Development] xdagfg:
existenz Y, i did reflash again and i got the upgrading android screen and it booted normally.Have to set all stuff again now .Its ok.Thanks.
[Xperia Z Original Android Development] langeveld024:
Thanks for the update, just a few days ago while configuring my wife's S5 I asked myself why we didn't have these parameters and now we have!

BTW, one other thing I still forgot to say since we have gamma control, I got a JDC but gamma control works.
[Xperia Z Original Android Development] kael2404:
I've got JDC too but I didn't see any "pretuned gamma" settings which are in OP. I think it's only for Sharp panel :(
[Xperia Z Original Android Development] langeveld024:
Well, as far as I know, if the gamma control works, it should be pre-tuned also.

You can check this by installing kernel adiutor and try some gamma settings (if available, but should be)
[Xperia Z Original Android Development] kael2404:
I see in faux app that there are settings for gamma but with stock values
[Xperia Z Original Android Development] CosmicDan:
According to the commits the gamma is pre-tuned for improved white balance I.e. it is stock values but its still different to stock kernel.

Tommy, I've been running Tesla ROM now and its my new favorite, forget Dirty Unicorn. It has some interesting features - in CPU it has a "schedule work queues on awake cores to save power" option, and custom GPU scaling / frequency table that seems to idle down to 27MHz (!!!)
[Xperia Z Original Android Development] codfx:
:crying: !!!
[Xperia Z Original Android Development] Furrydaus:
Quick question, is it possible to add the knock code unlock feature into the kernel while also flashing another mod to the stock rom to support it? Been questioning whether this was possible on devices that support double tap to wake as the device is still able to recognize a tap, why not recognize a pattern of taps? I'm guessing that the screen isnt capable enough to locate touch cords while off. Is my presumption correct or is it way off XD
[Xperia Z Original Android Development] langeveld024:
So, does gamma control work? If yes, it works, if no it not xD

As [MENTION=1844875]CosmicDan[/MENTION] said, the values will be stock anyway. Because you don't change them but the colors are corrected.

Flash back stock kernel and you'll see colours come out whitewashed, you'll get my point :)
[Xperia Z Original Android Development] CosmicDan:
Oh now I see, OP says its only controllable via Fauxclock. So what's the gamma control in Kernel Adiutor about then? Just some generic method?

OP says they're pre-tuned, and the commit is there, as Tommy made a thread about recalibrating the sharp panel in kernel.
[Xperia Z Original Android Development] Tommy-Geenexus:
Gamma Control = Fauxclock.

Adiutor only controls RGB, not Gamma.
[Xperia Z Original Android Development] langeveld024:
Thanks for pointing out

Edit

Just purchased fauxclock, just to check.

Gamma control work's and I got a JDC

About conservative , I can feel device heats less when using camera or VR cardboard apps, but how should we read the pwrlevel down and up thresholds?

(60 45 20 0 0 and 110 98 90 45 100)
[Xperia Z Original Android Development] Tommy-Geenexus:
Any Feedback about conservative?

How's it working for y'all?
[Xperia Z Original Android Development] Furrydaus:
Heats up less and battery consumption when charging is abit lower apparently. Charging more efficiently with the new governer. What did you do tommy ?
[Xperia Z Original Android Development] xdagfg:
is that a governor to choose from? Since i left it ondemand and clocked the gpu to 200 max. Youtube stream got me around 62C before i could reach 80C . I also did some undervolt.
[Xperia Z Original Android Development] Tommy-Geenexus:
110 - threshold [MENTION=1989751]400[/MENTION] MHz

98 - threshold [MENTION=2539186]320[/MENTION]MHz

90 - threshold at 200 MHz...and so on.

If your GPU clocks e.g. [MENTION=2539186]320[/MENTION] MHz, the load has to be 90 to scale to 400 MHz.

This applies for all clocks/up/down_threshold (just reversed logic).
[Xperia Z Original Android Development] ramirowski:
can install this kernel if i'm using this rom?

[ROM][5.1.X][OFFICIAL] AOSPA-L

http://xdaforums.com/xperia-z/orig-development/rom-paranoid-android-5-t2976930/page32
[Xperia Z Original Android Development] CosmicDan:
No. Completely different, as the OP says this is for STOCK 454 firmware!

EDIT: Apparently the OP doesn't mention Stock .454 lol....
[Xperia Z Original Android Development] ramirowski:
yeah, I discovered that in the worst way... you know:silly:
[Xperia Z Original Android Development] langeveld024:
So what about the lowest clocks? Lowest clock is 128 but the thresholds have one step more, right?

And for down threshold, 0 0 means when there's no load?

---------- Post added at 03:04 PM ---------- Previous post was at 03:03 PM ----------

People getting blind reaally fast lol
[Xperia Z Original Android Development] codfx:
Tommy, I still prefer Zombie B-6 with arm_hotplug as a lite user. (I use my phone for texting,calling and web browsing mostly) I don't play heavy games. I know you did a great job to tweak this kernel. Honestly, I didn't feel a huge improvement in B11 version. :(

+ I'm using a very old RR version as the primary rom which uses Evomix kernel. It doesn't get so hot while charging and web browsing.

I am not a pro at kernel development. But I feel there's something wrong with Zombie's CPU and GPU combination. :rolleyes:

Hope you got it. Just chill!
[Xperia Z Original Android Development] kael2404:
I see that gpu uses 128 MHz instead of 200 when looking at faux app. And phone is cooler now, something like on kitkat. Good job! One question: gpu like that will only be on conservative governor?
[Xperia Z Original Android Development] Tommy-Geenexus:
Sorry, i failed hard. Edited my post, oh well.

Down threshold 0 0 means: 27 MHz is unused, and thus 128 should not go lower (= threshold 0).
[Xperia Z Original Android Development] Tommy-Geenexus:
OP reworked, and failed hard again, i need more sleep definitly.
[Xperia Z Original Android Development] Tommy-Geenexus:
Yes, trustzone has probably broken feq scaling too like the initial conservative had before i fixed it.
[Xperia Z Original Android Development] Tommy-Geenexus:
Depends on Rom, etc..

With the latest build my Phone never got hotter than 60°C, no matter what i did (except gaming and comparable stuff), which is a real big improvement.

May be something wrong with your setup.
[Xperia Z Original Android Development] Diatomix98:
[MENTION=5243932]Tommy-Geenexus[/MENTION] ， I can confirm that my phone is working way way more smoother and faster on b11. Was having some ui lag previously that I already got used to but now it's it works as it was an all new device on my hand which was on jellybean. Really appreciate for your hardwork done!
[Xperia Z Original Android Development] CosmicDan:
Take a look at freq table for Tesla ROM if you need another good reference, it's GPU scaling is perfection and often sits on 27Mhz even with ondemand, and I can vouch for its stability and performance in YouTube and Gaming (been using it for a few days without a single issue or lag spike, seriously the best AOSP ROM we have right now).

EDIT: It does have a modest overclock however, max is 450Mhz (I've been using max of 320).
[Xperia Z Original Android Development] codfx:
Correct! I will do a clean installation and report back to you. ;)
[Xperia Z Original Android Development] xdagfg:
what are the highest temps you are getting with that rom and b11?
[Xperia Z Original Android Development] Tommy-Geenexus:
Zombie is for stock only. Tesla is AOSP.
[Xperia Z Original Android Development] xdagfg:
ay yes sorry forgot.
[Xperia Z Original Android Development] CosmicDan:
Indeed. I'll be flashing Zombie back soon and using MultiROM for Zombie and Tesla (i assume multirom would work here? Ive never used it lol). I hope to start (and finish) Zombie Adiutor app this week and then port some of Tommy's kernel work to Tesla kernel, where I can.

Actually, I don't know what of Zombie would be applicable to Tesla kernel though - backlight hack is only thing I can think of. But I digress.
[Xperia Z Original Android Development] Tommy-Geenexus:
[MENTION=5396196]airlessproject[/MENTION] has already picked quite some stuff from my Kernel, not sure if there is a lot left (bl_hack is already included in tesla i think).
[Xperia Z Original Android Development] airlessproject:
Yes bl_hack is there and also dt2w-s2w/s2s and probably other smaller patches
[Xperia Z Original Android Development] codfx:
AFTER CLEAN INSTALL!!!

WOW Tommy WOW!

Having a fluid like experience on stock rom. Phone temperature stays below 50c. It's quite a huge improvement. No more heat issues for now. :good:

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

Unfortunately Multirom v31x doesn't support newer custom rom releases. Olivier will release v32x soon, hopefully. Remeber "Once Multirom, forever Multirom" :D
[Xperia Z Original Android Development] Olivier:
That's not true, I still use it for testing experimental 5.1.1 builds.
[Xperia Z Original Android Development] codfx:
Ops! My bad. I was using it without Multirom TWRP. Thanks for the tip Oli.! Just installed CM12.1! Cool! :good:
[Xperia Z Original Android Development] Furrydaus:
Do check your pull request. Might as well change the name of the kernel :P