yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] Tommy-Geenexus:
I use Android Kernel Kitchen to unpack, dropped doing all via cmdline, it's quicker and easier.

Anyway unpack via AIK, then unpack ramdisk with:

cpio -i -F ramdisk.cpio

do your mods and repack:

find . | cpio -o -H newc > ../ramdisk.cpio

Finally repack via AIK.

No plan about adb, will see, likely something with TWRP itself.
[Xperia Z Original Android Development] CosmicDan:
Ah silly me, I forgot to use newc format. Thanks!

I'll see if I can figure out adb in Recovery, if I need to. I'm working on a slimmed-down stock ROM with "more standard" AOSP things (e.g. semi-generic SystemUI so Xposed Gravitybox can add custom QuickSettings) and as long as it boots, then I can get adb so it's not a big deal :)

Is the recovery ramdisk provided 100% by Oliver? Or only the twrp binaries? Just wondering if/when I find the problem, should I report it to you or him (or both).
[Xperia Z Original Android Development] CosmicDan:
Ah one more thing - maybe this is of interest?

Adreno idler, an idling algorithm for devfreq-based Adreno devices
[Xperia Z Original Android Development] shoey63:
Don't know about you guys, but if I unpack and repack stock ramdisk, with or without modifications, the phone wont boot after repacking the boot.img.

Anyone else?
[Xperia Z Original Android Development] Tommy-Geenexus:
I saw this, unfortunatly we don't use devfreq.

But i'll see if i can get that done for yuga, doesn't seem that complicated.
[Xperia Z Original Android Development] Tommy-Geenexus:
Mainly done by Oli, better ask him, he's more into ramdisk/scripting stuff.
[Xperia Z Original Android Development] Tommy-Geenexus:
[MENTION=1844875]CosmicDan[/MENTION]

I successfully ported the idler.

Battery life is yet to test, but seems improved so far (doing light tasks).
[Xperia Z Original Android Development] CosmicDan:
Nice work, thanks a bunch! Indeed, light use (browsing web, reading news etc.) on Zombie seemed to be a little worse than stock, couldn't even go a full day personally. I hope it works out well.

I'm still working on a stock-based firmware which is little more than debloating and AOSP-ifying SystemUI, researching/testing what all these Sony services are really for. Most seem useless for my particular needs (Recommendation Service is a big offender), battery life already improved which is nice - along with Wifi stability for some strange reason but that could be a red herring case.

It's a shame I have to make a whole firmware for it, thanks to Art and the squashfs archive that holds odex's. But I'm working on making it a patch/mod, so I'm nice and busy :)

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] kingvortex:
Sounds good, as usual. I already get better than stock battery life with this kernel, but any improvement is a bonus!

Is there any plan to include the intelliplug patch from earlier in the thread in your build of your kernel? I would like to tinker with it, but would rather stay with your build in order to keep up with the great improvements that you're making. If not, no worries. Zombie is great as is. :)
[Xperia Z Original Android Development] CosmicDan:
Might I ask for a complete list of your installed apps, along with usage patterns and enabled functions? For example I'm always-on Wifi, 3G, nfc and bt always on, and my K@-Mail and gReader always updating in the background; brightness usually on lowest with adaptive enabled. In my particular case (and many others it seems), stock is definitely better battery life under light use.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
I have tested intelli_plug extensively (for some years now), and while it is battery friendly, performance is not up-to-par.

That's also why i did my own driver, i wanted a clean and simple driver without 100 mod options which simply does it's job,

and does not compromise on performance while extending battery life (at least a bit).
[Xperia Z Original Android Development] kingvortex:
I don't have anything out of the ordinary installed. Battery life can vary greatly just from how good mobile reception is etc. I haven't disabled any stock apps though.

I have all syncs enabled, location services are in battery saving mode (good enough for me), brightness is at about 30% and I use WiFi most of the day. Mobile data is disabled when in range of WiFi. Bluetooth and NFC are disabled unless I want to use them.

Screen on time is comparable to stock (30 mins/10% battery). It's standby where I make savings, as I get great deep sleep times.

