yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] Philmore93:
Thanks for the answer. Will test it. I can't find 9_15, the google drive link just displays me 9_12_2 and another lower version or do i oversee something?

Would like to test it with 9_15.
[Xperia Z5 Android Development] zacharias.maladroit:
agreed,

A.R.I.S.E Sound Mod in my experience was pretty power hungry - so

minimal frequency needs to be raised

(at the potential cost of long-term higher battery consumption) or a

different governor

chosen

1_9_15 is deprecated and was pulled, according to [MENTION=5627933]androidexpert35[/MENTION] battery consumption was too high - so a different approach was chosen
[Xperia Z5 Android Development] zacharias.maladroit:
Download

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

305_corona_III.1_9_12_2_ctl_X

Changes:
[Xperia Z5 Android Development] zacharias.maladroit:
This Kernel (305_III.1_9_12_2) seems to be the most efficient so far

more than 1 hour of MP3 playback with PowerAMP and less than 1% of battery used up !

It's still more than my Galaxy S1 (1% per hour with battery in new state - 1500 mAh [!]) but I guess apps got more power hungry and with that beast of a phone and SoC (processor, etc.) it's quite good :D
[Xperia Z5 Android Development] zacharias.maladroit:
Would be interesting to know what exactly you're running (sound apps, sound settings, init scripts, ROM, ROM mods, etc. etc.)

I've tried to make bluetooth and input drivers more robust with latest kernel but not certain what could cause such a behavior.

Can you please explain step by step how the reboot happens ?

Kernel logs also would be useful

Thanks

You got an interesting usage pattern,

can you please give 305_III.1_9_12_2 a test drive ?

bluetooth driver should be more reliable I'm however not sure if it's even at cause or fault for the reboots [MENTION=5231789]nreuge[/MENTION] is experiencing

thanks a lot for those !

So I guess 1_9_15 wasn't so bad after all ?

In any case please try to compare (more or less if it's possible)

305_III.1_9_12_2 to 1_9_15

I'm interested whether that set of scheduler changes was done in the right direction ;)

Really valuable information !

Thanks for that,

I've added some compiler flags to disarm/defuse the aggressiveness of the optimization,

this should make hci and bluetooth more reliable,

please test and give feedback with latest kernel

I can switch to a different ramdisk for next kernels,

it's just the one chosen - and not fixed

Thanks
[Xperia Z5 Android Development] xerxess:
i had look in to the link...there i see 2 kind of 1_9_12_2_ctl_X with ramdisk and not..

what the different? where i must choose? bit confuse :confused:
[Xperia Z5 Android Development] koekoek91:
Don't know either why the ramdisk zip is there seperately too. I think it is meant for [MENTION=5627933]androidexpert35[/MENTION], not sure though.

I flashed Z5_Sunkernel_Permissive_v305_corona_III.1_9_12_2_ctl_X_sum.zip

If you have dual version of phone then you need Z5-DSDS_Sunkernel_Permissive_v305_corona_III.1_9_12_2_ctl_X_sum_dual.zip

downloading the ram disk is not really necessary.

Working fine for me here... will post more feedback later.
[Xperia Z5 Android Development] xerxess:
hmm i see...

but i had do flash with ramdisk..so far so good

what app do you use to show it?
[Xperia Z5 Android Development] koekoek91:
It's DevCheck https://play.google.com/store/apps/details?id=flar2.devcheck
[Xperia Z5 Android Development] korom42:
EDIT : I used [MENTION=4433143]venkat kamesh[/MENTION] modified version of [MENTION=357342]tobias.waldvogel[/MENTION] kernel repack tool to root it and it worked

[MENTION=3037651]zacharias.maladroit[/MENTION]

I can't get root wokring on latest "Z5_Sunkernel_Permissive_v305_corona_III.1_9_12_2_ctl_X_sum.zip"

using latest SR1-2.78-supersu zip , I tried to

- Flash supersu right after flashing kernel

- Flashing kernel then reboot then flashing supersu

always no root,no xposed too ofc and the suspersu app keep asking for binary update, when I downgrade for the previous 1_9_12_2 root working again , maybe issue is because of the new 305 base
[Xperia Z5 Android Development] koekoek91:
You could try flashing an older version of SuperSU.
[Xperia Z5 Android Development] zacharias.maladroit:
For now in the google drive directory

there are 2 variants of a very similar kernel

the 305 kernels are the newest ones,

the one with ramdisk has more robust bluetooth, input, etc. drivers + ramdisk of 305 firmware

You know, you don't need to follow the "advice" and upgrade,

when I enter SuperSU it also always asks to update it but I simply ignore it and it works ;)

