yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] didhiy:
[MENTION=5432026]nicknitewolf[/MENTION] looks this commit is promising to allow CPU cores to offline

https://review.lineageos.org/#/c/107888/3

Change 107888 - Merged

Reply…

Included in

Patch Sets (3/3)

Download

core_ctl: Manage number of online cores based on system load

The core_ctl module takes input from userspace and CPU load information to

decide how many CPUs to keep online. User space has the following tunables:

- min_cpus: Minimum number of CPUs to keep online. This overrides other

heuristics.

- max_cpus: Maximum number of CPUs to keep online. This overrides other

heuristics.

- additional_cpus: Additional idle CPUs to keep ready for use.

- busy_up_thres: The normalized load% threshold that the CPU load should

exceeded for the CPU to be go from not busy to busy.

It could be a single threshold for all CPUs in a group, or num_cpus

thresholds separated by spaces to specify different thresholds based on

the current number of online CPUs.

- busy_down_thres: The normalized load% threshold that the CPU load should

be lower than for the CPU to go from busy to not busy.

It could be a single threshold for all CPUs in a group, or num_cpus

thresholds separated by spaces to specify different thresholds based on

the current number of online CPUs.

- offline_delay_ms: The time to wait for before offline cores when the

number of needed CPUs goes down.

Mot-CRs-fixed: (CR)

Change-Id: Ied1d5bcbb8da5bbd5f3d1a3f042599babace6b65

Signed-off-by: Saravana Kannan <skannan@codeaurora.org>

Signed-off-by: Junjie Wu <junjiew@codeaurora.org>

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>

Signed-off-by: Ravi Chebolu <arc095@motorola.com>

Reviewed-on: http://gerrit.mot.com/866560

SME-Granted: SME Approvals Granted

SLTApproved: Slta Waiver <sltawvr@motorola.com>

Tested-by: Jira Key <jirakey@motorola.com>

Reviewed-by: Lian-Wei Wang <lian-wei.wang@motorola.com>

Reviewed-by: Christopher Fries <cfries@motorola.com>

Submit-Approved: Jira Key <jirakey@motorola.com>
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Fobos531:
How can I check which bootloader version I'm on?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] farizmrafi:
I've give that permission and it's still same. I also do clean flash and also didn't work too.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] jgbertoldo:
This is really necessary? Can be used the original kernel configuration suggest by Nick?

---------- Post added at 09:36 AM ---------- Previous post was at 09:35 AM ----------

This is really necessary? Can be used the original kernel configuration suggest by Nick?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] nicknitewolf:
No. msm8916-common doesn't use core_ctl, might be added in the future.

Please please please don't copy the commit-message over to xda, very spammy, link is good enough.

When did I ever suggest kernel configurations. : P
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] jgbertoldo:
I think the question around Kernel configuration (not kernel change) is how to have a better battery life and to have less or no heating without loss of performance. In my opinion, performance is good in custom roms (LineageOS is very good), compared miui. So, can be possible focus increase battery life? :v
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
I really don't know what you guys are saying of the battery, my battery is decent for it's capacity, I don't have anyway to proof what SOT I got, but I always get 3hrs and ~20 to 30 minutes, but when I'm gaming this reduce to 2hrs and something. I have to thank Nick for this rom, becouse it's more stable then miui
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] arickhoki:
pending the kernel fix is ​​not wrong to try another kernel. I tried that hyper by chaubeyprateek v1.1 kernel with kernel auditormod help set the cpu frequency min 400 max 1209 governor darkness, cpu hotplug set msmhotplug, io scedular fiops turns battery life and no heating. thx nick for this rom :good:
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] jgbertoldo:
So, I agree with you. The screen time is 3-4h in means in general ROMs. The screen time is influenced by several factors, not only by the ROM. But, some people prefer performance then battery others not. In both cases, is necessary to hit the battery/performance set, which is not easy at all.

I'm testing ROMs and verify the standby and screen time battery consumption and the stability of OS. Indeed, the LineageOS, as I said before, is a great project, and a good ROM.

:v
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Komanche:
With the above settings, I usually have battery for 12 hours. Minimum 4h navigation with Waze, 1h play, lot of talking, some texting... Dual sim standby, around 6h daily data/wifi. It is my work phone.

With Android 6, default settings, I got maximum 6 hours of battery, with the same daily program.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] roni20:
I try this rom, i thinks this rom almost stable, but i get litle bug, if charging off battery indicator eror ,first icon big and than icon litle. I hope next update be solved. Thanks for nick
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Dyt199412syam:
For people who have camera and torch did't work, try to use micro opengapps. I tested every lineage builds (01, 04, 0,6, 08, 11, 14) on my 2014811 and 2014813 and never faced the issue.