Fair enough. I haven't used a custom kernel for some years (Zombie is the first on my Z!) and just felt like playing around. It's your kernel and your choice and like I said, I'm really happy as is. :)
[Xperia Z Original Android Development] Tommy-Geenexus:
That's what i did too when i flashed stuff on my Neo 3 years ago, but over time i realized that too much stuff to tinker around with isn't beneficial.
[Xperia Z Original Android Development] kingvortex:
I've flashed many custom kernels/roms on my older devices. I've only got around to unlocking my bootloader permanently on my Z recently, so I'm probably a little out of touch with advancements in the last couple of years, so was just interested in trying it out. No loss though, as I'm happy with performance and battery life.

I've also never seen the need for 15 different governors/schedulers etc to choose from myself, hence choosing your kernel to test drive. :)
[Xperia Z Original Android Development] langeveld024:
What Kingvortex said, plus, these device's are around 2+ years old. So the battery itself could have had its best time.

That said, according to the Sony instructions manual and warranty sheet, the battery should be replaced each 6-12 months.

I got mine replaced 6 months ago, my device was 1,5 year at that moment and woow what a difference!

So don't get to much hung up at what others get for battery life compared to settings/usage because it can depend on a lot of factors.
[Xperia Z Original Android Development] CosmicDan:
I only got my Z about 3 months ago and it was refurbished by a Sony agent (claimed to be anyway, had manufacturer warranty at least - which is out the window with unlocked.boatloads anyway). I understand your point though, but as I said - and don't take this as a complaint - I'm back on stock kernel for the time being and battery life is noticeabley better. I get nearly 2 days with the same usage patterns.

I'm determined to find the cause though. Ruling out any wakelocks via this trimmed down firmware I'm working on right now, I plan to build some synthetic test app using monkey runner (I.e. Android CTS Suite) as assistance while merging features one by one from Zombie to my own by-the-book stock kernel.

I do believe you guys, it's clearly specific to my particular device for whatever reason - that's all I'm saying. Just trying to gather initial data, hoping that I won't have to go as far as said testing procedure as that will be very tedious :)

Edit: It's probably Xposed or Gravitybox. Wouldn't be surprised. But how can I nail the particular cause if so? We don't exactly have a VisualVM for Android... suppose locgat errors are the best option.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
Our GPU was correctly scaling down already, which i've overlooked.

Seems like i wasted some time on that, oh well.
[Xperia Z Original Android Development] gcgspain:
Is the kernel compatible with this module?: http://repo.xposed.info/module/com.ceco.wakegestures
[Xperia Z Original Android Development] CosmicDan:
Oh that's a shame, sorry about that. Back to the drawing board for me then!

I'm guessing no as it's not mentioned. What's the point when there is dt2w and s2w already?

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
No. And it will never be.
[Xperia Z Original Android Development] Tommy-Geenexus:
My fault, i really facepalmed myself, why the hell i haven't even bothered to check gpu before messing around with this.

Things happen :laugh:
[Xperia Z Original Android Development] Othman998:
Hi

Excellent kernel kernel

But how can i enable fast charging on stock odex rom 454?

Sorry for my bad English
[Xperia Z Original Android Development] kingvortex:
Use Kernel Adiutor
[Xperia Z Original Android Development] uncomment:
Build kernel for dogo to use from your source fine here

Thanks
[Xperia Z Original Android Development] Tommy-Geenexus:
Np, feel free to share it if you intend to do so.
[Xperia Z Original Android Development] CosmicDan:
So the reason for my battery drain is Poweramp. Playing music causes excessive power drain, even on stock kernel. Don't recall having this issue on Kitkat, and definitely didn't on my last device (an MT6589).

*shrug*

Edit: Definitely Poweramp. While playing music, battery drains about 1% every five minutes or so when screen is off. What is strange isbthat this is not reflected in battery stats, everything just gets slightly increased share of "battery used". This suggests that it's a low level bug in kernel, like the DSP eating too much or something.

Does anybody here use their Z as a music player at all?

Edit2: Alright, I'm going to have my battery replaced. Why not. I may have damaged it from non-stock custom kernels and their overheating.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
1.) Music playback just fine here.

2.) Yes, and no drain at all, even drain with speaker is lower than what you get with Poweramp.

