yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] Crim Soukyuu:
I'm using the 6.3.24 weekly xiaomieu ROM. I did try flashing superSU, it's not getting triggered when an app requests root.

Also, I don't see why I shouldn't be using the built-in app, considering switching to superSU makes me lose permission management.

I flashed the ROM .zip using TWRP, so whatever xiaomi.eu put in there was flashed.

You went overboard, as I suspected. There is the "memory optimization" setting in developer options. Setting it to "off" has rid off all the app closing issues I was having, and I still have the recent apps menu working.
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] Check that Autostart permission for SuperSu app is enabled just in case it is being blocked by that.

Root permissions will be handled by the SuperSu app instead of within Permissions Manager. All other permissions controls will still work in Permission Manager.

If you flash SuperSu through TWRP and haven't enabled the "systemless root" option (that is only relevant to Android 6.0) it should be installed without problem.

The reason you should use the full SuperSu app is so that you are in control, rather than depending on what Xiaomi lets you see. Just as their packaged App Permissions limits you to only see and set certain permissions while preventing you seeing some the more worrying ones....

Interesting what you say about the memory optimization setting in developer options. It must be similar to setting LMK settings too aggressive. On a reasonably skinnied MIUI, the extra free memory should not require such aggressive killing of apps and with the addition of a 1GB swap drive, should be something that is no longer a problem.
[Redmi Note 2 Android Development] Crim Soukyuu:
Where do I check the autostart permission? The security app? It's the first time superSU is not working after "just" flashing it with TWRP, as it did on other phones I used.

The memory optimization option works in parallel to the LMK, actually. I tweaked LMK with kernel adiutor and the apps were still being kicked. I then found this thread on miui.com, and it was clear to me that this option is what's causing it.

edit: I have no bloody idea what has happened now, but it's completely broken now. Can't download anything over exactly 2.49MB, there are hangs everywhere and the superSU app claims no SU binary can be found even though the installer (tried stable & beta) says everything went well. Tried wiping caches and now the phone has somehow lost the superSU app I installed previously.

edit2: Installing superSU before flashing your boot.img asks me to update the SU binaries, but fails when using normal mode, and also fails via TWRP.

The security app is a replicant. I even tried deleting it from TWRP and it errors out. Removing it with Titianium backup seems to remove it, but it's back after a reboot. The moment I flash your boot.img, root access is lost and superSU disappears. Reflashing via TWRP doesn't work, as the app still claims there is no SU binary.

I don't think your tweaks are compatible with this MIUI version, tbh, if you have the time you could test it yourself, I guess.
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] It is the only instance of this problem I have heard of but there is talk of this type of thing happening if the original root was Kingoroot or similar Chinese root. It normally just works - flash the supersu zip in TWRP and it is done!

Is eu 6.3.24 ROM for note 2 or note 3 (hermes or hennessy in build.prop)?
[Redmi Note 2 Android Development] slumslayer:
[MENTION=2288000]Crim[/MENTION] Sokiyuu I was using a .eu 6.3.24 rom with supersu and jajk boot.img without any problem. Did you flash the correct version (hermes) as jajk suggested ?
[Redmi Note 2 Android Development] jajk:
Found that EU 6.47 ROM is not 100% compatible with the Skinny boot images. If you enable zram, it won't work and it might not boot.

The only difference in init scripts are these entries in init.miui.rc:

on property:sys.miui.nativedebug.coredump=on
mkdir /data/system/nativedebug/core 0777 root root
restorecon /data/system/nativedebug/core
write /proc/sys/kernel/core_pattern "/data/system/nativedebug/core/core-%e-%p"

on property:sys.miui.nativedebug.coredump=off
write /proc/sys/kernel/core_pattern "/dev/null"

service fdpp /system/bin/fdpp daemon
class main
user root
group root

This might indicate that there is something different in the kernel and system. Possibly a hack attempting to improve battery life / performance. Maybe someone could open /system/bin/fdpp in a text editor to see roughly what it does? The file doesn't exist in any other ROMs I have seen.
[Redmi Note 2 Android Development] Crim Soukyuu:
It's the hermes one, at least the archive I flashed it with was named hermes. The build.prop has it as hermes too.

