yashsingh1/xdaforums huggingface dataset:
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo, a new test build is going up! lineage-20.0-20231020-UNOFFICIAL-rtwo contains a fix for dp alt mode and offline charging animation and Poweroff alarm as well

We need someone to confirm dp alt is good so we can continue with LOS forking our trees

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20231020-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net
[Motorola Edge 40 Pro  / Moto X40 (China)] Krullendhaar:
Hi,

In the first post the installation instructions for device 'dubai' are given. I am not sure on this, but I believe for the Moto Edge 40 Pro we should use fastboot flash recovery_ab <filename>.img instead of fastboot flash boot <filename>.img. Note that this also solved any issues with inconsistent partitions, as the file is flashed in both the A and B slot.

This links describes things more in detail: https://xiaomi.eu/community/threads/installing-a-custom-recovery.67841/. Note that device 'dubai' had a snapdragon 778G+ and the Moto Edge 40 Pro has a snapdragon 8 gen 2. According to the page I linked, using "boot" is recommended for device 'dubai' and "recovery_ab" for the Motorola edge 40 pro.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@Krullendhaar Please check the installation instructions again as I mentioned:

So I did correctly say what partitions to flash
[Motorola Edge 40 Pro  / Moto X40 (China)] hallaj:
Hi, has anyone with XT2301-5 tried it? I saw someone responded that its supported, since my X40 is currently my daily driver, just thought I'd get a confirmation before attempting to flash this 😅
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
yes, most of the users of this ROM are on CN market Moto X40, and after that EU market Motorola Edge 40 Pro has the highest share of users.. NA market Motorola Edge+ (2023) comes 3rd. It's equally stable for all 3 variants.

And @Krullendhaar if you still don't understand the process, use my instructions post from the old topic: https://xdaforums.com/t/project-lin...-pro-edge-2023-moto-x40.4584541/post-88809003 - to simplify what you're doubting about, just use --slot=all as that post provides for instructions
[Motorola Edge 40 Pro  / Moto X40 (China)] hallaj:
Awesome, let me build up bravery to attempt this :ROFLMAO:
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG01:
The first page of this thread links a how to update guide with custom recovery, but on the site it only mentions how to update with the built in updator that only works on Lineage official ROMs, or how to push the update file using adb but on Linux or Mac os only. How would I update to this latest build using windows fastboot ADB?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
My instructions post from the old topic: https://xdaforums.com/t/project-lin...-pro-edge-2023-moto-x40.4584541/post-88809003 contains the route for that process known as "Dirty flashing" (in-place upgrade to a newer LineageOS build version, without apps or data loss) and mentions the only difference is to not use the Factory Reset step.. look at the cursive portion of text to spot that
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG01:
Thank you if I download the lineage OS build zip file on my phone and then boot into lineage custom recovery and flash the zip from local file storage, will that work updating the unofficial ROM without having to flash using ADB?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
No, you need to go through the adb process with those steps i linked. I can do it half asleep in less than 3 minutes, it shouldn't be a big deal.

Btw, LineageOS recovery only has "Apply update from ADB" (not from storage) and with each new build, all images besides the main ZIP can change: boot, init_boot, dtbo, even recovery itself. Partial flashes/updates are invalid ones, and the highway to corrupting your LineageOS installation.
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG01:
No worries thank you those steps you shared seem really straight forward and simple so I should be fine. Thank you for your quick reply and for detailing the steps really concisely. I've never done this before or modded android so it's all a learning curve for me.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@EthanG01 The "From your PC via the push_update script (Linux/macOS only)" would be the easiest way as it pushes the update to the Lineage Updater app and treats it like an OTA, so no need to manually reflash addons (like GApps)

Otherwise @mxz55 does have good instructions for manual updating too
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Thanks for the latest build. Can confirm USB-C DP alt mode works and the experimental desktop mode works too.
[Motorola Edge 40 Pro  / Moto X40 (China)] chmod-rwx:
DP alt is good
[Motorola Edge 40 Pro  / Moto X40 (China)] Stateandrei5:
What does the experimental desktop mode look like? screenshot or link pls.
[Motorola Edge 40 Pro  / Moto X40 (China)] Drasner:
I have dirty flashed the last update and can confirm USB DP Alt Mode works, but only video, audio is not working same as 2 updates ago.

If I connect a Bluetooth speaker I can get audio while the phone is connected to a external screen, buy HDMI audio does not work, just like 2 updates ago.
[Motorola Edge 40 Pro  / Moto X40 (China)] Drasner:
Do you get like an empty bar on top and another on the bottom where apps do not display anything?

Very basic. Goolag has not developed it. There were rumours that Android 14 would have a proper desktop mode, but it did not happened.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Ok thanks guys for the reports on dp alt mode. I'll setup our trees so that we can ask LOS team to fork our trees

