yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] DKCN:
Yes. Thanks for the help as well :) I hope tomorrow I still have signal hehe. Than I'll be sure this fix works. :)

On a side note:

I noticed that when I add a group contact to the messaging app, it always only adds up to 4, even if I add 15 contacts. Is this a bug or a feature?
[Moto G 4G Android Development] vegas217:
did you have no imei number also? I tried this ROM but every time I had unknown imei and baseband so I had to go back to stock.
[Moto G 4G Android Development] DKCN:
I had IMEI. Someone mentioned that if the baseband is unknown it has something to do with flashing a different baseband
[Moto G 4G Android Development] michael_ch:
This is amazing, it really helps a lot! Actually the part about lowmemorykiller is already sufficient, this solves the problems with launcher redraws almost completely.

However, I am not a fan of tools like this, since such a crucial fix should better be included in the stock CyanogenMod builds. Therfore I have started to investigate what it does and why it's needed.

In fact, it just sets the lowmem minfree value to the values you mentioned (your values x 1024 / 4 = minfree values):

echo "2048,4096,6144,10240,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree

I compared it with the default value of my phone right after booting. For this to read, you need to change permissions of the minfree file because it is write-only by default:

# su # must run as root
# cd /sys/module/lowmemorykiller/parameters
# chmod 660 minfree
# cat minfree
15360,19200,23040,26880,34415,43737

These numbers are derived from the mOomMinFreeHigh32Bit setting in frameworks/base/services/core/java/com/android/server/am/ProcessList.java. Every number is 1/4 of it (KB => pages):

mOomMinFreeHigh32Bit = 61440,76800,92160,107520,137660,174948

Also notice that they have been changed recently in https://github.com/CyanogenMod/andr...mmit/0ef11bcb65d493fcf354f2212b4596a846618199 - e.g. the highest number has been raised from 122880 to 174948 (and I must say I find this pretty questionable - the number seems like a random choice to me).

So obviously all numbers in mOomMinFreeHigh32Bit are too high for our phones. The most obvious approach seems to revert https://github.com/CyanogenMod/andr...mmit/bff4d905bc8bc88b78cf96442f42c3ea711f0992 and I'm going to try that out.

However, maybe that maximum of 122880 has always been too high and 73728 (18432 * 4, see above) is a better choice. Will try out and let you know...
[Moto G 4G Android Development] bkr32:
since build 06032015 there has been a huge battery drain coming from android OS in effect device doesnt enter sleep
[Moto G 4G Android Development] fitzy73:
Running 06 June nightly. What is that horrible new menu about? The Alphabet one ie main menu? Is there anyway to switch back to the previous one?
[Moto G 4G Android Development] Oddb411:
Are you referring to the app drawer? If so, just tap and hold on a home screen, scroll down to the options, and change the app drawer to the horizontal paged view. I'm assuming the vertical menu was made default in the Trebuchet launcher because of the Android M preview.
[Moto G 4G Android Development] fitzy73:
Thanks. It was there - App Drawer - Paged.
[Moto G 4G Android Development] michael_ch:
I think I found the bug. Can someone please try out the following values and tell me if that improves multitasking in any way?

su
echo "8192,10240,12288,14336,16384,20480" > /sys/module/lowmemorykiller/parameters/minfree

In fact, these values are the same as for stock Android 5.0.2 for the Moto G. I have been using them today and my feeling is that this works great!