The dev ROM comes pre-routed, so the only root I ever used was the one built into the Security app. Maybe it will work if I switch to stable.

Yes. And there are only 2 boot.img, so I couldn't have possibly taken the AOSP or a MIUI for another phone.

Well, at least there is no such file in the 6.3.24 one, so that's not what's causing the problems here...

I'll try completely wiping the thing and starting anew, maybe because of some upgrade issue something got screwed up. Though that should have been solved by wiping caches, theoretically.

edit: wiped clean, re-flashed ROM and superSU in one go and it worked. Maybe the security app roots itself deeper into the system after first run or something.

The phone still freezes for 2-3 seconds now and then once I flash the boot.img, though.
[Redmi Note 2 Android Development] jajk:
[MENTION=5898910]Crim Soukyuu[/MENTION] Maybe EU Miui ROMs are doing something different lately and need their own boot.img matched to their ROM? I stick to MR ROMs as a matter of personal preference so I have not played with late EU ROMs. Their included kernel looks the same size as later stock ones so I don't think it is customized.
[Redmi Note 2 Android Development] tonydeli7:
I think EU roms are cooked/mixed with global roms. That's why they don't have Yellow Pages in Dialer and some other stuff...

And maybe they also modify the kernel as well...
[Redmi Note 2 Android Development] IshtaNoob:
Does this work with vova.vafin's AOSP?
[Redmi Note 2 Android Development] Crim Soukyuu:
Yellow pages itself is there, though. IDK, maybe the lags appear for me because I haven't edited that initrc script yet. Didn't have time to experiment because it's my daily driver.
[Redmi Note 2 Android Development] jajk:
[MENTION=6068190]IshtaNoob[/MENTION] Download the AOSP version - it is for vova's builds;)
[Redmi Note 2 Android Development] tonydeli7:
I know yellow pages are in EU version also,but the don't show up as an option in dialer.. I had the same thing like you after flashing jajk kernel on EU version,so I switched to my fav Multirom.. :)
[Redmi Note 2 Android Development] Crim Soukyuu:
[MENTION=468748]tonydeli7[/MENTION] Oh, so I'm not alone with those freezes after all?
[Redmi Note 2 Android Development] tonydeli7:
Nope... But that does not happen on MR Roms...:confused:
[Redmi Note 2 Android Development] IshtaNoob:
You two should be working together, either on the already good AOSP or on improved MIUI ROMs.
[Redmi Note 2 Android Development] jajk:
I think it best not to use this on the current batch of EU ROMs.

MR7.2.30 still seems to be the best with later ROMs from all sources being full of bugs by many reports on other sites.

If you find and read the changelogs for later versions, you will see that there is nothing really worth the effort of updating.
[Redmi Note 2 Android Development] jajk:
[MENTION=6280308]BlayDee[/MENTION] Load 6.9.15, keep up:D

[MENTION=2606021]cukierkas[/MENTION] In your init.d script, stop mcd_service

before

creating a zram. Use alternative syntax in the script. Also, in developer options, turn off Memory Optimization. Also blank out the contents of /etc/mcd_default.conf. Remember to set swappiness to 100.
[Redmi Note 2 Android Development] Adam Hui:
MR 8020 b54 https://multirom.me/MROTA/STABLE/multirom_HERMES_V8.0.2.0.LHMCNDG_v5.0.2_b54_0970c87352.zip

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] cukierkas:
Thanks, alternative syntax with busybox working, attaching the screen. Question, do 100 swappiness affects the battery impact? Cpu is forced to work with swap more often... Maybe 60 is enough?

Another Thank you for cpu limitation script, I've never seen so truly working mtk on MIUI. And it feels more fluid. Guessing the entropy working as well. :)

Anyway, happy to use it.
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Having zram adds overhead to file transactions since it is compressed /decompressed on the fly but surprisingly little effect on battery overall. Killing apps and reloading them if you are short on RAM uses much more battery. Think of the swappiness setting as a willingness to use swap, not as a definite ratio.

