yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] flopower1996:
You made my day :D:D:D
[Xperia Z5 Compact Android Development] mele80:
A hard-on?
[Xperia Z5 Compact Android Development] JenItols:
Every day I look at this thread I get more and more confused. Did someone figure out the camera and phone volume issues or is someone joshing my taters? Honestly, I could care less about the camera issues . I really hope the call volume issue gets corrected. People say they can barely hear me even when I am screaming at my phone like a damn lunatic.

Great work so far! I am looking forward to the next release that hopefully has the call volume fix.
[Xperia Z5 Compact Android Development] :
soooo, about the camera issue, here are some hacks to try and improve the situation:

1. https://github.com/oshmoun/kernel/commit/a2c0d1379684a79512f0f5b306977f62a44f3439

this hack is based on the note made that an allocation of a much bigger size than the one originally requested by msm_actuator for init_settings will almost always succeed. This most probably has to do with size threholds, where above these thresholds, the kernel will decide to do some more more work to free up ram, where as with relatively small sizes such as the one originally requested, it just didn't try hard enough.

With this hack, there is almost always a successful allocation, but sadly sometimes it's too late and camera crashes because of that. However, that means that the next try will most definitely lead to working camera.

2. https://github.com/oshmoun/kernel/commit/88ec88ef9901d2a0a4b87913b1f7fd960cbb22a5

this commit will totally remove the need for allocation, as it will simply pass the original init_settings. This means that camera will work 100% of the time with this commit. This sounds good, I know, but can be really dangerous according to people more experienced than me in kernel development. I personally have been using that fix for a while and didn't notice an issue. USE AT YOUR OWN RISK.

DISCLAIMER:

I'm in no way responsible for damage done to any of your device(s) if you use any of the aforementioned commits in your builds!
[Xperia Z5 Compact Android Development] flopower1996:
[MENTION=4819888]oshmoun[/MENTION] We heard that you have a PAC rom in the pipeline?
[Xperia Z5 Compact Android Development] kaneco_xn:
Hello,

first of all, thanks for the efforts of all of you.

I have been lurking in this thread since page 1 :angel: and i am very excited about the progress it (and with it my phone) has made.

Since i still have some issues that don't seem to be reported, i decided to create an account and chime in with those.

My biggest issue isn't actually the camera not always starting, but charging seems to only be working occasionally. Charging from a wall plug and QC has always worked before the update that fixed the camera distortion, now the only reliable way to charge my phone is via USB to a Computer, nothing else really works consistently. Yes i have tried different chargers and plugs, QC and non QC.

Other small things i noticed:

After plugging in Headphones, there is a 1-2 second delay, sometimes sound shortly comes out of loudspeakers before finally switching, rarely the first half second or so the playback through headphones is at max volume before it goes on with the volume it is set on.

The Proximity Sensor seems to be somewhat insensitive, often times during a call the screen turns on when i turn my head or switch the phone from left to right, making my cheeks push buttons :D

Bluetooth doesn't seem to work 100% of the time.

The Sony Boot Logo is missing, that was mentioned some pages before, i mean it doesn't really matter anyway but would still be nice if it'd be back there at some point.

I really hope someone knows whats up with the charging, aside from that i'll keep on patiently waiting for updates :)

To CTXz and the other Devs: feel free to mention Donation pages or whatever, i am always willing to thank people that are putting a lot of work into stuff i am using for free.

Thanks for the ongoing development, cheers!
[Xperia Z5 Compact Android Development] Lemming0815:
I switched to this ROM from stock 3 days ago since I was seeing a lot of good progress here. I must say I am very happy with it! It's my daily driver now. To report something which I think, hasn't been reported before: MHL doesn't work. Is this in scope for the development or just too complicated? Or does it only work with DRM keys?

Another observation: I get high kernel wakelocks (f9200000.ssusb) which other forums suggest to be connected to a USB connection (charger, 3G?) not being hung up properly. This causes my battery to drain pretty fast.

Keep on the good work. I will donate sth tonight and I will donate more later when camera is fixed and nightlies are set-up.

Cheers, folx! Lemming

Edit: After cold-restarting the phone, the wakelock has vanished. Reconnecting to wall-plug for a few moments and then remove again reproduces the error. (I have to investigate a bit more). I assume it's kernel related, though. Has anyone tried other kernels with this ROM regarding battery life?
[Xperia Z5 Compact Android Development] Raphos:
Hi,