Regards
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Shashank Varma:
Since all the systems are operational, Lineage official builds are going to rollout this weekend written in official site
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] dreamH6:
SuperSu bricked my phone.

I turned on root from developer option, than installed SuperSu.

SuperSu asked to be updated, and I choosed to do from twrp.

Next boot hanged at Android logo.

Dirt flash of rom solved, but phone is not rooted.

Anyway this rom is awesome, spectacular battery duration.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] nicknitewolf:
Personal life update:

Ok so, there has been a lot going on in my life currently, therefore there hasn't been a build for a few days and going. The buildserver I am using just did not like doing what it does so I am currently waiting on my new server being set up.

I have setup a slack group too. You guys can check it out here:

https://xdaforums.com/redmi-2/how-to/redmi-2-slack-discussion-t3542339
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
This is my score on antutu benchmark with my device model 2014819 in this rom, cpu and gpu governor is performance with minimum freequency set to 800mhz, it's really smooth and games are lag free, thanks for the awesome work! (I don't know why the score is red tho)
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] nicknitewolf:
20170122

- Adjust LMK values

- Enable ambient display

- Enable DecoupleInteractiveModeFromDisplay

- Upstream (Bootanimation!!!! wooo!!!!!)

https://www.androidfilehost.com/?fid=385035244224414638
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
WooooHoooo!!!!!
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] ThiagoBlera:
Bug report

When i try to access "other sounds", configuration stop to work.

Great job guys! Thanks
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Koustav Kundu:
camera pics with flash are yellowish...it's very very worst than miui8 .please fix this
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Duddits:
I got the same bug...
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] ucupasan:
Choose normal, not twrp
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] himanshu98:
Something is fishy

Just flashed 20170122 on my 2014818 ,and heats like hell.

I kept my phone idle for 10 min to cool down.But just after using for 30sec(no WiFi or mobile data on ) the temp hits 70°C and all the cores running at 1.2 GHz.Tried Clean installation but no luck.Am I missing some thing ?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] melles.android:
Woo!!!!
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Nick GS01:
How to enable root access in latest build ?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] ThiagoBlera:
I installed a .zip of most recent SuperSU version via TWRP.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] aleksander100:
http://www.supersu.com/download i flashed from twrp, uncertain why a few posts above there was problem

---------- Post added at 07:16 PM ---------- Previous post was at 07:12 PM ----------

facing the same bug too
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] xander21:
Other sound configuration not working
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
It's Lineage OS source problem, don't blame the dev for this
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Shashank Varma:
Hey I can't see our device name wt88047 under the list of official supported devices in the wiki lineage OS page
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Skcyte:
Umm, the title of the thread clearly says it's UNOFFICIAL.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Shashank Varma:
Yeah I know but does Redmi 2 is not going to get official builds from lineage OS??
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Skcyte:
Oh it changed. Well maybe soon.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] didhiy:
:highfive: Headset button volume up and down back to normal again :good:

Thanks a lot [MENTION=5432026]nicknitewolf[/MENTION]
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] xander21:
Good news. LineageOS is the only rom in which it operates. :D
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Kimikz:
official release will start this week?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Dyt199412syam:
Official LineageOS starts release today.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
What? that some fresh news there :eek:
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] xander21:
Relax people

---------- Post added at 11:47 AM ---------- Previous post was at 11:46 AM ----------

Relax People
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Kimikz:
The official build release already started

https://jenkins.lineageos.org/job/android/184/ :)
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] mhd_atzh:
It says Cm14.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] hjjffkvdjkn:
When will our device be added in the official builds list?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] OrGiMaSu:
soon, they working on it
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Shashank Varma:
Already added.

http://wiki.lineageos.org/devices.html
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
Builds will be avaliable here from what I see:

https://download.lineageos.org/wt88047
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] cRaWnEr:
How is compass working on latest version? I haven't been able to use it quite some CM14 versions ago
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] aleksander100:
no issues
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] jmmccota:
Why no root?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] xander21:
new security policy :o
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
Root will be a addon for lineage OS, new stuff bro xD
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] jmmccota:
Thanks guys, i'll try with SUPERSU+TWRP
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] tuklai:
heating has been a major problem for the past few weeks...so many users reported,but no response from anywhere..anyways my late night digging inside the ROM has somehow arranged a fix..this heating is not caused by any core_CTL.ko module which I thought of first.This entire heating,rendering CPU to the maximum frequency even when the device is idle,is caused by one single and I guess faulty file imsqmidaemon.You can locate it in /system/bin.The temporary fix is take that perticular file from any miui lollipop ROM nd replace with the lineage os imsqmidaemon file,give proper permission,reboot,and have a cooler device thanku. :cool:
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Dyt199412syam:
O_o. Some errors in jenkins environment may obstructs the building process. So, you guys need to take more patient. https://jenkins.lineageos.org/view/All/builds
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] didhiy:
Which version of stock rom you used? Maybe you can submit the binary to replace this...

