yashsingh1/xdaforums huggingface dataset:
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mcgradylu:
I think something is wrong with the power comsumption of lineageos 18.1. I show you the screenshots.

moto oreo 8.1.0 stock rom:

The moto stock oreo 8.1.0 rom battery is excellent! I tested it before. If you don't use it, the battery usage line is a straight horizontal line. After 8 days, it still has 20% battery.

lineageos 18.1 20230401：

Average memory use in lineageos is 2GB, after I install and freeze almost every app, except Magisk, Ice Box, Photos.

The lineageos 18.1 is pretty terrible in battery. Drop down too fast even I don't use it and only can bare a day (only use taobao app less than 10 minutes per day). That's very terrible. I suppose the increasing ZRAM makes the battery that bad!

The same device, moto g5s xt1799-2. Almost the same settings to the moto stock oreo 8.1.0 rom. Areoplane mode. Both use ‘Ice Box’ app to freeze almost every app, even include the following app: Bluetooth, Calendar, Camera, Chrome, Default print service, FM Radio, Google Play services, Google Play Store, Google Services Framework, Gmail, Maps, Youtube, Phone, Contacts, Messages, and the other apps I installed, except Magisk, Ice Box, Photos.

So I don't think is my problem. Maybe some abnormal hidden background processes of the system drain the battery.

Another bug is that it kills the background very often. I put taobao app in the background, only one app, and I lock the screen. The system kills the app less than 10 minutes! I'm not in battery saver mode. That's very bad!

Besides, There are some other bugs:

1. Screen record

'Device audio' can't record the sound from device.

2. Phone app

Call recording function. The sound recorded from it is very noisy, unable to hear the talks clearly.

3. Background apps are killed very often.

I don't turn on the battery saving mode. I open only one app, put it in the background, and lock the screen. Then the app was killed to restart less than 10 minutes.

I can clearly remember that, in my moto g5s xt1799-2 zui OS (android 7.1.1), if I put an app into the whitelist in the safecenter app, the app can always stay in the background.

But the stock oreo 8.1.0 rom doesn't have the safecenter app. I do the same test. I open the same app. It can stay in the backgound for about several hours. Then it will be killed to restart by the system. I set 'Don't optimise' in the 'Battery optimisation'.

But the lineageos 18.1 kills app very soon. I make the same settings. One app only. Lock screen. It will be killed to restart in no more than 10 minutes.

Is it possible that the abnormal battery consumption is related to the increasing of the zram? I search from the net, and see the increasing of zram may increase the power consumption, and may kill the background app. Is it true? Then how can I disable zram?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] batGoshe:
Hi to you. Half a year is a long time. Can you please write 1.what recovery are you using, 2.what was the ROM before you flashed the current ROM and 3. do you have some error messages after installation and what are they ? I am betting your data or cache partiotion is/are not the right one and most probably RAW. With this ROM, they should be f2fs. System and vendor are ext4. You can respond here or PM me. Hopefully we will manage to resurect your montana
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] batGoshe:
Stock ROMs have proprietary battery managment applications (in most cases working well only while google play services are present). Only they can "calibrate" a battery whitch is under 2/3 of battery life. If not the system is requiring a voltage higher than those the voltage regulator app consider as adequate. So the system is consuming a lot cause there is no application to manage the voltage information and tell the system how to adapt.

Another thing is that a 64 bit system will consume more than 32 bits. And android 11 consume more than android 7 or 8.

I have a good battery life with /e/ OS (based on Android 11) and instead of their launcher I use Discreet Launcher, witch in my observations is a very efficient one. It (discreet launcher I mean) can probably improve the battery life of this ROM. Haven't tried yet. :cowboy:
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] rohit951:
In twrp Format data by typing yes

If it doesn't boot then go back to stock ROM then reflash the recovery and rom
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mcgradylu:
Just use the recovery.img and the installing method from the lineageos website, everything will be alright.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mcgradylu:
Battery drains too fast, even I don't use the phone. I'm sure it is the matter with the ZRAM.

By the way, do you still have the old android version backup? I want to flash android 8.1.0 and 9, but both of these two lineageos rom have a huge bug. I can't copy files from the device, but can paste files into it.

I see the lineageos 15.1 change log:

2019-09-23:

September security patch

Optimized SEPolicy

Fixed MTP (thanks to @wiktorek140)

We're back to LTE

But I can't find any lineageos android 8.1.0 or 9 build after that day: 2019-09-23

Do you still have a copy of that? I just want to stay in a rom that battery is good and no that copy file bug.

I‘ve already given up the lineageos 18.1. The battery is a disaster.

I think the ZRAM, the cpu and gpu frequency should be restored to stock, otherwise, the battery is too bad!

