yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] hazote:
Hi,

phone crash everytime: on put phone on after been locked, when trying to do something, when usb plug in...

I'm using stock 32.4.A.1.54 Nougat and magisk 16.

edit:wiped, re flashing rom, trwp: recovery_suzuran_230218 and kernel. actualy testing with a full clean rom (only kernel flashed).I will come back quickly

edit2: ok this is FSC and LXT thermal mod that make crash my phone :/

which version may I install for firmware 32.3.A.1.33 ?
[Xperia Z5 Compact Android Development] nestromc:
Thanks for the hard works guys, I´ve been using the kernel 16.06.2018 for 32.4.A.1.54 and it works greate.!
[Xperia Z5 Compact Android Development] Marmalux:
My phone also crash in some circumstances like low signall calling or usb internet share..... i also use Thermal FSC. (i`m on latest greenkernel and latest stock from xperifirm)
[Xperia Z5 Compact Android Development] trax7:
Here's some logs from the final 16.06 version :)

Crashed in YouTube. Crashes are rarer now but they still happen from time to time.
[Xperia Z5 Compact Android Development] trax7:
Forgot uploading :silly::silly::silly:
[Xperia Z5 Compact Android Development] ModyCZ:
I have a strange problem with 16.6. kernel that I hadn't with the 5.5. Sometimes (today for example) clock/alarm doesn't work. As soon as I wake the phone using power button, the alarm starts ringing. Doesn't happen when I test it during the day, only when I leave my phone in airplane mode over night (w/o charger). Any ideas?
[Xperia Z5 Compact Android Development] interestor:
I thought I'd try this kernel. Everything works fine. But it doesn't have root, and I don't want to fuss with all that Magisk stuff; I'll just put my other kernel back. But I can't figure out how to get to TWRP. Um, how do I get into recovery with this kernel?
[Xperia Z5 Compact Android Development] ModyCZ:
https://xdaforums.com/z5-compact/development/twrp-twrp-3-2-1-z5-compact-t3748952
[Xperia Z5 Compact Android Development] Superrman:
hey everyone im now on 15.5 work great 95% of the time (time to time random crash n reboot)

anyway i've tried to flash &TWRP the last version 16.6. and it dosnt flash it said "zip verification failed"

i need unchk that box?
[Xperia Z5 Compact Android Development] ModyCZ:
You mean you can't flash the 16.6. kernel? There are no md5 files so there is no way to verify the zip. So first redownload the zip and if it doesn't help uncheck whatever you checked.
[Xperia Z5 Compact Android Development] Superrman:
yup thanks

ive checked "zip file signature verification" >_<
[Xperia Z5 Compact Android Development] GreyLeshy:
The zip file is missing a signature.
[Xperia Z5 Compact Android Development] interestor:
Thanks. But I need to use the phone to flash, and other tasks. TWRP on the phone lets me flash.

Windows update broke adb, reinstalling one driver requires tricking windows with a complex process. Maintaining adb for this phone, Z5c, is difficult. I can't use adb now to install this TWRP.

Now that I have green kernel, Is there a way that I can get into the phone to install boot.img, or add TWRP?
[Xperia Z5 Compact Android Development] GreyLeshy:
Install the terminal on the device.

Flash:

dd if=/mnt/sdcard/boot.img of=/dev/block/bootdevice/by-name/boot
dd if=/mnt/sdcard/recovery.img of=/dev/block/bootdevice/by-name/FOTAKernel
[Xperia Z5 Compact Android Development] interestor:
This sounds like just what I need.

but I am getting dd: unknown operand dd

Can you tell what is going wrong?
[Xperia Z5 Compact Android Development] trax7:
It says it doesn't recognise what you wrote as the operand of the command i.e. you need the kernel (named boot.img) and twrp (named recovery.img) to be in /mnt/sdcard with these exact names and locations. Otherwise, there's no way it can work.
[Xperia Z5 Compact Android Development] interestor:
Thank you Trax7! I moved the recovery.img file there.

But now I get: of=/dev/block/... permission denied

What do you make of that?
[Xperia Z5 Compact Android Development] GreyLeshy:
Do You have root?
[Xperia Z5 Compact Android Development] h0lz:
Hello, can somebody tell me the settings for maximum battery saving ?
[Xperia Z5 Compact Android Development] Superrman:
hey after i unchecked the signature box

is said update process ended with error 7

help

thanks
[Xperia Z5 Compact Android Development] GreyLeshy:
* Use normal recovery.

* Remove a line from the file [META-INF\com\google\android\updater-script]: "assert(getprop("ro.product.board") == "E5823" || getprop("ro.product.device") == "suzuran");".
[Xperia Z5 Compact Android Development] Superrman:
thanks i removed that line, whats do mean normal recovery?

using a adb terminal instead of twrp?
[Xperia Z5 Compact Android Development] interestor:
I did have root. But then I put the green, and it doesn't have root, right?
[Xperia Z5 Compact Android Development] Superrman:
you need flash magsik su for root (i think) i rooted my phone about 60days ago

using 15.5 green kernel with stock rom
[Xperia Z5 Compact Android Development] interestor:
Thank you. But how is Magisk installed by the terminal emulator on the phone?

What other way can I get root thru the terminal?
[Xperia Z5 Compact Android Development] Superrman:
You dont have TWRP?

ive install TWRP recovery using CMD terminal with ADB command
[Xperia Z5 Compact Android Development] interestor:
I did have root. But then I put the green, and it doesn't have root.

What method can I use to get root thru the terminal now?

Thank you.
[Xperia Z5 Compact Android Development] trax7:
Root is gotten through flashing Magisk through TWRP.
[Xperia Z5 Compact Android Development] interestor:
Well, I did have TWRP also. That is how I flashed green kernel, but it seems to have overwritten or erased it. Unless there is a secret button combination to get in to TWRP, I can't get in to it now.

Is it possible I still have my original TWRP and I just haven't done the right button combo yet?
[Xperia Z5 Compact Android Development] GreyLeshy:
@interestor, stop spamming.
[Xperia Z5 Compact Android Development] interestor:
Hey I'm looking for help here. Not advertising something.

Thanks, you guys, for trying to help.
[Xperia Z5 Compact Android Development] GreyLeshy:
Without root and PC (adb), no one will help You here!

Create a separate thread...
[Xperia Z5 Compact Android Development] ModyCZ:
TWRP won't be overwritten by GreenKernel, you should still have it there. Although with GreenKernel you can get in TWRP only by using <POWER>+<VOL-DOWN> (after phone is powered down).

Calm down GreyLeshy. No need to be rude.
[Xperia Z5 Compact Android Development] GreyLeshy:
Stop flood, You digress from the subject of the thread.
[Xperia Z5 Compact Android Development] Superrman:
but y like this :(

, i was fan of your work, ive said my phone is rooted with pc n adb drivers,

with your kernel (right after the recovery i flashed your zips(like vulkan drivers and some more of your work) just the last one i couldn't flash

i need just flash the img file? with flashtool or sideload with adb via command shell?

there is newer version coming soon?

ive tried flash the zip (16.6) from your drop box
[Xperia Z5 Compact Android Development] GreyLeshy:
I beg your pardon. This message was not addressed to you.

There will be no new versions.

On github there are updates to version 1.16 (10.07). Security patches from July 2018 (angler).

You'll have to build the kernel yourself.

I'm using RC 10.
[Xperia Z5 Compact Android Development] trax7:
[MENTION=8041676]GreyLeshy[/MENTION] i have one question, i see a ramdisk branch for our beloved Z5C... Is it merged with the main branch and if not how do i test it out cause i see things i like? :D:D:p
[Xperia Z5 Compact Android Development] GreyLeshy:
At the moment ramdisk is compatible. Release 1.16.
[Xperia Z5 Compact Android Development] trax7:
Thanks! Oh and from testing i found out that your voltage settings stick way better now (they absolutely didn't work that stably before) but also my big CPU cluster gets just a bit unstable and i had a couple of reboots yesterday. I increased the higher frequencies by +5mV and the reboots disappeared (been running stably for many hours now so should be fine).

Here is the new voltage table with the tiny tweak:

"725 745 765 795 825 845 865 945 965 985 995 1005 735 735 735 805 835 865 900 910 915 930 945 960 970 980 1000"
[Xperia Z5 Compact Android Development] trax7:
Turns out those arent really stable too... : /

Edit: "735 745 765 795 825 845 865 945 975 995 1005 1010 745 745 745 825 850 875 900 915 925 935 950 975 1000 1000 1005" are the values. The device doesn't take kindly to undervolts of little cores. Only -5mV there, instead of -10 or -15. :)
[Xperia Z5 Compact Android Development] Superrman:
hey

i didnt find the 10.7 RC kernel

so im trying 16.6

[IMG="TWRP"]https://i.imgur.com/4gNiUjb.jpg[/IMG]

seems to boot faster so far. also

even after reflash zip like magisk

im also think camera and wifi are faster

good job !
[Xperia Z5 Compact Android Development] trax7:
Two logs of random reboots, right here. That's on the latest RC10.7.
[Xperia Z5 Compact Android Development] trax7:
Got back to 16.06 build [MENTION=8041676]GreyLeshy[/MENTION] built, latest Magisk and i got these logs after a reboot.
[Xperia Z5 Compact Android Development] :
Does a little cpu at 1.8 ghz use less power than a big cpu at 1.2 GHz?
[Xperia Z5 Compact Android Development] ouzqan:
Can you port for Z5 premium?
[Xperia Z5 Compact Android Development] GreyLeshy:
The source code in the free access. You can build kernel for Z5P/Z5/Z5C/Z3+.

I have no Z5P for the test and therefore I will not build!
[Xperia Z5 Compact Android Development] Nwb_Ed:
Device not recognized after flash Kernel

Hello, I'm Eduardo and would like to thanks first for the information and help you provide. I have a Z5 Compact (5823, 32.3.A.2.33), and yes, I didn't make the TA partition back up before unlock the bootloader (although I read and read before doing anything). I installed the TWRP 3.2.1, and could enter the recovery. I installed also the Magisk v.16 but it didn't get installed (the message received was that the Magisk cannot be installed on that Kernel due to the lack of partition, and to get a custom one). So I flashed the ROM to 32.4.A.1.54 (via Flashtool) and went OK (after that, there was no TWRP or Magisk file) and finally flashed Green Kernel v1.12.70. It went OK, but when I connect the phone to the laptop it is not reconized or charged (tried MIDI mode, usb 3.0 and 2.0 ports and nothing), but it charge ok with the charger.

Can you give me an advice about what is happening or a suggestion? I think to flash back to 32.3.A.2.33 and flash again Green Kernel.

Thank you in advance.
[Xperia Z5 Compact Android Development] ouzqan:
I have not info for kernel's building. But i can try.
[Xperia Z5 Compact Android Development] Superrman:
okay after a week+ using 16.6 , had few crashes after using the camera

illl try the july version (had smooth experience no crashing at all even on youtube before the camera)
[Xperia Z5 Compact Android Development] kinder112:
Hi, I've tried the stable version of GreenKernel along with latest stable LineageOS unfortunately I get a bootloop. Is this kernel only working with Stock Sony firmware or am I doing something wrong perhaps?
[Xperia Z5 Compact Android Development] :
It's written in the title and description that this kernel only works on the stock firmware.
[Xperia Z5 Compact Android Development] kinder112:
Thanks, and sorry for not reading correctly :p
[Xperia Z5 Compact Android Development] :
I finally got the kernel working and i have 2 questions:

1. Is the undervolting active by default? am i supposed to flash the uv table?

2. how can i increase the maximum frequency? i tried almost every governor and i can't set a clock speed higher than 1400+ mhz
[Xperia Z5 Compact Android Development] GreyLeshy:
1. No. Use UV_mV_table.

2. You may have overheated CPU, let it cool to 37-40 °C.
[Xperia Z5 Compact Android Development] :
The clock speeds are working fine now, what do you mean by "use uv mV table"?

Do i need to flash it?
[Xperia Z5 Compact Android Development] trax7:
Yes.
[Xperia Z5 Compact Android Development] :
Are these correct?

It looks odd to me that 2016 Mhz has a lower voltage than 1958
[Xperia Z5 Compact Android Development] trax7:
Does your device reboot with these settings?
[Xperia Z5 Compact Android Development] :
i installed the kernel 2 days ago and it never rebooted, also made a few benchmarks at maximum frequency
[Xperia Z5 Compact Android Development] trax7:
Its the minimum frequencies I'm worried about. My big cores wont go under 755mV without reboots at some point. Above 600MHz everything is okay though.

Also touching the little cores is a no-no. There only the lowest frequency is okay to undervolt with his settings (725mV).

Edit: Wow, your big cores are going VERY low. Mine are at 995mV for 2000MHz, did they automatically go that low?
[Xperia Z5 Compact Android Development] mlleemiles:
Mine go even lower and I haven't encountered any reboot recently (6.16 Kernel)
[Xperia Z5 Compact Android Development] :
if i try to make them go lower and i start getting issues how can i revert the settings back? can this cause real damage to the processor?

Also, is that the Android p navbar?
[Xperia Z5 Compact Android Development] trax7:
Just remove the Magisk mod if its on Magisk or reflash.

No.

And yes.
[Xperia Z5 Compact Android Development] :
Do you know where can i download the navbar?

btw i tried to tweak the voltages but most of them won't go down, whem i type in the number it goes back to default or it gets just slightly lower

Any ideas?
[Xperia Z5 Compact Android Development] trax7:
The idea is to not touch them anymore :D. About the navbar, maybe with Substratum.
[Xperia Z5 Compact Android Development] mlleemiles:
I themed my Z5C personally and the nav buttons are just images/drawables. But lets keep on topic :D
[Xperia Z5 Compact Android Development] :
i touched them and... they finally saved this time

i set the same voltages as the ones from [MENTION=6823916]mlleemiles[/MENTION] and so far it looks stable (made a full GeekBench benchmark and had no reboots)

if they keep being stable for 24 hours i think i will try going even a bit under

btw, are you sure those random reboots aren't coming from something else like a conflict with the undervolting or something? did you try to factory reset? it's very odd that you were so unlucky in the "Silicon Lottery"
[Xperia Z5 Compact Android Development] :
1 hour elapsed and these settings look stable.
[Xperia Z5 Compact Android Development] trax7:
Im almost sure you will have a reboot with those cause damn - they are low. Your device must stay chill af mate :D i envy you a bit.

I got a reboot after a few hours later when i touched the 2GHz to make it 975mV. Touching the little cores anywhere or lowering the big cores 600MHz and lower causes me reboots. These settings are stable for me. [MENTION=8041676]GreyLeshy[/MENTION] 's settings give me reboots. This, however, is stable for me on the newest 06.07 kernel. Notice how the settings are the same with the exception of big cores' lower frequencies and little cores' higher frequencies. :)

Edit: make that 985mV for 2GHz...
[Xperia Z5 Compact Android Development] :
is the 06.07 a nightly or what?

i am using the v1.12.70
[Xperia Z5 Compact Android Development] trax7:
Yes, a way newer nightly. Difference is night and day. It's from the dropbox link on OP.
[Xperia Z5 Compact Android Development] :
isn't there a changelog for the nightly? what's the difference?
[Xperia Z5 Compact Android Development] trax7:
No changelog, you would have to sift through the commits on github (many many many commits) to find what is changed. I can assure you though - its a lot. The devs gave us a fixed and way more optimised kernel than stock and their work is more than fantastic, its how our device should perform.
[Xperia Z5 Compact Android Development] :
3 hours of use later, still no reboots and an incredibile battery Life + barely any heat, the drain while in standby with airplane mode + no wifi was 0%, impressive.

I only did light usage tho

Edit: i am using MicroG instead of play services + the FairPark Governor tweaks
[Xperia Z5 Compact Android Development] yaqwsx:cz:
I installed green kernel. However after that my Z5C does not report to a computer via USB - there is no screen what action to do, dmesg on PC shows nothing. When I flash the stock kernel again, USB works again. What could be wrong?
[Xperia Z5 Compact Android Development] carmafun:
Does anyone have troubles with safety net checks with version 1.16? I have updated from nightly version of 16.06.2018 to try to fix random reboots, but now safety net checks fail (I'm using magisk 16 if it matters).
[Xperia Z5 Compact Android Development] :
Wich version did you install?

does it happen with all of them?
[Xperia Z5 Compact Android Development] yaqwsx:cz:
I tried the the 2 latest one. My firmware is 'E5823_Vodafone CZ_1298-7648_32.4.A.1.54_R3E'
[Xperia Z5 Compact Android Development] :
Try the Customized CZ firmware.
[Xperia Z5 Compact Android Development] yaqwsx:cz:
Could you please provide me a link or something? I am new to flashing Xperias and I have no overview of the firmware/ROMs. Thank you in advance!
[Xperia Z5 Compact Android Development] trax7:
Search for Androxyde's Flashtool. XperiFirm is bundled inside and there you have all the firmware versions for download. :)
[Xperia Z5 Compact Android Development] yaqwsx:cz:
The firmware I flashed is the one obtained through XperiFirm. What does it mean for ROM "to be custom"? I expected that all the firmwares from XperiFirm are the stock one.
[Xperia Z5 Compact Android Development] :
You can find the Customized version through xperifirm. The Vodafone firmware is a branded version.
[Xperia Z5 Compact Android Development] yaqwsx:cz:
I flashed E5823_Customized CE1_1298-7258_32.4.A.1.54_R1E and there is no difference with the green kernel.
[Xperia Z5 Compact Android Development] :
so you are getting the same problem? very strange... does the mtp transfer from twrp?

also, try the v1.12.70
[Xperia Z5 Compact Android Development] yaqwsx:cz:
The same, when I connect the phone to the PC, it beeps, but it does not communicate with the PC. The same for v1.12
[Xperia Z5 Compact Android Development] :
are you enabling USB share using the notification that appears when you plug in?
[Xperia Z5 Compact Android Development] yaqwsx:cz:
When I connect the phone, there is no notification. Also ADB does not work as the phone does not enumerate to the PC.
[Xperia Z5 Compact Android Development] :
But does TWRP file transfer work?
[Xperia Z5 Compact Android Development] trax7:
This is getting off-topic. If you want further help, open a new thread in Q/A. The last answer from me:

ADB works, if it doesn't work for you then

A) You have not enabled it from Developer Options

B) Your USB cable is bad

C) You dont have drivers installed on your PC

The reboots are long gone. Disable any kind of undervolting or Tweaks you have made and you won't have reboots. Undervolting is device specific and ppl will get different results - for example GreyLeshy's settings don't work for me but some ppl can go even lower. Test and see what works for you. I guarantee it's not the kernel's fault... :)
[Xperia Z5 Compact Android Development] yaqwsx:cz:
I am sorry for being rude (as I am the one asking for help). But please, read all my observations. Here's the summary:

1) I flashed E5823_Customized CE1_1298-7258_32.4.A.1.54_R1E.

- when I connect the phone to a PC, notification appears about what action should be done

- when I enable developer mode, ADB works

2) I shutdown the phone, connect it in fastboot mode and via FlashTool I flash Green Kernel

3) I start the device

- when I connect the SAME cable, phone beeps, no notification

- ADB does not work

- when I check dmesg on PC, there's no activity

- if I further debug it using USB analysis tools, the phone does not respond to the control transfers made by host to enumerate the device

4) I flash back the kernel from E5823_Customized CE1_1298-7258_32.4.A.1.54_R1E

5) I boot the phone and connect it to PC using the SAME cable

- when I connect the phone to a PC, notification appears about what action should be done

- ADB works

There is NO tweaking done, the phone is freshly booted after flashing the new kernel.
[Xperia Z5 Compact Android Development] GreyLeshy:
Install the kernel using TWRP.
[Xperia Z5 Compact Android Development] yaqwsx:cz:
It works! Thank you a lot!
[Xperia Z5 Compact Android Development] trax7:
Hmm... I got a reboot with latest 8.08 RC 11 - generic file aio read from shared process. [MENTION=8041676]GreyLeshy[/MENTION] here's logs, maybe they are useful to you :)

Edit: was only 1 time occurence :D
[Xperia Z5 Compact Android Development] mlleemiles:
Funny enough that I got reboots with all the nightly kernels whenever I'm in the second phase of antutu GPU benchmark. Phone was reflashed with Customized UK firmware and no undervolting. I wasn't able to get any log at the moment because of swollen battery inside my phone, unfortunately :(
[Xperia Z5 Compact Android Development] trax7:
Well theres your reboot cause. Hardware defects. If you have any, sorry, we probably can't help...
[Xperia Z5 Compact Android Development] trax7:
Another set of logs [MENTION=8041676]GreyLeshy[/MENTION]. Sometimes (rarely) I find out that my phone has rebooted during charging. Here's what I can provide for now. Latest version but also has happened om previous ones. :)
[Xperia Z5 Compact Android Development] trax7:
[MENTION=8041676]GreyLeshy[/MENTION] A new set of logs. Reboots are very rare but this happened while just using Messenger. :)
[Xperia Z5 Compact Android Development] ouzqan:
Hi man

How can port this kernel for z5 premium
[Xperia Z5 Compact Android Development] GreyLeshy:
You need to build the kernel yourself and make changes to the ramdisk.
[Xperia Z5 Compact Android Development] svekke01:
Is it possible to charge the phone with a otg (Y) cable in this kernel? I need to plug in a usb device and charge the phone, but otg charging is disabled in stock .54 kernel.

I found kernel patches for this in the following topic but I don't know how to build a kernel.
[Xperia Z5 Compact Android Development] tolgatk:
can you do it because we need so much:fingers-crossed:
[Xperia Z5 Compact Android Development] ouzqan:
Exactly. We need New kernel for Z5 premium.
[Xperia Z5 Compact Android Development] Superrman:
ive tried this week lastest kernel

27.8.18 RC11

its the best kernel so far (at least for me no reboots or something) phone is powerd on 100hrs non-stop

thanks to grey ^^
[Xperia Z5 Compact Android Development] n00b0815de:
Flash via TWRP?

Sorry to say, but for me there is no difference between TWRP flashing and/or fastboot. Either way, no USB functionality.
[MENTION=8041676]GreyLeshy[/MENTION]: Could you please elaborate on possible beneficial effects of using TWRP?
[Xperia Z5 Compact Android Development] trax7:
Whatever you see written on the screen when flashing in TWRP is the benefits. Thats all the kernel modules, thermal management, security features, etc.
[Xperia Z5 Compact Android Development] n00b0815de:
USB functionality

Thanks.

Is there any way of finding out why exactly USB doesn't work?
[Xperia Z5 Compact Android Development] GreyLeshy:
https://xdaforums.com/showpost.php?p=77390179&postcount=714
[Xperia Z5 Compact Android Development] fredyfartas:
hello, and what exactly do you use because with the customized noba 1298-7782_32.4.A.1.54_R5E there are always restarts with any green
[Xperia Z5 Compact Android Development] n00b0815de:
Well, that's what I did. But I didn't get any error messages.

TWRP (3.2.3-0) goes from "Calculating restore details..." straight to "[IMAGE FLASH COMPLETED]".
[Xperia Z5 Compact Android Development] n00b0815de:
I have written Twrp's dmesg log to disk.

The only USB related errors I see are usb_otg_vreg related. It complains about not finding the Vin pin. Ultimately the log states it as disabled.

No visible usbcore errors.

One line says "no usb2 PHY found".

Otg_wakelock_init goes in a similar way :"no USB transceiver found"