We just need to figure out the camera crashing bug and the telephony injection
[Motorola Edge 40 Pro  / Moto X40 (China)] chmod-rwx:
I'll send a photo when I get home if i have time but it looks terrible. The experimental desktop mode is incomplete and doesn't work well. I would rather set the minimum width to 600 and use the tablet UI on an external display. Your best bet is to wait for the Ready For port to be released.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
Hello im using visible wireless from verizon, with this rom , i will continue having signal service? Cause i have other motorola phone with lineage os and the service bars went gone and the signal come back for short periods. Thanks
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Sounds quite niche, which means it may take a while for someone to confirm. If it takes too long for you, maybe it's wise to do a full image backup (to eventually restore everything to how it was, should it not work) and just go find out for yourself by a test run on LineageOS.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
Question, is it optional to install google apps or it is a must to avoid crashes,cause i would like ti have a google free device.
[Motorola Edge 40 Pro  / Moto X40 (China)] Drasner:
Optional.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build is going up, lineage-20.0-20231025-UNOFFICIAL-rtwo contains a missing GNSS (GPS) blob and also a repo sync of LOS latest sources. I'll try to start doing weekly updates as I can, similar to LOS official builds do.

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20231025-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
Hi guys. Where i can find this files to flash;

But also please remember to use rtwo files and flash the following images to the partitions with the same name:

boot

dtbo

init_boot

recovery

vendor_boot

Iknow 2 of them are in the lineage os page, but the others idont know.where.are

Thanks
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
@clubwagon All of them are in each released version at https://sourceforge.net/projects/lineageos-for-rtwo/files/lineage-20/, please carefully look, not like you only gotta download the main .zip and done

In case you also don't understand the installation process, use my instructions post from the old topic: https://xdaforums.com/t/project-lin...-pro-edge-2023-moto-x40.4584541/post-88809003
[Motorola Edge 40 Pro  / Moto X40 (China)] chmod-rwx:
MyUI
[Motorola Edge 40 Pro  / Moto X40 (China)] Drasner:
Installed the 251023 update. It has only been 30 minutes but everything seems as the previous one, not found any regression.
[Motorola Edge 40 Pro  / Moto X40 (China)] chmod-rwx:
Hi, has anyone else experienced this issue? I'm on the 20231020 build if that matters.
[Motorola Edge 40 Pro  / Moto X40 (China)] Drasner:
I was running that build until today and never experienced it.
[Motorola Edge 40 Pro  / Moto X40 (China)] j469078737:
The auto-brightness is too sensitive, resulting in severe screen splashes
[Motorola Edge 40 Pro  / Moto X40 (China)] chmod-rwx:
are you using material you themed icons? I think thst's what could be causing this issue since it only happens when I use themed icons

ifnot maybe I screwed something up
[Motorola Edge 40 Pro  / Moto X40 (China)] Drasner:
I never changed the default icons.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo, a new test build is out. lineage-20.0-20231101-UNOFFICIAL-rtwo we dropped the QTI Telephony Injection as it will have issues on A14 where it won't be possible anyways and we may no longer need it on sm8550 (sm8450 did). So please test SMS on your carriers and report if anyone has problems which carrier and what country.

QTI Telephony Injection is one of the shipping blockers on LOS 20 btw, so if we can drop it? That's a good thing

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20231101-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net
[Motorola Edge 40 Pro  / Moto X40 (China)] desertkun:
@ThE_MarD is this possible to have true dc dimming (flicker free)? I am really susceptible to PWM flickering, and the "Flicker prevention" mode seems to be a bs, my old OP7Pro does not strain my eyes with DC dimming, while stock android still does. Can this OS help me in this regard?

I assume it's the kernel thing? Could you please recommend a strategy how to approach this?
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo @desertkun , I asked Markus about this and he said:

Markus Ornik:

the question is: is it PWM flickering thats bothering him, or the gamma change when it changes refreshrates?

moto has dc mode available on stock, and we use that option .-.

On stock I think Moto doesn't use the max refresh rate on auto mode, so maybe try playing around with those values?
[Motorola Edge 40 Pro  / Moto X40 (China)] desertkun:
Thanks for quick reply @ThE_MarD . I do not care about gamma change, it's the PMW that kills my eyes. The stock "Flicker prevention" mode still has PWM it seems, so it affects my eyes. So I've been thinking if I can install a custom ROM/Kernel with a driver that forces real dc dimming, so it degrades picture quality, but at least does not make eyes hurt.

I had success with this on one plus 7 pro, there's a hidden option. Picture becomes a bit ugly, but I can leave with that. Bought edge 40 pro thinking the flicker prevention is the thing, sadly I can't use it more than 5 minutes even with that option, on all refresh rates.

