yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] chall3ng3r:
THIS!

Happening to me exactly same, and its pretty annoying that I'm now preparing for backup via TWRP and restore to stock ROM, and see if it improves things, after that apply some mods on it. Even though I've applied FCS thermal mod, it doesn't seem to impact, as phone goes too hot and apps start to freeze, phone becomes unresponsive.

This is what I did via Kernel Auditor app,

Under CPU page:

- big freq max = 1248

- Little freq max = 1248

- CPU gov = ondemand

- CPU Boost > Interval: 300ms

Under CPU Hotplug page:

- Busy up threshold = 70

Immediately after applying these, I started Maps app, now it performed really well and was not freezing. CPU cores were no longer continuously being used (muti-core observer app) when running Maps. Heat also seems to be down as well.

These values I set by my own understanding, and tinkering with the Kernel Auditor app. One issue so far, after setting these settings to Apply on Boot, my phone restarts after the settings are applied automatically on boot and few minutes or apps usage.

Currently, I will try to remove Apply on Boot, and manually set these on each restart and see how it goes.
[Xperia Z5 Compact Android Development] THIETm:
I ve berni's rom. During a day the memory down slowly and when i have less than 10% the z5c is very slow and laggy. Also I reboot...

What'sthe solution to have 15-20% memory all the time ? Appli ?

Thanks
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know how to solve these problems, but, have you ever tried a clean install? Sometimes it is the only solution!

My device doesn't freeze, everything is working as expected...
[Xperia Z5 Compact Android Development] igiona:
Changing this XML find can be done on the fly, or requires a new build?

Because in another thread someone suggested to do some changes, but it didn't help me at all.

Cheers&Thanks
[Xperia Z5 Compact Android Development] Ilko:
[MENTION=7749536]Berni-0815[/MENTION] there are volume steps for media, alarm, ringer and notifications. Did you increase them all ?
[Xperia Z5 Compact Android Development] Berni-0815:
I've tried it, but in the end I had no sound at all! Don't know what I'm doing wrong, but for me it doesn't work... :(

Maybe it's relating to some rights of the changed file?

Yes.
[Xperia Z5 Compact Android Development] Berni-0815:
Got it working! :D

Here is my actual file 2017-11-16-mixer_paths.xml. Rename the downloaded file to mixer_paths.xml and store it somewhere on your pc (i.e. ~/Tmp). Open a shell on your pc and move to the place where this file is now (i.e.

cd ~/Tmp

)!

My way (linux):

Please read everything carefully!

Connect your phone with your pc with an usb-cable. Set the phone from "charging" to "file-transfer"

Open the terminal on your phone.

Type

su

and confirm.

Type

mount -o remount,rw /system

and confirm.

Select the shell on your pc.

Type

adb root

and confirm.

Type

adb push mixer_paths.xml /system/etc

and confirm.

If there is an error shown, please read everything again carefully!

Disconnect the phone.

Reboot the phone.

Now you should have louder mic recordings.

If you would like to save your existing mixer_paths.xml, you should enter this command before point 7:

adb pull /system/etc/mixer_paths.xml

and confirm and rename the file to whatever_you_want, i.e. mixer_paths.original.

If you do so, you can easily check, what's been changed by me. Simply type

diff mixer_paths.xml mixer_paths.original > diff.txt

. In this file the changes are shown... ;)

Please use this at your own risk and don't fire guns at me if something ist not working... :angel:
[Xperia Z5 Compact Android Development] Ilko:
[MENTION=7749536]Berni-0815[/MENTION] any chance that you make a floating clear all recents button at the bottom right ? I don't understand why they keep hiding it, and we have to scroll at the very top to show it. So annoying...
[Xperia Z5 Compact Android Development] Berni-0815:
I don't know how to do it. But I'll keep it in mind; maybe I'll find a way...

Edit:

Sorry, that's too much for me! I'm not familiar enough with java programming to do these changes. :(
[Xperia Z5 Compact Android Development] Berni-0815:
New version (First Post)
[Xperia Z5 Compact Android Development] eng3:
Is there a way to add some mechanism to be notified of a new update so I don't have to keep checking the thread?
[Xperia Z5 Compact Android Development] Yverson:
U can always subscribe this thread ;)
[Xperia Z5 Compact Android Development] Root97:
Thank you so much for this update ????

The volume steps are much better
[Xperia Z5 Compact Android Development] Berni-0815:
Yes, I think, this is the only way...
[Xperia Z5 Compact Android Development] eng3:
I get notified of all the posts as well

I wish I could just subscribe to the download link whenever it changes