I'll show you the bad battery of AICP 16.1 (android 11) rom. The lineageos 18.1 is even worse!

I didn't use it. 'Ice Box' stops almost every app, aeroplane mode.

Compared to the moto stock oreo 8.1.0:

After 8 days, it still has 20% battery! And I use it run some apps during that 8 days. It won't drain the battery if I don't use it. The same setting with the lineageos 18.1. (Use 'Ice Box' to stop almost all the apps, including some system app, like bluetooth, nfc, ... and more.)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mcgradylu:
I disagree with that. Just watch the screenshots above. The battery page shows the android 11 system only consumes 2%+2%=4% battery. But something that drains the battery doesn't show. I think it is the matter with the increasing ZRAM (from 511MB to 1365MB) and CPU frequency.

You can search from the net about ZRAM.

It doesn't help anything but keep killing the background app to restart very often and very soon!

Who will buy a snapdragon 430 device for performance?! At lease I won't! We mostly use it as a second device. Compared to that little performance improvement, I think a longer battery life is more sensible.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] chris@xda:
Totally agree. I do! Yes.

BTW: I found LOS 18.1 with build-in GAPPS substitute <-- here

Thanks @JarlPenguin for your ongoing efforts!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] batGoshe:
@mcgradylu For the reasons I mentioned earlier a rom with the stock proprietary components, will always have a better battery performance.

Now, about the case of lineage montana roms, the OS has a bad managment for only one service, causing the BIG drain issues. I will check the phone, when I have it with me, and post the exact name of it.

About ckecking the screenshots you posted, in my personal opinion, it is a disrespect to post a non english content in an english plateform. So, of corse, I am not going to ckeck them.

With a good custom ROM, sd 430 perform well and have a very good battery life.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] chris@xda:
Anybody tried /e/ ?

It's basically the LOS with microG
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
is it arm32 or arm64?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
Honestly i dunno what you guys talking about there's nothing draining battery here.

also there is moto e7 stock rom and battery life is just as bad if not worse.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mcgradylu:
@batGoshe Since you know this is an English forum not the Mars forum, if you do know respect, please check your spelling before posting and stop typing your Mars language. No one want to check your Mars language. Not cool, bro.

And you think you know everything? But in fact, nothing! Those moto stock oreo 8.1.0 screenshots were captured 1 or maybe 2 months ago. At that time I had no plan to flash any third party rom. And I didn't even have an XDA account at that time. If I did that 3 or 4 years ago, I would have reported the copy bug since the first time it appeared in lineageos 15.1, not letting it be brought to lineageos 16 and 17.1.

Capturing the screenshots is just my habit to keep a record to see if there's something wrong with the rom. Everybody uses his native language in his daily life. I'm not from an English as my first language country, so it's reasonable that the screenshots at that time were not in English. My device is not in the moto stock oreo 8.1.0 os anymore. And I haven't got any time machine for me to go back to that time to change my device language to English. So I can only find the old screenshot records. I post those old screenshots simply for the purpose to make a comparison with the battery in the lineageos.

Besides, I gave enough descriptions after each screenshot, and it only contains very little information in the screenshot apart from the battery, and they're very much alike. I don't think it's that difficult to comprehend, and it's even easy to know after simple comparison , unless those who are not from the Earth. I didn't expect someone from the Mars to check them. I just hope the developers can pay attention to what drains the battery abnormally in the os.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] chris@xda:
I guess that always depends on the device - if you do a search:
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
idk stock rom is arm32 but lineageos is arm64 but still going to try this one
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] chris@xda:
/e/OS is based on LOS with baked in microG and basic apps. So probably you need to find out by yourself
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
microG is pretty good even gmail and meets work but I didn't need them anymore after using a few apps from fdroid like newpipe and ffupdater. Also whatsapp and stuff work without gapps or microg

I can do email and meets from pc
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
tried it and it's arm64

ram usage is about 100~200mb less than lineageos 18 which is pretty good for android that comes with chromium browser

webview version is kinda old though.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] chris@xda:
Another approach that is new to me is https://bitgapps.io/
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
bitgapps works file but sometimes it breaks creating high cpu usage

if you're going to use it I recommend clean flash and nothing higher than android 11

also the microg version doesn't work on lineageos
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] batGoshe:
As I promiss, the application causing the battery drain on montana and probably all other devices it run on they OS, is com.qualcomm.qcrilmsgtunnel. It is not supposed to work in the background, espacially when the 'mobile data always ON' is disabled in the developper options. And we need to install a different than the stock phone dialer. I am using 'Simple Dialer'

What I am doing is 1st to disable all apps and services I don't need. 2. If it is a service thet can not be disabled but safe to 'remove' I use the adb shell. 3 for services and apps I need, but not in the backgound, I only restrict their background battery usage.

