yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Berni-0815:
Then something is wrong at your side! My device is quite cool and the battery lives about three days!

Maybe your device is permanently searching a network?
[Xperia Z5 Compact Android Development] ssdnvv:
Hm.. what I did that far:

Flash twrp v.3.2.1

Wipe /data, /cache and /calvik

Flashed your ROM

Flashed Gapps for arm64

Are there special Gapps that you recommend? Or is wiping /system before flashing necessary? Or is there anything else I should take care of? Thanks for your help!
[Xperia Z5 Compact Android Development] ouzqan:
1. Download last rom

2. Download open_gapps-arm64-7.1-micro

3. Download twrp file

4. Flash Twrp with Fast boot

5. Wipe system, data , cache, internal storage, dalvik

6. Flash rom and gapps

7. Finish

All your files you make backup and flash rom.
[Xperia Z5 Compact Android Development] jkaart:
How old your device is?

If your phone battery charge-cycles is full?!
[Xperia Z5 Compact Android Development] ssdnvv:
Device was bought in Nov/2016. Don't know what you mean with the second sentence. With full charge it normally covered 2-3 days (stock ROM 7.0). Now it's dead in 3 hours.

---------- Post added at 10:56 AM ---------- Previous post was at 10:51 AM ----------

Is it possible to save app-data using titanium-backup or will this cause problems? I don't want to start from scratch again ?
[Xperia Z5 Compact Android Development] jkaart:
Li-ion battery last about 500 empty full cycles and then it's like dead...
[Xperia Z5 Compact Android Development] ssdnvv:
How can I read the total cycle count?
[Xperia Z5 Compact Android Development] jkaart:
You can not read it.

But if you charge it full every day you get this 500 cycles about 1,5 years. My own Z5C old battery gets about 2 years every night charge and then it last only 5h before it was empty.
[Xperia Z5 Compact Android Development] ssdnvv:
Ok, thanks. But as I told you I charged every 2-3 days (sometimes even less frequently) and battery life was perfect until I flashed that ROM. And as it gets pretty hot only since I flashed I believe the flash process went wrong.
[Xperia Z5 Compact Android Development] jkaart:
What e.g. GSam Battery Monitor say your battery usages?
[Xperia Z5 Compact Android Development] Berni-0815:
That's the normal way!

I'm using pico. I don't need more google stuff...

Normally not, but sometimes it's the only way to solve weird problems.
[Xperia Z5 Compact Android Development] ssdnvv:
It seems it got solved by just waiting. After five times getting hot and battery draining within 2-3 hours, it now behaves normally.

Anyhow thank you all for your help! :)
[Xperia Z5 Compact Android Development] torukk:
kernel update

Hello, I'm new z5c owner (since summer) and I'm using my own LOS build. So far I was able to make some improvements:

- updated kernel to last CAF sources and compiled it with gcc-8.2

- compiled suzuran LOS with sdclang 6.0.2 from qualcomm

I would like to improve the kernel more (I was inspired by GreyLeshy green kernel ) and my final goal is to add F2FS support (to TWRP also) and last upstream kernel patches. However, I have no time until Christmass to focus on this. The kernel stuff I would like to publish and possibly upstream once I finish it. My primary goal is power efficiency and I'm running the ROM for approx. month without any issue and kernel since today (before I used kernel compiled with linaro gcc-7.2). If you are interested to try my kernel (as it is not changing at all in past and future LOS 14.1 builds, and it works in every suzuran LOS 14.1 build) I can upload boot.img somewhere, just tell me where (please something normal, I don't use any registered cloud drives storages etc.)

I hope its OK to use this thread, because its only one alive and most relevant.
[Xperia Z5 Compact Android Development] Berni-0815:
These are things I can't do because I don't know how... :angel:

:good:

What is "normal"? E-Mail? I'm using mega.nz to share my builds...

Sure!
[Xperia Z5 Compact Android Development] torukk:
Ok, so here is the link:

EDIT 21/9/18: bluetooth broken, do not download, I'll fix it

https://mega.nz/#!ko8lkQSY!MAnhlWZoWtwiy4g1QeooWbcwoJPPPgghIiNbMIMF-bk

This boot image is compatible with any LineageOS 14.1 ROM build for suzuran.

Instructions for install:

- backup your boot.img partition in TWRP

- reboot phone to fastboot mode

- you can temporarily try new kernel (until reboot):

fastboot boot suzuran-bootimage-gcc8.2.img