3.) Have you tested with Walkman? What do you mean with overhead of custom kernel? Stock Kernel gets much hotter imho.
[Xperia Z Original Android Development] gcgspain:
Regarding battery life, I came across this testing tool on the forum, tried it and got a fail on the last test!! :( I must say my phone is little over 2 years old and it already had a battery change around a year ago or so.

Sony Mobile Battery Testing App http://xdaforums.com/xperia-z/general/sony-mobile-battery-testing-app-version-t2527932
[Xperia Z Original Android Development] CosmicDan:
Fair enough. Just going to have my battery replaced, the fact that I get poor performance on pure stock is suspicious.

Where did I say overhead? I said overheating, I meant overheating from e.g. CM12 kernel (I'm sticking to stock - based kernels and firmware from here on for sure). I may have damaged the battery, just speculating. Will see how I go when I install a new battery (hopefully it's genuine).

Just to clarify - I've never had heat issue at all on Zombie. Neither have with pure stock though, only AOSP based kernels caused severe heat for me.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
Alright, sorry, i misunderstood you.

If there is a working thermal control the battery should not get too hot though in most of the cases.
[Xperia Z Original Android Development] CosmicDan:
Indeed. I don't know what the deal is with the recent AOSP firmwares, they all got too hot. I didn't actually check if it was the battery, I assumed CPU in my ignorance. Either way batteries can easily be damaged by ambient heat, I know this much. I think it's the expansion of chemicals or something.

I should also add that in my testing, battery temp never reached over 40 degrees (on charger while stress testing CPU). This seems cold by any standards, suggests that it is indeed damaged. Or that means the thermal manager was just working well...

But I digress. No point going on about it. I'll be sure to post back when I get the new battery installed.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] BaDKaRmA:
The cores dont sleep..not a major issue but the cores throttle to 1.3ghz mostly i have to use cpu control to use it on 1.5ghz...
[Xperia Z Original Android Development] Tommy-Geenexus:
Yes, thats the intention.

Adjust thermal settings, but raising these will damage your phone's internals (battery).
[Xperia Z Original Android Development] kael2404:
In my opinion last update makes phone much hotter
[Xperia Z Original Android Development] codfx:
Yep! I agree with you.
[Xperia Z Original Android Development] BaDKaRmA:
I agree the phone gets warm though

---------- Post added at 05:59 PM ---------- Previous post was at 05:57 PM ----------

Can u help with the values ? I dont undrstnd the values
[Xperia Z Original Android Development] TechKiel:
This was similar to my problem with the Stock 5.0.2 Kernel. Once the SoC hits around ~60 degrees, the cores would stick to 1.2GHz. All cores were STUCK at 1.2GHz which makes the phone even hotter. I would have to power off before it returns back to normal again. The issue was solved when I switched to Zombie Kernel. :victory:
[Xperia Z Original Android Development] CosmicDan:
Not really related, they're just mentioning the throttling under temp - nothing about being stuck.

From the changelog, strange how the latest cleanup and polling freq. change could cause higher temp..

But I'm sure Tommy is already on it :)

Also, Tapatalk fail - your post got a free Like xD

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
Exactly, the latest changes were made to keep the phone cooler.

In my case the average temp is lower than before.

What you guys facing issues could do is changing the polling intervals for high temperatures.
[Xperia Z Original Android Development] CosmicDan:
Is this possible in Kernel Adiutor? Someone was asking about it before, would be good to maybe share some basic explanation in the OP for those uninitiated with thermal settings.

Edit: Nope, not a standard thing I guess. Startup script for sysfs only way or is there an app out there? What's the sysfs path for these polling parameters?

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] CosmicDan:
Ignore my last post, Tommy (at least don't answer for my benefit anyway), reasons follow.

Everyone, I feel obliged to share my opinion regarding temperature and scaling. This may be different for Krait Soc's, so anybody feel free to step in and correct me.

I have done some stress testing on latest beta 5 of Zombie. There are zero heat issues. With all cores maxed via synthetic tests, Cpu temp never surpassed 60 degrees (lukewarm) and battery never exceeded 30 degrees. This is not "too hot", are you guys getting higher temps?

Second, scaling. While it's set to scale to 1.3ghz max @ 60 degrees, it seems to happen around 58. However I found it impossible to sustain such a high temperature without maxing out All cores via synthetic tests. In this case, this is Ok - very few apps/games out there are so efficiently multithreaded and if so then that 0.2 GHz difference makes minimal difference. In normal use case I.e. all cores will never be maxed, it seems impossible to even reach that temperature so throttling doesn't occur.

I don't know what's going on here, whether my battery is damaged (Sony test app did pass on all tests) or maybe you guys have damaged heatsinks or something.

Please share with us results of your stress testing instead of saying "seems hot" so we can all get an idea. Also I dont recommend messing with thermal throttling at all, you seriously risk damaging the phone otherwise. It's there for a reason and isn't that big a deal. If your game runs slow then it's likely the GPU causing the heat that is causing throttling, in which case the Cpu throttling to 1.3ghz max really doesn't matter as much as you might think. GPU is big bottleneck on our 1080p devices, remember that :)