Before, I also tried the other values mentioned earlier in this thread (see http://xdaforums.com/showpost.php?p=61190335&postcount=2171). Multitasking was already great with these numbers, so I didn't find any difference compared to the above values. However, the difference is that now there is some logic behind them... :)

More to come! Let me know about your findings...
[Moto G 4G Android Development] DKCN:
I lost my signal again. My radio is off again. It started once when I rebooted and not all my phones apps were displayed. So I rebooted in recovery and cleared dalvik cache and cache. When it returned to system, my signal was gone again. I don't get it. Is this sounding like a hardware problem?

When this problem happens, when I long press the power button, the Airplane mode is turned on even when it is not on the drop down notification. But when I see it, I know the radio service is gone.

UPDATE

I tried reflashing the 04 June Nightly and it didn't bring my signal back. I remembered 03 June nightly was the only nightly that changed my signal from Radio Off to Emergency only. So I reverted to that, and then after that, since I'm frustrated with this CM 12.1 I tried Sabremod for now. After flashing sabermod, my signal is back. I will probably use this until sometime in the future. But there clearly is something in the ROM or Kernel that breaks my signal off by switching it off. I can't replicate it and when I'm in such a problem, I can't go back to having signal until I first flash to June 03.
[Moto G 4G Android Development] scattoit:
I'll try it but I'm a bit upset. With my old s3 muni (512 mb ram) I was able to use Google navigation and music at the same time. On my moto g it's impossible.
[Moto G 4G Android Development] afox27:
Apparently this isn't compatible with the xt1042 -_- its the U.S. cellular version of the moto g 4g lte.
[Moto G 4G Android Development] Travisholt92:
How not? What doesn't it do
[Moto G 4G Android Development] afox27:
Bootloops gets to the updating the apps part. Then spam says they have stopped. The os then crashes an starts over again an there is a problem with the screen. It's like a refresh line running horizontal from left to right that travels from bottom to the top of the screen an repeats every 5 or so seconds -_- I cant use fastboot boot recovery it shows the Motorola start pick vibrates then the screen changes colors an fades to black. It shows that it's connected I can access files on the phone just no way to make it restore the backup I have for it

---------- Post added at 06:39 PM ---------- Previous post was at 06:37 PM ----------

I can use fastboot tho. So bootloader is OK. Just can't boot android or recovery
[Moto G 4G Android Development] keenofhiphop:
Uhm I have no problem at all with the third build... I did not install the second one though. Don't think that goes together. However make sure to wipe cache and dalvik before updating and flash the superuser beta thingie so you can set the processor min value to 300mhz, because else I even have a deep sleep problem and battery comes from heavenly standards to hellish worst case.

Regards

Gesendet von meinem XT1039 mit Tapatalk
[Moto G 4G Android Development] Somcom3X:
Due to all of the problems I have removed the third build.

Apologies for the inconveniences.

All of these issues suddenly came to haunt me.
[Moto G 4G Android Development] sillycat98:
I know you've pulled the third build but I wanted to let you know what I found on it on a 1045. I've reverted to your second build for now, I didn't have any data on the third, even after changing apn and toggling data but other than that it ran fine for me. I decided to wipe data and see if that would fix it but it caused a boot loop.

I went into recovery and tried to reflash it and had errors, I had to format system too so I went back to the second build. Messaging keeps crashing if I use the stock messenger when I receive, I can send fine. Hangouts works for receiving. No other crashes so far, I'll keep you posted and I really appreciate the work you've put in. You've done a great job. Oh, and I wanted to know did you get that mpdecision file alright? If not I'll reupload.
[Moto G 4G Android Development] sillycat98:
I'm on the 26th build and I have a question, what is the widget supposed to be across the top of the app switcher? I just have a grey box across the top that says couldn't load widget.
[Moto G 4G Android Development] PatrickDziura:
The phone turn off by itsefl happens only tão times. It didn't happen more.

---------- Post added at 08:03 AM ---------- Previous post was at 08:02 AM ----------

And with third build the location icon isn't always there :)

---------- Post added at 08:04 AM ---------- Previous post was at 08:03 AM ----------

Forget it. It's still there. I posted that it doesn't was there and then it appears
[Moto G 4G Android Development] rodsayd:
I'm on the third build and I don't have any major problem. The only problem was with the camera, I couldn't take photos with the flash on, but I installed Google camera and now everything is fine.
[Moto G 4G Android Development] keenofhiphop:
Swipe on keyboard works, too?

Gesendet von meinem XT1039 mit Tapatalk
[Moto G 4G Android Development] rodsayd:
I'm not using default keyboard, so I really don't know. And I think I've erased it.
[Moto G 4G Android Development] agusaon:
What?! Im using the third build right now and it's working great, even got 5hs SOT.
[Moto G 4G Android Development] EternalFlame:
it´s for the google search bar.

nope. does not work for me.

yeah i´m on the third build too and it´s super smooth,

at first i thought that the battery is draining like hell but i figured out that i had a "google system update" wakelock, i disabled the receiver + service now its all good again (~ 1,1 % drain per hour when idling) (:
[Moto G 4G Android Development] Homigura:
Hello, i've flashed 'cm-12-20141127-UNOFFICIAL-peregrine.zip' last night, and i think it is working fine,with little problems...

1: My flashlight has 1/2 of the bright compared to the stock one... How to fix that?

2: Going to contacts > import from storage causes contacts app to crash..

3: Is there any native theme support? I can't seem to find it on config...

Thanks in advance!
[Moto G 4G Android Development] Lovatastic:
Ambient Display?

I heard that in the official Lollipop software it would include ambient display, will this feature be coming to this ROM?

Also there's an issue when you switch adaptive brightness on and put your brightness on low the screen goes completely black. I've flashed the latest version and the issue is still there.

Overall good work!
[Moto G 4G Android Development] carlos way:
yo utilizo la tercera versión la instale sobre las dos anteriores y no ha presentado problemas, incluso en la segunda vesion no me aparecia la opcion de cambiar de usuario en la tercera ya me aparecio y repito todo va de maravilla.

Gracias Somcom3x magnifico trabajo

mi equipo movil es Moto G XT1040
[Moto G 4G Android Development] karolp1993:
In Moto G (2013) is TFT display, not AMOLED, so Ambient Display doesn't make sense.
[Moto G 4G Android Development] vlt96:
IPS actually, still LCD thought.

It still makes sense for Daydream, I really want to see ambient display as a daydream (link me to where I suggest that to Google, please, too lazy to find the link)
[Moto G 4G Android Development] Lovatastic:
I don't think it's up to Google since the Lollipop release goes to Motorola, I don't know if there is a page where you can suggest features on Android to Moto but yes using ambient display would be a nice feature and I'm sure it could work or if not do as you suggested and add it in the Daydream option. Maybe Cyanogenmod would do this I don't know.
[Moto G 4G Android Development] Lovatastic:
Wi-Fi Hotspot "Error"

I've just noticed a problem when trying to switch my Portable Hotspot on, it says error and doesn't do anything when sliding the toggle. It worked on the second build but on the latest one it won't seem to work. I've gone into recovery and cleared the cache I'll see if the issue is still there.
[Moto G 4G Android Development] sillycat98:
Had a little free time at lunch today so formatted data, system, dalvik and cache and re flashed the 27th build. This time I had no problems what so ever and everything seems to be working fine. No crashes, data works, camera (using Google camera) and location all seems fine for the moment. I did not have a data connection though so I will be updating gapps and seeing if the location bug from the 26th makes a reappearance.
[Moto G 4G Android Development] keenofhiphop:
Third Build

Gesendet von meinem XT1039 mit Tapatalk
[Moto G 4G Android Development] occtec:
Hi, great to see CM12 5.0 on the moto g will be flashing this on my sons xt1039 EU, just wondering which gapps is recommended or is everyone using? Cheers..
[Moto G 4G Android Development] Travisholt92:
Try a clean install of sabermod, make sure to wipe /internal storage and try slim gapps 5.1 "zero" or "mini" package. It was updated on 6/6 (the Rom and the gapps).

Cm official has been having major issues lately therefore I don't trust it.

I've had the fading into black issue on my phone with an incompatible kernel

Make sure to use somcomx3's twrp. It is the most up to date recovery
[Moto G 4G Android Development] dog121:
Guys need a favour any one point me in a direction of cm11.zip I went back to stock to check lolipop update not there yet cm12.1 only bootloops and blispop as well so need cm11 zip ...then cm12 thanks
[Moto G 4G Android Development] dc239:
......again again and again....you don't need to flash cm11 first and then cm12....you can go directly to cm12 from stock,just wipe the INTERNAL STORAGE and you'll never have any bootloops on lollipop based roms
[Moto G 4G Android Development] dog121:
Done that plus format ext doesn't work...
[Moto G 4G Android Development] dc239:
Did u used somcom's3x TWRP and did u wiped /cache /dalvik cache /system /data /internal storage ?
[Moto G 4G Android Development] dog121:
Yep did that using twrp 2.3.8.0

All sorted now wiped it twice boots up fine...
[Moto G 4G Android Development] afox27:
I am use somcom's recovery. --__-- tomorrow is my day off I'll try again then till then tho. My phone is stuck on the fastboot screen or turned off
[Moto G 4G Android Development] molnaratt:
Dear All,

I've found a bug in the latest relases, that is very easy to reproduce:

- Use Trebuchet as launcher.

- Open Chrome and a webpage. Select save link to desktop.

- Chrome will close and a shortcut will appear.

- Open that shortcut and Trebuchet will FC.

I've sent the report from CM, but I don't know how it will be fixed. I use many shortcuts in a folder to reach the favourite pages quickly.
[Moto G 4G Android Development] michael_ch:
Any feedback?

Anyone else?
[Moto G 4G Android Development] DKCN:
I just wanted to share that I again experienced the radio signal being off.

I noticed that when I have this radio signal problem, when I long press the power button, the airplane mode is turned on even when in the notification drawer the airplane mode is off. But I know that once I have this problem I can't get my signal back anymore.

To remedy this situation I will reinstall June 03 nightly, and then back to latest nightly. It's so strange because it works. And I have no idea why. How can I diagnose this problem?
[Moto G 4G Android Development] scattoit:
I've tried... No improvements
[Moto G 4G Android Development] michael_ch:
Not sure how you measured this. Can you please try some reproducable scenario like this?

Please try this 1) with the original settings and 2) after changing the minfree values to "8192,10240,12288,14336,16384,20480":

