yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] islanders:
guys can someone tell me how to get the best battery life on the 1.9.10 ? the freq for the big and small cores , and which governor shall i use thank u in advance
[Xperia Z5 Android Development] toncheee:
After 3 days on 1.9.10 (about 70 hours of uptime) this morning I couldn't wake up my phone, phone was warm, and only thing I could do is power it off with Power+Vol up combo (3+ sec).

After that phone wouldn't boot any more --> boot came to animation, and stand there forever

I had to restore the backup of RSXW kernel (I use RSXW 1.7 ROM) to boot the phone.
[Xperia Z5 Android Development] njvrensburg:
Good day people. I've been following this post for sometime now. Since the latest kernel version seems to be the most promising, I've downloaded and installed it, but can't get it to boot my rom. It displays the Sony logo, goes blank, reboots into twrp. Everytime. I currently have Omni 6.0.1 20160911 with infected_@infected-labs kernel.

The reason I'm interested in this kernel, is because it has fm radio capability and exelent power consumption attributes.

Your help is greatly appreciated.
[Xperia Z5 Android Development] nreuge:
This kernel is for stock or stock based roms.
[Xperia Z5 Android Development] njvrensburg:
Oh, okay. Thanks for the info.
[Xperia Z5 Android Development] islanders:
irt's not going to work with the Romx right ?
[Xperia Z5 Android Development] nreuge:
It will, ROMX is a stock based rom
[Xperia Z5 Android Development] josephnero:
Anyone tried it with latest .305 firmware yet?
[Xperia Z5 Android Development] koekoek91:
I can confirm as [MENTION=5231789]nreuge[/MENTION] says, yes it works with ROMX, Im using it both ;)
[Xperia Z5 Android Development] islanders:
thanks for the answers guys <3
[Xperia Z5 Android Development] zacharias.maladroit:
Download

Z5 (sumire): https://drive.google.com/open?id=0BykGGWB96CBQQy05VURLbzJTZlU

253_corona_III.1_9_11_ctl_X

253_corona_III.1_9_12_ctl_X
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Im wondering why 2 kernels at a time? :p

And could you give more info about these two changes:

- touch boost re-enabled for BIG cores when at least 1 app is running on it

Q: Is it still possible to disable touch boost with this kernel?

- interactive governor: remove highspeed_freq init limitation

Q: What exactly does this mean? Im using interactive governor, so im interested in some more info on this.

Lastly a more general question that people might be wondering about:

Have you tested it yet with the new .305 firmware or is it just for the .253 firmware for now?

( I noticed 253 in the kernel name, but still wonder if you tried yet on .305) ;)

Thanks!
[Xperia Z5 Android Development] paulle:
I installed corona 253_corona_III.1_9_12_ctl_X. Using XROM v3.0 from [MENTION=6791680]_LLJY[/MENTION]. Seems to work fine, but for the moment I can't say nothing about battery life etc.
[Xperia Z5 Android Development] Anatoxy:
@zacharias.maladroit

Since version 1.9.4 BB doesn't recognize my E6683 when I'm in recovery mode (TWRP 3.0.2)...like nothing is connected. With stock kernel everything is fine.

So is it normal or am I doing something wrong?

Generally kernel is really great! Thanks!

Upd: Fixed by flashing latest TWP-3.0.2-2-E6653.
[Xperia Z5 Android Development] koekoek91:
Im on Corona 1.9.11 ctl X....

Anyone else also has this problem where suddenly kernel adiutor settings change?

I think it is after a reboot.

The governor I was using is interactive and just noticed it is set to allucard for both clusters now after having done a reboot.

Also I think battery life is a little worse than previous 1.9.8 and 1.9.10 versions, or this might also be due to kernel adiutor settings being changed without knowing.

ill try v1.9.12 ctl X this afternoon.

UPDATE: Battery life is actually pretty much the same as (previous versions) after re-aplying my governor settings.
[Xperia Z5 Android Development] korom42:
Almost 3h SOT (30% auto brightness) and battery still 75%

