yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
tribute to xda.

tuning parameters for cpufreq_interactive & core_ctl & hmp_sched & some more

for MIUI and LOS, RR, AOKP, MoKee, Bliss (all zwliew's forks).

v.4

- conception is changed (again)

sometimes 1 big + 2 little is not enough. so now i offer you 1 big + 3 little or 2 big + 2 little at your choice.

all these combination is very individual and i want you will make your own good config.

now it's much simpler to customize - all configs are in separate patches.

just download zip, unpack it, correct config, pack it back. that's all.

if you will find better configuration, please, give your advices here in this thread.

i recommend you to use good monitoring and profiling tool from Qualcomm https://play.google.com/store/apps/details?id=com.quicinc.trepn

for custom rom (!!!zwliew's sources based) users:

you can apply cpu_tuning* patches direct on your native kernel, you dont need to change kernel, it will work (may be even better, who knows).

or you can apply patch with new LOS kernel from fedosis with very light undervolting, new low frequences and some more improvements.

(all kernels are zwliew's sources based, compatible)

so,

1. install "lineage-13.0-20170202-UNOFFICIAL-land-kernel.zip" (kernel only)

2. install "cpu_tuning-4-1x3-cm13.zip" (config only)

if you skip 1st step, it will repack your present boot (only "init.qcom.power.rc" will be replaced) and will work with your old kernel, but without low freqs, etc. you can test this case also.

!!!backup your "boot" partition.

for MIUI users:

there are patches with similar settings for you.

just install "cpu_tuning-4-1x3-miui.zip". only "/system/etc/init.qcom.post_boot.sh" will be replaced.

!!!backup "/system/etc/init.qcom.post_boot.sh"

(there are also patch with original MIUI "/system/etc/init.qcom.post_boot.sh", if something will go wrong)

https://drive.google.com/drive/folders/0B1G5yP4fi63mbEpzNHREVVB6a00

and later i will add something about thermal config, there are also some points to change :)

v.3

- conception is changed:

now 1 big + 2 little cpus are permanent online (offline-to-online is not cheap).

permanent also means, they are always the same: cpu0 (big master), cpu4 (little master), cpu5 (little master's friend). all others are lazy, they stay offline most times and go online and work only if these three are very busy. "core_ctl" was patched to implement this logic.

- (not for MIUI) low frequences was added. 768 and especially 960 are too high for low load.

- (not for MIUI) light cpus boost on screen touch was implemented.

v.2

now 8 cpus sleep more (in active mode) and wake faster.

LITTLE cluster for little tasks (at least 1 active), big cluster for big tasks (mostly sleeps).

awaiting of your impressions and results about working time and performance before and after.

we will tune it :)

one more thing:

i think xda is for advanced users. it's all experimental.

and better do nothing if you dont understand what are you doing.
[Xiaomi Redmi 3s Themes, Apps, and Mods] Subhampaul12:
will this work in mokee rom??
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
may be late. these are most popular.
[Xiaomi Redmi 3s Themes, Apps, and Mods] RinzImpulse:
thanks for the mod. But, why i feel CPU load is a bit bigger then before i applying the mod?

i'm using latest MIUI global developer
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
may be. i dont know. thats why i want you to test it. but you need more time to make right compare results.
[Xiaomi Redmi 3s Themes, Apps, and Mods] flammenwerferx:
CPU load is bigger because the task focused only on one core and sleep another core so that they may use upto 100% of one core rather than dividing it to another core (MAYBE, IT'S JUST HYPOTHESE)

I don't even know how it works ?
[Xiaomi Redmi 3s Themes, Apps, and Mods] nikit2011:
Will try, thanks for your work.
[Xiaomi Redmi 3s Themes, Apps, and Mods] jmmigo:
Thanks for this mod. I'll try, I hope this mod will update reguraly.
[Xiaomi Redmi 3s Themes, Apps, and Mods] 0levi0:
Could you please make a version for Bliss rom too ? Thnaks! :)
[Xiaomi Redmi 3s Themes, Apps, and Mods] Crissdua:
My redmi lags with the mod my friend.. Im using de latest weekly

Enviado desde mi Redmi 3S mediante Tapatalk
[Xiaomi Redmi 3s Themes, Apps, and Mods] areq1987:
Same

Wysłane z mojego Redmi 3S przy użyciu Tapatalka
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
miui people report about lags. thanks.

im working on it. if you want to solve this problem fast, just try to make 1 change in "/system/etc/init.qcom.post_boot.sh"

add one little cpu always online at line 1502:

echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus

or more radical

add one big cpu always online at line 1494:

echo 1 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus

or even try both changes together, why not :)

ps.: not bad if you will report about power consumption changes (if any) also. means power consumption in acive mode (display on).
[Xiaomi Redmi 3s Themes, Apps, and Mods] areq1987:
it often stucks only on one core enabled which cause lags. RR ROM
[Xiaomi Redmi 3s Themes, Apps, and Mods] RinzImpulse:
yes, mine feels lag too, but only at the start after long sleep. it's fine after some minutes/hours regular use

Got a great battery life improvement after using this mod. Arround 8,5 hours SOT (remaining at 8%) full 4G data with heavy browsing & some gaming use
[Xiaomi Redmi 3s Themes, Apps, and Mods] zwgchase:
Waiting for more feedback, thanks for making this mod!
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
first post updated. please, take a look.
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
Bliss added.
[Xiaomi Redmi 3s Themes, Apps, and Mods] dan.man:
Thanks! I'll update this post after trying it out.
[Xiaomi Redmi 3s Themes, Apps, and Mods] jmmigo:
with rr antutu score is 40k, when use your latest mod, my antutu score decrease to 36k.
[Xiaomi Redmi 3s Themes, Apps, and Mods] guyton100:
Can you mod it for only 1 small core online? i want only battery life. Or just guide me how to do it
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
problem is that you don't want lags also.

"only 1 small online" means others must work on demand. off-to-on state changing needs energy.

so it is not so simple as "only 1 small online = only battery life".

we need to find balance.

guide depends on your rom.

for miui it's simple to find settings file. take a look on https://xdaforums.com/showpost.php?p=70704119&postcount=12

for custom roms it's more complicated because init scripts sequence was changed.

you need to unpack boot.img, make changes in "init.qcom.power.rc" and pack it back again.

anyway you can always test params on the fly in terminal or even from pc, eg

adb root
adb shell "echo 1 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus"
adb shell "echo 1 > /sys/devices/system/cpu/cpu4/core_ctl/max_cpus"

cpu4 stands for little claster, cpu0 - for big.
[Xiaomi Redmi 3s Themes, Apps, and Mods] Sabir Ali Raja:
It's good but i think we don't need to tweak cpu...:D

In lineage os we get cpu tuning by default.... And getting better Battery life:good:
[Xiaomi Redmi 3s Themes, Apps, and Mods] Aronuser:
Hi dev, thank you for your work. Do you like to implent governors in kernel maybe? And FIOPS sheduler? How'd be that?
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
nice to read about better battery life, thanks :)