Yesterday I had the opportunity to test how running without perfserv affects battery life. Out on my usual fishing round trip using the phone as my chart plotter GPS for 6 hours straight. Came back with 67% battery left where I normall have in the 30s. This confirms what is easy to see - PerfServer tends to over-anticipate how much grunt you need and ends up wasting battery. I have attached my full init.d script to use as a reference or starting point - keep in mind that I have a heavily skinnied ROM, no GAPPs and this is operating without PerfServer.
[Redmi Note 2 Android Development] cukierkas:
Go to the settings, notifications >apps> and enable your app's led. Charging led is enabled via additional settings >charging.

---------- Post added at 01:07 PM ---------- Previous post was at 12:15 PM ----------

Edited my own script with yours cpu cores limitations, plus added line in build.prop with perserv=0.

Will see the behavior.

I'm happy to see my phone revived, I was already thinking to renew it with Kenzo.

Regards.

Ps, [MENTION=5952980]jajk[/MENTION], do you have donation button?

Would happily buy you some coffee or beer.
[Redmi Note 2 Android Development] vetriolo:
Why did you stop the services related to A- Gps ? Are they useless? Or you don't use GPS ?
[Redmi Note 2 Android Development] cukierkas:
Put # symbol in front of the stop agps.

Another thing, gps is triggered when you opening any GPS related app, so this command only stops starting at boot.
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] Using your initd script plus boot-7140-v4fixed and no perfserv, I get "android.process.media has stopped" when unlocking the phone just after bootup. After dismissing it, nothing else seems adversely affected. If I change to boot-7140-v3, I don't get that error.
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] I do use GPS but not the "fine" location function that combines mobile network and wifi information with the GPS satellite information. That is mainly used for targeted advertising rather than enhancing your positional accuracy. agpsd probably needs to be on if you use Google Maps. It starts

by default

and the init script

stops it again

so disabling the line with a # will allow it to stay running. That applies to all the services you see in my init script;)

[MENTION=2606021]cukierkas[/MENTION] Why would you buy another Xiaomi product after experiencing the crap ROMs they release and the complete disregard in which they hold their customers:confused:

A pig with lipstick on is still a pig.

[MENTION=5850987]DarthJabba9[/MENTION] I don't know why but you are more than capable to figure it out. I am still running on 7550 so it it tricky for me to try and recreate your issue.

[MENTION=4666525]Adam Hui[/MENTION] Anything good in MR 8020 compared to 8010?
[Redmi Note 2 Android Development] jajk:
Edited O.P to make it clearer that an

existing line

in build.prop must be edited instead of adding a new line when going single SIM mode or without PerfServer.
[MENTION=2606021]cukierkas[/MENTION] Check that is the case.
[Redmi Note 2 Android Development] cukierkas:
Edited and script according to your recommendation.

Thanks.

Let's see the behavior after couple days.

And yes, I would buy another xiaomi phone, but with SD, like Kenzo, to load cm13 or even cm14 is now available ;)
[Redmi Note 2 Android Development] jajk:
O.P edited with extra build.prop possibilities to play with;)

v5 images uploaded for all versions.

What's changed in v5 images:

Factory disabled lines, file does not exist, now redundant or hardware not found in RN2 lines deleted to improve readability and streamline boot (all non-existent sensors removed)

Fixed typo in 7140 image that may have upset OTG functionality. Ha! before anybody noticed:o
[Redmi Note 2 Android Development] DarthJabba9:
Possibly - but it's a lot easier to just move back to v3; then I can allow the grey matter to rest :silly:

Mine is already set at 497 :confused:
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] 497:confused:
[Redmi Note 2 Android Development] DarthJabba9:
Yes! That is the setting that the 7.2.5.0 ROM came with!
[Redmi Note 2 Android Development] acestars:
In my case the device is so laggy and the touch is not responding. I need to hard reset to recovery.
[Redmi Note 2 Android Development] Adam Hui:
[MENTION=5952980]jajk[/MENTION] i've been enjoying 8010 v2 + attached init.d but then i noticed bt wont turn on while trying to send wp from my wife's wp caroussel to mine.

Did u disable bt services in v2 img? Yes> what easy edit for enable ?

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] Bluetooth is not disabled in the boot image - in fact, nothing you would find useful is disabled since v4 which is the whole idea of the shift in the way these images work.

Bluetooth is disabled in my example init.d script since I can't afford any bluetooth devices like some people. Disable the stop mtkbt line and magically bluetooth will start working again (after a reboot or start mtkbt command)