I could achieve 7h SOT by the end of the day, now going for v1_9_12 and wil post full day stats later.
[Xperia Z5 Android Development] koekoek91:
Nice stats. ill definetly check out that governor mod. Thanks!

(also updated my previous post). Will check out 1.9.12 later.
[Xperia Z5 Android Development] Wess.a:
1.9.15 is out!!
[Xperia Z5 Android Development] paulle:
Tried 1.9.15. This version didn't see any wifi for me, endless scanning for wifi. Back to 1.9.12 -> wifi working. Can anybody confirm this?
[Xperia Z5 Android Development] Wess.a:
Same here and am back to 1.9.11 because the lack of the double tap to wake.
[Xperia Z5 Android Development] Samuel Wilson:
Hello, I'm unable to access my TWRP recovery! Upon boot the LED is blue then changes to yellow. When I press either the Vol Up or the Vol Down button it turns to orange but then reboots instead of accessing TWRP. Any help?

Many thanks!

UPDATE: I fixed that by flashing TWRP again in fastboot mode.
[Xperia Z5 Android Development] koekoek91:
Yep, just tried 1.9.15 too and wifi keeps scanning for me too.

Do you have the issue I mentioned earlier in previous post, where Kernel Adiutor settings are reverted back to allucard governor after rebooting everytime on 1.9.11 too?

On a side note, apart from the above mentioned issue that im having with kernel adiutor settings, I think this 1.9.11 kernel is amazing. Added some screenshots from 0% idle drain over 12 hours.

Best result i've seen so far for my phone.
[Xperia Z5 Android Development] koekoek91:
Oh haha I was just about to suggest this lol. Well, nice job :p
[Xperia Z5 Android Development] zacharias.maladroit:
Any specific version ?

Which works best and most stable currently ?

http://xdaforums.com/showpost.php?p=66161957&postcount=45 v22_II_1.6_eval ?

http://xdaforums.com/showpost.php?p=66020551&postcount=33 v21_I.2_1_7 ?

... ?
[Xperia Z5 Android Development] peter.schwake@gmail.com:
v22_II_1.6_eval drains a bit more battery, I think. But on the other side it is more stable, too. It's a perfect daily driver for me.

Before I forget - thank you for your hard work. :)
[Xperia Z5 Android Development] 4RM4N1:
well my phone just crashes after I flash the kernel.

nvm got it!
[Xperia Z5 Android Development] zacharias.maladroit:
Alright guys, here's the newest kernel:

Source is at:

Sun-Kernel_32.1.A.1.xxx_26.04.2016_AP_v26.I_1_2

For best measure - combine it with

Wakelock Detector, Greenify, (+/- Amplify), AppOpsXposed (XPosed; or other that e.g. also allows control of system apps), Disable Service/My Android Tools (by WangQi)

with Wakelock Detector it's rather easy to greenify Google Play Store which is one major culprit of wakelocks,

with AppOpsXposed (or other App Ops via root) you can control what apps or services keep awake (wakelock) the phone and thus occasionally or more often drains the battery

with Disable Service/My Android Tools you get pretty powerful tools that allow you to disable service on a fine-grained basis, and e.g. specifically turn off Google's Analytics; which as a side-effect also might save battery

with Amplify you can disable wakelocks, alarms and services in a general sense and helps quite to some degree to cut down battery consumption (but you CAN NOT greenify Google Play Store, otherwise you'll miss out on features, which kind of defeats the purpose; luckily you can disable the "Keep Awake" functionality via App Ops Xposed :D )

Features:

(will add more later if I forgot anything)

Changelog:

Download:

Z5_Sunkernel_Permissive_v26_I.1_2.zip

or attached here in the thread

Enjoy :)
[Xperia Z5 Android Development] RyTekk:
^

Is it for single sim variant only?
[Xperia Z5 Android Development] zacharias.maladroit:
yes, currently only single sim,

needs some more changes and testing
[Xperia Z5 Android Development] RyTekk:
And have you added drm fix from tobias yet?
[Xperia Z5 Android Development] zacharias.maladroit:
Are you bored today or something ? ;)

