yashsingh1/xdaforums huggingface dataset:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Ex Kernel Manager doesn't work in this ROM, but after some tests I can confirm the governor works fine. The phone was overheating because there were some processes acting in strange way comparing them to the stock ROM. I used 3C Task Manager to find the processes consuming CPU and I solved uninstalling the apps I really don't need and enabling battery limitation for ING Bank. Maybe there are some other optimizations I can do but now the phone is colder than before.

Instead, I want to report another issue: you can't disable the fingerprint sensor when the screen is off. As you can see in the image, disabling the switch has no effect.

View attachment 5958883
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
Yes , it's working fine.I am using it right now, v 2.96.I agree, v 2.98 give me fc app and not working.But v 2.96 = OK.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] yessey111:
Hi, I tried disabling the app but the bug still occurs. Do you disable anything else, or are there any other things specific about your setup?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Yesterday I had this bug for the first time, and today for the second time! So, nothing related to my configuration. But maybe chippa_a can better understand the issue because it happened exactly in the same way both times.

I plugged my phone to my car audio system via jack cable

Music started playing automatically (I'm using Poweramp)

After about 15-20 seconds music stopped playing

I immediately parked the car in a safe spot and I noticed Poweramp said it was force closed (but I think Android killed the audio server and not Poweramp because this bug never happened using bluetooth, and trust me, I stream my music via bluetooth a lot of hours a day :D)

After this event, speakers didn't work until reboot in both cases

There is also another little problem: the phone overheats so much. After a week of test I finally found the problems and managed to solve it :) I prepared two scripts and I'll spend some other days adjusting some values. When everything is ok, I'll share them with you in this thread.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
Please, try again and logcat.Maybe can help.

For me after 4 days sound stop only 1 time.

No play music,no calls.Phone it is used as a tablet.For test.

Drain battery it's very good.;)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
I'm using this beautiful ROM as primary driver for some weeks and I can confirm it's very stable. It's a pleasure having Android 13 on this phone!

This is a recap of the bugs I found:

- FIXED - Messaging app doesn't show notifications: solved disabling it and installing Google Messaging.

- NEED FIX - Disabling fingerprint unlock when screen is off has no effect, so you can still unlock the phone by fingerprint when screen is off (original post).

- NEED FIX - Wifi tethering stops working after 2-3 times. To reproduce the bug. enable and disable wifi tethering two or three times. In the last attempt wifi tethering (and wifi) will no longer work until the next reboot. I'll try to grab some logcat.

- NEED FIX - Audio stops working rarely and randomly (I think something related to jack and audioserver (original post). I'll try to grab some logcat.

- FIXED - High overheating: solved - see this post.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
REQUEST - ONLY IF CAN BE DONE!!!!

@Chippa_a, please add support for handsfree 4 buttons (MH1C in my case).It is a very good option.WE HAVE HARDWARE SUPPORT.We need to map buttons in kernel and maybe framework.

Headset button controller can controll phone when phone stay in the pocket.And it is very gooood:cowboy:

A little help in zip file.

Kernel source for XperiaM :https://github.com/cyanogenmod/android_kernel_sony_msm8x27 Can help.

Doc https://source.android.com/docs/core/interaction/accessories/headset/expected-behavior Can help

I can test boot.img,framework,rom,all you need.THANKS!!!!:cool:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
EDIT November 17th 2023: after the release of the new build (October 2023) a lot of issues were solved and some of these tweaks are not needed anymore. You can find my new script at this post.

Hi all, I changed my tweaks a lot since my last post. I changed the boost settings contained in /vendor/etc/perf/perfboostsconfig.xml and now the UI lag is solved too.

Thank you Chippa_a, if you don't want my stuff here, I'll remove everything immediately ;)

I noticed a strange overheating caused by some unconfigured settings, so I created three tweaks, each of which solves a specific problem.

Before proceeding, make sure your phone is rooted with Magisk.

You are free to do whatever you want with my scripts, but use them at your risk because I take no responsibility for everything can happen.

These tweaks are independent of each other but I suggest to apply 'los20tweaks.sh' and 'perfboostsconfig.xml' both to gain the best result. If you use 'los20tweaks.sh' alone, the UI will become a little laggy.

--- los20tweak.sh --- (Updated 2023/09/22)

I tweaked some schedutil governor parameters and disabled all /dev/stune boost in order to lower CPU usage. I don't care about performance, but the phone will be colder and will consume less power.

My values are very conservative, especially the big cluster up_rate_limit_us set to 1000000, so change them according to your needs.

I cannot figure why the values sometimes are not saved, so my workaround is strange: repeat the procedure 20 times. I know it's dirty but it works...

How to apply: copy this script in Magisk directory '/data/adb/service.d' and make it executable.

--- perfboostsconfig.xml ---

Be careful! This modification is permanent: backup the original file before proceding if you want to revert to the previous configuration.

I don't like the boost configuration provided by this ROM because in my opinion the file is malformed and contains some errors.

My version is similar to the one provided by the original firmware.

How to apply: replace 'perfboostsconfig.xml' contained in directory '/vendor/etc/perf/'.

--- thermal-engine.sh --- (Updated 2023/09/22)

The file '/vendor/etc/thermal-engine.conf' is empty. I created a proper thermal-engine.conf and tried it, but I noticed no difference, as if the system doesn't use it.

As a workaround, I created a service script that starts on boots and constantly checks the device temperature and changes the maximum frequencies of little cluster, big cluster and gpu.

This script will run in background, but the CPU usage is extremely low (practically 0%, you can test it by yourself) and it won't prevent deep sleep functionality.

How to apply: copy this script in Magisk directory '/data/adb/service.d' and make it executable.

Reboot your phone to apply the changes.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Hey @Chippa_a, I grabbed the logcat of wifi tethering ;)

Thank you :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Bergfex2:
Hello,

Has someone tried the FM-Radio-reciever? Does it work? THX.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
No.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
Ok guys!! HERE SOUND BUG!!!!:alien:

I can reproduce it again.

Maybe can HELP!

If you need more tell me.

at the end of time.

KERNEL: please change min frequency to 400(default).all cores.If you can,please do it.THANKS!;)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Can you tell us the steps to reproduce this bug please?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
See Files.zip

TWRP bug???Screenshot.Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] funkoot:
Great ROM, thanks Chippa_a for keeping this wonderful phone useable in 2023. My question, is there a microg version of the rom available or is it possible to flash microg without root. Is anyone running this ROM with Microg?

Thanks,

Dave
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Senz9090:
I noticed my phone overheat in a minute, current state no-root. if i apply only perfboostsconfig.xml, it will reduce the heat?

Thanks
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
No, if you apply only perfboostsconfig.xml governor settings are left unchanged, so your phone will overheat anyway.

In order to solve the temperature issue you need to apply los20tweak.sh because this will change some CPU and schedultils settings. Then I suggest to apply also perfboostsconfig.xml because this solves some lag produced by los20tweak.xml.

To better understand the combinations of these files:

- los20tweak.sh: optimized CPU usage, no overheating, UI can be laggy sometimes (e.g. when you pull down notifications bar)

- los20tweak.sh AND perfboostsconfig.sh (BEST RESULTS): optimized CPU usage, no overheating, no lag.

- perfboostsconfig.xml ONLY: just changes some boost configurations. Pretty useless if governor is not configured.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Senz9090:
Thanks for reply.

All of those .sh file means magisk right?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
You're welcome, yes, .sh files need to be placed in /data/adb/service.d Magisk directory. Overheating problem is fully solved except for camera. When camera is used, after about 10 minutes the phone becomes hot even if all maximum CPU and GPU frequencies are set to minimum (by the thermal-engine.sh script service).
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
Battery life.

Very good :).

Used as a tablet.No sim card.

If we ca fix sound bug........
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Hez0:
Has anyone experienced extreme battery drainage issues? This was on a fresh install of the latest rom with MindtheGapps and magisk. I noticed the battery draining while charging while on a video call. Turning brightness down to the lowest setting didnt do anything, neither did terminating the call and then turning the screen off. The phone eventually died.

I've wiped cache in recovery and am hoping this won't happen again.

I was using the same rom before with BitGapps, but I found there were a couple of issues that made me change: one was that upon restarting, it took a long time for apps to initalise, and the phone would lag for a good few minutes. This rom with Mindthegapps on the other hand is as smooth as butter! It's awesome, except for this battery drainage thing that just happened.

EDIt: The extreme drainage hasn't occured again, but I found google maps was draining the battery faster than it could charge. I'll keep monitoring.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
This ROM overheats very much while the camera is active. I think this is why you noticed the battery draining during a video call. But later you said the battery kept discharging, so this could be related to some process running. If you enabled developer feature, you can list running processes using this command: adb shell top. If you don't want to use a PC, you can install a task manager (I like 3C Task Manager).

Now let's talk about something else: I have two good news :D

1) I updated my scripts, especially los20tweak.sh, because I noticed the configuration sometimes was not applied. Now the scripts starts after 2 minutes and writes the settings 20 times every 7 seconds (as I said before, I know this is ugly... but I can't find another solution).

2) You'll be glad to know that now there's no need to restart your phone to have wifi and tethering working again! I want to share with you my workaround: just kill the process "android.hardware.wifi@1.0-service", Android will restart the service and wifi will work again. Just run this command as root in a terminal (or in Tasker)

killall android.hardware.wifi@1.0-service
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Hez0:
It turns out this was occurring because of the charger in the car. Nothing to do with the operating system. Loving this Rom with Mindthegapps so far. I don't understand how a gapps variant can affect how the phone operates so much.

EDIT: Just tried out this version of gcam and it works well:

Hasli: LMC8.4_R15

Download LMC8.4_R15 by Hasli.

www.celsoazevedo.com
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Hello again! I tried to reproduce the audio bug (by plugging and unplugging the jack cable) but I had no success. At least I managed to prevent PowerAmp being force closed just by disabling battery optimization.View attachment 6010785
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Hez0:
I took the time to try a bunch of gcam's. I tried at least one variant of the gcam's listed on this page (link below), that specifies that it is made for multiple phones (just CTRL + F "multiple" on the following link):

Google Camera Port Developers/Modders

Description about each Google Camera Port developer and links to their download pages.

www.celsoazevedo.com

Not the most thorough examination of all the gcam versions, but that's what I was willing to do.

Parrot043's version was the only one that I found that is able to take front camera shots (provided that you disable HDR and top/motion shot). Most of the others either crash when selecting the front camera or just won't take front camera pictures (even with HDR and top/motion shot disabled).

I then tried every Parrot043 version, starting from the newest versions, until I hit a version that worked properly. Most of the newer versions will crash when going into the settings menu. The newest version that works properly is 8.2.300 version 9, which can be found here:

Download da Gcam do modder parrot

Aqui você encontra o download das versões da Gcam disponibilizadas pelo dev (modder) parrot

gcambrasil.com.br

Note: I can't seem to get portrait mode to work though.

If you don't care about front camera, there is something noteworthy to mention with rear camera pictures and gcam variants: that is that some newer versions seem to take slightly poorer quality pictures when zooming in x2, and I suspect it is because it doesn't actually utilise the optical zoom of the lens, but just relies on digital. The reason why I suspect this is because those versions will x2 zoom instantly, while the others (like Parrot043's version) are kind of jittery in it's zooming in. Also, the poorer quality versions cut off more of the surrounding image (different aspect ratio) than the optically zoomed version pictures.

If you want to know if your version of gcam takes one type of picture or the other, you can differentiate the two by looking at the resolution of the image. The digital zoom x2 images will take pictures at 4574x3392, while the optical zoom x2 images will take them at 4208x3120.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] OlMon_00:
Thanks for this awesome ROM.

I Updated to the newest version, even installied 20230522 first to have no problems with the sensor. Everything seems fine, but I still have no sound in phone (normal call, whatsapp etc.) apps. Is there something I need to do?

I don't have any gapps installed, because I don't really use any functionality of it. Could this be a problem?

Would be happy to get some advice....

[I had some other ROMs installead before, maybe a stock ROM flash first would help?]

Update [fixed partially]:

After a lot of surfing on the web and just trying things I have sound in voice calls. I needed to change the following line in the /vendor/build.prop

from

persist.vendor.audio.fluence.voicecall=true

to

persist.vendor.audio.fluence.voicecall=false

I still can not use speaker while calling during phone calls though.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Hello, I want to share with you these two Tasker profiles I made to restart wifi service. They are triggered on a particular logcat event (see the code if you want to know more). Remember your phone needs to be rooted. How do they work? Suppose you want to enable wifi hotspot, you pull down the notification bar and click on hotspot icon. If a problem occurs, you'll notice the wifi will be disabled. My profile catches the logcat event and restarts wifi service. So just click again on hotspot button and it will work again 😊
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Chippa_a:
New build is available!

October 2023 security patches

VoLTE/VoWiFi support*

Touchscreen support for LineageOS recovery

LED support in offline charger and recovery modes

Mass blobs update

LineageOS upstream updates and fixes

* The settings are available to everyone, but this doesn't mean all works. If one of these features worked for you in stock, now it should work here. Therefore, please make sure about that... in case when support is detected, stock usually requests a reboot to install the appropriate modem firmware (this is mandatory). If this is your case, then please confirm if something is working in this build.

You can install the new build manually or using the built-in Updater app

Although the update method is available, I would like to advise to perform a clean installation because really a lot of changes have been made. Don't forget to make a backup in any case.

Reminder:
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Tri Akbar Fitriana:
@Chippa_a After updating to the latest version, my device froze and couldn't be touched or anything after the gear icon appears in the top left corner!!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] PuiuMarius2000:
Sound was fixed??Thanks.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] ipuzz:
wait for downloading ......
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Hez0:
Just a heads up that I've updated using the update method. I haven't experienced any problems yet. Thanks, Chippa.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
Hello Chippa! You nailed it! Here are my results. I just upgraded from previous version and I had the same problem quoted but that was completely my fault :D

### Solved issues ###

- Touchscreen not working (NOT A BUG): this was caused by magisk. I admit I was lazy and I just flashed the previous patched boot.img after installing the new release. After reboot the touchscreen was not working anymore. I solved plugging a mouse and upgrading again. Then I flashed again the new boot.img patched with magisk and now touchscreen is working again.

- Fingerprint is correctly disabled when the screen goes off (SOLVED).

- perfboostconfig.xml (SOLVED): now the boost values are correct. I think there's no need to use my version because this file is fine.

- Thermal manager (SOLVED): overheating is partially solved (schedutil is not configured yet). The maximum cpu frequencies are lowered when the temperature is high, so there's no need to use my magisk script 'thermal-engine.sh'.

### Unsolved issues ###

- Wifi hotspot (NEED FIX): Wifi tethering stops working after some attempts, but I have to say now happens less frequently. By the way, you can use my tasker profiles if you don't want to reboot your phone.

- CPU and governor not optimized (not really a bug): this is not a real issue, because now the thermal engine is working. But I just don't like these settings because the cpu usage can be tuned to make battery last longer. So, if you want an even cooler phone, you can use my magisk 'los20tweak.sh'.

Hats off to you Chippa :)
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] tomaschwutz:
After flashing the LOS20 ROM to the device using a new fastboot-installed TWRP 3.7, the phone boots into the splash-screen of TWRP and is stuck (for > 3hr).

If I try to reboot (vol+ power button) it again reboots to the TWRP splash screen and is stuck. Any other reboot -key combinations do not have any effect (Vol- power button with/without power cable attached and simultaneously attached).

I have to admit, that I did not care for the file/disc encryption and wiped only the Caches, because I thought I would not have any of these two on my LOS17 installation before. Was there a default encryption?

Other solutions to TWRP stuck in splash screen recommended to again fastboot the TWRP image to the device. How can I do that, when the phone is neither recognized by fastboot nor adb, and the boot into bootloader (Vol- and simultaneously connecting power cable) does not work?

What can I do now?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] tomaschwutz:
I managed to get into fastboot mode:

- switch the phone off completely by holding volume-up&power longer than second vibration

- then the volume-up-connect power cable mode worked

After flashing the older TWRP 3.6 version (was not enough)

and subsequently formatting the cache (was also not enough)

and userdata (that then was enough) partition,

the phone booted into Setup of LOS20 instead of the TWRP splash screen.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eusouumdiospiro:
Greetings!

First of all, thank you for all the hard work going into this ROM.

I'm not really sure if this is related with the ROM, with TWRP or something else, but hopefully someone here can point me in the right direction.

So I flashed TWRP 3.7.0_9-0, wiped the data (factory reset) and then flashed the latest LineageOS 20 and MindTheGapps (13.0 arm64). I eventually managed to have everything working more or less fine, it seems.

For context, I previously had LineageOS 16.0, but I don't remember which version of TWRP I had.

However, I have problem now, and I'm not sure if this started after flashing the recovery or the ROM. Basically if I turn off the phone I can't turn it on again. The power button doesn't seem to work when the phone is off. At this point if I plug the phone into the computer I can't detect it with adb or fastboot. But if I plug the phone into a powerbank, for instance, then it turns on automatically into the battery charging screen, and at this point if I press the power button it boots and everything seems normal. If I reboot I can go to TWRP by pressing the power button and volume down.

Another thing is that I was getting stuck in the TWRP logo after installing LineageOS 20. I fixed this by flashing the latest development version of TWRP (3.7.0_12-1-20231015). But it didn't change anything regarding the power button situation.

Can someone give me any clue into what I might have done wrong here?

Thanks!
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] Asta01:
Please read all Answer in this Thread. On the First Side:

„

For those who have issues with recovery after this ROM.

Please make sure you have installed latest unofficial version (3.7.0_12+) with support for the new FBE encryption method, as stated in OP. Older versions cannot decrypt data encrypted with this method!

„
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eusouumdiospiro:
Thanks for the reply.

I hadn't "processed" that bit of information initially. But I did install a 3.7.0_12+ version of TWRP afterwards, which is what I have now. So I currently don't have problems going into recovery. What I can't do is to turn on the phone without having it plugged into a charger first.

Is this somehow related? And if so, what would you recommend? Since I already have the appropriate TWRP, if I reinstall LineageOS, could this somehow fix the issue?
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] xxirioxx:
When something doesn't work, as I said other times in other threads I always suggest to flash the stock rom again using flashtool. This is a copy and paste from lineageos 19 thread. Wipe everything contained in the "sid" section: apps_log, diag, persist, qnovo, ssd, userdata. Then power on the phone and make you sure it completes the first boot, until you reach the home page of the launcher. Flash the custom rom only after you completed this step.
[Sony Xperia X Compact ROMs, Kernels, Recoveries, &] eusouumdiospiro:
I used the flashtool to flash the stock rom (wiping the "sid" section), and I managed to boot. Then I tried to flash TWRP again (different versions of it), but I never manage to boot into recovery. Also, the power button is still not triggering any reaction when the phone is off and not plugged to any charger.