- or flash the boot image permanently and reboot:

fastboot flash boot suzuran-bootimage-gcc8.2.img
fastboot reboot

(If you are magisk user, you have to install magisk zip in TWRP after flashing this boot image).

In future, I will for sure maintain this kernel and I plan to release sources.
[Xperia Z5 Compact Android Development] eng3:
I have been seeing higher battery drain too. When I look, its always from Android, Kernel, Lineage OS so I don't know what's really causing it. I do agree, batteries degrade as you get more full cycles on them but there's no hard and fast number. Maybe batter now can last 2-3 days if I don't touch the phone at all. If I am using for maps, camera, it maybe lasts half the day where before it might have lasted the whole day. I'd change the battery but its too much of a hassle and there's no guarantee the new battery will really be "new" and not something that has sat on a shelf for two years. I'd get another phone but there's nothing out there that's sub 5in and as good.

I just came back from a vacation where I was out all day using the phone for maps and camera. I've played around with battery saver, for example, turn it on when I know I'm going to have a long day out with no charger. However, I think it may cause higher battery drain because I THINK everytime I turn the screen on, even if i'm just checking somet notes or map, it "wakes up" and causes everything to "refresh". I'll feel the phone get hot. Where if I leave the battery saver off, that doesnt happen but there is constant drain. So with battery saver vs not, I guess it depends how many times you will wake up the phone. If its alot, even for a few seconds, it may be better without battery saver.

Also, I notice a new issue, not sure how long it has been around. When I connect my phone via USB to transfer files, it does not show the correct files. It is as if it is listing an old snapshot
[Xperia Z5 Compact Android Development] Berni-0815:
First of all: It's working (see screenshot).

Second: At which things do I have to watch to see improvements? Battery life? Device's temperature?
[Xperia Z5 Compact Android Development] Berni-0815:
That's working here as expected. Xubuntu 18.04.01
[Xperia Z5 Compact Android Development] brordavid:
Does bluetooth work for you with torukk:s kernel? Everything seems to work fine except that.

When flashing back to boot.img that follows with your rom bluetooth works again.

Did all the flashing through twrp + wipe cache+ dalvik and not through fastboot.
[Xperia Z5 Compact Android Development] skysurfer1111:
That's right. Bluetooth isn't working with torukk's kernel.
[Xperia Z5 Compact Android Development] Berni-0815:
You're right! Bluetooth is not working! And in the few hours testing this kernel my battery drains a lot more than with my version. Maybe because trying to activate bluetooth?