[MENTION=3885679]acestars[/MENTION] I am assuming you have an Xposed issue? Have you tried reinstalling Xposed framework after the boot.img (or installing the boot.img before Xposed)?
[Redmi Note 2 Android Development] cukierkas:
So, my conclusion after 2 days run with perserf disabled. Sot is only 2,5h with 30 min of talking, vibering and ebook reading. Well, I would call it bad. Cpu is nearly all the time [MENTION=4339643]800mhz[/MENTION] or 1,6GHz. Yes, modified script is enabled with recommendations.

Running half of day with enabled perserf, cpu is quite sleepy, but phone is fast and sharp. And yes, script is the same as on OP. So, I'm sticking to this version.

Running 6.9.15 with modified boot.img and recommended script.

On attached screenshot is clearly visible, when perserf is enabled with script modification.

Regards.
[Redmi Note 2 Android Development] DarthJabba9:
I am more interested in idle time than in SOT. I don't see much difference in idle time either way (with bluetooth permanently enabled). I am keeping perfserv disabled for now ...
[Redmi Note 2 Android Development] Adam Hui:
Check the difference while it's enabled & disabled of your "CPU Stats" by BBS, in a same condition usage ofcuz.

The lower cpu frequencies frequently used, the better setting that logically accepted.
[Redmi Note 2 Android Development] cukierkas:
Thanks for the answer.

Sadly I did not take the screenshot while perserf was disabled, but average load was 6-8% per h. Cpu load was 1,6ghz with 30% of all load. 40% was 1.2ghz. And the rest lowers we're rest.

Now attaching with enabled perserf.

Guessing it depends on usage.

What other users will tell?
[Redmi Note 2 Android Development] Adam Hui:
Still curious why the batt drained 2,9?/hour while the CPU was 75% deep sleep in 10 hours+ idle time. It should be lower.

But it still a good pow saving result afaik, congrats.

Edit : [MENTION=2606021]cukierkas[/MENTION] can u ss your BBS summary ?

[MENTION=5952980]jajk[/MENTION] what's wrong with perserv disabled in this case?
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Unusual results. You should not be getting so much time at 1.66MHz and 1.18MHz unless you are computing the trajectory for the next space probe. Are you sure perfserv is disabled? If you run the Interactive settings in the example script with perfserver still enabled, I would expect exactly what you are getting. The sure-fire way to tell is to swipe the screen a small amount while monitoring the cpu, if you get 2 cores at 1183MHz, perfserv is still active. Running with or without perfserv will not affect sleep time but will affect how much cpu power is consumed for minor tasks. Heavy and prolonged tasks will consume the same cpu power i.e. we are only trying to stop the over-reaction of perfserv to initial light loads.

Remember: 2 different example settings for Interactive depending on whether or not perfserv is running. Use the wrong settings and the cores and frequencies will not play well;)
[Redmi Note 2 Android Development] spoof123:
In the first page, the available version is V3. Where is the download link for V5 ? Thanks.
[Redmi Note 2 Android Development] Adam Hui:
I'm in a bit confusion about this two interactive settings u mentioned at op & if not a bother, i want make it fast n easy, which setting for best battery with perserv disabled ?

can u pls explain the worthy to choose deadline instead cfq in miui ? (sorry if this sounds stupid.. :laugh )

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] acestars:
I flashed 7014 v5 and wipe cache& dalvik cache yesterday and still testing.

I am using battery profile of GovTuner too. So far the device still works properly.
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] The reason for the difference is because of the presence or absence of PerfServer which essentially overrides some Interactive Gov and Hotplug functions. Incidentally, Perfserver is limited to switching in 3 cores for about 5 seconds. Anything beyond that is either the governor or hotplug server in action.

Without PerfServer, we set the responsiveness via the governor and hotplug server as in most other non-MTK phones. The trick is to balance responsiveness with the need to conserve battery.

With Perfserver, the battle is to keep the cpus from over-reacting to minor events (PerfServer is way too aggressive) so we shift to setting the governor and hotplug server biased towards trying to return to idle promptly.

Make sense?

Deadline was specifically developed for computers with solid state memory - CFQ is designed for computers running hard drives (rotational storage);) If you have a hard drive in your phone, switch to CFQ:silly:
[Redmi Note 2 Android Development] vetriolo:
Mistake: I removed Permission manager inadvertently. It's possible to reinstall without reflash the ROM?