official lollipop IMS blobs from 6.8.x

https://github.com/TheMuppets/propr...mmit/857a3a584d46cc0cda9eba44a461872860a3f9e4

I don't have any overheating problem... But I think it's weird CPU min freq can't set below 800 with interactive governor

Personally I think that came from mpdecision to perfd changes...

Mpdecision running not so well in CM 13 (CPU 0 offline) and already removed in msm8916 common but perfd bring us 4 cores always online and can't go lower than 800MHz

That's my opinion
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
Can you upload this file? I don't want to download the MiUi rom just for 1 file :silly:
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] himanshu98:
This one works like charm.Finally some relief after 3 week of misery.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] fmind:
Vibrator intensity

Firstly, I would like to thank for this awsome work.

Secondly, as a feature request, I would like to suggest adding the ability to control vibration intensity.

In "Settings - Sounds - Vibrator intensity" ?

Best regards.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] nicknitewolf:
Can you provide the logs. I want to take a look at those.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] danialbehzadi:
Still has some bugs. For example sometimes one press counts as multiple presses on device and make it go to next song when screen is off or go to maximum volume when screen is on.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] sujit9894:
pls help

Hey ...

Can I use this ROM for "Redmi 2 prime" (16gb 2 GB ram) ??

(Don't angry)
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] The legend of Ang_ga:
Absolutely yes
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] ehsan_zt:
Hi, I want to flash this ROM.

Currently I have official cm13 on kitkat partition, with twrp 3. I know I should flash the newest twrp provided here, but do I need to flash newest MIUI fastboot rom ( so that I have LP partitions) ? or do I simply need to flash the provided firmware file and then this rom ?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Saurabh_Umadikar:
Flash latest MIUI LP ROM and then come to a custom ROM.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] nicknitewolf:
https://xdaforums.com/showpost.php?p=70328051&postcount=3
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] dpnobody:
could you kindly give us the file, would save a lot of time from downloading a 1gb rom.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] abhianand123:
https://megadysk.pl/f/imsqmidaemon
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] ratvim:
I tried it, and heating really stopped, but at the same time VoLTE stopped working.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] mhd_atzh:
Is there any issue with VoLTE? Or any issue.

I found that there is no longer root support and there is a problem under sound settings.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] ehsan_zt:
OK I'm confused, which is it ?? :confused: according to nick I should only use the firmware provided and according to saurabh I should flash latest MIUI LP !

BTW is there any advantage in using LP partitions besides some custom roms that support it ?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] XBowman:
just follow your heart ?.

yes 64bit bootloader, volte support, and less storage
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] tuklai:
Take a look

Both log with the lineage os imsmiqdaemon and the replaced one

Log says Service imsqmidaemon does not have a SELinux domain defined after changing the file.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Kimikz:
[MENTION=5432026]nicknitewolf[/MENTION] the official build is canceled for now?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] lon.h:
Hi guys, sorry for the novice question, Should I use 32 or 64 bits gapps?

Thanks,
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] tuklai:
Yes volte stopped working..trying to figure it out possible solution ..

The file imsmiqdaemon comes with lineage os is definitely a faulty one..try copying the file and pasting in other ROM,same problem will appear in that ROM.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] aleksander100:
flash http://opengapps.org/ select, ARM - 7.1.1 - Nano

Basically 32 not 64
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] lon.h:
Thanks [MENTION=466271]aleksander100[/MENTION]
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] nicknitewolf:
You need to restore the context. Usually context would be added when the rom is flashed but you changed the file, therefore its not there. I have no idea what the context for imsqmidaemon is but you can try check sepolicy/file_context in device tree.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] The legend of Ang_ga:
Happy is when the tag Unofficial change to OFFICIAL. Yey :D
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] dpnobody:
Anyone flashed the experimental build, faced any problem?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] taalojarvi:
How to Upgrade/Install LineageOS

Regarding installation, we recommend that users wipe when switching to LineageOS, and reinstall their gapps. However, we recognize that this can be time consuming, so we are offering an EXPERIMENTAL (read as, if it fails, you’ll have to wipe anyways) solution.

Alongside the ‘weekly’ release for your supported device, we’ll provide an EXPERIMENTAL data migration build.

This build will allow you to ‘upgrade’ from CM to the signed LineageOS weekly

This build may wipe permissions (you’ll have to re-allow app permissions), but should retain all user data