Of course :)

(X-reality shows and effect and the taken pictures are nice)

edit:

the thing is: the kernel currently isn't the way I like it,

I'd like it to be way more slim, etc. but that currently doesn't work,

I first need to adapt again to Sony's Kernel building (from the almost unlimited possibilites the AOSP/CM kernel can be built)

Thanks
[Xperia Z5 Android Development] RyTekk:
I'm always funny :laugh:, I backed to your #1 post and tried to find "drm" but there's nothing, then I decided to ask you. There's a guy rcstar6696 who is German too and he has been working on AOSP for Z2, hope he could get a Z5 and work together with you, both of you are friendly and talent :D
[Xperia Z5 Android Development] albertobom:
[MENTION=3037651]zacharias.maladroit[/MENTION] I can't manage to get faux sound speaker gain to stick any advice?
[Xperia Z5 Android Development] zacharias.maladroit:
It's most likely an app-issue with FauxSound (you have "set on boot" enabled) ?

Alternatively: which other app do you use ?
[Xperia Z5 Android Development] albertobom:
Kernel Auditor. Set on boot.
[Xperia Z5 Android Development] zacharias.maladroit:
For me Kernel Adiutor had no effect - so move along,

either get FauxSound or a different app that works :)
[Xperia Z5 Android Development] zacharias.maladroit:
Alright guys another kernel:

Source is at:

Sun-Kernel_32.1.A.1.xxx_185_vI.1_2_3

For best measure - combine it with

Wakelock Detector, Greenify, (+/- Amplify), AppOpsXposed (XPosed; or other that e.g. also allows control of system apps), Disable Service/My Android Tools (by WangQi)

with Wakelock Detector it's rather easy to greenify Google Play Store which is one major culprit of wakelocks,

with AppOpsXposed (or other App Ops via root) you can control what apps or services keep awake (wakelock) the phone and thus occasionally or more often drains the battery (Wifi Scan, "Location" is one possible drainer; note that there are 2 Location options)

with Disable Service/My Android Tools you get pretty powerful tools that allow you to disable service on a fine-grained basis, and e.g. specifically turn off Google's Analytics; which as a side-effect also might save battery