I'm still using 2.46 btw
[Xperia Z5 Android Development] nreuge:
It happened while just listening music through bluetooth with screen off. I have no sound mod and no reboot with the Androplus kernel.

That being said, I won't have the occasion to use bluetooth before a while.

Will test it, thanks.
[Xperia Z5 Android Development] gjhwssg:
v305_corona_III.1_9_12_2_ctl_X_sum_dual

1.Random reboot in standby mode, kernel settings is default.

2.Sometimes Bluetooth will automatically shut down and then immediately open

/sys/fs/pstore/console-ramoops-0 file and Bluetooth log post here.

https://drive.google.com/folderview?id=0B8tgScK7pl0WRmkzc3VEa1JIV28
[Xperia Z5 Android Development] zacharias.maladroit:
Excellent - thanks for the logs ! (well, the random reboot and bluetooth issues - not so much),

Alright I pulled the older 305, 1_9_12_2 kernel, please use the new one with ramdisk changes

that one has the hardened drivers (perhaps running better, more reliable and stable)

Thanks

edit:

sounds familiar: https://code.google.com/p/android/issues/detail?id=24012

?

edit2:

looks like Sony's prebuilt bluetooth driver that has issues:

[ 2127.534427] (btdrv):brcm_bt_drv_open st_register failed -22
[ 2130.714465] line disc installation timed out
[ 2132.214337] (brcmldisc)ERR:brcm_sh_ldisc_stop timed out waiting for ldisc to be un-installed

ffs_epfile_io() and ipa also need looking into

Thanks
[Xperia Z5 Android Development] Philmore93:
So to make it more complicate for you :D

I tested the newest .305 12_2 (withoutRamdisk ending) two days&nights.

Bluetooth on 8-9h over night and audiobook was running over my BluetoothBox (tested it with two different ones)

I had no crackling, everything works like excpeted. No Bluetooth off issues, after a few hours.

(If you want i can run log in background over night and give it to you, if this helps)

The Bug, where i can't turn my bluetooth on, when i turned it off, is also gone.

My BatteryLife is like 30-40% better, but i have to confirm this when i am back home next week.

(Outside my home country so i use WiFi allday, think 3G and LTE will make it worse, but overall it seems batterylife is much improved, had 4h SOT and just loosed 40% of my battery, never had that even when i was at home and just used wifi allday)

I used the kernel which was uploaded without ramdisk (and ROMX Beta), downloaded just now the new .305 with Ramdisk, will test it and get feedback.

MusicApps used to test: PowerAMP - PlayerPro - PlayMusic
[Xperia Z5 Android Development] zacharias.maladroit:
If there's no issues a log is more or less pointless

but it would still nevertheless be interesting what functions are used for audio playback (I've not bluetooth headset for music).

But first do your testing without log - that way you can see how the battery runtime is ;)

30-40% better battery is impressive ! Glad the long search paid off :D

you mean home zone ? ;)

I still suspect that it must be some weird combination of hardware that causes these reboots or kernel / ROM base is unstable on its own (which I hardly can fix unless there's enough information, etc. to get it)

Glad that the issue with bluetooth getting stuck is fixed :)

Thanks !
[Xperia Z5 Android Development] Wess.a:
Is the double tap to wake still here in the 12_2?
[Xperia Z5 Android Development] Philmore93:
I will report back next week.