1. Open Google Maps, choose a destination and start the navigation to it (arrow icon appears in the notification menu).

2. Go back to the launcher, open a music app, start playing some music (in my case I started PocketCasts for that)

3. Go back to the launcher, check mails with Gmail

In my situation, the notification entry for Google Maps disappears usually when I open the 2nd foreground app (in this case it's PocketCasts), but definitely after opening a 3rd app. It also happened to me that sometimes the music stopped when opening another foreground process.

However, with the new values, Google Maps stays in the notification area and the music keeps playing. That's how I expect things to work!
[Moto G 4G Android Development] molnaratt:
I only can confirm that by using Kernel Toolkit software, I can change the minfree values to 64/48/32/16/8/4 Mb: named as moderate settings, and I don't get any launcher redraw or music player stop.
[Moto G 4G Android Development] LluísGili:
I've tried without changing any setting and I can change between applications without trouble
[Moto G 4G Android Development] molnaratt:
I think this should be pushed to gerrit. I hope someone can handle it.
[Moto G 4G Android Development] DKCN:
Has anyone tried adding a group into a message? I noticed that if the group that I added has more than 4, only 4 contacts are added. Can someone try to replicate this? Adding the contacts individually will allow you to add more than 4. But when you have them in a group and add the group, only 4 from that group will be added.
[Moto G 4G Android Development] Plex82:
Awesome battery life!
[Moto G 4G Android Development] michael_ch:
See https://jira.cyanogenmod.org/browse/NIGHTLIES-1361

It will be fixed soon...
[Moto G 4G Android Development] afox27:
OK so its the cyanogenmod kernel that is incompatible with the xt1042 -_- which sucks
[Moto G 4G Android Development] Travisholt92:
Will the overly dark front camera ever be fixed? This wasn't an issue on kit Kat.

Sent from my XT-1045 running:

ROM: AICP 9.0 NIGHTLY 6/05 build

Kernel: Beeeto's Kernel v3 6/06

Carrier: Cricket Wireless
[Moto G 4G Android Development] cokim:
hi guys, i've been reading some of the last posts here and noticed that some of you had problems with recent builds, which twrp i have to use to avoid those problems on the builds from june? my twrp is 2.8.3.0 and i'm using the cm build from may 17th
[Moto G 4G Android Development] mcastagnaa:
Using the "sensible settings" via kernel adiutor delivers a far better multitasking experience for what I have seen.
[Moto G 4G Android Development] BitingChaos:
Since Motorola still doesn't provide downloads for their devices, I decided to try CyanogenMod again. I flashed the June 9th build of CM 12.1.

I noticed a few things.

Issue: The launcher (Trebuchet) doesn't support apps on SD card. That's kind of a big deal.

It seems this bug has been filed over and over:

https://jira.cyanogenmod.org/browse/CYAN-5050

https://jira.cyanogenmod.org/browse/CYAN-5191

https://jira.cyanogenmod.org/browse/CYAN-5401

https://jira.cyanogenmod.org/browse/CYAN-5450

https://jira.cyanogenmod.org/browse/CYAN-5679

https://jira.cyanogenmod.org/browse/CYAN-3170

Work-around: Simply use a different launcher.

Issue: GPS doesn't work right. There are suggestions to wipe modemst1 and modemst2, but that still doesn't get it working as well as stock.

https://jira.cyanogenmod.org/browse/CYAN-5571

Work-around: ???

Issue: My IPv4 address sometimes shows up as 0.0.0.0 over WiFi.

I cannot find any bug report for this. There is a blurb on the "known issues" page (http://wiki.cyanogenmod.org/w/Known_Issues_page_for_peregrine) about IP address.

Work-around: I have to turn WiFi off and then back on. Then it gets an IP.

Issue: Even though CyanogenMod allows you to move most apps to SD card, many apps don't seem to work from SD. Such as Google Chrome and Google Play Music. They crash on me if ran from my SD card.

I couldn't find any bug reports on this.

Work-around: Move crashing apps back to internal storage.

I don't know when the "Known Issues" page on CyanogenMod was updated.
[Moto G 4G Android Development] mihaum:
[MENTION=3975238]BitingChaos[/MENTION], all the issues you've posted refer to CM11. Bugtracker for CM12(.1) is NIGHTLY, but it is supposed to be for regressions only, so no "new" bugs, but only if something has been broken but worked before.
[Moto G 4G Android Development] michael_ch:
As a result of this, the following patches have just been merged:

http://review.cyanogenmod.org/#/c/100758/

http://review.cyanogenmod.org/#/c/100759/

http://review.cyanogenmod.org/#/c/100760/

see also https://jira.cyanogenmod.org/browse/NIGHTLIES-1361

Looking forward to the next nightly build... :)
[Moto G 4G Android Development] beeeto:
Wow, you made a really good job tracking the commits so Michael could look at this issue pretty fast, if these new minfree values work it would be a damn big improvement over current CM12 builds.

Congrats bud :)
[Moto G 4G Android Development] afox27:
Can someone please let the dev know that the xt1042 aka U.S. cellular variant dosent work!! They need to update the wiki
[Moto G 4G Android Development] occtec:
Hey guys so I've downloaded the last two builds and flashed on my sons xt1039. From boot logo he seems to be experiencing like a horizontal scan/refresh line that goes up the screen, screen on/off doesn't resolve it just on the odd reboot it seems to disappear for a short time but then reappears again and continues to scan up the display. Is there any known fix for this? Any help would be appreciated. Cheers
[Moto G 4G Android Development] tijuanacartel:
So i've been looking into this as I don't see the same amount of improvement as lots of people claim. My best has been with Kernel Adiutor's medium setting.