with Amplify you can disable wakelocks, alarms and services in a general sense and helps quite to some degree to cut down battery consumption (but you CAN NOT greenify Google Play Store, otherwise you'll miss out on features, which kind of defeats the purpose; luckily you can disable the "Keep Awake" functionality via App Ops Xposed :D )

Power Nap for XPosed is similar to Greenify, but can serve as an additional safety net to catch wakelocks that you forgot (add Greenify and Amplify to the apps, that are allowed; otherwise you'll miss out on their function)

Features:

(will add more later if I forgot anything)

Changelog:

Download:

Z5_Sunkernel_Permissive_v185_I.1_2_3.zip

Z5-DSDS_Sunkernel_Permissive_v185_I.1_2_3.zip

or attached here in the thread

Enjoy :)
[Xperia Z5 Android Development] peter.schwake@gmail.com:
First of all, thank you for your hard work. The first new build 185_l.1_2_1 seems to be stable, but I need more time to test it.

The second one, 185_I.1_2_2, I flashed without any problems, too. BUT my wlan was dead. It wasn't possible to turn it on.

I use Kernel Adiutor Mod (by Yoinx) to change kernel settings.
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for your report,

yeah, my bad - just before going to sleep I wanted to check something via WLAN and realized that it was broken :o

Now it should work,

[MENTION=4798704]RyTekk[/MENTION] dual sim supported kernel :D
[Xperia Z5 Android Development] _LLJY:
More ioshced , governors and maybe CPU hotplug? If possible in the next version. Otherwise FANTASTIC job and keep up the good work
[Xperia Z5 Android Development] RyTekk:
Yeah, your kernel is the only thing that makes me to have to unlock bootloader (but I've not done yet LOL). I'll do in one day I get free time. Thanks a lot.
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks :)

Nope, ROW i/o scheduler should be the optimum for these kind of devices (it got tweaked),

unless you can proof that BFQ or other i/o schedulers improve latency (less lags, etc.) - I'd prefer to leave additional schedulers or features out of the kernel,

the more governors, features, filesystems, etc. you introduce the more idle stuff is lingering around and might cause trouble,

the same applies for cpu governors - I did extensive testing and interactive governor appears to be the optimum.

elementalX and ZZMoove governors might be added, but that's all - the more the worse and bloated the kernel becomes,

I'd prefer to keep the kernel as slim and baremetal as possible and only add battery and performance enhancements when really needed, also with Sony's Stock ROM you don't really want to modify much since you're always dependent on the proprietary modules (Wlan, core_ctl, ecryptfs, FM radio, etc. etc.) which in reality are already broken,

without the hacks to force-load these modules, the phone would be in a half-broken state - and the more you go away from Sony's Stock Kernel base, the higher is the risk of

unwanted introduction of instabilities, battery drain, function breakage and other unpleasant side-effects ...

CPU Hotplug is already happening through MSM_Performance and Core CTL: [Root Required] - Performance or Battery tuning Core_ctl

Intelli_plug, Thunderplug, CPU Quiet and all the other hotplug mechanisms are great but they have proven to be less stable than Qualcomm's Implementation, also in certain situations they tend to heat the device really up. The battery savings are only minimal (if at all) with reduced performance and smoothness and the loss of stability
[Xperia Z5 Android Development] albertobom:
Dear [MENTION=3037651]zacharias.maladroit[/MENTION] its possible to force wm size to 2k (1440x2560)?
[Xperia Z5 Android Development] Wess.a:
I guess the default governor is alucard if i got you right, but if you mean that it changes to alucard after boot while turning on apply on boot with another governor , thats something else.

About the battery life, man am not even close to that!! Can u tell me whats ur rom and your kernel settings?
[Xperia Z5 Android Development] RyTekk:
Are you on 253 fw? Because I got this problem when testing new kernel on 253 fw, but I did a dirty flash to 305 after that and WiFi worked again.

Anyone, check your Kernel Adiutor (or any CPU spy apps) and see is 768MHz used the most on big cluster? I take a look at it and notice that maximum freq is changed to 768MHz frequently.
[Xperia Z5 Android Development] _LLJY:
Definitely due to alucard governor, changed to interactive and the problem disappears. But if you lower the temperature threshold switch to 50 it will throttle to 768 as well.
[Xperia Z5 Android Development] RyTekk:
I'm using interactive since a lot of changes in it has been merged and optimize for big.LITTLE, I'm sure that the problem is came from "power: bcl: complete port" commit, I spent hours to investigate it.
[Xperia Z5 Android Development] koekoek91:
Yeah, I know allucard is probably the default governor. But I mean when using a different governor and apply on boot, but still ended up getting reverted back to allucard.

However I think I fixed it by unticking and reticking apply on boot in the cpu tab. Now after a reboot my settings stick again.

As for the settings, at the moment I'm running 2054mhz max big / 1248mhz max little along with interactive governor and gpu downclocked to 305mhz max with msm adreno tz governor or whatever it's called exactly.

I think though to improve idle drain, using amplify, greenify and appopsxposed to control wakelocks and alarms and background running apps has had a bigger impact on improving idle drain for me.

I'm on ROMX v3.0[emoji6]
[Xperia Z5 Android Development] zacharias.maladroit:
Sure, touch-boost can be disabled - there's an option for that,

purposefully left it in

Dunno - franciscofranco must have observed that it doesn't behave like it should, namely:

that it raises to max frequency during initialization.

The other fix (commit) is that it would raise too quickly to max frequency and NOT stay to highspeed_freq (or what its name is)

Feedback

(III.1_9_15 is a playground right now, deciding what to include and evaluating myself to see if it works, NO release yet - not even for beta testers - thus it's partially broken ^^

Hadn't tested it before uploading ... ;) )

Thanks

[MENTION=5033594]korom42[/MENTION]

Pretty INSANE stats - I LOVE it :D

Do you have KSM disabled ?
[Xperia Z5 Android Development] koekoek91:
Thanks for the info and for keeping the option available, touchboost is totally unnecessary, atleast it is for me, and only draining more battery :p

About 1.9.15, I only flashed it quickly to see if the wifi issue was occuring for me too. Went back to 1.9.11 after that.

I can flash 1.9.15 again and give feedback, I dont desperately need wifi so aside from the wifi issue ill give feedback in a day or two about smoothness and other things then, if I dont run into other bigger issues.
[Xperia Z5 Android Development] zacharias.maladroit:
Just a sec,

compiling a new one with working WiFi

edit:

done

Please (re-)download :)

Well, it's kinda lame that ROM side also needs to be changed for 305 (or firmware ?) to get WiFi working,

so different kernels need to be compiled.

Thanks to ccache that doesn't actually take too long ...
[Xperia Z5 Android Development] koekoek91:
Wifi is working now for me on 1.9.15 , and also audio playback works ;)