I guess that is one small advantage of the official version
[Xperia Z5 Compact Android Development] pep086:
Hi Berni,

Is this solution in the new version? sadly the sound is still low on wh recordings...am i the only one?

Thanks for your effort.
[Xperia Z5 Compact Android Development] Berni-0815:
Yes!

What is "wh recordings"? I don't know this...
[Xperia Z5 Compact Android Development] pep086:
Whatsapp audio recordings , sorry Berni.

mmm maybe it's a permissions problem? i got mixer_paths.xml on RW- R-- R--

What is "wh recordings"? I don't know this...[/QUOTE]
[Xperia Z5 Compact Android Development] Berni-0815:
Ok, I don't use whatapp. I've only tested video recordings and I think, they are ok now.

If you are hearing any sounds, then your mixer_paths.xml has the right permissions.

The only thing that I could imagine, is, that you are still using the old file.

If you are doing this

adb pull /system/etc/mixer_paths.xml

, are there my changes present?
[Xperia Z5 Compact Android Development] jassi0709:
Sound is pretty messed up in this ROM.

Other than that everything was fine, but I have to go back to stock because I hate loud sounds...

Thank you anyway.
[Xperia Z5 Compact Android Development] Macko mia:
hi just wondering if ...is it possible to add kernel feature or use the greenkernal to work with this ROM..:fingers-crossed:
[Xperia Z5 Compact Android Development] Berni-0815:
What exactly is what you don't like?

I need a little more input... ;)
[Xperia Z5 Compact Android Development] Berni-0815:
Sure this would be possible! But not for me, because I'm not a kernel developer...

Have you tried to install another kernel manually (i.e. by using fastboot)?
[Xperia Z5 Compact Android Development] eng3:
I guess the "as expected" part is the key word.

I've come to expect lag when using large apps (Chrome, Maps, Camera). I never can trust 4K video because I know it will only work for a few minutes before it overheats and lags or stops. NFC payment has never worked.

Yes I have and I agree it does solve "strange behavior" sometimes. But it does not really solve the lagging or if it does improve, it certainly comes back quickly.

I think this may just have more to do with our phones being old and software wanting more resources than anything specific with this ROM
[Xperia Z5 Compact Android Development] herrJones:
With the latest version (and fresh install) I have lost the ability to connect the gmail app to the exchange server at work.

Don't know how this is related?
[Xperia Z5 Compact Android Development] torukk:
hello, I have small update regarding my kernel:

I'm still working on it, but I'm in the process of reconstructing my appartment at the same time, so its hard to find time. But I'm now following GreyLeshy greenkernel sources, and imported some features like overclocking, new io schedulers, cpu governors, adreno idler, fingerprint boost, etc. .. and I plan to backport all the features, best thing is that it is already tested on our device. I'm now resolving some bigger conflict with wireless driver update, so I'll post new version only after I resolve this.