Strange your charging problems. My two z5c are charging well plugged in a electrical socket (with Samsung and Sony chargers).

I noticed, sometime by incoming calls the phone doesn't ring or vibrate. I have just a notification for missed call. Someone else have this trouble ?
[Xperia Z5 Compact Android Development] mele80:
For me QC has never worked . Normal charging works, but QC fails.
[Xperia Z5 Compact Android Development] kaneco_xn:
For me it works on some wall plugs but not all. It is very strange. It worked on some plugs in a different house, but not all of them.

In my appartment none work.

Upon plugging in, It will always do the little vibration.

Then, in the status bar, the number inside the battery indicator circle moves to the side and in the circle the charging flash symbol shows up. Then, after a brief moment, the number vanishes, the little flash symbol stays but it does not charge.
[Xperia Z5 Compact Android Development] kakami okatsu:
Hello everyone!

I know this might not be the right place to start but i'm a new XDA member! I always came here, grab some work made from other, install on the phone and gone away. Right now I have a Sony Z5C and since the bugs are really annoing I wan't to help!

I'm a dev with 0 experience in the source of CM so where can I start? Can I help you in any way?

Thank you in advance.
[Xperia Z5 Compact Android Development] Lemming0815:
I have no issues charging whatsoever. Have you tried clearing the cache partition in twrp?
[Xperia Z5 Compact Android Development] mele80:
You dont have problem with qualcomms QC? What charger do you have?
[Xperia Z5 Compact Android Development] Lemming0815:
I use all kinds of chargers. Sony, no-name,usb. All of them work just like that. I haven't confirmed qc, though but it does charge quickly so it hasn't drawn my attention yet.
[Xperia Z5 Compact Android Development] mele80:
Ah...okay. Problems comes with qualcomm qc2.0 "certified" chargers. I have anker power bank and aukey charger bith have qc 2.0.

They both dont work. First seems to charge but then stops charging and led is blinking.

Phone came with sonys own fast charger but not quite as fast as qualcomms qc.
[Xperia Z5 Compact Android Development] flopower1996:
As far as I know the phone's stock charger is no quick charge ready charger.
[Xperia Z5 Compact Android Development] mele80:
No, not like qualcomm's QC, but i think Sony refers it as fast charger.
[Xperia Z5 Compact Android Development] Lemming0815:
[MENTION=6584695]CTXz[/MENTION], will you be uploading to cyanogenmod.com to enable nightlies? If there is anything to figure out, give me a shout. I would love to see this being "officially" supported or at least recognised. I have some experience in git and release processes.
[Xperia Z5 Compact Android Development] ninestarkoko:
you should probably ask it directly to the OP ;)
[Xperia Z5 Compact Android Development] rtimoff:
No, he needs to start google, that's all[emoji1] [emoji1] [emoji1]

Отправлено с моего E5823 через Tapatalk
[Xperia Z5 Compact Android Development] genunix64:
Just built new ROM with rebased repositories and camera patch from oshmoun.

Available for download here: https://fpy.cz/pub/projects/cm-13-z5c/

Few notices so far (flashed just very recently):

- camera is working :)

- fingerprint reader stopped working :(

- MAC address is no longer changing on each boot

Of course use this build on your own responsibility (like any other).
[Xperia Z5 Compact Android Development] mele80:
How is the call quality?
[Xperia Z5 Compact Android Development] genunix64:
Still the same, no enhancement here :(
[Xperia Z5 Compact Android Development] flopower1996:
Hmm one problem gets fixed and another occurs :confused::(
[Xperia Z5 Compact Android Development] genunix64:
Don't know why fingerprint stopped working, maybe I missed something when rebasing repos (maybe I'll check that later, still camera is more important for me than fingerprint).

Still I would be happy if this ROM would become official with proper nightlies and done by people who know more what they are doing (guys that started this CM rom + guys from PAC) :)
[Xperia Z5 Compact Android Development] flopower1996:
Haha I think that you didn't make anything wrong. PAC Rom has with the camera patches problems with the fingerprint sensor aswell...
[Xperia Z5 Compact Android Development] Berni-0815:
Great job! Thanks a lot!
[Xperia Z5 Compact Android Development] Lemming0815:
I can confirm the camera fix. With camera next, even switching to video works (fails with snap and Google). Why not include camera next into the ROM? It's quicker than the other two anyway.

Edit: you are an angel! Don't know if you knew but your rebase also made the torch working (which wasn't for me last month)