Dont know about the bluetooth thing though, as I barely ever use bluetooth.
[Xperia Z5 Android Development] paulle:
Thank you. Wifi now works.
[Xperia Z5 Android Development] sirdoha:
Where is the download link for 1.9.15?

Thanks in advance :)
[Xperia Z5 Android Development] Wess.a:
https://drive.google.com/drive/mobile/folders/0BykGGWB96CBQQy05VURLbzJTZlU?usp=drive_web

You will find it here. The 1.9.12 and 1.9.15.
[Xperia Z5 Android Development] sirdoha:
Many thanks mate!
[Xperia Z5 Android Development] nreuge:
[MENTION=3037651]zacharias.maladroit[/MENTION]

v1_9_15

Just had several reboots while listening music by bluetooth. So, this issue is still not fixed...
[Xperia Z5 Android Development] sceryavuz:
Hi [MENTION=3037651]zacharias.maladroit[/MENTION]

I have E6633 Z5 dual. I installed stock E6633_Customized SA_1297-9117_32.2.A.0.305_R5C.

1. How to Root my E6633? (I could not find any custom kernel and twrp)

2. If I just flash your kernel, then i have root access?
[Xperia Z5 Android Development] Philmore93:
Really weird, that you get this Problem, don't know if there are more with this Problem.

I listen every evening until the next morning to my Audiobooks by Bluetooth and never get any reboots with this kernel (1.9.10) and XRom.

Do you get this Problem before 1.9.10? Would like to hear that because i am a little bit afraid of flashing a higher Version, because this is a main task every evening.
[Xperia Z5 Android Development] nreuge:
Actually, I use bluetooth occasionally. I didn't had any issue with this kernel version and the previous one before today (but I hadn't used bluetooth yet). That's all I can say...
[Xperia Z5 Android Development] gjhwssg:
Same here.
[Xperia Z5 Android Development] RyTekk:
With stock kernel settings?
[Xperia Z5 Android Development] sirdoha:
Which ROM do you use? [MENTION=5033594]korom42[/MENTION]
[Xperia Z5 Android Development] nreuge:
Sony stock Freq. (i.e. no OC, Interactive gov)

Sony stock core_ctl parameters

IO scheduler: noop

Minfree: 8, 12, 24, 60, 70, 80 (Mo)

High performance sound mode enabled

Stock kernel settings for all the rest.
[Xperia Z5 Android Development] koekoek91:
Just wondering.. Do you hear the difference between high performance sound mode on and off? I have an 80 euros Sony headset but I don't hear no difference. My headset probably isn't good enough for it I guess, or it could be due to something else? [emoji12]
[Xperia Z5 Android Development] nreuge:
Honnestly, I didn't try to hear the difference :o
[Xperia Z5 Android Development] korom42:
Stock firmware rooted

I didn't tweak KSM, always keep it defaut ( which I think it came disabled now with 1_9_15 as K Editor shows)

