yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] With PerfServer disabled, the perfservscntbl.txt is irrelevant and does not get processed. You now have just the Interactive Governor and Hot Plug Server controlling the cpus.

These are the settings that you can play with for the Governor:

# Tweak Interactive Governor
echo 806000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq # factory default 1183000
echo 85 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load # factory default 99
echo 95 > /sys/devices/system/cpu/cpufreq/interactive/target_loads # factory default 90
echo 25000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate # factory default 20000
echo 10000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time # factory default 20000
echo 5000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay # factory default 20000
echo 35000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack # factory default 80000
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy # factory default 0

and these are the main ones for HPS:

# Limit CPU cores conditionally (range 2 - 8) Example shows 6 cores for all situations
echo 6 > /proc/hps/num_limit_low_battery # factory default 8
echo 6 > /proc/hps/num_limit_power_serv # factory default 8
echo 6 > /proc/hps/num_limit_thermal # factory default 8
echo 6 > /proc/hps/num_limit_ultra_power_saving # factory default 8
echo 99 > /proc/hps/up_threshold # factory default 95
echo 90 > /proc/hps/down_threshold # factory default 85

Remember that both the governor and HPS are capable of adding cores independently of one another so it becomes a little tricky to tell which is influencing what you see.

A quick test to see what is happening with adding cores is to hold the phone in landscape orientation and the flip it to portrait while watching an app that gives you a display of cpu cores.
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] "/proc/hps/num_limit_low_batt" doesn't exist! What you want is "/proc/hps/num_limit_low_battery"

---------- Post added at 07:02 AM ---------- Previous post was at 07:00 AM ----------

I already tried that before posting - it didn't work (perhaps for the reasons mentioned by [MENTION=5952980]jajk[/MENTION]).
[Redmi Note 2 Android Development] acestars:
I flashed multirom 6.8.25 everything is okay but some app such as terminal emulator and smanager wont open. is any of you have this problem?
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Thanks for pointing out the typo. I have corrected it now:)