I'm back to my version... :angel:
[Xperia Z5 Compact Android Development] torukk:
Android 7 uses gcc 4.9, so there is like 3 years of development to version 8.2 and possibly more optimization, I also use some compile flags for more optimized code (-Ofast etc.) But more benefit should be more stable kernel because there are tens of fixes from CAF repository and hundreds from last version of upstream 3.10 kernel (of course, for us are relevant only for example only ext4, arm64 and network stack bugfixes, but still, there are tens of them). But I'll first start from changing compiler, then I'll include more fixes and features (as I said my goal is to have F2FS support). I'm inspired in GreyLeshy kernel, I've already took from his kernel fingerprint-boost (to be honest, I don't see any difference), was considering adreno-idler, but I checked that gpu frequency scaller works just fine, so I didn't included it.

I've fixed it just now, but I'll release fixed version once I properly analyze which commit is breaking it (I've reverted them all now).

Strange, I don't have any battery drain at all, my usual battery duration is 3-4 days, but I mostly attribute it to the fact that I dont' run any google spyware on my phone (yes I'm microg user) and I also use aggresive power optimization (LXT_default from xda forum).
[Xperia Z5 Compact Android Development] Berni-0815:
It's only a short time of usage, but in the attached picture you can see what's happening with my battery.

Red = Start of device

Blue = Flashed your kernel

Green = Back to my kernel
[Xperia Z5 Compact Android Development] brordavid:
Looking forward to try the kernel when bluetooth is working. :good:
[Xperia Z5 Compact Android Development] torukk:
OK, so here is version with working bluetooth https://mega.nz/#!Fo0UQAaD!Qhswc1HJacTW8EpPD7cjsehVrJa7D3XK74PjThx58OA

changelog is simple:

- updated to 3.10.88 from upstream linux kernel

- compiled with gcc 8.2

I've decided to first synchronize with latest upstream kernel version 3.10.108 and after that with codeaurora sources and latest stable f2fs sources for 3.10. Currently I've hit some issue with USB from upstream, it will take more time to resolve.
[Xperia Z5 Compact Android Development] Berni-0815:
The more important question for me is this: How can I include these sources into my rom? I think it's a better way to share this stuff... :angel:
[Xperia Z5 Compact Android Development] torukk:
I was already thinking about it. Sources I can later provide once it will be lets say completed, can be incorporated into whole LOS build (with simply changing git url I guess), however different compiler cannot.

On the other hand, with simple instructions, kernel can be build separately with different compiler outside the LOS tree and packed into boot image (yeah, which has to be flashed separately after every ROM update). So the only options how to have it packed into whole flashable ROM zip would be to unpack it, replace boot.img and repack it back (hopefully no checksums which would prevent this, but I guess there are tools for this) or to modify LOS building procedure to take externally submited kernel image for packaging. I've also seen TWRP flashable zip with boot image, so it could be possible to alway flash ROM, then kernel in one step.. But anyway, I'll rather focus on finishing the kernel.
[Xperia Z5 Compact Android Development] up2dateneurosis:
Thanks for the development of a new kernel, great to see that the community is not dead in the case of the Z5c :)

I am testing the kernel and I noticed that the app Kernel Adiutor is not able to start, even after deleting the whole data and cache of the app.

For me it is important to have some control and so Kernel Adiutor should work. Maybe you know the app, a useful tool if you ask me.

And some month ago I already posted a link to this mod https://xdaforums.com/xperia-z5/development/mod-fsc-1-0-dont-sacrifice-performance-t3670586 just to have everything what makes sense to modify combined in this thread :) There you got the download link https://mega.nz/#F!nAoi3ALJ!kUOtDeV9pG9H0zTR78VZ3Q!TNImjK4D . Look for [TWRP][FSC™]_Z5_Thermal_V5.1.zip
[Xperia Z5 Compact Android Development] brordavid:
Kernel Adiutor is working fine here with torukk:s kernel.
[Xperia Z5 Compact Android Development] up2dateneurosis:
Hmm okay, than I might have to do a clean flash. Sometimes this Android stuff does not makes so much sense :D

Edit: Wiped the ART/Dalvik cache and the regular cache via TRWP and flashed the kernel again. Everything seems to work, except Kernel Adiutor -_- Would a complete wipe including the data change something on this?
[Xperia Z5 Compact Android Development] Berni-0815:
In some cases a clean install will really help... :)
[Xperia Z5 Compact Android Development] IvkovicD:
Well, I've tried the kernel two times and after a while the telephoning function (incoming/outgoing) is gone. After fresh reboot it works for some time. Didn't have time to figure out, when this exactly happens. Restoring the original kernel fixed the issue.

Regards, Dejan
[Xperia Z5 Compact Android Development] Berni-0815:
A log would help...

Fresh started device; then connect it with pc, set usb mode to data transfer and:

adb shell dmesg > dmesg
adb shell logcat > logcat

(interrupt logcat writing after the problem occurs)
[Xperia Z5 Compact Android Development] m7Mark:
I used this rom about month, but I like Sony cous a good sound. In this rom all OK, but sound looks like old phone). I returned to stok and wow I have a wonderful Sony sound (headers, Bluetooth).
[Xperia Z5 Compact Android Development] Berni-0815:
If sound is more important for you than security, feel free to use stock!

But keep in mind that stock's android security patch level is outdated! Not even the "krack vulnerability" is fixed... :p
[Xperia Z5 Compact Android Development] torukk:
Kernel adiutor works for me. I'm now on 3.10.103, but will post the kernel once it will be final 3.10.108. I don't know that FSC you linked, but it will be something very similar to what I use ( [LXT™]_Z3+_Z5 - Default.zip ).

I can't say how is the bluetooth audio quality compared do original ROM, but I've seen somewhere that someone on xda added bluetooth aptX to lineageos, so I will try to include it in ROM or kernel later as well (however I doubt it's real improvemnet, I'm kind of audiophile interested, and have read in past some extensive analysis on this topic). I'm buying bluetooth headphones on christmass, so I'll check the quality myself.