These are my last day stats for 1_9_15 on moderate kinda agressive usage 5H SOT, brightness Auto 50%, always balanced interactive governor. no bugs no random reboots ( or not yet at least untill now )

- A lot of Multitasking

- Data enabled all day

- Audio recordind +2 hours

- Music playing +2 hours

- Some Camera

- Browsing (chrome) + using social media apps
[Xperia Z5 Android Development] RyTekk:
Next times if you (and all the others) get random reboot, immediately take the /sys/fs/pstore/console-ramoops-0 after reboot and post here for easier investigate.
[Xperia Z5 Android Development] gjhwssg:
v1_9_15

Sometimes Bluetooth will automatically turn off, and can not turn on again, until the restart the system.

Connect with bluetooth headset and android wear smartwatch
[Xperia Z5 Android Development] _LLJY:
Bluetooth works without a problem here
[Xperia Z5 Android Development] parydia:
audio

Hello, when I turn off the screen, with poweramp, I have a lot of sizzle, I think it's the kernel settings 384mhz for all core. Do you have this problem ?

Bonjour, lorsque je verrouille mon téléphone et que j'écoute de la musique avec Poweramp, j'entend des grésillements et les musiques ralentissent. Je pense que c'est du au réglage du kernel avec tous les cœurs mis à 384mhz. Quelqu'un a ce problème ?
[Xperia Z5 Android Development] koekoek91:
Dont know if I might be able to help you, but I dont really understand what kind of problem you're facing. Could you be more specific? :p
[Xperia Z5 Android Development] nreuge:
I know what you mean.

Use Sony music player and default kernel settings.
[Xperia Z5 Android Development] parydia:
ok nreuge, thank's ;)
[Xperia Z5 Android Development] Philmore93:
Which app did you use, looks usefull to me, since i can't read the signs in the top :D
[Xperia Z5 Android Development] gjhwssg:
https://play.google.com/store/apps/details?id=com.pluscubed.matlog
[Xperia Z5 Android Development] parydia:
[MENTION=5231789]nreuge[/MENTION], j'ai pourtant laissé le kernel avec les réglages d'origines, utilisé l'application musique au lieu de Poweramp, j'ai toujours ce petit ralenti et ces grésillements lorsque je verrouille l'écran. J'ai peut-être oublié de préciser, mais j'utilise le Mod A.R.I.S.E sound System ? cela pourrait avoir un impact ? Avec la version .10 du kernel je n'avais pas ce soucis. Je constate ceci depuis que je suis passé en .12-2 et .15 :mad:

Cordialement.

I've yet left the kernel with the origins settings used music application instead of Poweramp, I still have this little slow and the crackling when I lock the screen.

I maybe forgot to mention, but I use the Mod A.R.I.S.E Sound System? this could have an impact? With version .10 kernel that I had no worries. I see this since I went in and .12-2 .15... :mad:
[Xperia Z5 Android Development] Philmore93:
So after reading about this Problems, the last pages, i just want to report that it is the

Same here, its not that Bluetooth turns off, but its this little crackling, which is there with 12_2.

Did go back to 10. and everything works like expected.

Using ROM X and your Kernel.

Hope it can be fixed. If you need someone to test, whether the problem still appears with a new Kernel, i would like to do it.

And like always... Thanks for your time and work Zach. Great Kernel :good:
[Xperia Z5 Android Development] Mehmoon:
How to root z5 dual(e6633)? Please help im a noob
[Xperia Z5 Android Development] korom42:
If you have headphones cracking when you listen to music it's not an issue because this happen when little cores are set to 384Mhz exactly when locking the phone to save battery power, you can use Kernel auditor and set 480 as the lowest Frequency for little cores and it wil fix it, you can also tweak yor governor freq scaling method using mods like "governor tuner" to better balance frequencies or simply use another governor that kepps frequencies higher when listening to music and phone is locked. i personally had no problem using interactive governor with stock configurations of 1_9_15, didn't test 1_9_12_2 yet