Edit 2: equaliser has no effect on music played through headphones, didn't test speakers or videos.

Also, the long press to skip track only works occasionally (like 1/10)
[Xperia Z5 Compact Android Development] Berni-0815:
This app shows the preview window rotated by 180°! And I can't see how to store taken pictures on my sd-card. So, for me it's no alternative. But open camera is now working too! No crashes so far... I really love this app. ;)
[Xperia Z5 Compact Android Development] stephencrw:
Flashed this to my phone and a lot more is working now. Marvellous work. Fingerprint sensor would be nice but by no means an essential.

Thanks very much.
[Xperia Z5 Compact Android Development] gatun:
Hi guys! Can someone explain better what is call quality problem? I use this phone for work and is it the only one that I have... Make this problem the phone so unusable?

Inviato da mio MiDueEsse
[Xperia Z5 Compact Android Development] mele80:
At least for me my voice was echoing at the other end.
[Xperia Z5 Compact Android Development] d28b:
The other person hears a strong echo - sometimes even a double echo. On my phone, this was clearly a show-stopper. Friends were complaining when they called me.
[Xperia Z5 Compact Android Development] JenItols:
CTXz would you please provide some indication of what issue is the main priority for the next release of this ROM? I know it is poor form to request updates from development on XDA. However, the recent update (the rewrite) has renewed my interest in this ROM and I am looking forward to updates.

Great work so far, please keep it up!
[Xperia Z5 Compact Android Development] gatun:
Can someone try to change in build.prop file, "persist.audio.fluence.voicecall" from "true" to "false" or vice versa?

Inviato da mio MiDueEsse
[Xperia Z5 Compact Android Development] gatun:
Nobody tried it? I found this solution for some devices that have the same call mic problem...
[Xperia Z5 Compact Android Development] Lemming0815:
I haven't changed anything but i don't have those call issues. E5823
[Xperia Z5 Compact Android Development] MatMew:
OK guys so as we all know the camera isn't functioning very well. It has trouble starting sometimes, but when it starts I've found all my captures to focus better than stock and capture times are very speedy and efficient. Hopefully this functionality transfers over once the final build is released but I feel that somehow once we have camera opening 100% of the time the performance will return to default ways of focus and then late capture resulting in sub par capture.
[Xperia Z5 Compact Android Development] Lemming0815:
Did you try the latest build? The camera patch from oshmoun seems to work well for everyone regarding the startup time, including myself.
[Xperia Z5 Compact Android Development] MatMew:
I'm using sept 19 release.
[Xperia Z5 Compact Android Development] mele80:
Check genuixe64's post for previous page, he has compiled new build on 16th october with oshmoun camera fix
[Xperia Z5 Compact Android Development] MatMew:
Yesss downloading now. Can I flash straight over the top? Thanks for this bros.
[Xperia Z5 Compact Android Development] mele80:
I don't see any harm doing so. But maybe at least caches and dalvik ate useful to wipe and if something is not right then wipe also system, but backup is always handy
[Xperia Z5 Compact Android Development] Berni-0815:
I changed it from true to false and the voice quality is even more bad than before! For me the device is not usable as a phone. :eek:
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Don't be that pessimistic - one can hope :)
[Xperia Z5 Compact Android Development] :
Soooo, let's tackle this camera issue again :laugh:

https://github.com/oshmoun/kernel/commit/9a0e40884cf0248d3969d4cbf0923e0831b90f00

This commit fixes the allocation issue by using another memory "pool", since the used one fills up pretty quickly. This commit should make camera work reliably every time. It's not a "nice" fix, but since this commit is not removing the allocation altogether, i guess that makes it at least "safe to use".

This commit should be considered a replacement to the commits i mentioned before.
[Xperia Z5 Compact Android Development] Lemming0815:
Ahh, if we had a build server, we could test right away...