About the HomeZone, is this called the country where you live?

(In Germany we just have some Companys calling out HomeZones. This is where they give you a landlinenumber over your Smartphone in a radius of 100 metres around your appartment)

I am in another country, that is what i mean, don't know the right word for "Country where you live in".

I have English course in my study, so its nice to hear when i use words, which "don't exist" :D
[Xperia Z5 Android Development] Wess.a:
Is the double tap to wake working with you?
[Xperia Z5 Android Development] zacharias.maladroit:
I only know this term from O2 (http://www.teltarif.de/mobilfunk/homezone-tarife.html)

still there and still works for me (although it's gone for the moment in e.g. Kernel Adiutor),

the option is there under system settings
[Xperia Z5 Android Development] Wess.a:
Would you please tell me where exactly?

---------- Post added at 04:33 PM ---------- Previous post was at 04:28 PM ----------

Would you please tell me what are the kernel settings you use? Thanks
[Xperia Z5 Android Development] zacharias.maladroit:
Settings -> Display -> Tap to wake up
[Xperia Z5 Android Development] Wess.a:
Its not there :( am using romx beta 3.1. Any other way to have it back is the kernel adiutor or anything??
[Xperia Z5 Android Development] zacharias.maladroit:
That's an essential feature,

please ask your ROM Chef to fix / include it

Thanks
[Xperia Z5 Android Development] Philmore93:
I think its because of the Beta, wait for the new Version or just ask him if he implements it in future Versions.

To my Rom/KernelAudiotor Settings, i just can say i didn't changed much, barely nothing.

Deactivated Input Boost Freq., but activated touch boost, still don't know the difference, but i never had Performance related Problems with the Z5, whether i deactivate both or not.

Set little CPU to max 1478, but don't think it makes a big difference.

And under "Power and Battery" i activated everything clickable. But i think in default just ArchPower is deactivated.

Governor is set to interactive.

---------- Post added at 02:55 PM ---------- Previous post was at 02:53 PM ----------

Didn't see you are from Germany, so congrats to me :D Yes, and Telekom used it, but don't know if they still do it.
[Xperia Z5 Android Development] gjhwssg:
The newest kernel with ramdisk.

Bluetooth still turn off and can not turn on again?when connect with headset.

log here

https://drive.google.com/file/d/0B8tgScK7pl0WRDUxSjFfemNlYkE/view?usp=drivesdk
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for the log,

Can you please write what ROM, scripts and modifications of the ROM you are using ?

Thanks
[Xperia Z5 Android Development] Wess.a:
[MENTION=3037651]zacharias.maladroit[/MENTION] Is there any way to add it manually?? I couldn't find it is the location you mentioned....

Wakeup_gesture is in .... /input2

Edit1: i tried to write the name itself in input1 as you said and N/A was the result, so when i found it in input2 and clicked it, it was 0 and i tried to make it 1 and save. 0 stayed the result. And when i tried to write enabled and save, 0 was the result but now the double tap is working!!! I don't know how!!

Edit2:

Its now 1!! Finally its working ? Awesome :D thanks [MENTION=3037651]zacharias.maladroit[/MENTION] for the guide.
[Xperia Z5 Android Development] zacharias.maladroit:
Well, seems like the path is prone to change

now

echo 1 > /sys/devices/virtual/input/input2/wakeup_gesture

thanks for finding it out

Apps like Kernel Adiutor need adaptation to work with wildcards or regex ("relative paths") instead of assuming that the default one doesn't change.

Not sure what caused it to change

To add it manually you could create a script with Script-Manager and let it launch during bootup
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=5132536]gjhwssg[/MENTION] , [MENTION=5231789]nreuge[/MENTION] or who else is using bluetooth audio (more or less) frequently please

Please give 305_corona_III.1_9_12_3_ctl_X kernel in

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

a test

are now

compiled into the kernel

and should address at least some of the issues,

need more testing and/or feedback

regarding the hci_module issue - need to investgate more (or if it works for you now, it's okay).

FM Radio app

still works

!

Thanks

edit:

NOTE:

the kernel is WIP

and NOT finalized - so if your apps are using mobile radio or WiFi regularly and they (or the ROM) do NOT disable the IPA wakelock,

the phone might NOT get into sleep (a form of MobileRadioActive / WifiActive bug)

Wakelock control for it is there but it's currently not working yet

you have been warned !
[Xperia Z5 Android Development] zacharias.maladroit:
Replaced and uploaded a new one (t2)

the previous one was playing no sound (except FM Radio) when the screen was off
[Xperia Z5 Android Development] gjhwssg:
ROM:E6683 .253 + xperia x mod, don't any scripts

xposed 86
[Xperia Z5 Android Development] RyTekk:
So no sound in FM still exists? It's really a pain in the *ss, Sony somehow makes me wanna leave them.
[Xperia Z5 Android Development] gjhwssg:
1_9_12_3_ctl_X_sum_dual_t2

1.Bluetooth will automatically shut down and then immediately open

Bluetooth log ?https://drive.google.com/file/d/0B8tgScK7pl0WeXdVVWxJUnVqQnc/view?usp=drivesdk
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for the logs !

Do you mean this happens again and again - like in a loop ?

Can you please elaborate more what happens ?

What of Bluetooth works and what doesn't ?

Due to lack of bluetooth headphones or headsets I cannot reproduce but bluetooth data transfers and enabling of bluetooth works here without any problems (always worked so far).
[Xperia Z5 Android Development] zacharias.maladroit:
Can you please post a link to the Xperia X Mod (or is it the renamed ROMX ? [http://xdaforums.com/xperia-z5/development/xperia-x-rom-e6653-e6683-z5p-t3388183] )

This also happens with unmodified Stock ROM ? What Player apps ?

What headset is it exactly ?

Is it using LDAC or aptX ?
[Xperia Z5 Android Development] zacharias.maladroit:
Download

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

305_corona_III.1_9_12_3_2_ctl_X

This is an

EMERGENCY Security Update

Changes:
[Xperia Z5 Android Development] gjhwssg:
1.Bluetooth restart is random, even without connecting the Bluetooth headset ( Sony sbh70, still connected to the smart watch). Sometimes unable restart the Bluetooth, until restart the system.

2.This phenomenon occurs frequency is not high, but will happen, especially for the first time connected headset.

3.In the previous version of the Stock ROM(+ xperia mod) does not have this phenomenon, I have not used the .253 Stock unmodified ROM.
[Xperia Z5 Android Development] zacharias.maladroit:
updated Kernel is up !

Please download 305_corona_III.1_9_12_3_2_ctl_X

1_9_14 wasn't able to play e.g. PowerAMP while the screen was off,

IPA isn't really doing what it's supposed to do - focusing doing its job for networks

it also seems to take care for audio - for whatever reason :(

Android is some weird mess
[Xperia Z5 Android Development] _LLJY:
iOS is an even worse mess (if you dive deep enough into it) XD
[Xperia Z5 Android Development] gjhwssg:
1.I never used .253 unmodified ROM.Any app,even standby.

2.sony sbh 70

3.no support ldac.
[Xperia Z5 Android Development] _LLJY:
What's the difference between T2 and the other one?
[Xperia Z5 Android Development] zacharias.maladroit:
Okay, that's interesting

could be some weird wakelock or driver/subsystem interaction - like the current one shown in e.g. IPA

I'm currently out of ideas but will keep an eye out for ways on how to fix this.

Sony sbh70 looks like a really nice headset :)

Do you use the NFC feature, btw ? (could be that NFC is the cause for this)
[Xperia Z5 Android Development] zacharias.maladroit:
t2 ("test2) is the

actual

305_corona_III.1_9_12_

3

_ctl_X

and was a test-kernel with the initial bluetooth drivers built into the kernel (at https://github.com/zachariasmaladro...mmit/fa534f2c502bfa409b266b880ca4b180f42b6b84)

305_corona_III.1_9_12_3_2_ctl_X is an direct improvement over that (https://github.com/zachariasmaladro...ipse_32.2.A.0.305_corona_III.1_9_12_3_2_ctl_X)

the specifics on changes are in http://xdaforums.com/showpost.php?p=69238782&postcount=890

the other changes from https://github.com/zachariasmaladro...clipse_32.2.A.0.305_corona_III.1_9_12_3_ctl_X have been skipped,

merely focusing on the security update and IPA changes,

leaving out the interactive governor changes (suspected scheduler issues and battery consumption increase)
[Xperia Z5 Android Development] _LLJY:
Hmm , how do I decrease cell standby?
[Xperia Z5 Android Development] nreuge:
Yes but it's still too much. It should be 0.4-0.7%/h, not more!

v1_9_10 was the last one doing the job ( I hadn't tested v1_9_11)

I won't follow longer the v1_9_12 serie. Back to v1_9_10... (didn't remeber if there was bluetooth reboots with it)
[Xperia Z5 Android Development] gjhwssg:
NFC is always close for me.
[Xperia Z5 Android Development] Philmore93:
i have 0,3%
[Xperia Z5 Android Development] nreuge:
What kernel version?

Had 0,4%/h with v1_9_10 last night.
[Xperia Z5 Android Development] toncheee:
Zach, yesterday I flashed v1_9_12_3_2, And this morning I couldn't wake the phone. It wouldn't light up the screen nor on double tap, or power button.

I had to reset it with Power+VolUp combo.

I stored the Log here for you: https://www.dropbox.com/sh/pj4myf3oq49iq4a/AADow7Cx84X5cRICGJgt_n49a?dl=0

Please take a look
[Xperia Z5 Android Development] _LLJY:
Seems like an issue with charging or encryption

---------- Post added at 08:38 AM ---------- Previous post was at 08:36 AM ----------

How do you get rid of cell standby drain? I get like 1-2% BEST CASE SCENARIO
[Xperia Z5 Android Development] Philmore93:
Sorry i was too tired to type more last evening.

used kernel v. 1_9_12_3_2.

---------- Post added at 09:08 AM ---------- Previous post was at 09:07 AM ----------

GPS, Mobile, LTE and WiFi on.
[Xperia Z5 Android Development] koekoek91:
[MENTION=5231789]nreuge[/MENTION]

I had once this great result with kernel: 1_9_11_ctl_X

0% drain over 12 hours on idle..........:silly:

But with every new kernel or rom update it gets harder for me to replicate this.

I could always flash back the full backup I still have from this result, if I want to though... but I try to replicate it lol :p

ill post some screenshots of a result I get with the latest kernel tomorrow.

So to be clear: the screenshots added in THIS post were taken from a result on kernel 1_9_11_ctl_X ;)
[Xperia Z5 Android Development] nreuge:
v1_9_10 was great, but if v1_9_11 is even better, I'm going to test it!

When I see here and there an idle drain of 1%/h, I think it's crazy: it's just half the battery in 2 days!! :silly:
[Xperia Z5 Android Development] koekoek91:
[MENTION=5231789]nreuge[/MENTION]

hey

So here are some screenshots and a bbs dump log of a result I got on the latest kernel: 305_corona_III.1_9_12_3_2_ctl_X and latest ROMX v3.1 RC1 update.

I actually left my phone alone from 2:45PM till about 0:15AM after having it charged to 100% / unplugged.

But the screenshots show I only left it alone for about 4 hours, dont know why this happened :rolleyes:

I can't prove at this point that I didn't touch my phone for even much longer than 4 and a half hours.

None the less, im happy with the result of 0% idle drain..... whether it is over 4,5 hours on idle.... or longer :p

Maybe ill try again later for another test, to prove I can keep it at 100% for much longer than 4,5 hours:silly:
[Xperia Z5 Android Development] koekoek91:
1_9_11 is still king in terms of battery life if you ask me :p

As you can read in my previous post for you, I can not prove (yet) that the latest kernel is capable of similar results hehe because bbs decided to show only 4,5 hours of not touching the phone derp :rolleyes:
[Xperia Z5 Android Development] nreuge:
I've seen your tests.

But did you notice that the 1st percent (100 to 99) lasts longer than the others (about 2 times) ?

Tests from 99% to 98% would be more significant.
[Xperia Z5 Android Development] koekoek91:
Yes, I have noticed that 100 to 99% lasts much longer than 99-98%.

Maybe this is a stupid question but... how do you think I should test from 99% to 98%? :p
[Xperia Z5 Android Development] nreuge:
You can do internet browsing from 100% to 99% (or smthg draining fast). Just stop browsing as soon as 99% appears.

Then, put your phone on charge for just 1 second: it will re-initialize BBS stats. Then let your device in idle.
[Xperia Z5 Android Development] koekoek91:
Okay, ill try this tomorrow.

Just one thing: After plugging it on charger for 1 sec, how long should I let my device idle after that?
[Xperia Z5 Android Development] nreuge:
You can check your battery percentage by briefly switching on your screen time to time. When 98% appears, save your stats.

Of course, this is not an ideal protocal since you briefly interrupt the idle time to time...
[Xperia Z5 Android Development] koekoek91:
Okay, so for better understanding for me could you summarize what I need to do? :p

Also I dont quite understand the part ''Check your battery percentage by briefly switching on your screen time to time''.

Sorry for asking this many questions, just want to make sure I fully understand, and do things right hehe:silly:

Going to sleep now, so ill read tomorrow your reply, and then ill try your suggestions in the afternoon / evening :o
[Xperia Z5 Android Development] nreuge:
1- Charge the phone to 100% and plug it off,

2- Do smthg that drains the battery really fast,

3- As soon as it goes down to 99%, put the device on charge for 1s, BBS stats re-initializes,

4- Plug it off,

5- Switch off the screen and let the device in idle,

6- Wait for 30 min,

7- Switch on the screen to read the percentage: if it's still at 99%, repeat steps from 5 to 7, when you read 98% save your stats, that'all.
[Xperia Z5 Android Development] RyTekk:
Why are you guys so ****ing hard to determine a kernel by each percentage? You're owner or your devices? I've got many different results by just a same kernel and I just took a look at the end of days, mostly my device was 20% left. Don't let the smartphone to be your smart :laugh:
[Xperia Z5 Android Development] nreuge:
We also do that! :)
[Xperia Z5 Android Development] albertobom:
[MENTION=3037651]zacharias.maladroit[/MENTION] Can ive this kernel but for aosp :D
[Xperia Z5 Android Development] _LLJY:
Because statistics are easier to see the difference plus statistics allow us to see what's actually happening instead of succumbing to the placebo effect that happens all the time. Each day has too many variables to consider and each day has a different impact in your battery. It's alot more accurate to determine battery drain using the phone itself. We are just working smarter, using our brains to judge a constantly changing variable will lead to largely inaccurate results. It may "feel" more power efficient when it isn't at all.
[Xperia Z5 Android Development] koekoek91:
idle drain personally to me (and I think to alot of people) is interesting because it allows me to have a view on how fast my device's battery drains when I don't actually use it.

So I can decide what kernel allows me to have more battery life for actually using the device.

And ofcourse I also look by the end of the day how much battery percentage is still left and compare it to other kernels (if the usage has been somewhat similar).

Anyway, everyone has their own methods about optimizing their phones for their usage and about monitoring, which is fine. This is just my point of view :o

[MENTION=5231789]nreuge[/MENTION] ill do your test later tonight, i've been kinda busy today. I expect to post some results here between 10pm and midnight ;)
[Xperia Z5 Android Development] goRt:
305_corona_III.1_9_12_3_2_ctl_X

I've twice had the phone reboot when turning Bluetooth on and connecting (this is controlled by android auto), after the reboot the phone will happily connect and remain stable.

Thanks for your continued development, looking forward to android 7.1.