BTW if anyone can obtain 'dmesg' output from stock ROM, it would be helpful as reference point for me (strange thing they seems to use different NFC driver).
[Xperia Z5 Compact Android Development] up2dateneurosis:
Thank you for your answer and support, but I found the problem. After flashing the new kernel, I had to install Magisk and allow there the root rights. Even when I had them activated before in the extended developer settings of Android. So some apps that I used did not worked because the root rights have been allowed and denied at the same time. Now with root access granted in both instances it works.
[Xperia Z5 Compact Android Development] ouzqan:
we waiting for z5 premium man.
[Xperia Z5 Compact Android Development] Berni-0815:
This is a thread for z5c... :angel:

One step before the other. First I'm building for z5c, then...
[Xperia Z5 Compact Android Development] Berni-0815:
Here it is! I hope, it will be helpful for you. ;)
[Xperia Z5 Compact Android Development] THIETm:
Thanks berni for your job !!

I can't instal Netflix with playstore ?
[Xperia Z5 Compact Android Development] Berni-0815:
I can install netflix without any problems! What's happening? Can you download the app? On my device downloading takes quite a long time... :confused:

A log would be helpful:

adb shell logcat > logcat
[Xperia Z5 Compact Android Development] THIETm:
I test again..

I instal the Netflix app manually, it's good?
[Xperia Z5 Compact Android Development] Slagathor:
I think google scans for custom roms and disables the installation of Netflix. I always install the Netflix app manually.
[Xperia Z5 Compact Android Development] torukk:
I have new updated kernel version:

- finished synchronization with last available sources from CAF and linux kernel 3.10

- f2fs updated to latest available version for 3.10 (not enabled)

- voltage control support (available from kernel adiutor) - not tested

- modified kernel config (for better overall efficiency)

- compiled with gcc-8.2 with compile optimizations

I'm also providing magisk patched boot image version:

non-magisk: https://mega.nz/#!ZlVgAQQI!8gl3LSGOpKboDCvhDapVawI2UaDV1wzrNT4JVOB8RNA

magisk: https://mega.nz/#!8hNmnY6J!CForHYIyYzDO4_XWTlYTXGohD5yAaq63AH2vD-8iQTo

On my list is adding more frequency scaling governors and io schedulers, and other config optimizations. Instructions for flashing new kernel few pages back.

Be careful with undervolting - there are more threads here on xda discussing proper undervolting settings for msm8994.

Enjoy !
[Xperia Z5 Compact Android Development] ssdnvv:
Thanks for providing. Could you please provide an additional checksum for verifying file integrity?
[Xperia Z5 Compact Android Development] torukk:
yes of course:

> md5sum suzuran_boot_*
36ad114365d8564c5b8e789732a6624c suzuran_boot_magisk_181103.img
11658f35d23e97045cfcd7f2d7b1f1ac suzuran_boot_181103.img
> shasum suzuran_boot_*
7e244bdb8a40295acf5f912b7afacbae130c9ed9 suzuran_boot_magisk_181103.img
3d5c5e9bb978f81dabd74e8f21bd4e8754c51462 suzuran_boot_181103.img
[Xperia Z5 Compact Android Development] up2dateneurosis:
[IMG="Kernel Adiutor Voltages Snapdragon 810 MSM8994 Z5 compact"]https://www2.pic-upload.de/img/36221310/IMG_20181104_205632.jpg[/IMG]