The other day I checked cyanogenmod.com for requirements and they demand a fully working ROM with all the stock features, which is funny since they pretty much stopped all stable releases in favour of nightlies (which are not required to be stable it fully featured). Anyway, if all the devs come an agreement we could just send them the link to perhaps [MENTION=6584695]CTXz[/MENTION]'s repository and see what happens? There would be automatic upstream merges and nightly builds without anyone of us spending hours on compiling...
[Xperia Z5 Compact Android Development] genunix64:
I can make a new build during/after this weekend (rebasing repos + applying better oshmoun's fix for camera). [MENTION=4819888]oshmoun[/MENTION] did you also tried to fix voice call issue or it doesn't appear in PAC?
[Xperia Z5 Compact Android Development] Berni-0815:
Voice call quality and microphone volume is in my opinion more useful than any other things; cause this is at least a telephone! And this has IMHO to work...
[Xperia Z5 Compact Android Development] :
About audio, i hope someone can test this:

Take the following files from stock MM rom:

/system/vendor/lib/libacdb-fts.so

/system/vendor/lib/libacdbloader.so

/system/vendor/lib/libacdbmapper.so

/system/vendor/lib/libacdbrtac.so

/system/vendor/lib/libadiertac.so

/system/vendor/lib/libaudcal.so

/system/vendor/lib/libaudioalsa.so

/system/vendor/lib64/libacdb-fts.so

/system/vendor/lib64/libacdbloader.so

/system/vendor/lib64/libacdbmapper.so

/system/vendor/lib64/libacdbrtac.so

/system/vendor/lib64/libadiertac.so

/system/vendor/lib64/libaudcal.so

/system/vendor/lib64/libaudioalsa.so

And this folder from stock MM rom:

/system/etc/acdbdata

And put those into the same paths under CM13, then reboot and test incall volume.

Also, send logcat if possible after reboot and test.
[Xperia Z5 Compact Android Development] d28b:
Did you install/configure something special? Did you install another (say firmware) upgrade before/after installing this ROM?
[Xperia Z5 Compact Android Development] Lemming0815:
No i did exactly follow the guides on the first page. Downgrade to lp, exploit, save ta partition, recovery, cm. And all works fine ever since. Apart from some minor issues with call volume (i can't change it, bit is loud enough for me), mhl not working, nothing compromising the experience too much, though.
[Xperia Z5 Compact Android Development] Peccia:
hi

i'm having problem to flash my z5c with this CM13 beta, when on twrp i load the zip, the md5 is ok but it shows error 7 and says the device is incorrect suzuran and mine is .

did someone had this problem?
[Xperia Z5 Compact Android Development] Lemming0815:
Please confirm your twrp version
[Xperia Z5 Compact Android Development] Peccia:
Twrp IS 3.0.2-0, worked fine for other rom and recovery, i think kernel IS stock tho, could it be the problem? Thanks
[Xperia Z5 Compact Android Development] mele80:
There is especialöy made twrp for cm13, but i do have used "normal" twrp as well and seemed to work. For installing cm13 you should flash androplus v31
[Xperia Z5 Compact Android Development] Peccia:
Okay, many thanks, i Will try to update twrp and kernel this afternoon
[Xperia Z5 Compact Android Development] mele80:
See op there is instructions
[Xperia Z5 Compact Android Development] Berni-0815:
I could try it, but /system is read only...
[Xperia Z5 Compact Android Development] flopower1996:
Have you ever heard of root access?

Hint: it enables you to mount the /system partition as read/write
[Xperia Z5 Compact Android Development] Berni-0815:
I think so

I know a lot, but not everything. Please let me know how to do it... :confused:

---------- Post added at 07:15 PM ---------- Previous post was at 06:31 PM ----------

After spending some time searching the web I think I know how to do it.

The problem was to push files to the device. I first pushed them into a temporary folder in /sdcard and then manually copied the files via terminal to the target folders.

@oshmoun:

The microphone volume is much higher than before, but the speaker volume is equal. Today in the evening I will test this in "real life". :cool:
[Xperia Z5 Compact Android Development] gatun:
Maybe is a stupid question... Can I flash boot.img from andropluskernelv40.zip or just from v31?

Inviato da mio MiDueEsse
[Xperia Z5 Compact Android Development] mele80:
V31
[Xperia Z5 Compact Android Development] CTXz:
Just mount /system to rw

That will allow you to push directly into /system
[Xperia Z5 Compact Android Development] CTXz:
I've just recently merged most of the repositories, done a few builds already. FM radio is buildong, however the kernel drivers that are required aren't officially merged yet so it won't work. Camera crashes have clearly improved but occasionally happen.
[Xperia Z5 Compact Android Development] Berni-0815:
Tried this, don't work under Xubuntu 16.04LTS... Sorry.

@All:

Yesterday I made a few phone calls. One caller reported a loud echo of his own voice, the others don't. My voice is normal loud and normal clear for them :good:, but my own speaker volume is as low as before. Using stock rom this is better! :(
[Xperia Z5 Compact Android Development] Berni-0815:
BTW:

Has anyone the file kernel.elf of this rom for me to download somewhere? ;)
[Xperia Z5 Compact Android Development] :
This isn't stock,so there is no kernel.elf

What you want is probably boot.img

The kernel of this rom won't work with stock though if that's what you want to do.
[Xperia Z5 Compact Android Development] Berni-0815:
No. There is a tool named rootkernel. I like to create my own kernel including latest TWRP, busybox and other things like I'm always doing with stock rom.

I don't know if this will work but I want to give it a try.... :laugh:

That's all...

---------- Post added at 09:11 PM ---------- Previous post was at 09:08 PM ----------

BTW:

The output volume is in every case very low; bluetooth, headphone and internal speakers. Is there a way to change it like changing die microphone volume level?
[Xperia Z5 Compact Android Development] zacharias.maladroit:
nice, great to read - any improvement is welcome :)