Back in time, I even tried to remove com.qualcomm.qcrilmsgtunnel using adb shell commands. I remember having a bootloop by doing so. Presently, what I am doing is every time I restart the phone for some reason, after this I go in the developper menu / Running services and I stop the com.qualcomm.qcrilmsgtunnel.

Try it, and you will see by yourself montana and SD430 have a very good battery life. By the way, I am on /e/ OS. It works better than lineage 18.1. But lineage 17.1 works better than /e/ OS ;) Cheers
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] batGoshe:
I only need to read the first line on your post and I already know what you are and again I am not going to spend more time on reading you.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mcgradylu:
I don't need you to read me. No thanks!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
dude i think you will achieve same result by turning on airplane mode.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] batGoshe:
Airplane mode has no effect on com.qualcomm.qcrilmsgtunnel (it should but it isn't the case on every custom rom for montana and most stock roms for devices based on sd430 or other models with com.qualcomm.qcrilmsgtunnel).

Someone using it's phone in Airplane mode all the time should't call it mobile phone but modile device. In areas with good carrier coverage, it can give you a gain of 1% over a day (24h). com.qualcomm.qcrilmsgtunnel has a consumption of about 1% every 2-3h or so.

Rational thinking is always based on obervations.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
I don't get it. I'm a PC guy, don't need mobile data.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Hi all, (long time no see! Took a break for half a year) for anyone interested, here's a beta build with Linux 4.9

Release 202306270609-lineage-18.1-20230627-UNOFFICIAL-montana · JarlPenguin/releases

LineageOS for montana Date: Tue Jun 27 06:09:09 AM UTC 2023

github.com

Only issue is taking photos with the camera (well, as far as I know). Also hasn't been tested on the XT1799-2 variant.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
Have you tried KernelSU?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Nope, not really interested in it at the moment.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
no issues so far. Might be just me but i feel speaker volume is a bit lower than official lineage, not a big deal for me though.

XT1792
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] musicx1612:
Hi. When I flash this on my XT1795, and reboot using TWRP it shows "No OS installed. Are you sure you want to continue?"

When I do reboot, it's stuck on the lineage OS booting animation and does not boot.

Any fix? It helps!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
use lineage recovery that comes with it

twrp is dead because encryption driver changed

and format data as well
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] musicx1612:
Did not work. Still stuck on boot logo, any other option?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
that's weird... does official lineage 18 works?

if you can see boot logo that means it's compatible. Maybe wait for next beta update.

jarlpenguin is probably gonna read xda thread anyways.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] musicx1612:
Unofficial lineage OS used to work but I accidentally deleted that. Official lineage does not work.

Boot logo does show But never goes past that..

I also tried flashing Beta Update and same results. I can only flash Lineage OS 17.1 anything above that don't work.

Btw I have XT 1795
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
try flashing this firmware, updating everything and then try again.

lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors-obs-2.lolinet.com
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] musicx1612:
Nah, still didn't work. Do you have the old *UNOFFICIAL* build of LOS 18.1 ? If that can you please send it to me.?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
Releases · moto-msm89xx/releases

Host stuff here in the Release section. Contribute to moto-msm89xx/releases development by creating an account on GitHub.

github.com
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Pavamarea:
I tested many version of GCam, Pixel Cam and others that i never seen, no one works, which version works? Even the cam app that comes with the rom did'n work. The rom is working very well.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
only video recording works; doesn't matter which app you use because the access to the camera itself is broken.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Przem-G:
Hi, I've flashed lineage-18.1-20230630-UNOFFICIAL-montana on G5s xt1794 - there is microphone and speaker issue during calls - I have no sound. When I use messaging apps and make call with google meet, speaker is working, but microphone is not. From other issues, I have also not working camera, but that was stated in comments above. Can these problems be somehow fixed? I know it may be specific for xt1794 - do you know A11 or A10 release working without issues on this device?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Przem-G:
Sound issue can be resolved with flashing dsp adspso.bin from stock Oreo rom - same fix, as existed in LOS17.1, but unfortunately I was not able to get camera working, so I reverted back to LineageOS 17.1 v1.10.

A10 install gone almost perfect - microphone was working, and there was audio during calls, but music was not playing. Problem fixed again with same flash dsp adspso.bin :)

Is there any chance that camera will work on montana with A11 or it is better now to stick with LOS17.1?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
stay on A10.

A11 too slow on this phone even without gapps.