So I am looking on what can be done on this device.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@desertkun Hmm yikes, if it doesn't work correctly on stock ROM? It should get reported to Motorola as that could mean other devices using the same DC Dimming as rtwo would also have the same issue... Markus and I aren't sensitive to it, so tbh we can't really tell, we only noticed the minor gamma change when toggling it

There might be a chance we can port Cosmin's DC Dimming method to rtwo but I'll have to ask around...
[Motorola Edge 40 Pro  / Moto X40 (China)] SGCMarkus:
Identified the issue (hopefully). A derp on motos side in their kernel code.

When you turn it on, and never turn the display off, it should be fine (verified with camera on 1/6000 shutter speed).

When you turn the display off, and back on, it temporarily disables is DC dimming, and immediately turns it on again. Atleast thats what the code is supposed to do.

But they forgot that their function that turns it off overrides the state they later on use that should restore it to "on".

So in this case its like: if dc dimming on -> turn it off -> save that state into variable -> use that variable as new state that it should have, and apply that again.

That obviously doesnt work... ill do a build tomorrow/during the weekend with a hopeful fix.
[Motorola Edge 40 Pro  / Moto X40 (China)] desertkun:
Appreciate attention to the issue.

However unless I am missing something, its the way actual dc dimming is done might be wrong

See this vid as example

https://litter.catbox.moe/ukzti9.mp4

Behaviour changes, and slow mo camera of my old phone picks it ip. But flickering never ultimately goes away. Even notebookcheck noted that PWM is still there but I guess it gets synced with refresh rate?
[Motorola Edge 40 Pro  / Moto X40 (China)] SGCMarkus:
Im not 100% sure how this is supposed to look like.

Comparison on 1/6000 shutter speed looks like this though:

off:

on:

the visibility of the stripes changes depending on the shutter time how fast they move across the display

would be nice if you could take such a pic of the op7pro (and look at the edge 40 pro with the same camera/same shutter speed as comparison)

EDIT: fix seems to work
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build is going up! It'll be done uploading in about 30 minutes. lineage-20.0-20231104-UNOFFICIAL-rtwo contains a source sync of LineageOS 20 and also a fix for anti-flicker (DC Dimming) by Markus and also from the last build that we dropped the QTI Telephony Injection as it will have issues on A14 where it won't be possible anyways and we may no longer need it on sm8550 (sm8450 did). So please test SMS on your carriers and report if anyone has problems which carrier and what country.

QTI Telephony Injection is one of the shipping blockers on LOS 20 btw, so if we can drop it? That's a good thing

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20231104-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
Hi. I install this. I can send sms but cannot receive reply sms with visible wireless ( verizon)
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Are you sure it worked on earlier builds (no removal of telephony injection)? Do you have any results with different cell providers?
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
Hi. I re inserted the sim card and now is working fine, i got all these stuck reply messages delivered. One thing i like is that my banking apps are working fine without google, thats great😎
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. i have a question. is it normal to cannot play voices clips on the messages android stock app? or is it because the degoogled thing?
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
i have noticied too , that the audiobook app i do use does not play the audio books. i have the same app on the other lineage os device and work fine. i just reporting small details
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@clubwagon can you please submit logcat for both those issues? We might require some audio config changes maybe. Please also provide the name of the audio book app

Tbh the SMS default app is really basic since AOSP doesn't really update it anymore as they wasn't to push the premium Google suite of apps onto OEM's... So I would recommend swapping to a different SMS app.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hello.can you please tell how i do submit logcat , im noob😝

i did install the messages app from google and it was the same issue , as i mention i try on my other lineage os device and the voice clips works fine ,sending and receiving in the stock messages app from lineage. i do use the audio bible;

YouVersion Bible App + Audio - Apps on Google Play

Daily Bible App with Audio, Verse of the Day, Offline, Bible Study + Devotionals

play.google.com

so the messages audios and the bible audio work on my other android device with lineage os moto edge 5g.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo! Exciting news! The LineageOS team has forked our branches! W00t! Meow for the last bit of LineageOS 20 bringup using gerrit which is nice (y)

Minor unfortunate news is git-lfs (large file system) isn't enabled on our vedor repos... so the 100+ MB Moto Camera app will need to be split up... so we will need to mess with that and hopefully no functions will break. The plan is for lineage-21 branch that git-lfs will be enabled, so at least in the future we won't have to deal with this annoyance.
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
Since updating to the 2023.11.4 release I've been having the phone crash to a black screen requiring a hold down the power button to hard restart it. Has happened 3 times in the last week. I saw on lenovo forums that some people have similar with the Motorola stock rom.

Anyone else have this issue on lineage and what log would help? (dmesg?) I'll try capture it when it happens again.