[MENTION=3885679]acestars[/MENTION] So is it O.K or is it not O.K? That is like saying CMxxx by xxx is the best ROM ever but nothing works properly. Always do a repair filesystem on /data if you have been ROM jumping and end up with bizarre errors that no-one else has. I have just had to go one step further and format my partitions after testing out a few things and creating unrecoverable problems:(

Running without PerfServer seems to be a good thing - most of the time, something lower than 1183MHz 2 cores is being used so it has to improve battery. Interested in what settings are working well for others - share them when you have them purring like a kitten:fingers-crossed:
[Redmi Note 2 Android Development] acestars:
I mean everything looks ok, no bootoop even with xposed installed and important modules working, such as amplify, greenify, powernap, and xinternalsd. But after i tried to run terminal emulator it hang. I wiped system, data, cache, and dalvik cache before flash. I will try to fix this and share if found the solutions.

Edit:

I think I found the problem. After I flashed the skinny boot image the terminal emulator wont open but if I reflashed the original boot image the terminal emulator is working.

Edit:

I tried flashed multirom 7.5.5.0 the problem with terminal emulator is still there. So I flashed MIRockStyle_V7.2.5.0_XrNote2 back.

The miui is just so weird ROM same android version but different behaviour.
[Redmi Note 2 Android Development] Sleepy_Augie:
Finally got around to fixing my uboot/preboot partitions with sp flash tool. I'm gonna venture out of my shell once more and try out 7.2.5.0 with skinny superSU (from jajjk), jajk's thinner(?) busybox, darthjabba's skinnifying zip, pico gapps, skinny boot image, iceman's twrp3022, and 24p52 modem (Edit: lol not using that, using 24p51 instead). MIUI 8 isn't worth it (all i wanted was full task images in the task manager window anyways), and I felt like I mind as well try out everything that everyone has been working on recently.
[Redmi Note 2 Android Development] vetriolo:
Hi all. Thanks for your interesting work (I read all pages and I hope I learnt something).

I begin to think that my battery is "bad" from hardware point of view. I have skinnified my rom but I can reach maximum 3h SOT (more or less). Sure.... It's better than before (on smiu I could reach 2h SOT)...

My ROM:

sMiui 7.5.3.0 without bloat Xiaomi

Skinny pro image v3

Supersu 2.78

Busybox 1.24.1

Display 30%

No FB

No AutoSync

With wakelock detector I found only Google play service with a lot of wake up...

What else?
[Redmi Note 2 Android Development] lckjosh:
Should I use skinny basic or skinny pro for miui 8 6.9.8?
[Redmi Note 2 Android Development] jajk:
[MENTION=6074407]lckjosh[/MENTION] Neither - 6.9.8 adds another service that is not found on previous versions (mqsasd). I have looked at the file but cannot determine what it might be for so until someone can enlighten me, I can't add support for 6.9.8. Type getprop in terminal and see if mqsasd is stopped or running. If running, type stop mqsasd in terminal (as su) and see if your phone still functions normally. If it is already stopped, this won't help determine if it is needed at all.

[MENTION=7694222]vetriolo[/MENTION] Have you edited perfservscntbl.txt and created an init.d script yet? This is key to realizing battery savings. Install SD Maid and disable autostarts of things that do not need to be running and freeze unwanted apps - sMIUI is by no means skinnified straight out of the box. From that point onward, gains get harder to find but every little bit counts. I need 7hrs SOT which I get but all the shiny things of MIUI are long gone - most people are still clinging to the teet:p

Google Play is an increasing problem but not as bad as it looks in WLD or BBS. Remove GAPPS or accept its obnoxious and arrogant behaviour - no other choice really - don't try to tame the beast - it will beat you down;)
[Redmi Note 2 Android Development] vetriolo:
Sure.. I've edited perfservscntbl.txt and I've utilized a init.d script (attached... something wrong?). I also installed SD Maid to skinnify my ROM and to disable a lot of autostarts . Actually sMiui is only my "base" ROM.
[Redmi Note 2 Android Development] DarthJabba9:
Which terminal emulator are you using? I use (and have been using for years) the one by Jack Palevich (https://play.google.com/store/apps/details?id=jackpal.androidterm), and I don't have any problem with it, regardless of skinny or stock boot image.
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] Script looks good assuming you have edited the build.prop to disable perfserver. I guess a refreshed list of frozen apps, disabled autostarts and disabled services is overdue - I will prepare something shortly.

[MENTION=3885679]acestars[/MENTION] Jackpal Terminal emulator always works just fine as [MENTION=5850987]DarthJabba9[/MENTION] said. Maybe the complication is Xposed framework and modules? It is contradictory to skinny down a ROM and then add a whole heap of overhead back to it. Xposed is to add trinkets to near naked Android, not to add trinkets on top of the trinkets of MIUI:eek:
[Redmi Note 2 Android Development] acestars:
Yeah i am using jackpal terminal and material terminal emulator. I have installed xposed and skinny boot since 7.0.12, all terminal app is working but not on 7.5.5.0 and 6.8.25. So i will stay to 7.2.3.0 for a while.
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] 7550 has the same kernel as MIUI8 so probably needs to be treated as MIU8 when it comes to Xposed.
[Redmi Note 2 Android Development] acestars:
Yeah maybe that's the reason. The xposed framework is not really compatible with miui 8.
[Redmi Note 2 Android Development] AssToast:
Xposed works fine for me on MIUI 8, granted I'm not using skinny ROM though.
[Redmi Note 2 Android Development] acestars:
The xposed framework works fine on MIUI 8 for me too but some apps just wont start or hang.
[Redmi Note 2 Android Development] Adam Hui:
Works w/o complaint on my xtreme skinnied MR 8.0.1 b53 plus [MENTION=5952980]jajk[/MENTION] 's 8.0.1 pro.img : xMIUI n some modules..

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] cukierkas:
Can you please upload you rom to try? Mega or gdrive?

I have trimmed myself the stable version but with sync all the time, heavy viber, 2 exchange push accounts - having nearly same MIUI sot - about 3 hrs.

Another thing, now I'm on holidays, sim card is in lumia 640, reading only ebooks and vibering only with some - nearly 8hrs. :)

So my guess is the only one. Mtk is not so capable to deal with the 4g load at all.

When setting network priority to max 3g- sot is even worser.! -
[Redmi Note 2 Android Development] jajk:
[MENTION=2606021]cukierkas[/MENTION] Try the single sim edit in build.prop to see if that helps or not. Also battery drain due to radio increases dramatically if you spend time in bad reception areas.

LTE mode is for data only, not voice - so if you set to 4G with data turned off, you are running 3G as well.

VoLTE is voice over LTE mode that gives you both voice and data which I don't think our phone is setup to do currently???