we work together with fedosis on it.

it's the same kernel here as in his LOS builds (read first post).

hi, do you mean additional governors? i dont think. at least now. interactive works not bad.

we are still in balance searching, but i dont want to search it long. i just want to improve oem settings.

also there (v.03) was found some side effects from thermalengine hotplug (will be fixed in new release). and also i want to try something with frequencies and voltage. all these tries need many time, even only to test each.

so i will upload new versions here soon.
[Xiaomi Redmi 3s Themes, Apps, and Mods] Aronuser:
Well ok, I guess maybe with the governors seems there is no need for now. But at other phones I got the highest speed with FIOPS sheduler. From my own percievement. And when I read about it's function back in the day, I learned that it's a Flash Drive optimized sheduler. The others are older Linux HDD shedulers from what I know. Please notice, I'm not a professional, and not a dev.
[Xiaomi Redmi 3s Themes, Apps, and Mods] MPJINFiNiTE:
[MENTION=4505438]difr[/MENTION] Don't know if you've already read it but I came upon this guide to tweak the interactive governor for a snappy performance while getting great battery life. It's for the Nexus 5x, but the OP has given instructions to replicate the same for any device!

Here:

https://xdaforums.com/nexus-5x/general/guide-advanced-interactive-governor-t3269557/page2

Could a similar thing be done for our device too? I'm no dev either that's why I hope you could have a look into it!

Edit: Tried the mod b-2l in miui beta. Snappy on continuous usage. Nova launcher was stuttering b4 this now it's smooth (widgets drawer lags still) however device stutters a lot after waking from sleep or just at the start of an app and goes back to normal after some time.
[Xiaomi Redmi 3s Themes, Apps, and Mods] ihya anf:
There are plans to overvlock cpu and gpu???

Im hope it...
[Xiaomi Redmi 3s Themes, Apps, and Mods] Irfanalam24061999:
Nice:good:
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
[MENTION=7678722]MPJINFiNiTE[/MENTION], thanks for testing. miui is rather voracious. but some of miui people from 4pda use even 0+2 config modification and are satisfied with it.

and yes, i have read guide from soniCron, it's a very good guide. i've used many from there.