Thanks as always for working on this device.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi again sorry. the sms bug again not receiving replies from contacts, i can send but not receive sms on visible wireless from verizon.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Maybe we're gonna need to do upcoming builds with the QTI telephony injection added back in. I hope someone will find a solution, as if your case isn't a coincidence, until someone does we will rely on this hack that LineageOS likely won't allow in official builds (unless we convince them to make an exception, as it really is a platform issue for chipsets like sm8550, and it would be bad PR for LOS to miss out on modern device releases)

No matter if your case is a coincidence, we also heard of some chinese carrier users with SMS problems, this is what Marc sent to me about it: https://i.imgur.com/xXejE83.png

So to return the experience for everyone, the upcoming build is likely with QTI Telephony injection back in, as well as adding November 2023 ASB (Security patch level) and syncing LOS sources

Edit: it's been confirmed that we will return QTI Telephony injection in the build that will arrive shortly
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build is going up. It'll be ready in 30 minutes. lineage-20.0-20231112-UNOFFICIAL-rtwo contains November security patch (please note, the security string hasn't been bumped yet so about phone will show October) and updated vendor blobs from RETUS T1TR33.43-48-41. It also has the QTI Telephony Injection again

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20231112-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
We missed a few things in the new build, such as picking Linux kernel 5.15.134 from https://github.com/LineageOS/android_kernel_qcom_sm8550/, we should've pulled master.. as well as after that, we plan on cherrypicking non-merged CL 1 (ASB) and 2 (More kernel updates) (subsequently lifts us from master @ Linux kernel 5.15.134 to 5.15.137), since when we're still unofficial we have the liberty of being quicker than gerrit.

Then we need to finish the security patch with LineageOS-specific vulnerability fixes (UAF, OOB, etc) that they usually do around the time of Android security patch & string being bumped. We didn't get them all because we were too early and built right when the base Android security patch got merged.

So, expect a quickly following up build in the next 24-48 hrs, with these things included and polished.

And also..

@bartko4321 Please keep it on-topic, this is the LineageOS device specific release topic, you can open up another one to discuss GSI's or post in the GSI forum.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build is going up! It'll be done upload in about 30 minutes. lineage-20.0-20231114-UNOFFICIAL-rtwo contains a LineageOS source sync with the full November security patch and kernel upstream updates. This build still has the QTI Telephony Injection, but odds are the next build will not again in order to test a bunch of RIL/IMS changes to see if we can dump that thing (fingers crossed!)

I also noticed that some recent system changes seem to have made our boot animation go from slow to not displaying anything! Oof! I'll update that known bug though...

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20231114-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
I just ran benchmark again, and we still have the best device (of course, only achieved if this device runs as light, bloat-free and efficient as LineageOS makes it do) that beats all contenders at least until the first devices with sm8650 Snapdragon 8 Gen 3 arrive in 2024

(proof: https://browser.geekbench.com/v6/cpu/3562263). The lineage-20.0-20231114 build that uses kernel 5.15.137 appears to score better than before. Note my device has a crap load of apps and stuff running and has been dirty flashed so many times, yet achieves this score.

SC:
[Motorola Edge 40 Pro  / Moto X40 (China)] elbra444:
Hi, I have a Chinese Moto X40 which I flashed the EU (Edge 40 Pro) ROM on and relocked the bootloader, could I still flash LOS on it if I wanted to?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
As long it's still possible to unlock bootloader again, yes. It's known that the act of relocking bootloader is a risky one, and that it's only somewhat safe if you do it while on stock ROM, but i don't know enough on the subject to be able to tell if that also specifically has to be the region variant it originally came with (but i don't think so). It will all be clear once you try to unlock bootloader now, for the purpose of installing LineageOS - if you successfully unlock it using the unlock code, there is no problem, TL;DR: yes, you'll be able to install LineageOS as long your bootloader is still unlockable and gets unlocked by you.

Be careful though that you NEVER ever relock bootloader while on a custom ROM like LineageOS, as that will be permanent and can't be reversed, so you would be stuck on the particular build you flashed, forever.
[Motorola Edge 40 Pro  / Moto X40 (China)] elbra444:
Thanks for the info, I'll try to unlock the bootloader then once LOS for this device gets an official build, or maybe I'll try one of the test builds, not sure yet. But is there any news on when it's getting official status?

EDIT: Just went to check if my device is unlockable, and it is.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
@elbra444 you don't need to wait, the builds are extremely stable and we just need to get past some QTI telephony injection workaround in order to get official status.

It looks like we will apply for official only on LineageOS 21 (Android 14) for which a build is being prepared, and the way Qualcomm goes about telephony will likely alter the outcome regarding the workaround. But you don't have to worry about the workaround as it stands, that's not relevant for the end user and still included (so we're sure there are no issues with telephony or SMS).

Anyways, because of that further development will likely take place only on LineageOS 21,its release schedule means that you won't see official until after December. I wouldn't wait if i were you, and btw, when our new builds start to arrive, LineageOS 20 > 21 dirty upgrade (just flashing it over) should be no problem.