[MENTION=4666525]Adam Hui[/MENTION] Useful to point out you are running MR 8010 build 53 (not 44). Not many noticed a second version came out swiftly and unannounced. Maybe this is the build to have? A lot of problems are surfacing with the 6.x.x builds over time if you watch other forums;)
[Redmi Note 2 Android Development] Sleepy_Augie:
Is there any way I could use themes in my current state? I removed mi account altogether, and I can't import themes for some reason (clicking import crashes themes manager). I also don't see any way to move a theme file into the area themes are stored (it looks like themes splits the file into a ton of pieces to store it). If there is no way for me to use the app, can I delete it?
[Redmi Note 2 Android Development] jajk:
[MENTION=7150090]Sleepy_Augie[/MENTION]

Do not delete Themes.

Change your launcher to something with settings that you can change - no more need for crappy themes:good:

Everyone: I am going to change the way the Skinny Boot images work and only include changes that can only happen at boot level - all other changes will be external to the boot image and totally in the users hands to implement correctly or not. I do this to allow for the diversity of tastes however destructive some of these are:p

Power to the people and all blame and whinging directed to yourself:good:
[Redmi Note 2 Android Development] vetriolo:
Did you forget about it? :angel::D

Where will you implement this? In the "roll your own ..." post?
[Redmi Note 2 Android Development] Adam Hui:
Sorry i dont have much time to cook, u can do it urself easily. The recipe for me was afaic i dont want anything in my rom move or take actions without my decisions which always to be minimalized, i always choose between similiar app i want by its size, ram consumption & its actual working, not by popularity. Uninstall every apps or system apps which trigger any activity or receiver dependicity u dont need to, if not possible cut it by disabling its internal services (ex: ad, analytics, health in goog services).

Only have 5 at my autostart : bbm, wa, screenwake up, pie control & xposed (and all permissions half more cutted lol).

SuperSU binary by twrp itself at reboot confirmation & updated by it latest at gplay.

i think i've similiar mindset as [MENTION=5952980]jajk[/MENTION] in this topic, the only difference is he's the engineer who creates & i'm the one always asking a new lol.

Double posting now https://multirom.me/MROTA/STABLE/multirom_HERMES_V8.0.1.0.LHMCNDG_v5.0.2_b53_117e596aae.zip

I think it should reload at OP all your found like disabling perserv, single sim, etc., all that havent been wrote from ur posts, that's nice found for battery.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] lckjosh:
I'm on Xiaomi.eu MIUI 8.0.1.0 stable. Why is it that when I flash the custom boot.img, whenever I try to install an app from the play store it just downloads the app and hangs at 100% and does not start installing?
[Redmi Note 2 Android Development] jajk:
v4 of all versions uploaded. This is the start of a new regime so read the updated O.P that has been updated.

Skinny SuperSU-v2.78-SR1-arm64.zip also available - this is the standard Chainfire package stripped of everything but arm64 support.

I am in need of someone running 6.9.8 to tell me if mqsasd is running by default and whether or not it can be stopped. Anyone have any idea what it is???

To make it a bit clearer what has changed, when using a v4 boot image, you will now have to choose what boot services to stop - the choice was made by me in previous versions.

Note: Stopping a service does not mean it cannot be

restarted

by the O.S or an app.

The most likely candidates will be as follows:

(these are all safe to stop but related functionality will be affected obviously)

stop sn #usb serial number service
stop mcd_service #factory zram implementation - need to stop if running own zram
stop wifi2agps #wifi assisted GPS location
stop agpsd #mobile network assisted GPS location
stop emsvr_user #engineering mode service
stop PPLAgent #privacy protection lock
stop mtkbt #MTK bluetooth
stop batterywarning
stop debuggerd64
stop debuggerd
stop emdlogger1 #external modem logger
stop fdpp #find device privileged procedure
stop logd
stop matv
stop mobile_log_d
stop netdiag #network diagnostics
stop autokd #wifi auto-speed negotiation

Example:

If you do not use bluetooth at all - stop mtkbt

If you do not use Privacy Protection Lock - stop PPLAgent

If you do not use Find My Device - stop fdpp

The beauty of this system is that you can reverse a decision by disabling a line in your init.d script without hassling me;)
[Redmi Note 2 Android Development] Adam Hui:
How about to let v3 regime alive & keep updated for ones who love & no complaining at ?

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=4666525]Adam Hui[/MENTION] No - you will be assimilated.

The only downside to the new regime is that a lot of unneeded services are run at boot only to be stopped again by your script. A small price to pay for the flexibility it brings.

Your phone will run so well, you will never need to reboot again;)

Edit: and never assume to think like me.....
[Redmi Note 2 Android Development] texaveryfun:
I'm running MIUI 6.9.8.

With your command 'getprop' I see that mqsasd is running.

I was able as su to stop this service.

I hope it's will help you.
[Redmi Note 2 Android Development] jajk:
[MENTION=5033193]texaveryfun[/MENTION] Thanks for the feedback. Any idea what mqsasd if for? I usually look inside the archive and open .rodata to see if the text gives away any clues but for this one, nothing useful. Let me know if you can leave mqsasd stopped permanently without side-effect. Cheers
[Redmi Note 2 Android Development] texaveryfun:
Hi,

I have no idea what is this service.

Since I stopped it and didn't noticed any trouble.

I will confirm if all is good this evening with this service stopped.
[Redmi Note 2 Android Development] acestars:
I flashed the 7140 v4 boot image but when the device just enter lockscreen after boot, data usage and android phone got fc and rebooted.
[Redmi Note 2 Android Development] texaveryfun:
My RN2 was blocked. It happened when phone was idle.

I needed to reboot it.

I try again and the same after a certain idle time, phone is blocked.

mqsasd can't be stopped.
[Redmi Note 2 Android Development] acestars:
With so many spyware and junk services no wonder xiaomi wont release the kernel source code :D
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] I don't know why you get stuck - wipe cache & dalvik may help??? The spyware is not so much in the Kernel itself, but everything attached to it. In the AOSP 6.0 thread, you can see that with the kernel source provided by Vanzotec, all that remains is to piece together the drivers for our add-on hardware items - no spyware needs to go anywhere near the kernel:good:

[MENTION=5033193]texaveryfun[/MENTION] I assume that re-enabling mqsasd fixes the problem? Same thing happens if you stop shell - I have tried stopping all services one by one to see what is essential in the past.
[Redmi Note 2 Android Development] texaveryfun:
Re-enabling mqsasd solve the problem.

I have no more issue.

Envoyé de mon XT1022 en utilisant Tapatalk
[Redmi Note 2 Android Development] jajk:
[MENTION=5033193]texaveryfun[/MENTION] Thanks again. O.P edited to reflect this info:good:
[Redmi Note 2 Android Development] acestars:
Its alright, I still can use v3. When i got near my office pc i will try to logcat. Wow so many great developer trying to build our device kernel.
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] 1 developer and his helpers - NoFearNoHappy. I am not aware of any other devs working on a kernel now or in the past. It is a common misconception that messing with the ramdisk scripts is somehow creating a new kernel - that is not the case at all and anyone claiming to have made a kernel for our phone who is not NoFearNoHappy is full of s#*t.

FYI: Vanzotec is the company where the Android 6.0 MT6795 kernel source code came from. It is not written for Xiaomi or our phone hence the lack of specific add-on hardware support. NoFearNoHappy is pulling the resources together to provide support for our hardware platform and doing a brilliant job. Please do not harass him with Noob like B.S requests that will drive him even further away from xda.

A big warning if you are tempted to play with AOSP 6.0 - Look at the scatter file as compared to our standard ROMs and understand that it wants to shift partition starting addresses and sizes. If you do not have the skills and resources to revert back to stock partitioning, stay away from it for now.

I will support AOSP 6.0 with a Skinny boot image as soon as the outstanding hardware issues are solved ;)
[Redmi Note 2 Android Development] acestars:
I will wait nofearnohappy for finishing the kernel. and of course waiting for your skinny image too. I only have one device so cant test any unstable rom.
[Redmi Note 2 Android Development] jajk:
Already looking at the AOSP6.0 boot.img. It is nice to see no mdbd or tunman and a complete absence of the mcd service. There is a lot of extra logging turned on at the moment but it is in Beta testing so it makes sense. Hopefully, when a stable version is released, all the extra logging is removed. I think this kernel, free of configurations for multiple devices and Xiaomi bloat, will really unleash our beast:fingers-crossed:

A perpetual error in the stock ROM has been picked up and corrected: The recovery partition was set to 134MB when it should have always been 16MB. I had previously shifted and resized the partitions on my phone to gain an extra 500MB storage and thought that was cool but too much effort and risk for the small gain. That is when I first noticed the crazy size of recovery.
[Redmi Note 2 Android Development] lckjosh:
On MIUI 8 6.9.8 notification and charging leds are not working :(
[Redmi Note 2 Android Development] BlayDee:
Flashed 8010 into 6.9.8 and it lags every 15 sec +/- for 2 sec.
[Redmi Note 2 Android Development] Adam Hui:
8020 china kernel : https://mega.nz/#!H9YxRICa!NEmH-LcR04x6UB53fMI6RRzeoW-8rFg8GrxW7EMcIrA

Edit : it's from china stable.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
[MENTION=6280308]BlayDee[/MENTION] Then flash 6.9.8 into 6.9.8

[MENTION=6074407]lckjosh[/MENTION] You must have a special phone

[MENTION=4666525]Adam Hui[/MENTION] Keep that up and you will be my new best friend:highfive:

Nothing new in 8020 boot.img so keep using 6980 v4 or 8010 v3 for 8.x.x ROMs. Use only 6980 for 6.9.8 or 6.9.15

Nothing new in 6.9.15 either;)
[Redmi Note 2 Android Development] Adam Hui:
Having trouble to finish any download while using 8010 v3 img, down to v2 & all sorted out.

Anyone same issue? Neither just a report.

*] front LED holographic keyboard >> another dream in android
[Redmi Note 2 Android Development] jajk:
6915 v4 image uploaded - use for all MIUI8 8.x.x and 6.x.x ROMs

[MENTION=6074407]lckjosh[/MENTION] Reload this latest image - a line referring to Yellow LED was missing out of the previous version:confused:

[MENTION=4666525]Adam Hui[/MENTION] That fault seems to be related to the Gapps that installs as part of the ROM install. One of the downsides of installing Russian ROMs is what they package with the installer - SuperSU, Busybox and GAPPS usually. Reinstall GAPPS separately after first boot and problem goes away.
[Redmi Note 2 Android Development] acestars:
I tried to flashed 7140 v4 again and wiped the dalvik-cache and cache partition but still got auto reboot after enter lockscreen. The logcat show many of these lines:

09-19 12:11:05.087 14818 14825 E SchedPolicy: add_tid_to_cgroup failed; policy=1

09-19 12:11:05.088 14818 14825 E SchedPolicy: add_tid_to_cgroup failed; policy=1

09-19 12:11:05.100 254 435 E SchedPolicy: add_tid_to_cgroup failed; policy=1

09-19 12:11:05.100 254 435 E SchedPolicy: add_tid_to_cgroup failed; policy=1

09-19 12:11:05.102 254 436 E SchedPolicy: add_tid_to_cgroup failed; policy=1

09-19 12:11:05.102 254 436 E SchedPolicy: add_tid_to_cgroup failed; policy=1

But not with 7140 v3.
[Redmi Note 2 Android Development] lckjosh:
[MENTION=5952980]jajk[/MENTION] hahaha feels great to have a special phone. sadly its not true as I flashed the 6.9.15 skinny boot.img and the led works fine again. Thanks anyway ;)
[Redmi Note 2 Android Development] jajk:
[MENTION=3885679]acestars[/MENTION] Oops! 7140 v4 was actually 7550 repeated with wrong name.

A fixed 7140 v4 is now up.
[Redmi Note 2 Android Development] BlayDee:
There is no 6.9.8, found out its problem with SuperSU. Also google play is having problem downloading anything, stuck at 100% for a long while
[Redmi Note 2 Android Development] acestars:
Thanks, it's working now.

Edit:

Tried the v4 for a night the device becomes so laggy, not responding for the touch. Never been like when using v3.
[Redmi Note 2 Android Development] cukierkas:
Running it on on newest 6.9.15, fast as lightning :)

Regards.

Edit, having problems with zram partition mounting. It's created but not workable.
[Redmi Note 2 Android Development] Crim Soukyuu:
Are you sure it this app that is causing it?

Also, somehow flashing this one made me lose root. It says "root ROM not ready" in the security->permissions app.

edit: tried flashing superSU, it's not getting activated - the apps still state there is no root.

Also, the phone is freezing every few seconds without anything popping up. Reverted for now.
[Redmi Note 2 Android Development] jerryshaw12:
idle with single sim enabled and data (AOSP 1.83)
[Redmi Note 2 Android Development] jajk:
[MENTION=6150156]jerryshaw12[/MENTION] Yes, you should always see "zero drain" overnight on AOSP and MIUI versions if you are in control of your running apps and services of course;)

[MENTION=5898910]Crim Soukyuu[/MENTION] Need more info. What ROM are you running? Some versions of 7.2.20 came with a virus in audio and video players apparently. You should not be using the built in Su still. Flash SuperSu through recovery to get the stand-alone app.

Also....did you flash preloader and uboot partitions as part of the ROM install?