Edit: Apps I have been using are StabilityTest and CPUTemp, both on the play store. CpuTemp gives a handy overlay on statusbar, and StabilityTest displays battery temp on-UI while running. Note that I have *not* run any tests while charging, since I personally never use my device while charging so I don't see the point in my case - but battery would get hotter in this case.

Edit2: When I disabled two cores in Kernel Adiutor, my Cpu temp never exceeded 50 degrees (and thus never throttled). So those with heat issues, consider disabling even one core completely and see if it helps. It may end up being faster overall for your particular scenarios when under heavy load, worth a try since games and video playback are generally not multithreaded.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
I may add that there are 11 thermal sensors, apps tend to use 0, Kernel uses 7.

Usually 0 is about 2-4°C cooler than 7.
[Xperia Z Original Android Development] kael2404:
Sorry Tommy but I never have changed values in thermal settings and latest version makes phone hotter in light and hard tasks than previous version. What I did was only undervolt each frequency by -120mV
[Xperia Z Original Android Development] ftheriau01:
Flash in stock rom nothing no change

Enviado desde mi C6602 mediante Tapatalk
[Xperia Z Original Android Development] CosmicDan:
I

Fair enough, that explains why it was throttling around 58 degrees.

What did I just say? Lol. Install CpuTemp and StabilityTest, tell us the numbers. I'd also like to know if this StabilityTest app works properly for the Z, it could be insufficient. I just installed beta 5 and changed nothing at all, phone never gets hot.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
Then don't undervolt. It damages your phone.
[Xperia Z Original Android Development] langeveld024:
What are you exactly trying to say?
[Xperia Z Original Android Development] ftheriau01:
what I mean is that flash the zip but when restarting the change is not made

Enviado desde mi C6602 mediante Tapatalk
[Xperia Z Original Android Development] kingvortex:
What exactly are you expecting to find there? This kernel doesn't add different governors and schedulers.

Also, I suggest you use Kernel Adiutor, as it can control some things like double tap to wake that no frills cannot AFAIK.
[Xperia Z Original Android Development] langeveld024:
What Kingvortex said, plus, it would be a good start to read the whole thread. It's only 25 pages ;)
[Xperia Z Original Android Development] CosmicDan:
Hmm, for some reason my disabled cores (just one) resets after a while. Using kernel adiutor, worked fine in previous versions. Can anybody else reproduce or do I need to wipe again :D everything else sticks fine, e.g. input boost disabled.

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] ftheriau01:
I understand my friend, you could help me with the parameters to configure the kernel and optimize the device.

Enviado desde mi C6602 mediante Tapatalk
[Xperia Z Original Android Development] kael2404:
My phone is undervolter on all of zombie versions. But never mind. Generally my phone is undervolted for year and nothing wrong have happened. I see that battery temperature after undervolt -120mV is less about 5 degrees Celsius which is a lot and phone isn't that hot. Why it could damage my phone? I have never heard about that :o
[Xperia Z Original Android Development] Tommy-Geenexus:
Here is a link:

http://xdaforums.com/showpost.php?p=34153152