be sure, a similar things can be done for our device. take a look at post #21. it's simple. just test it.
[Xiaomi Redmi 3s Themes, Apps, and Mods] MPJINFiNiTE:
How do I try out the 0+2 config? What should I edit or add in the init.qcom.post_boot.sh file? Is making changes in the file same as tuning via kernel adiutor?

I can't understand the code, do you have a link to a guide to understand it better or you could tell me?

Edit:

echo 2 cpu4 min_cpus means minimum 2 little cores online &

echo 1 cpu0 min_cpus means minimum 1 BIG core online

So for 0+2 I should make it:

echo 0 cpu0 min_cpus right?

Do I have to reboot Everytime I make a change in the file?
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
yes.

one more thing.

in singlecore cpu we have to deal only with governor.

in multicore - governor+core balancing.

and now we have to deal with governor+core balancing+cluster balancing.

http://elinux.org/images/f/f0/Doing_big.LITTLE_right-_little_and_Big_Obstacles.pdf
[Xiaomi Redmi 3s Themes, Apps, and Mods] guyton100:
Please give me boot.img for LOS by fedosis with just one low core active. Currently only single high core is active at 499. Battery life is awesome but want to test and experiment further.
[Xiaomi Redmi 3s Themes, Apps, and Mods] MPJINFiNiTE:
Interesting! Thanks a lot for the guide!

Dont know if its only for me but after flashing the zip initially 1B+2L are Online, but after a while ( after a deep sleep ) all the Big cores are offline and refuse to turn Online even during Antutu benchmark ( got a process acore stopped error at the end of the first test). I use Naptime for quick deep sleep.

Edit: Reboot fixed it. Something else was the issue. Will post back if it happens again.
[Xiaomi Redmi 3s Themes, Apps, and Mods] jowl_tnt:
I had that 'big cores not waking' too...
[Xiaomi Redmi 3s Themes, Apps, and Mods] MPJINFiNiTE:
Are you on miui too?

[MENTION=4505438]difr[/MENTION] It happened again for me! Don't know what's the cause. When it happens I am no longer able to go to the cpu option in the kernel adiutor. It just doesn't open anymore just shows the loading icon. The overall screen shows all big as offline and couldn't get frequency information!
[Xiaomi Redmi 3s Themes, Apps, and Mods] jowl_tnt:
I'm on custom miui stable 8.1.5.0 not rooted, so I saw it on cpu-z.

All big offline and doesn't goes on at load.

Governor shows as 'unknown'.

I was on low battery under 10%.

I dont know if reboot or charge fixed it.
[Xiaomi Redmi 3s Themes, Apps, and Mods] areq1987:
Some update for RR?

Wysłane z mojego Redmi 3S przy użyciu Tapatalka
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
yes, first post is updated. check it.
[Xiaomi Redmi 3s Themes, Apps, and Mods] MPJINFiNiTE:
What else did you change other than the echo 3 for cpu4 for miui ? What's the busybox for?

Will report if previous issues are faced!

[MENTION=4505438]difr[/MENTION] Why can't I pm you? It's always failing to send!
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
busybox is for mount-unmount system in update script.

many tunables are changed. there are file "system/etc/init.qcom.post_boot.sh" in zip. can compare it with previous version.

ps: kernel auditor is full of bugs. and eats battery in background.
[Xiaomi Redmi 3s Themes, Apps, and Mods] rahem:
untouched v.4 on MIUI EU 8.1.5.0 works like a charm. Thanks again!
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
[MENTION=5714981]rahem[/MENTION], good. next week will make some thermo config corrections. now big kernels goes offline starting at 42°C. so keep in touch.
[Xiaomi Redmi 3s Themes, Apps, and Mods] SANDR09:
http://en.miui.com/thread-494354-1-1.html

Low energy efficiency. Redmi 3/Pro/S/X and other

Please confrim on miui forum.
[Xiaomi Redmi 3s Themes, Apps, and Mods] LiberteCzech:
[MENTION=4505438]difr[/MENTION]

Do you think there is still some scope for further reduction of the minimum frequency and voltage?
[Xiaomi Redmi 3s Themes, Apps, and Mods] difr:
with voltage it can be interesting to test. but it needs much time. rebuild kernel for every try.
[Xiaomi Redmi 3s Themes, Apps, and Mods] ihya anf:
ho to get low voltage in 460 base miui????
[Xiaomi Redmi 3s Themes, Apps, and Mods] Thoriiqm75:
anybody want to tell me how to use this mod? just flash it with twrp right?
[Xiaomi Redmi 3s Themes, Apps, and Mods] LiberteCzech:
Yes.
[Xiaomi Redmi 3s Themes, Apps, and Mods] Thoriiqm75:
no need 3rd party apk? ok thanks i'll try..
[Xiaomi Redmi 3s Themes, Apps, and Mods] LiberteCzech:
No. It only overwrites the configuration files. ;)
[Xiaomi Redmi 3s Themes, Apps, and Mods] LiberteCzech:
[MENTION=4505438]difr[/MENTION]