honestly, you're better off using stockrom for more available ram since gapps is getting too hungry. It was decently fast in there.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] blonderulez:
Will there be a 1 november 2023 update? It usual gets an update every first day of the month, but there is no entry for 1st of November. Does it mean this ROM is out of support now?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rcsv1:
Qual Qual kernel com overclock posso usar com esta ROM no Moto G5s?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
nao tem nessa ROM.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] LiNEAGEOSANDROiDEVOLUTiON:
Hello,

Regarding your questions:

I am currently using TWRP (Team Win Recovery Project) as my custom recovery.

The previous ROM that was installed on my device was a stock ROM from China.

After flashing the current ROM, I did not encounter any error messages.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] batGoshe:
Hello.

In my experience with montana, depending on the recovery we are using it can make the data and cache partition inaccessible to the system. I mean I was able to access the /system and flash a ROM to it, but because the data and cache were inaccessible, I was constantly in a bootloop. This is a recovery problem more than a custom rom problem.

My take to resolve this back in time was to to:

- fastboot -w #before the first time I boot into the new system (it is OK if you have an error message after fastboot -w, just continu and reboot the phone) OR

- in TWRP, go to wipe / advanced (or it was repair, I don't remember well) and change the type of data and cache from RAW to the one used by the custom rom (ext4 or f2fs).

Or in the last resort, use the moto recovery tool to restore your device to the stock rom (I never needed this, but it should also work).

Cheers!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
how to fix this rom:

1- enable developer options

2- turn on usb debugging and rooted debugging

3- follow adb tutorial here

4- type : adb root

5- type : adb shell

6- type : echo 0 > /sys/module/lowmemorykiller/parameters/enable_lmk

7- type : cd /data/adb

8- type : dd if=/dev/zero of=swapfile bs=1M count=320

9- type : mkswap swapfile

10- type : swapon swapfile -p 100

11- be careful of recents screen and keep few apps open

12- if your phone freezes then hold power button and volume down until the screen turns off

13- repeat steps 4, 5, 6, 7 and 10

14- don't use gapps
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] LiNEAGEOSANDROiDEVOLUTiON:
Any chance to revert to stock ROM? My phone still in broken ROM state since I flashed this ROM in 2022 :(
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] qqxdairi:
you can but sim card doesn't work
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Lyra2108:
The build is working fine for me, the only thing i noticed that (for me randomly) the camera is unusable, some apps report someother app is using it, but i can not see any app running which would use the camera, the native camera app just keeps crashing.

The only way I could fix it sofar was rebooting the device.

If there is a way i can provide debug information, I would be glad to help :)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] DHDDS:
I'm not rushing him for updates, just a question to mention that someone still with some interest on his ROM
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
I will continue with this project, but only after the 18.1 source is fully ready.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] ALFRED M 456:
JUST DONE.

ANYWAY NICE WORK, LOVE IT ❤️
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] ALFRED M 456:
ANY SOLUTION FOR CAMERA RECORDING 📸
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] DHDDS:
Got it, thanks for the good work
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] infinite4evr:
Flashed on my device today, Taking pictures are fine but the camcorder is not working as mentioned, I will continue to use it for some days and see if I can stick to this rom.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] saropoggi:
Salve a tutti nel mio moto g5s 1974 non va
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Translation: Hello everyone in my 1974 g5s moto does not go

Do you mean that this rom is not working on your device?

If so, first make sure that you followed the instructions provided by the OP,

Secondly, try starting from stock ROM for best results,

Thirdly, make sure that you are using the latest version of TWRP,

if either of these do not work, I think @JarlPenguin will definitely help you.

Note: the developer, i.e @JarlPenguin mentioned that he won't be updating this rom until the Lineage OS 18.1 source is fully ready, if you find this ROM too buggy for daily use, then downgrade to Lineage OS 17.1, it's stable and also is built by @JarlPenguin...
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] PyrooKnight:
Any Gapps for ARM only, my moto G 5s is ARM based.

Please ignore, it seems Arm64 after all,
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] saropoggi:
kind sir the rom works very well to two important problems the first is that the mobile internet does not work and then the obb folder I don't want to create but it tells me that it already exists I hope that I have explained myself
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] saropoggi:
mobileinternet no work wery important
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] saropoggi:
works with GAPP

NikGapps-core-arm64-11-20201231-signed
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] saropoggi:
(y);) no work mobile internet
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] saropoggi:
if there is anyone who can correct this rom it would be wonderful
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Lineage OS 18.1 source is not fully ready, and also, the developer of this rom mentioned that he will continue developing the rom after the source is fully ready, till then just report bugs if you find any, don't expect them to be solved immediately, as mentioned the development and active bug fixing will start after the source is fully ready, till then if this rom is too buggy use the Lineage OS 17.1 rom for now as it's stable...
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] saropoggi:
rom 18 is fine only the bug and that if you are for trada internet does not work (mobile internet)