P.s.: I confirm..... In the first page there is a link only for V3 version...
[Redmi Note 2 Android Development] Adam Hui:
[MENTION=5952980]jajk[/MENTION] thanks for explanation, clear enough for me.

Is it possible (not contraproductive) to set interactive gov hi_speed to 403000 along with that hotplug setting, since i feel 806000 was enough drainy & i'm a light daily user.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] Try it and see if you like it - but it will introduce lags. Without perfserv, there is no touchboost so the job of initially cranking up the frequency is solely done by Interactive Gov. Its own boost function is removed by MTK so the only form of boost is the go_hispeed freq. Having this too low will only force more cores to activate so power savings are lost.

It probably went unmentioned but the HPS settings can be manipulated a little but make sure you turn off the 2 boost settings as follows:

echo 0 > /proc/hps/rush_boost_enabled # factory default 1

echo 0 > /proc/hps/input_boost_enabled # factory default 1

then you can up the thresholds a little:

echo 97 > /proc/hps/up_threshold # factory default 95

echo 87 > /proc/hps/down_threshold # factory default 85

this will keep the cores a little more subdued as long as the thresholds are slightly higher than the Interactive thresholds.

If all is done right, the attached images are what you should get when the phone is put to bed at night;)

But... do not get excited by apparent battery drains due to shifts in temperature. If you charge to 100% when warm, you can loose an apparent 2-3% if it cools down (overnight). You will regain the loss if the battery warms up again. This is just a trait of most battery chemistries.

[MENTION=7694222]vetriolo[/MENTION] Looking at the list of available files I see 3 v5 files - 1 for each application as mentioned at the start of the post. Use Skinny_Pro_MIUI8_6915_boot-v5.img for 8.0.x and 6.x.x versions of MIUI8.
[Redmi Note 2 Android Development] Adam Hui:
[MENTION=5952980]jajk[/MENTION] i've no patience to try it last night 10am & no lags at all, maybe just becoz cores were trigerring by low hi_speed XD

One make me wonder just why i feel the drainy slightly decreased, ScreenWakeUp as normal partial wakelocks also decreased, attached bbs.

I'll try combinate 403000 with your new hotplug setting, will report later.

P.S. : can we beat powermanager_service wakelocks or at least decrease it down ?

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] I'm no dictator as long as you do as I say:)

Drain will decrease with a lower hispeed freq setting as long as the governor still responds fast enough to avoid too many cores being switched in - everything is a trade-off between battery or performance.

PowerManager is a tricky beast. Either you uninstall it and

never ever

touch any battery settings and everything will work fine

or

you leave it installed and set up the best battery profile that suits you. If it is uninstalled and you mess with the battery settings, it gets confused and cannot turn itself back off and you will get PowerManager running for long periods.

Using doze is not helping either. Set the phone to sleep after 15 or 30 seconds instead. Turn the nav button illumination off or shorten the on time as well.

At the end of the day, don't let BBS or WLD make you paranoid - use the tool to make the necessary decisions and then uninstall the app. You can get a situation where the best way to improve battery is to uninstall all the battery saving apps that are eating your battery:p

Edit: I tried the 403MHz setting and it is quite satisfactory as far as lags go as you said. I think the gov is scaling quick enough to not notice the delay in getting up the processing power. Should it be the standard recommendation? Let's see if one more person agrees and then I might name that one in your honour.
[Redmi Note 2 Android Development] Adam Hui:
I'll let PowMngr pass & got battsaver unistalled, improvement should catch logically.

Been using tools as tools, just to make sure any slight improvement progress gotten as a changes from old tweaks.

I'll try 403 as hi_speed along with your HotPlug settings at PerServ enabled situation (while i'm in PerServ disabled) & hope another batt improvement. Neither back to previous 403 setting.

me ;D ? thanks..., just take 'ezekiel' , a missing dev i missed at xda, imo the 1st embrio coder of LG's knock codes called Swipe2Wake (s2w), developed at the beginning euphoria by B/W Gingerbread to ICS in i9100 (SlimRom).

*] front LED holographic keyboard >> another dream in android