Could you try to a reduction the frequency of GPU need for 100-150MHz?
[Xiaomi Redmi 3s Themes, Apps, and Mods] oguzpasa:
does this mod work with miui 8.2.4?
[Xiaomi Redmi 3s Themes, Apps, and Mods] LiberteCzech:
Yes, miui is without change.

Use miui script.
[Xiaomi Redmi 3s Themes, Apps, and Mods] oguzpasa:
thanks
[Xiaomi Redmi 3s Themes, Apps, and Mods] amn1987:
Will this make all 8 cores active? As in default config, 2 of the big cores are always offline and only 6 cores total are active.

Which file should I download for MIUI? All I can see in the G Drive link is for CM13 or LOS.
[Xiaomi Redmi 3s Themes, Apps, and Mods] andymine:
same question
[Xiaomi Redmi 3s Themes, Apps, and Mods] dedikunity:
Working on nougat??
[Xiaomi Redmi 3s Themes, Apps, and Mods] william.johhn7!:
I don't think so. This thread was originally meant for LOS 13 by fedosis. You can work with cpu tuning with beacon kernel+kernel auditor
[Xiaomi Redmi 3s Themes, Apps, and Mods] dedikunity:
Ok sir..
[Xiaomi Redmi 3s Themes, Apps, and Mods] LiberteCzech:
You can mode in your ROM packages instead this tuning zip file.
[XDA Assist] XDA Visitor:
I am trying to flash lenovo A3000 which is stuck on logo. When I am flashing with sp flashtool, flashing system.img gets failed. I have used different ROMs, have tried it through different PCs; didn't work. I have tried flashing through fastboot mode through PC, it says partition recovery does not supprot recovery; it's unable to erase system and recovery partition. Please help.
[XDA Assist] Razvan:
Hi there and welcome to assist,

Please see here all steps for unbrick your device:

How to unbrick Lenovo A3000

You'll have to create an account to post in the main forums if you have any other questions.

> Lenovo A3000 > A3000 Q&A, Help & Troubleshooting

Good luck
[Miscellaneous Android Development] zefie:
This is a developer level tool, aimed at advanced users

(see next post for releases)

My Ares8 allows you to boot from EFI by holding Home while powering on. This is good because fastboot blocks flashing the partition table and some partitions.

So I have created this mini OS (zefieOS) using Buildroot and a custom kernel I have been hacking together for the Ares8.

This system allows you to completely wipe and repartition your eMMC, restoring partition table and factory image.

A system like this will allow you to take greater risks with your tablet, especially useful for development.

If you wipe your eMMC to install Windows or Linux, you can easily restore to Android (if you have an Ares8, or use the upcoming backup feature).

It should be easy for developers to port to other boards by swapping out the kernel.

Buildroot custom files and configs are available on my GitHub. (may be needed for porting due to keymap overrides to navigate menus)

You can also check the "Projects" section on the GitHub to see what I am planning.

Video:

(QEMU Demo, but tested on my Ares8)

Features:

Restore compressed disk images (xz, bz2, gz)

Restore raw disk images

Restore TWRP raw eMMC images

Restore TWRP ext4 partititons, compressed and/or split

Secure Erase (Discard) entire eMMC and repartition

Copy log to USB

Entire OS is run from RAM Disk.

Shell access (keyboard required)

Dialog GUI navigable from device with keymap overrides

Restore without touching partition table

Multiple backup support

Source code available, easy to rebuild

Future:

To keep up on future plans, check out the "Projects" section on the GitHub

Disclaimer:

I have tested this on, and have successfully restored my Ares8 Gen2 (manufactured August 2016). However while this tool is being released on the assumption that it will work on all Ares8 devices, I will not be held responsible for any damage caused by this tool. This tool, in its current developer alpha state, is not meant to replace TWRP. It is meant to restore your tablet if it is otherwise useless to you, such as being in DnX mode (which means your ESP partition is corrupt or missing). Running this tool needlessly may cause damage, and this is solely your responsibility.
[Miscellaneous Android Development] zefie:
Releases can be found here:

https://archive.midnightchannel.net/zefie/linux/intel_baytrail_soc/zefieOS/