This build will be watermarked with an ugly banner to ensure that you don’t permanently run this EXPERIMENTAL release, and upgrade to a normal weekly after.

The process for this installation will be as follows:

Install EXPERIMENTAL migration build on top of cm-13.0 or cm-14.1 build (don’t try to install LineageOS 13.0 on top of CM 14.1, that will not work).

Reboot

Install LineageOS weekly build

Reboot

Re-setup your application permissions

Given the EXPERIMENTAL nature of this process, we are going to remove this option in two months time.

SOURCE-http://lineageos.org/Update-and-Build-Prep/
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] alok pupun:
Where is the official link
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] LuanHalaiko:
So... OFFICAL, the official build is not ready for our device yet right? becouse if it is, I don't find it xD
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] tuklai:
The default selinux context is u:object_r:ims_exec:s0 and after changing file it changes to u:system_file:s0 .I noticed even without changing the file if we change the selinux context to any expect u:object_r:ims_exec:s0,the device stops heating and volte stops working alongside.I think there is nothing wrong with the file.When we are changing the file the default selinux is changing to other context,that's why the device is not heating,after the changing the file if we restore the default selinux context device starts heating again.The problem is somewhere else,but should be related with ims function.I also noticed lineage is /vendor/lib size varieties with other aosp ROMs,may be the upstream changes have brought these.I copied the necessary ims files from /vendor/libs /framework and /bin of lineage os to other aosp ROM,and it ran well until I copied the imsqmidaemon file,after that the heating problem starts again in that ROM too.

---------- Post added at 08:37 AM ---------- Previous post was at 07:42 AM ----------

Heating problem is solved without breaking volte.I will provide a flashable zip shortly.cheers! :victory:
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] tuklai:
Here is the flashable zip ;)
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] mhd_atzh:
Does anyone have battery problems in this ROM?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] part 1994:
ROM does not provide as good a battery backup as some other Nougat ROM's but its pretty good for daily usage.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] PatrickDziura:
with the heat issue solved with the flasheable fix, is the battery backup better?

And which rom has the better battery backup?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Kimikz:
I dont understand what you guys expect from a 2200MHa battery the battery backup seems fine to me
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] mhd_atzh:
Well, there is no doze working. That's the problem. And Nougat's got Doze 2.0
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] part 1994:
I have not tried the fix for heating issue. All the ground zero ROM's provided better battery backup and even the earlier Cyanogenmod 14.1 versions were better compared to this ROM but I still like this ROM compared to those :)
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] Kimikz:
if i remember correctly doze require a sensor support and redmi 2 dont have that sensor :)
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] sofsamu:
Hi, I have a problem with all the roms that I try and it is, that when they send me a message of Whatsapp I do not receive them. Sometimes it takes quite a while to arrive but it always comes to me when I unlock the screen. Any solution?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] mhd_atzh:
Okay, doze isn't about the hardware it's about the software. I used a android one lollipop phone got upgraded to Marshmallow, had a sweet doze. And I just Changed here only because of the storage issues over there.

So, yes Doze can be brought.

---------- Post added at 01:30 PM ---------- Previous post was at 01:28 PM ----------

Well, it's the problem with the app, it takes a lot time to recieve a bulk of data. And doze sometimes may mute the app, and so it may be a reason.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] RomEveryday:
Reboot Problem

[MENTION=5432026]nicknitewolf[/MENTION] I am facing random reboots when placing or receiving a call and it happens only sometimes. And it is very annoying if i can't place a call. And i faced this issue on almost all custom roms based on naugat and tried changing kernels,gapps,roms and recoveries (Bcz i am a beginner). And faced random reboots on marshmallow based roms when kept the phone idle for a long time. I am on the latest lollipop bootloader and i always perform clean flash. My device is redmi 2 prime 2014818 and don't know is it a device specific problem and currently on the LineageOs 1/22. I got some logcats after the reboot. Please reply with step by step solution.

Thanks
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] sofsamu:
Can I fix it?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] mhd_atzh:
Well, I don't think it's a quite a right solution, until the app upgrades to one. Whitelist the app in the Battery optimization under Battery settings.
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] jgbertoldo:
Yep. In phone use, its fine. But. the big problem are in standby consumption. Instead MIUI, general custom roms are not efficient at "holding" the battery in standby mode. I don't know if is a N problem.

In comparison, the LUMIA 720 had a 2.000MHa battery and had a much longer standby time. So, I think WP and MIUI system is better than Customs systems in battery life. Is it possible to improve this?
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] dreamH6:
I don't have the latest build, but on my 2014813 battery has doubled duration against miui o cm13 with this rom
[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] mhd_atzh:
So, is the new build released in the official website or will it be released?

I can't wait for it, hope it has most fixes.