I started looking into other android devices with 1gb of ram or less. One thing i came across was discussion of Project Svelte which was a project for kitkat to run on devices with 512mb of ram.

I couldnt find much info about this Project svelte other than it intelligently disabled animations on low memory devices.

Hmmm..

Developer options -> set all animations to None

Now (with kernel adiutor settigns as well) as a test... open Google music, play a track

Open Chrome, go to facebook.com - no issue

Open Inbox - no issue

Open Google Now - no issue

Open Task switcher, switch between all of the above - No issue

Usually, if i tried to do any combination of two of these it would kill my device.

Cautiously optimistic here, but if you are still having issues, try disabling the animations. And/or, try enabling force GPU.
[Moto G 4G Android Development] hhrokarvi:
Hey mate.. That ain't a big issue. Has to do with the bootloader of our phone not being fully compatible with Lollipop. It will be fixed once we get the Official from Motorola. The workaround for now is to just power off the screen and open it after a couple seconds, the scan thingy should go away!!
[Moto G 4G Android Development] occtec:
Beautiful, thanks mate. I had a feeling that maybe it had something to do with the bootloader hence why it starts at boot logo. Thanks again...
[Moto G 4G Android Development] setherd:
I got the new Nightly (june 11) and so far it rocks!!!!!! no home screen redraws yet!!!