I am linking to a folder because I have decided to release zefieOS and the restore packs separately for easy updating.

To use, download the latest uploaded version of zefieOS, then download the Ares8 Gen2 restore pack.

More information can be found on the top of the page linked.

For now, I would not recommend this unless your tablet is in need of a FULL recovery (aka you are getting the DnX mode error), or if you are a developer interested in porting this to your device.

Developers should know the modular design of zefieOS is intended for easy porting to another device. This means you will not have to update your files 99% of the time when I release updates.

Eventually this will be a more user-friendly tool, but I wanted to release this functioning alpha release for those who may need to recover their Ares8 tablets.

I have successfully restored my Ares8 from DnX mode to a full working system using this tool.

I will continue to work on and improve zefieOS in my spare time.

Developers looking to port this to their devices should respond in this thread and I will help as much as I can.

Eventually there will be both a user guide as well as a developer guide.
[Zuk Z1 Q&A, Help & Troubleshooting] ramsaoji:
I installed lineage os 14.1 in my zuk z1 and my sim 2/is not working and in setting , sim card manager there no option of ask every time only one sim is selected please help
[Zuk Z1 Q&A, Help & Troubleshooting] Narasimha12:
https://xdaforums.com/zuk-z1/help/network-solution-grayed-solved-t3545218
[8525, TyTN, MDA Vario II, JasJam ROM Development] sliti.sabri:
Hi,

Can everyone tell me where I can found the radio rom with GPS activated please

thanks

I've tried some radio version was terminated with 11 but can't download with rapidshare.

help me pleasE.
[8525, TyTN, MDA Vario II, JasJam ROM Development] chamelion:
are you using a tytn / hermes?
[8525, TyTN, MDA Vario II, JasJam ROM Development] KarhU:
There is no point downloading GPS activated ROM for Hermes because hardware (GPS chip) is effectively sealed off and there is no GPS antenna in Hermes. You will only get static but no meaningful data from the Radio ROM.
[8525, TyTN, MDA Vario II, JasJam ROM Development] mattk_r:
Started to sound like a conversations with my better-half ;)
[8525, TyTN, MDA Vario II, JasJam ROM Development] KarhU:
LOL, have to check my estrogen and testosteron levels :D
[8525, TyTN, MDA Vario II, JasJam ROM Development] kipe:
..man, that's a good one mattk_r! :D
[Samsung Galaxy S7 Edge Questions and Answers] ChanceTheRapper:
I have been looking for a tutorial about how to root s7 edge on 7.0 for a long time , can anyone help me please ?
[Samsung Galaxy S7 Edge Questions and Answers] Bjaped:
Think you'll have to wait... CF-Auto-Root doesn't seem to work on N
[Xperia Z3 Compact Q&A, Help & Troubleshooting] Teraman:
Hello, after my patience ran out with google play services batter drain issues i have decided to try out moding and i think i messed up DRM recovery part.

I used https://xdaforums.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343 this as a guide.

Things i have done so far in order:

1. flashed 4.4

2. rooted

3. made DRM keys backup

4. unlocked bootloader

5. installed twrp recovery

6. installed this https://xdaforums.com/z3-compact/development/rom-aoxp-rom-v1-t3478863 rom

7. recovered DRM TA zip thing.

Now my problem is, my bootloader is locked, so i guess recovery procedure went ok, but camera perfomance is as awful as without drm keys. Where did i go wrong? What can i do to fix my camera perfomance?

p.s. i am really sorry for my english as it is not my native langue thanks in advice for help.
[Xperia Z3 Compact Q&A, Help & Troubleshooting] :
You don't lock the bootloader when you restore the TA backup it actually locks the bootloader,so try unlocking it again and then restoring the TA backup
[Xperia Z3 Compact Q&A, Help & Troubleshooting] Teraman:
you dont lock it actually locks :confused:

that is what i understood, could you be more clear please?
[Xperia Z3 Compact Q&A, Help & Troubleshooting] :
Sorry.

What I meant to say is,when you restore a TA backup from an unlocked bootloader state,it locks the bootloader when you restore it.

So what I am saying is you should unlock the bootloader again,and restore the TA backup as it will lock the bootloader again and should restore camera quality.

Clear now?
[Xperia Z3 Compact Q&A, Help & Troubleshooting] Teraman:
yes, but one thing. Why do i need to restore twice to get back camera quality?

Thank you a lot! :)
[Xperia Z3 Compact Q&A, Help & Troubleshooting] :
I dunno tbh I never restored a TA backup since I was an idiot and forgot to back up TA when I was going to unlock my bootloader.

Try it and tell me how it went! Good luck!