Do you play heavy games or such? Could you tell me when your phone gets hot?
[Xperia Z Original Android Development] kael2404:
Yes, I play modern combat. I can do a test, today with stock kernel, tomorrow with b4 and after tomorrow with b5, cause I reinstalled system yesterday. Temperature graph from Battery app will be enough? It gives only battery temperature
[Xperia Z Original Android Development] CosmicDan:
Yeah even for PC hardware undervolting is generally a bad thing to do. X86 is a bit more resilient but it results in poorer performance and *increased* power consumption/heat most of the times, because it has constant op failures and needs to repeat ops in order to get a hit.

A change of 100mv is also pretty huge. If I do that to my desktop GPU, over or under, I get an instant crash lol. But apples and oranges I guess.

So nobody else disables any cores at all in Zombie? Guess I'll full wipe and find out if it's a "feature" of new thermal manager at work then. Also still need to find all the custom sysfs parameters that aren't handled by known apps...

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
I can think of a reason why your phone gets that hot. Is your CPU temp > 70°C at times?
[Xperia Z Original Android Development] Tommy-Geenexus:
/sys/kernel/msm_thermal/conf

New features are low_poll_ms and mid_max_poll_ms.
[Xperia Z Original Android Development] CosmicDan:
Thanks, though I'm generally just curious on all parameters. Don't trouble yourself, I will diff a directory dump of Zombie and stock kernel. I also want to fork Kernel Adiutor and add any missing things specific for this kernel ;)

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
I would be really grateful if you'd do that, i would love a add-on app for a complete experience but i've no java experience :silly::)
[Xperia Z Original Android Development] CosmicDan:
No problem, least I can do for you saving me the time and research into making a stock based kernel!

Sent via Tapatalk on my Xperia Z
[Xperia Z Original Android Development] Tommy-Geenexus:
Thanks man, that'd be fantastic!
[Xperia Z Original Android Development] xarive:
Anyone experiencing no missed call notification? Is this stock problem or kernel related?
[Xperia Z Original Android Development] kingvortex:
No problems here. I doubt this could be caused by anything kernel related.
[Xperia Z Original Android Development] itomx:
This is stock problem ;)

Push by Xperia Z™
[Xperia Z Original Android Development] comax70:
tom and can have Philz recovery with the kernel? I have problem with TWRP recovery backup when the internal sd does not work someone has this problem?

Inviato dal mio C6603 utilizzando Tapatalk
[Xperia Z Original Android Development] codfx:
have you tried with latest TWRP 2.8.7.0 ?
[Xperia Z Original Android Development] comax70:
Yes after restore backup from esternal sd my internal sd don t work[emoji15]

Inviato dal mio C6603 utilizzando Tapatalk
[Xperia Z Original Android Development] CosmicDan:
Explain "don't work"? I'm sure I've restored data backup before in this kernel and never had such issue. Try flashing stock Ftf and make a new backup then restore, maybe your backup or internal partition is corrupted.

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] comax70:
Ok i try new backup thx

Inviato dal mio C6603 utilizzando Tapatalk
[Xperia Z Original Android Development] shoey63:
Yes, that backup is obviously screwed up. Taken when on Multirom maybe?
[Xperia Z Original Android Development] comax70:
no not use MultiROM

Inviato dal mio C6603 utilizzando Tapatalk
[Xperia Z Original Android Development] CosmicDan:
Random question.

How would people feel if the "Zombie Adiutor" app had optional Xposed module that adds some custom quick settings? Namely max Cpu clock (customisable)? Not sure if it's worth the effort or even that helpful but just putting it out there. Maybe there is some other useful zombie feature that would work well as a toggle?

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] codfx:
I vote for "optional" quick setting toggle thing. (But I love to have the ZA app without depending on Xposed.) :D
[Xperia Z Original Android Development] langeveld024:
For anyone who wants to monitor temperature, this is a nice xposed module, since you can select what sensor to use and interval options.

Also, since this runs at system level (xposed) it does not drain that much as most temperature monitoring apps.

http://xdaforums.com/showthread.php?t=2494170

Don't know if it works in LP, since I'm still on KK.
[Xperia Z Original Android Development] kael2404:
No, 70 is max. Give me few days to see on a fresh rom how it works. Now what I see in comparison to stock kernel, modern combat is lagging much after some time when phone is really hot. Perhaps new thermal rules. Don't you think that phone is hotter while light tasks like listening to music than on stock kernel and zombie-b4?