Great job!!
[Moto G 4G Android Development] rambird:
GPS issues

Hi , I am new to this forum and apologise for eventual wrong posting/forum: please redirect me if this is the wrong place for this.

CM ver.12.1-20150611-NIGHTLY

Android ver. 5.1.1

Moto G LTE XT 1039

Yesterday I drove from Edinburgh to Culross using Scout and later Google maps.

Since I was driving I didn't discover until later what was going on: the app did not find my position and stopped working after a while. It started working fine and navigated for about ten minutes and suddenly stopped and got completely lost.

On the return trip I used G-Maps and exactly the same pattern: ten minutes or so all is OK and then the error message of "GPS signal lost" and never recovered.

It seems that the GPS subsystem does not follow a moving phone and as soon as it moves away from starting position the GPS looses the position updating algorithm.

Just tried Scout app again from my desk and it finds the phone and keeps it.

I know this is a bug in CM and XT 1039 but just wanted to report it again and see what can be done about it.

Thanks for a great ROM ... I am loving it.:good::good:
[Moto G 4G Android Development] zackwire:
Had this issue in CM 12.1 and now on Stock 5.1, even rooted my stock device to try some custom NPR settings but with no luck...the only thing that worked was to turn off 4g/3g networks when i use the GPS...it works flawlessly on 2g networks only.