Now if it only would boot on Z5 for me :silly:

You want to modify a CM13 kernel with a tool which is tailored toward Stock kernels ...

... okay - why not ;)
[Xperia Z5 Compact Android Development] Berni-0815:
You're right. I haven't read this before...
[Xperia Z5 Compact Android Development] genunix64:
Looking at new build.. [MENTION=4819888]oshmoun[/MENTION] I noticed that you are merging against sony/master branch but I suppose that one is nougat at the moment (as there's new n-mr0 branch)? Shouldn't you merge sony/m-mr1 branch instead?
[Xperia Z5 Compact Android Development] :
no I do not merge master into master, I merge m-mr1 into master.

Basically my master branch is sony/m-mr1 + cm changes
[Xperia Z5 Compact Android Development] genunix64:
I noticed that eg. here: https://github.com/Sony-Kitakami/an...mmit/429a4eb1f46927259b37b634b21b0695239671fa

where upstream seems to be using m-mr1 branch for marshmallow (https://github.com/sonyxperiadev/device-sony-common/tree/m-mr1)

Sorry, wanted to ping [MENTION=6584695]CTXz[/MENTION] :)

I am thinking of cleaning up and applying fixes on top of m-mr1 because m-mr1 doesn't merge in Sony-Kitakami repos (as master branch was merged in instead).

But voice call echo happened with PAC-ROM as well, right? So I don't suppose that will fix this main issue.
[Xperia Z5 Compact Android Development] CTXz:
I'm usually on a slightly modified master, that is that I merge as much as I can as long as its not N specific. Tough at the current state the ROM works really well. Camera crashes no longer present (at least it isn't since the last two weeks) and fixing the other issues would require more investing. I AM planning to upgrade to N soon tough.
[Xperia Z5 Compact Android Development] genunix64:
Ok, I tried to build m-mr1 with yours and oshmoun's patches. So far I can tell that voice calls are the same bad but fingerprint reader is working (so it was probably broken by something in master branch). FMRadio app is there but doesn't seem to work.
[Xperia Z5 Compact Android Development] Berni-0815:
I tested this version (2016-10-31) a little and I see that the wlan mac-address is changing again at every boot. *) And the display brightness ist very high and not adjustable!

Voice quality is the same as with the changes made by oshmoun discribed here.

*) This is a ko-criteria for me so I switched back to previous version...
[Xperia Z5 Compact Android Development] genunix64:
I hoped that nobody will find this image I've uploaded this morning (that's why I didn't put the link here) :)

I just tried the voice call quality because I forgot to get some commits when I reworked this on top of m-mr1 branch (that's why some things are not working) - then I downgraded to previous version as well to be able to use my phone normally for the rest of the day.. :)

Anyway the result is that it won't get any better.. maybe only enhancement will be working fingerprint reader when I'll fix the remaining issues.
[Xperia Z5 Compact Android Development] Lemming0815:
Something with the kernel still does not seem right. Occassionally after charging I get huge wakelocks (100%) by F9200000.ssusb or power management which I can only get rid of with rebooting (sometimes battery statistics show active wifi falsely).

Also, normal reboot and reboot into recovery doesn't always succeed. It just shuts off and freezes with black screen. I have to force shutdown by hardware buttons then.

Any specific log I can provide to investigate the issue (I have never looked at/understood kernel code)?
[Xperia Z5 Compact Android Development] Berni-0815:
:laugh::cool: