yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M2] sgspluss:
Troubleshooting

Video recording

Video recording is broken in stock camera, just install

https://play.google.com/store/apps/details?id=com.simplemobiletools.camera

as workaround for now.

Playstore show not certified

Try to clean app data and cache first, if its not working for any reason read this

https://www.xda-developers.com/how-to-fix-device-not-certified-by-google-error/

Low RAM Configuration

Add the four lines into your build.prop with any rootexplorer you want, save it and restart your phone to activate them.

# Low memory device
ro.config.low_ram=true
# Force high-end graphics in low ram mode
persist.sys.force_highendgfx=true

If you need more information read this

https://source.android.com/devices/tech/perf/low-ram#intro
[Sony Xperia M2] hooooossamq:
did you fix some problems in this version?

i mean is there any different from the rom BETA 2?

and what abut laging? did you fix it?
[Sony Xperia M2] sgspluss:
Telephone works now, also timekeeping seems to work and not many lags faced yet.

Please try it on yourself, did not have much time to test every build because of my little family and work.

Every feedback is welcome! ;)
[Sony Xperia M2] hooooossamq:
thank you by the way to complete bulding this rom.what abt adding sony m2 stock cam app? from kitkat 4.4.4 maybe because its better than cam in v 5.1

---------- Post added at 04:39 PM ---------- Previous post was at 04:36 PM ----------

great news..iam ready for start testing..i will report if i found somthing
[Sony Xperia M2] JuniorCaesar:
snap is better because it uses newer drivers and open source (like the rom itself). and there is no point if you add sony camera because it is an AOSP rom, it meant to be pure android (except lineage tweaks)

Also [MENTION=4920940]sgspluss[/MENTION] , is this rom deodexed? if not, can you make it deodexed, it will make customisation easier
[Sony Xperia M2] sgspluss:
Thats not that easy as you think, because need to port this app to the api, but apart of this i want to stay close as possible to lineage.

Afaik there will be no odex files, if there are one i will change it in next update. To be honest, did not check it.
[Sony Xperia M2] Hrustus:
Very nice to see new build :) But unfortunately I'll have time to play with it in this or next weekend :/

[MENTION=4920940]sgspluss[/MENTION] do you know why Magisk don't work on previous builds? M2 is no longer supported by Magisk or it's just fixable in the next builds? :P
[Sony Xperia M2] hooooossamq:
after a test i notice these bugs:

1- laging so much after installing opera mini and es file Explorer.

2- over heating in charging bluged and using net for 10 minute.

3- in the screen setting / style/ auto day and night. itsnot working.

4- the lightbar not working even if i enable the light settings.
[Sony Xperia M2] sgspluss:
Sadly its not fixed, just test it now on myself and magisk not working, do you know any version where its working befor?

Are they also present in builds befor?
[Sony Xperia M2] Hrustus:
Unfortunately no, but maybe somebody else remember version. Hmmm... Actually I am not sure that Magisc was working on LineageOS or on Ressurection ROM... :eek:
[Sony Xperia M2] hooooossamq:
the lag is much more in your bulid..light bar was working in BEAT 2.

style day and night bug was present in BETA 2..

i was test ALPHA 4 before.every thing working of the bug i say before expact the light bar.and its the most smoth version.. its lagy.. but most smother than all
[Sony Xperia M2] sgspluss:
About problem with magisk, we are also unable to install the magisk manager will look into it whats the reason.

About lags and bugs its strange because i am using same sources, as you can read.

If Something not working logs are helpfull otherwise it takes more time to figure out whats wrong.

What you can do about lags, install supersu from lingeage 14.1 (currently the one from lineage 15.1 and magisk are broken), go into your build.prop, search ro.config.low_ram=true, remove this line and safe build.prop, now restart your phone and test if lags are better.
[Sony Xperia M2] JuniorCaesar:
and here goes my report (very early report, i will add more information)

1-) without gapps, there is some frame dropping in animations and recent apps section (with or without android go mode) but it is same as beta 2, but a bit slower than 8.0 versions. i wonder is there a huge change under the hood between two versions :)

2-) no lag present in bootanimation, that's unexpected :P

3-) front camera video works

4-) dark mode works just fine

summary: our device can't handle gapps, that's what i see here. there are minimal frame droppings. also rom is odexed sadly
[Sony Xperia M2] sgspluss:
Just invest some minutes about the magisk problem, seems that we are not compatible yet or never was. But you can send the developer logs, he will look into it, it has nothing to do with rom, lucky me at this point.

About the .odex files that seems to be normal, also can be found on other devices, so there i can not do anything.

Also flashed Alpha4 doesnt be smoother its just uses more animations and some more graphic things related to not using go optimization, also takes more ram, because of not using go optimization so this will be preserved also in the future.
[Sony Xperia M2] JuniorCaesar:
go optimization is better for our device for sure, but this recent apps lag holds me back. but without go and using microg, rom holds up pretty good actually.
[Sony Xperia M2] sgspluss:
As written bevor try to remove ro.config.low_ram=true from build.prop and tell me if this problems you faced will be fixed. All other go optimizations are not changeable manually.

If this will solve the problem, will remove it for future builds, thats fixed for all.
[Sony Xperia M2] JuniorCaesar:
as i said before, i am using rom with low_ram=false, and there is less lag compared to go enabled mode.
[Sony Xperia M2] cmauribon:
hello :)

Me too "low_ram=false" make my m2 less laggy

Thank you for your work
[Sony Xperia M2] sgspluss:
Thank you both, will delete it in next build that its fixed for everyone. :good:
[Sony Xperia M2] hooooossamq:
i know its not the right theard to my qustion but>>>

i flash the stock v5.1 rom and i was unlock the bl before i update bl too root it but when i try to install xposed throw recovery its give a bootloop? its not happend with me before.so whats wrong?
[Sony Xperia M2] JuniorCaesar:
xposed is not supported in stock rom (because of corrupted services.odex). it was written in first post of xposed thread, you should read it :)

anyway z2 port has xposed support if i remember correctly, you can use that
[Sony Xperia M2] hooooossamq:
i search for that in google but i dont come to that...hmmm thanks by the way:good:
[Sony Xperia M2] JuniorCaesar:
it seems like cpu cores do not lower their frequencies when the device is in idle state.

false alarm, reboot took care of it
[Sony Xperia M2] sgspluss:
New update is out...

If you want to know whats new, read post #2 https://xdaforums.com/showpost.php?p=76849988&postcount=2
[Sony Xperia M2] ARandomIndian:
Crazy seeing builds still on this device

I can help provide this device for testing or flashing after a month or so busy ATM

We should try to get selinux enforcing on this old man.
[Sony Xperia M2] sgspluss:
Will look at selinux if rest are stable, so did not have forget it ;)

Anyway, hope the last update have better performance now?

Also will work on lineage 14.1 also, got already an bootable build but without camera...

New build is running now, takes 3 hours for the server, after that i hope we got also camera.

Stay tuned whats comming next few month. ;)
[Sony Xperia M2] sgspluss:
After i saw many requests about other roms i've opend a poll in q&a section.

Be free and vote/discuss about your favourite rom which you want to see next: https://xdaforums.com/xperia-m2/help/rom-to-t3806936
[Sony Xperia M2] dzenius:
video recording lags

Hello, video recording laggy on stock camera , a better camera and LGcamera apps. On my m2 aqua :(

In other builds (beta1, beta2) was fine.
[Sony Xperia M2] f2065:
+1

The camera makes an incorrect video (if you then see it on the computer - it's very much twitching - it seems that the sequence of frames or stop frames in the stream is broken).

At any resolutions (1080p, 720p, 480p) the problem.

I have M2 Aqua, D2403 Rev.5
[Sony Xperia M2] JuniorCaesar:
yeah, video recording is laggy. in the meantime you can use footej camera

also for lags, i am using first build with go and xposed. Oreo Tint Remover tweak speeds up the animations significantly, you can give it a try :)
[Sony Xperia M2] sgspluss:
Thanks for reporting about camera, will take a look into it.

About tint will look, don't actually know what that is.

And a quick question, how is the volume for you, just find it too low or what you say?

If anyone would like to test something let it me know, i will send you an PM.

It require root and any root explorer, and you should be able to change something in code...
[Sony Xperia M2] JuniorCaesar:
it makes a wallpaper colours gradient and applies to notification area and lock screen, also responsible for inverting ui elements color when white wallpaper applied (clock and statusbar icons turns black etc)

for volume, many people don't want high levels or low levels. i think you should leave it as it is or raise a bit higher (88 or 90 ish). and for those don't know how to change it, here you go:

-go to /system/vendor/etc/ and open mixer_paths.xml file.

-edit those values:

RX1 and RX2 Digital Volume: Earphone levels, i recommend 90 or 95 for them

RX3 Digital Volume: Speaker, 90 or 92 is enough for me

and save the file, give permissions rw-r-r (644)
[Sony Xperia M2] sgspluss:
For me just find videos and music over speaker offers quite low sound, but it also can my phone. Tested 92 which sounds better and louder of course, now can hear everything.

Thats the reason why i am asking, if anyone faced low sound also.
[Sony Xperia M2] f2065:
Audio recording almost does not work - there is a record but records do not hear anything. Recorded only very loud sounds.

Everywhere: in the stock recorder, in the stock camera, in the Footej Camera.

This is as it should be?
[Sony Xperia M2] JuniorCaesar:
what build you're on? i am on build 1 and i have no problems
[Sony Xperia M2] f2065:
lineage-15.1-20180619-UNOFFICIAL-eagle.zip

Only a loud voice is recorded (like when talking on the phone). Normal background sounds are not recorded.

And the bug with i2c driver failure is still there. After some time (from several hours to several days).

The proximity sensors, accelerometer, compass, etc. stop working.

This occurs only on M2 with alternative sensors.

Can it somehow fix it? Enable additional debug-logs to find such problems?
[Sony Xperia M2] sgspluss:
I even took it over, bugfixes needs time but i am aware and will give my best.

As soon as you can provide any logs, please do it, it makes easier to find out whats wrong.
[Sony Xperia M2] Zaula:
It's only me or a bug? I can't install any apps from unknown source nor gapps?

Maybe I'll try to clean install later.
[Sony Xperia M2] sgspluss:
No problem here after clean flash with my gapps...

You should try it also.

BTW: on next update you got 2 flavours, one same as now with go optimization and the new without them.

Then you can take the one you want and test for your self which is better.
[Sony Xperia M2] Zaula:
Yea, 1st attempt, I tried to flash latest magiska zip after doing ROM + Gapps, then it could boot, but then it can't install any apps.

Then, I did clean flash without magiska, it works perfectly.

So I wondering how to root on this ROM? I used to use SuperSU, but recently going into magiska (on previous ROM).
[Sony Xperia M2] JuniorCaesar:
these questions has been answered for billion times in this thread and previous 8.1 thread, please consider searching before asking a question ;)
[Sony Xperia M2] sgspluss:
[MENTION=6903341]Zaula[/MENTION] flash supersu from lineage 14.1 and you will good to go, supersu from 15.1 or magisk caused problems.

[MENTION=535343]all[/MENTION] now i faced also video bug, laggy if you play it galary or on computer.

This is NOT fixed in comming update, also NOT fixed the loudness on speaker.

Now you may asking why, because today i'll just want release unoffical build (this without go optimization) and to be at the same level.

After releasing its bug fix time, then will fix bug after bug that we can call lineage 15.1 stable soon.
[Sony Xperia M2] Zaula:
My bad, I just realized that I didn't re-edit my post. Yes, I've found it.

Thanks, maybe I'll pass it for now, since I want to test this ROM for my daily uses first.

Alright, It's okay, I appreciate your work.
[Sony Xperia M2] sgspluss:
New update is out...

If you want to know whats new, read post #2 https://xdaforums.com/showpost.php?p=76849988&postcount=2

Combined both lineage roms here in one thread, think changelog is readable as its written.

Also add "what's not working" list in first post, to avoid the same messages again and again.
[Sony Xperia M2] walkman-610:
livedisplay does not work. archive for correction
[Sony Xperia M2] walkman-610:
Fix
[Sony Xperia M2] sgspluss:
What does this fix do?

Find out [MENTION=8466991]martindroid[/MENTION] is creator, maybe he can tell us...

If its working and he can tell whats changed will add it into the sources.
[Sony Xperia M2] JuniorCaesar:
it enables live display and color tempature slider
[Sony Xperia M2] sgspluss:
At the moment i am building test for camera, after that will insert the fix for live display and build again for a test.

As you can see camera is actually where i am working on, live display is hopefully just a little side thing.
[Sony Xperia M2] Jack Cisco:
Thanks for that, I was trying to find out why it was being weird while using 15.1 LineageOS SuperSU, apps saying it's rooted but nothing asking for root, and I wasn't sure if it was a good idea to flash something for an older version. Apps still don't ask for root, but they work.

Something I noticed that is not working, is that I use my phone to play music through my car stereo via USB. Usually I'd plug it in, the stereo would detect that it's Android and set itself to audio mode, then I could use the stereo buttons to control the music from the phone, though now it is in a loop. It detects Android, sets to audio mode, I can make audio come out then it stops and goes back to the start as if I just plugged it in and continues on like that. If logs from something somewhere would be of use for you, let me know how I can get them and I am more than happy to get them for you, as logs always make it easier to fix things!

I also want to say a massive thanks for sharing your work for us to enjoy, as this has breathed new life into my 4 year old phone! I couldn't do any video recording to record my memories of partying in low light, so once you've fixed that, this will be a dream!
[Sony Xperia M2] sgspluss:
Of course logs helps always, how you can get them you can read here: https://xdaforums.com/showthread.php?t=2274119

Also thanks for your warm words, but all thanks goes to [MENTION=4550509]Konstantinosj77[/MENTION] [MENTION=4635923]galaxyfreak[/MENTION] i just try to hold it up to date.

EDIT:

Livedisplay will be fixed in next update, now will work again on camera.

EDIT2:

Camera need more work as i thought, it has something to do with OMX driver. Maybe we can fallback to camera2 api but this is not the best solution and not sure if it will work. So will investigate time to fix camera, but when i get it work, we will see.
[Sony Xperia M2] ruditremonti:
maybe you should also see thermal manager.

when I plug into power, my m2 is always hot. and make the processor stuck at 300mhz.

but not if I turn off/low set the screen brightness.

but sorry I did not know to make logcat.

I hope you can fix it.

Thx

---------- Post added at 12:51 PM ---------- Previous post was at 12:48 PM ----------

and I see this problem also on lineage 13 & 14.
[Sony Xperia M2] f2065:
Sometimes (1-2 times a day), the phone reboots when working in Chrome, Dolphin. But how do I find the reason after rebooting? Logs cleaned up after the restart.

A few hours later stops working dmesg

I enter the terminal commands:

su

dmesg -T

and I see that the last time behind for a few hours. And I can not save the current log at the beginning of various bugs.

dmesg -C, dmesg -c - do not help.

dmesg -n 9 - not supported (although the help is specified)

dmesg -n 8 - after a few hours results in a reboot

Such problems with dmesg for a long time, in the old firmware too.

I configured SH Script Runner, the script (with root-mode):

dmesg -c -T >/sdcard/dmesg_$(date +%Y-%m-%d_%H-%M-%S).log

logcat -d >/sdcard/logcat_$(date +%Y-%m-%d_%H-%M-%S).log

for periodic collection of logs
[Sony Xperia M2] sgspluss:
one post above yours you find the answer how you can get a logcat and dmsg.

Did not faced such problems yet, and i am using logcat and dmesg a lot to figure out whats wrong with camera.

How did you flash the rom, clean or dirty, if dirty try it clean otherwise try to get logs while normal using the phone before reboot, maybe this helps me, but no promisses.
[Sony Xperia M2] mantazzo:
Just wondering, could you look later into Recovery Reboot/Boot to normal when charger is connected? As far as I know all previous 7.1.2 builds (maybe 8.1 too?) had an issue where if you try to turn on the phone with the charger/USB cable connected (and in charging animation) it just boots again into charging animation, until you disconnect the charger/cable. Also, if you try to do Advanced reboot to Recovery/Bootloader, it fails (I know this exists for both 7.1.2 and 8.1 roms). It's not a big deal, but if you would manage to fix these also, I'd be very grateful. :)
[Sony Xperia M2] sgspluss:
This sounds interessting and if i am remember corectly had same problem on other device too, but not sure... Anyway will look into it.

If i am not completely wrong this problems have many sony devices, i will look around maybe there is any fix out, if not then we can also do not much.

BTW played today a bit with camera, its not that easy i thought.

Hal3 is not working at all (camera force closed immediately) and other OMX blobs are also not working.

This means it needs much more investigation to get the camera fully working, for all who need fully working camera please be free and test lineage 14.1, until i got it fixed.
[Sony Xperia M2] f2065:
dmesg with the -T switch shows the last time after eg 5 hours of work?

I have 3…8 hours dmesg ceases to show the new entries (this is clearly visible on the switch -T - hours in the log).

A bug with stopping records in dmesg in a few hours - in all LineageOS 14, 15. I already noticed this for a long time. Clean reinstallations do not help.

See the screenshots, you can clearly see that the time lag in DMESG is increasing from the clock in the upper right corner.

At 19:30, I rebooted and started doing dmesg -T

First - 2 minutes lag.

After 2 hours (21:30) - 25 minute lag.

After 4 hours (23:20) - 1 hour 20 minutes lag.

After 5 hours (00:40) - 2 hours and 36 minutes lag.

After 13 hours (at 09:04) - lag 9 hours

After 15 hours (at 10:30) - lag 10 hours.
[Sony Xperia M2] f2065:
Here again i2c bus stopped working.

And in the log dmesg - data 12 hours ago! Now 15:28 - in the logs 03:22.

And how to understand why i2c stops working?
[Sony Xperia M2] sgspluss:
If you would send me logs in .txt format i can look into it, just screenshots doesnt help me.

I dont know whats going wrong, in my logs there are many errors not only camera but to fix them (as many times written) it needs time.

Again, for all who want a stable rom use lineage 14.1 at the moment unitl more bugs are fixed, for all who can live with bugs you can use this rom.
[Sony Xperia M2] Jack Cisco:
Hello!

You will find some logs here: https://paste.ubuntu.com/p/wM9RXC76qN/. I believe the line around where it all starts might be 1646: "06-30 21:32:51.327 790 846 I UsbDeviceManager: Setting USB config to audio_source,adb"

That sounds like something it would do after I plug it into my car stereo. Then I had it do the loop a few times and unplugged it.

Hopefully these are of use to you and the issue is easy to fix!
[Sony Xperia M2] sgspluss:
Added Troubleshooting in post 3, there you'll find some interessting informations about camera and more.

https://xdaforums.com/showpost.php?p=76850001&postcount=3
[Sony Xperia M2] dzenius:
Hi ,found one more bug - unable use of GPS navigation - signal constantly lost(google maps, sygic), phone D2406.
[Sony Xperia M2] sgspluss:
Logs? Just report is not eneoght because it could be everything, need logs for such bugs.
[Sony Xperia M2] f2065:
At me too GPS works very badly. It fixes the signal for a long time, often losing satellites during the movement (although it sees more than 10 satellites).

This is a problem in all 7.x and 8.x firmware.

I recently returned to the stock 5.1.1 - and made sure that there is GPS works very well, quickly catches the signal loses satellites (on the same tracks where 8.x firmware constantly losing signal).

Probably we need to compare the work of A-GPS.

Differences in gps.conf of 5 and 8 firmware:

CAPABILITIES in 5 with the ON_DEMAND_TIME flag

NMEA_PROVIDER in 5 mode Application Processor, in 8 mode Modem Processor

XTRA_SERVER - different file names

XTRA_VERSION_CHECK

NTP_SERVER

USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL
[Sony Xperia M2] sgspluss:
This sounds like a blob problem to me, but as written without any logs, i can do not anything.
[Sony Xperia M2] f2065:
What logs should be provided? dmesg and logcat?

I tried to use gps.conf from 5.1.1 / 18.6.A.0.182 - but the problem is exactly the same.

Mode "only GPS" (in the mode for all sources - many obvious errors).

Uses about 10 satellites, accuracy of 3 meters, and through 10-20 km of road - fixation disappears!

Strange disappears - sees a lot of satellites, but does not fix them.

I'm loading AGPS data (in the GPS Status program) - and immediately normal fixation.
[Sony Xperia M2] sgspluss:
Logcat should be enoght, exact the part when you're loosing the fix...
[Sony Xperia M2] sgspluss:
Add new information under troubleshooting in post #3 https://xdaforums.com/showpost.php?p=76850001&postcount=3

Will edit it continuous or if its needed...

Also there are some news

1. actually there are some problems with buildserver, running out of traffic but we are on it and hope its solved soon, if its solved you can expact an update.

2. droped support for goedition for now, to save my time while building and you can use the known low ram configuration also by editing your build.prop, for more information read post #3.
[Sony Xperia M2] f2065:
Bug.

If the properties of the application prohibit the use of data transfer (via Wi-Fi or mobile) - it crashes in the application "Settings"…

Not with all the applications bug:

RealCalc - the data transfer is successfully turned off.

RAR - error. And many other applications, too, with an error.
[Sony Xperia M2] sgspluss:
Thanks for reporting and the log, got the error and will see what i can do.
[Sony Xperia M2] f2065:
Additional information on the bug

If some application is denied Internet - the continuous boot-loop when the phone is restarted.

To boot - you need to remove the SIM-card, then it is loaded normally. Disable mobile internet. And then it can be loaded with a SIM card.

But when you turn on mobile innternet - immediately reboot.

IptablesRestoreController: iptables error:

IptablesRestoreController: ------- COMMAND -------

IptablesRestoreController: *filter

IptablesRestoreController: -I INPUT -i rmnet0 -m owner --uid-owner 10093 --jump REJECT

IptablesRestoreController: COMMIT

IptablesRestoreController:

IptablesRestoreController: ------- ERROR -------

IptablesRestoreController: iptables-restore: line 52 failed

IptablesRestoreController: ----------------------
[Sony Xperia M2] sgspluss:
Will see what i can do, i've try to fix it for next update...
[Sony Xperia M2] sgspluss:
New update is out...

If you want to know whats new, read post #2 https://xdaforums.com/showpost.php?p=76849988&postcount=2

If you want to know where i am working on visit https://sgspluss.github.io