I wasted some time trying to fix the LXC powersave mod, I got it working (except it broke undervolting) but I gave up because this is useless and I got same or better battery durability without it. I strongly recommend you to gave up any battery saving apps and mods, because there are no magic solutions which will fit everyone and it is very complex to setup tens of parameters at the same time and evaluate and verify its impact. There is no solution which fits every use cases and phone usage patterns. There was some extensive user report few posts back, which is exactly illustration of this - what I can only guess from the description is that you have low memory conditions (too many apps), some heavy battery optimization (like 2 battery saving apps at the same time) and from the phone behaviour it could be that maybe this apps setup too big zram size, like 512MB or so. This is fundamentally wrong. If you really want to save baterry, disable all baterry saving apps, go one charging cycle without any tuning, then use only KA with some undervolting settings (btw I use this settings https://xdaforums.com/z5-compact/de...ernel-v0-2-t3620597/post74657846#post74657846 ), and maybe tune some other parameters but only using KA. Run few more charging cycle. Then, try some battery optimizing up, but whole charge cycle.

What I also do and what can help is to remove in privacy settings permissions like "run at boot", "force device wake up" or similar permissions from apps, which I don't understand why they would need something like that - typically apps which are used only interactively.

Hope this hepls.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out! See 1st post
[Xperia Z5 Compact Android Development] ssdnvv:
Does/did anyone encounter the issue that while calling someone, the other person hears an echo of his/herself voice? I already did a clean install and didn't use Titanium-backup to restore data...
[Xperia Z5 Compact Android Development] Berni-0815:
This should be gone since a number of versions... :confused:
[Xperia Z5 Compact Android Development] ssdnvv:
The person in question recalled me several times to make sure it is persistent and no imagination.

I'll try your new version in a couple of days and see if a new flashing solves it...
[Xperia Z5 Compact Android Development] THIETm:
Me too...
[Xperia Z5 Compact Android Development] Berni-0815:
As I said, we had this some time ago and I changed the file mixer_paths.xml (see my post #314; you can search this thread for the keyword "echo" to see how long we are playing around with that issue). It should have been fixed, but, unfortunately, it seems to be still present.

In this case, I'm sorry, but I can't help you... :(
[Xperia Z5 Compact Android Development] Berni-0815:
Removed it due to some weird behaviour... :crying: Please be patient, a new version will be available later this day...
[Xperia Z5 Compact Android Development] Berni-0815:
Out! See 1st post.
[Xperia Z5 Compact Android Development] torukk:
yes, I've the same problem. I've also checked it using other phone speaking to someone with my phone. But I was thinking that this must because speaker during the calls is too loud, so it is catched by microphone and goes back to the calling person creating this echo. Most of my calls are too loud (I suspect maybe those over VoLTE) so I was trying to google out how to decrease speaker volume but didn't find some easy solution. Do anyone knows how to decrease it? I just don't get it why this is not adjustable in sounds settings.
[Xperia Z5 Compact Android Development] Berni-0815:
Change the file etc/mixer_paths.xml to your needs. Or flash this file. It contains the original file mixer_paths.xml.

Please backup your system before doing so...
[Xperia Z5 Compact Android Development] jkaart:
This https://xdaforums.com/z5-compact/help/echo-issue-t3793902 works my echo problem.
[Xperia Z5 Compact Android Development] Berni-0815:
Which of the values are you using? In your linked thread are a few posts with different values... :angel:
[Xperia Z5 Compact Android Development] Superrman:
before that , i wanna say thanks to devs\berni and this ROM very fast in CPU performance in benchmarks, GUI even faster then stock ,load faster from complete turned off. better security didnt restart my phone over 200hours super stable and good battery drain..but

after about 30 days *i decided* return to stock ROM because of all that the reasons tougher . version (2018-10-30)

1.the camera (no slow motion mode, and 60fps mode, no working EIS\OIS causing blur in videos\shots)

2.bug- that after you plug and unplug head phones the other side cant hear you untill you restart your phone

3.no stereo recording only 1 active mic,

4. OTG buggy and dosnt support exfat?, seems only to support fat32\ntfs ( i have micro\usb drive, that cant be formatted other then exfat)

was a few more things, but they weren't important to me
[Xperia Z5 Compact Android Development] jkaart:
This https://xdaforums.com/showthread.php?p=76622540 whith RX1 Digital Volume 70.

With 64 vallue was too low with noise outside calls.
[Xperia Z5 Compact Android Development] Berni-0815:
Have you only changed RX1 Digital Volume in handset? Or have you changed anything else?
[Xperia Z5 Compact Android Development] jkaart:
This guide 1 and 2 steps but I change RX1 Digital Volume to 70.
[Xperia Z5 Compact Android Development] Berni-0815:
Here you can download a flashable zip-file with the mentioned changes to the file mixer_paths.xml.

Feel free to use it and, please, report about it (if it works or not; possible errors; etc.)
[Xperia Z5 Compact Android Development] Berni-0815:
Seems to work; please try it and report.

But, the speaker volume is a little low now.... :( Should increase it a bit...
[Xperia Z5 Compact Android Development] niotio910:
Anyone has an issue with mobile network? It is not working/connected after I leave my home wifi. It shows either LTE or H+ but with an "x". All I can do is to reset the network settings.
[Xperia Z5 Compact Android Development] herrJones:
Yes, I noticed something like that too. I did not receive calls and messages until I restarted the phone.

Did not happen twice so I have no idea what caused it.

-- Jan
[Xperia Z5 Compact Android Development] Berni-0815:
Have you tried to make a clean install?
[Xperia Z5 Compact Android Development] herrJones:
Yes, I did this time
[Xperia Z5 Compact Android Development] Herbstfreud:
Hello!

I'd like to increase the volume of the microphone further... Would it be possible to tell which parameters should be set? This file is quite big and I am not really an expert regarding this.
[Xperia Z5 Compact Android Development] The Lepricon:
This definitely made a difference for me. For some there is still a slight echo, not nearly as bad as before, but still there a little. Apparently, the louder the other person speaks the more of an echo they hear.

Can you tell me what you changed? Maybe I can make a few minor adjustments on my end and see if it helps....

But, at least the phone is usable now. I was just about to return it before I found this fix.

Thanks, Berni!!!
[Xperia Z5 Compact Android Development] Berni-0815:
Here you can see what I've changed. ("<" is new, ">" is old)

1518c1518
< <ctl name="DEC7 Volume" value="84" />
---
> <ctl name="DEC7 Volume" value="90" />
1523c1523
< <ctl name="DEC9 Volume" value="84" />
---
> <ctl name="DEC9 Volume" value="70" />
1990c1990
< <ctl name="RX1 Digital Volume" value="70" />
---
> <ctl name="RX1 Digital Volume" value="85" />
2027c2027
< <ctl name="ANC Function" value="OFF" />
---
> <ctl name="ANC Function" value="ON" />

On my device it's sometimes hard to understand the other side in louder environment....

DEC7 Volume changes the main mic (bottom) and DEC9 Volume changes the second mic (top)
[Xperia Z5 Compact Android Development] Herbstfreud:
Ok, that's good to know, thank you. :)

The values are going from 0 to 100? Do I have to restart the device after changing the values directly on the phone?
[Xperia Z5 Compact Android Development] Berni-0815:
I don't know where the limit is, but it's definitely more than 100... In other values I can see a 136 for example...

YES!
[Xperia Z5 Compact Android Development] Berni-0815:
Regarding camera and LineageOS 15.1: Klick
[Xperia Z5 Compact Android Development] The Lepricon:
Just a question, I see you put a higher number for DEC9. Does that make it more sensitive, or less sensitive? So, does a higher number equal more or less sensitive? Louder or quieter?
[Xperia Z5 Compact Android Development] gothed:
fascinating, since i don't know much about coding, let's pray for this issue to be fixed soon.

and thanks to Berni for the effort :good:
[Xperia Z5 Compact Android Development] Berni-0815:
I'm now using the original value in both DEC* (84). Some time ago I've changed these values for trying to reduce the echo.

AFAIK: Yes. If that's wrong, please tell me.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post...
[Xperia Z5 Compact Android Development] brordavid:
Thanks for this almost-christmas gift. :cool: :good:
[Xperia Z5 Compact Android Development] jjansen85:
I would love to try this software. Can I install it over the regular LineageOS without resetting everything?
[Xperia Z5 Compact Android Development] Berni-0815:
I don't think so! There are significant differences that refused to flash one version over the other and vice versa.

Tested myself to flash the so called "official" over my version: No way!

I had to wipe /data via TWRP... :(
[Xperia Z5 Compact Android Development] leeoniya:
just flashed the 2018-12-20 build with the new mixer_paths.xml and the echo's gone, thanks Berni!
[Xperia Z5 Compact Android Development] Berni-0815:
Just to confirm:

You've only flashed the zip'ed rom with the built-in file mixer_paths.xml? No additional zip with that file included?

Because, that's exactly what I've done (only flashing the rom!) and, yeah, for my device I can confirm: No one on my other end reports an echo any more. :good:
[Xperia Z5 Compact Android Development] leeoniya:
well at first i flashed both the build and the mixer_paths.xml zip from a couple pages back. then after seeing the changelog i realized the adjustments were already part of the new build so i downloaded the mixer_paths.xml from your github repo and restored it. so the end result is effectively the same just the 2018-12-20 build.

my wife did report some strong new echo when i called her on speaker (and she had me on speaker). will still need some time to pinpoint the exact combo. the original echo issue only existed when i was on regular mic but went away if i switched to speaker. i'm not sure if it's just inverted now. will keep you posted.
[Xperia Z5 Compact Android Development] Berni-0815:
Hmmm, weird! I decreased the handset speaker volume and I decreased the sensibility of the main (bottom) mic and increased the sensibility of the second (top) mic. This should not change the hands-free speaker behaviour...
[Xperia Z5 Compact Android Development] up2dateneurosis:
When playing music or watching a movie, all mediaplayers I tried do crash or stutter when the volume is maxed and an Aux cable is connected. I found out, that reducing the output volume by one step under max solves this issue. But this should be fixed. Maybe it is needed to limitate the maximum output volume for the Aux connection to a lower level.

BTW some months ago, I reported the too quiet mic volume problem and since then I changed the DEC7 Volume value and the DEC9 Volume value from 84 to 112 in the mixer_paths.xml under /system/etc. That is just my suggestion after some trying. Higher values make the recording louder, but to loud leads into echos and unwished noises. For me this fixed bad recordings.

You can modify the xml file with totalcommander if you got root access. A restart is than requierd to take effect.
[Xperia Z5 Compact Android Development] torukk:
Hello,

I have updated kernel, provided as flashable zip now, so you can flash it directly from TWRP, and if you are magisk user, don't forget to add latest magisk zip as 2nd flash zip. I've also bundled bluetooth aptX libraries (generic ones downloaded from web, I thought I can find them in stock ROM image from sony, but its probably installed on-the-fly and will be obfuscated anyway), but I cannot test it as I don't have yet aptX capable headphones. Changelog is simple - it has already almost all the features as GreyLeshy green kernel for stock ROM (so most credits goes to him) and next release of this kernel from me will be final one. I've also built TWRP with f2fs support, currently I'm running f2fs only on /cache, but I will release this only later after I'll use it on /data and be sure its tested enough.

links zip and md5:

https://mega.nz/#!IglWmKyQ!t3oYu-CfJ_QlEywvypyOKiBuRR6T_Udrdq6T2OFeuHM

https://mega.nz/#!9w1GVSLA!A8uQ8XqvfiSQr2AsO_o3k_JMkkDPlABPwvaO6BPCReg

BTW these are my undervolt settings:

cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

A53: 384mhz: 725 mV

A53: 460mhz: 745 mV

A53: 600mhz: 765 mV

A53: 672mhz: 795 mV

A53: 768mhz: 825 mV

A53: 864mhz: 845 mV

A53: 960mhz: 865 mV

A53: 1248mhz: 945 mV

A53: 1344mhz: 965 mV

A53: 1478mhz: 985 mV

A53: 1555mhz: 995 mV

A53: 1651mhz: 1010 mV

A57: 384mhz: 765 mV

A57: 480mhz: 765 mV

A57: 633mhz: 765 mV

A57: 768mhz: 825 mV

A57: 864mhz: 850 mV

A57: 960mhz: 870 mV

A57: 1248mhz: 890 mV

A57: 1344mhz: 910 mV

A57: 1440mhz: 925 mV

A57: 1536mhz: 930 mV

A57: 1632mhz: 945 mV

A57: 1766mhz: 975 mV

A57: 1824mhz: 975 mV

A57: 1958mhz: 980 mV

A57: 2016mhz: 1005 mV

(A57 voltages are probably not optimal in higher frequencies, but I had some issues setting it - values were changing strangely - so I don't wast time with it now. Also, I recommend to set in KA under cpu hotplug, keep minimum big cluster cpu online to 1, I also disable KSM, I plan to tune zram also, but this needs yet some kernel updates, in the end, I'll customize my own KA settings and can share it as downloadable profile or so.)

Enjoy
[Xperia Z5 Compact Android Development] The Lepricon:
But, doesn't raising those values that much cause others to hear an echo when they call you ?
[Xperia Z5 Compact Android Development] Herbstfreud:
It's really interesting how different the same phones behave... I've increased DEC7 to 100, DEC9 to 90 and decreased RX1 to 60. That's fine for my wife now. There's still no echo in the line.

---------- Post added 27th December 2018 at 12:05 AM ---------- Previous post was 26th December 2018 at 11:29 PM ----------

By the way (because it's related to the same file)...

Does someone know which values has to be decreased if the volume of the notifications is too loud? There's also RX7, RX8 and so on in different locations of this file.
[Xperia Z5 Compact Android Development] Herbstfreud:
Ok, to end my monologue and for the interested ones... It's in Line 1582, path name Speaker. ;)

RX7 Digital Volume and RX8 Digital Volume are the right ones.
[Xperia Z5 Compact Android Development] up2dateneurosis:
For call output I guess?

[MENTION=958172]The Lepricon[/MENTION] No, works fine. And I am on this since about a half year :D I was testing different combinations of values.

[MENTION=6038505]torukk[/MENTION] Thanks for the update. I also noticed strange behavior of the voltage management and decided to not waste my time with it. Normally I get deeply into every technical topic, but in this case I just use the global offset and than I am done with it :D
[Xperia Z5 Compact Android Development] The Lepricon:
Would you be willing to share your mixer_paths.xml file for me to try?

I really really really want to love this phone. But, if I can't get the volumes right without getting echo then I can't keep it, at least not for my daily driver.
[Xperia Z5 Compact Android Development] ssdnvv:
That confuses me - did you include the *.xml into your 2018-12-20 release?
[Xperia Z5 Compact Android Development] Berni-0815:
Yes
[Xperia Z5 Compact Android Development] up2dateneurosis:
Sure, np :)

https://bit.ly/2ETj0gH
[Xperia Z5 Compact Android Development] Berni-0815:
Is this working on other user's device?
[Xperia Z5 Compact Android Development] up2dateneurosis:
Yes. It is based on your latest release.

But I would say let us wait for some feedback from others. For me it fixed voicemail recordings and calls.