Here are the untouched voltages and the proof, that the new kernel gives the option to modify these. I will post which voltages I could run stable. Undervolting is the target.
[Xperia Z5 Compact Android Development] brordavid:
I have had reboots with both of the new kernels, I didn't grab any logs though. The old one from you is rock solid. Am I the only one?
[Xperia Z5 Compact Android Development] torukk:
This is strange, I never had reboot. Are you using some addons like FSC, LXT or something which modifies kernel parameters, or undervolt? For example, I had to disable LXT in magisk for now, because it was changing tcp congestion algorithm to cubic, instead of westwood which is now default in kernel (although it should do the opposite, and also there is a bug because it disables selinux and don't enable it again, but I had this fixed), but for now I rather disable it with new kernel and investigate it later. Unfortunatelly, I don't know how to get logs when it reboots, its probably lost.

BTW comment to the previous screenshot with voltage control: I have after fresh boot voltage on the lowest 384Mhz frequency at A53 voltage 815 and a57 voltage 810. I can change A53 voltage on lowest frequency to 795 (hasn't tried lower) but can't go below 805 on A57 core (I have to insert 809 to switch to 805, probably it is lowest possible setting).
[Xperia Z5 Compact Android Development] brordavid:
I have both FSC and LXT activated. :cool:

I'll disable them and try again. :)
[Xperia Z5 Compact Android Development] torukk:
You should not use both concurrently, because they are most probably overwriting each other changes. Moreover, LXT leaves selinux policy permissive. I'm also LXT user, so I'll fix it and post version which I'm sure is working with the kernel here and leaves selinux enforcing. Most of the stuff it does, or at least tried to do, was not possible with previous kernel, so this is probably the reason why it was stable.
[Xperia Z5 Compact Android Development] brordavid:
It's great to see another one who gives the z5c some love. :)

Maybe it's time to make another thread like "torukks LOS kernel and other mods" ? :)
[Xperia Z5 Compact Android Development] up2dateneurosis:
[IMG="Snapdragon 810 undervolting"]https://www2.pic-upload.de/img/36225268/IMG_20181105_182930.jpg[/IMG]

I made some tests of different voltages and clockrates with apps, games and a benchmark. At -45mV global offset the device crashes, at -40 it runs but is unstable, at -35 it behaves normally but somtimes freezes the screen, -30 turned out to be the best undervolting value. No problems with that on my device. Screenshot shows the results of -30mV global offset.

---------- Post added at 18:57 ---------- Previous post was at 18:35 ----------

Just noticed something stupid. After restarting the device and with "apply settings on boot" deactivated, Kernel Adiutor shows different Voltages. From each restart to another. It seems to be a problem for the app to find out the true voltages. This also happens if you hard close the app and restart it. Anyways -30mV worked. My attention was catched by the lower Voltage on my screenshot in case of the highest clockrate compared to a lower clockrate with higer voltage, what did not made sense for me.
[Xperia Z5 Compact Android Development] eng3:
Anyone notice really slow performance after a long sleep?

A few times, my phone will be idle for over an hour. I pick it up, start up google maps, look up a place. By the time, I click "directions" the app will be pretty much froze. If I by chance get to the next screen to click "start" to start navigation, it will almost definitely be frozen. I'll get the "close or wait" screen. If I close and restart the app, it won't even let me type in the destination. If I wait, it will sometimes take 10-15min. A few times, I reached my destination (based of my fuzzy memory) before the directions even showed up. And I will have lost about 20% of my battery in that time. I've found it faster to just reboot the device. At least I only lose like 5% of my battery.

I've found similar experience with the camera. The app stats up, but it might take a few minutes for the picture to come up.

I'm wondering if waking it up from a deep sleep, it triggers all my apps at once to update. I've found that using Battery Saver its worse. Sometimes, when I know I have a long day out, I'll turn on battery saver thinking it will save me some battery. Infact, I have found that it will burn more of my battery. I may have notes or directions on the screen. To save power, I'll turn on the screen for one second to check my notes/directions/location/time/etc and turn it off thinking I'm saving battery by keeping my screen off. But I'm thinking that everytime I turn on my screen, it triggers all my apps to update. Then I burn up a ton of battery every time I flip on the phone, even for a second. I can tell because my phone is always hot. I've found that if I don't use battery saver, this doesnt seem to happen as much.

The reason, I'm thinking it is triggering an update everytime I turn on the phone is because I'll notice that when I look at the processes that are running, I'll see kswap constantly on top mixed with random apps popping up.

The other thing I've found that is counter intuitive is charging with a portable battery (power bank). Because my battery wont last a whole day if I'm out all day, I started to carry one. However, I've found that when it is plugged in, the phone will think its got all the power in the world and start doing stuff causing my battery to drain faster. If I wait til it gets very low, it does not seem to want to quick charge. Maybe because the phone starts to heat up as the voltage gets low (and current goes up). So if I plug in the battery at this time, it may drain faster than it can charge. If I charge it when its at 30-50%, it seems to work better.

Perhaps this is the wrong thread, but I'm becoming increasingly annoyed with my phone. If there was a suitable replacement ("high-end" phone that can fit in my hand) I'd dump this thing. I do appreciate that this ROM is still around, otherwise, I think I'd have no options.
[Xperia Z5 Compact Android Development] Superrman:
MODS that i use with lineage os 14.1

Make backup before just in case!

View attachment 4636191 install via TWRP, that mod reduced abit the heat

View attachment 4636192install via TWRP, that mod make the flash about 3 times brighter

View attachment 4636193 MODify sound file make even the call to stereo.. extract the file , drag the file to system\etc with any root explorer app and makethe file RW (replace with the old mixer_paths.xml)