yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
[MENTION=2473722]mat9v[/MENTION]

"You can't migrate threads based on app code, there is no way to do that and you have no ability to even test the app for its use without extensive debugging. Android does not make decisions about thread placement based on code but on core utilization, how busy it is while taking into account if waking up another core is required, and even then it is not aware of what kind of core the thread is running on (it only knows it is a small or big core) and it's capabilities, so if a mostly busy core is on a small cluster then it will wake another small core (unless "sched_upmigrate" has lower value then "busy_up_thres", then it will migrate the thread to big core first and reassess load value)", nope I can't but I can inshore best option is available & ready all the time which is two opposite cores per cluster & that is about it that can be done. Still having 2+2 is better than 4+4 MiUI without hotplug or mpdecision 4+2 wile having better performance simply by using opposite cores not in line & using all L2 cache. My idea isn't to get in one line of the spectrum as minimum power usage but best possible power/performance & with that user experience while not sacrificing anything, just letting it work. You don't really give a f*** where it will be moved after initialization as that won't effect neither power saving nor performance impact what you should care is that it's run as sufficient as possible, as fast as possible while staying in executable part of spectrum regarding power efficiency simply by giving it a ideal starting ground's. Meanwhile if it's done fast it also saves a litle on power consumption...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Ranomez:
That actually helps a lot, didn't know about that option (although it reduces the actual volume of each volume step I actually prefer it that way since it was a bit loud normally anyway).

Also the Bluetooth volume bug has been around since 2-3 builds.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Yes, you can insure that cores are active, but if they are used is an actual lottery. It is actually just the same situation if those cores are inactive and mpdecision wakes them up when needed. It may wake a small core or a big core and if the task is large (and actually has a chance to impact performance and power use in any significant way) it will end up on the big core anyway.

I mean it just isn't worth keeping too many cores active on a chance they may be used. True if your target is to ensure best use of resources disregarding power savings then your config is probably best (though it depends on what actually is running on those cores).

That I completely disagree with. If the task lasts for 1 second and it moves from starting point after 0.002 second because it DOES affect power use and performance.

What do you mean about "executable part of spectrum"? Starting point does not matter for longer tasks because they will be moved to big core anyway because they are heavy to last that long and smaller tasks will just not care nor impact power or performance because they execute well below our perception limit.

"Meanwhile if it's done fast it also saves a litle on power consumption" - only if it starts on correct core and that is a lottery, beside small tasks should start on small cores to save power, they should not start on big cores, and if what you stated is true and by having big cores "on" constantly you increase the chance of tasks starting on big cores, it is very bad for efficiency because there are far more small tasks then big ones in Android.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
[MENTION=2473722]mat9v[/MENTION]

"only if it starts on correct core and that is a lottery, beside small tasks should start on small cores to save power, they should not start" well if it needs to migrate it again have met best possible conditions as with two core's idle. Really like the snappines that it gives this way. I control cores efficiently its up to one GHz fast with future ramp up brick 2x time & bigger calculated load, remember 3 step brake & to scale down fast between one GHz and base 400MHz...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Coming back to your latest ROM 27 March,

It's awesome, snappy and fast. Great kernel settings :good:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] eseregin:
Zola III, mat9v

Guys - dont you want to create new thread somethere in Developer section and discuss all this kernel sceduling, ROM independent stuff?

This is to tell you truth - offtop here...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] zminh1:
Which root version should I use, built-in one or super user ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Unless you need to hide root from apps built-in is the way to go for no-bugs performance.

Agree... All the good info already provided from these guys will get lost here if no dedicated thread is created....
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] zminh1:
Wow thanks for the fast answer, btw, this is not really a problem but how do I turn on the screen after taking my device from pocket, bag etc... ? I saw this option in Pure Nexus rom's settings.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
No buit-in pocket mode currently... Try google smart unlock, or see if system profiles supports proximity sensor for screen on.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] gtezprado:
Hi,

Is there any way to add shortcuts on the home screen, like files, webpages, contacts...?

Thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
nijel8, im testing your latest rom build 27 march with pico open gapps for around 2 days.

i have some bug (same one at latest RR rom builds, pure nexus rom not affected)

When i turn on the screen (lockscreen), i have some "flickering notification" for around a 0.5 sec, it's appear and disappear right away ..

What could it be?? I dont have this problem at your old rom builds..

everything else is excellent, no problem, no bugs..

Even damn virtual mouse bug not appear for a long time.. :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Must be some app notification you have disabled... Not having it on my setup and haven't heard from others too. Disable lockscreen notifications and see if still shows up. Also check logcat for message like "notification suppressed by user request".
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ktsak:
I do not think it's a matter of ROM.

I have the same issue, but my device has installed MIUI Rom. So probably nothing to do with ROM ..... :confused:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
I have no disabled notification apps,

i have a idea, mb it's a whatsapp bug?)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Ranomez:
Can actually hide the built-in root with iSU but seems like just a handful of people know about that.

It even patches all the properties that any root checker libraries read so it can bypass everything including SafetyNet.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
How to block rotating of screen for specific applications of choice, as it consumes excessive power and third party tools don't work?

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.1][HYDROGEN/HELIUM]LineageOS 14.1 r.03-27-2017 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
This battery saving obsession is getting ridiculous...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Compulsive-obsessive :)

Yeah, rotating screen consuming too much battery :)

Hey, I know, let's disable all sensors, they are also using battery :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I have better idea... I'll cook Lineage DumpPhone Edition with only Telephony running in background, only one app - Dialer, only one little core@691MHz, GPU@133MHz, RAM cut to what... 128MB!?, everything else removed from kernel. How about that...

And even then some will find something is eating too much battery...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pepfapeste:
[IMG="sarcasm?"]https://s-media-cache-ak0.pinimg.com/originals/a1/9d/13/a19d13b327d3240cd4dee1ad36172e0c.png[/IMG]
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
You stole my fun :) :(
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
Just hate chargin' batteries, and you - love it?

What's the problem guys! What I need is discriminatory (let per app) screen rotation, the power concern is just one of many rationale for this Also just for convenience, some apps behave ugly when screen rotates, e.g. Nova launcher (apparently widgets need have shape of square to retain sensible look in horizontal orientation), some apps look great just in horizontal some others just in portrait.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
No, we were making fun of obsessive energy saving and linking it to screen rotation. You could not do that (measure additional energy cost) unless you spent hours just turning your phone left and right.

Yeah, other concerns are valid but energy saving? Not in the slightest :)

By the way, if you want energy savings, use optimized governor and core control settings, my phone routinely gets 14-16h sot reading texts, browsing web and making calls (I do not watch video on my phone normally). Turn off location, turn off wifi, turn off bluetooth, take out your microsd card, actually turn on communication only when you need them (you will be more secure with that on top of energy savings). It is actually useless to take out 2nd sim card to save power because our phone have only one active radio chip.

The best way to save power is to lower brightness (use auto and skew it towards lower end), you can also use Harfix kernel as it has Adreno idler that sets video chip to only 19Mhz when not in hard use.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I'd give a right kidney to get 14 hours SOT. My highest figure is 11 on stock Lineage but then again, I have Bluetooth on with connections to a smartwatch and a portable keyboard, with Wifi and LTE always on. I use the phone mainly for documents, web browsing and emails, with few calls or video viewing. I'm also outside a lot so that means more power consumption by the screen.

Just switched to Harfix, let's see if that improves the SOT figure. My settings:

Big cluster: 400 mhz min, darkness governor

Little cluster: 400 mhz min, interactive governor, stock settings, touchboost and input boost off

GPU: 400 mhz max freq, Adreno idler on

I would like to try something like the Ghostpepper Nexus 6P interactive governor settings for better battery life. Apparently that uses specific voltage-frequency steps to maximize power/perf figures.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] folderman:
I think the best way to save battery is turning off the phone. The battery can work for weeks...

Just kidding... No offence.:cool:

Kenneth
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
OK, here's my preliminary stepped frequency setup for the interactive governor on both clusters. It's based on GhostPepper's Nexus 5X setup, I call it GhostMi :)

Little cluster: 400 mhz idle, 800 for web browsing, 1017 for video, 1305 and above for everything else

Big cluster: 400 mhz idle, 1248 for app loading, 1747 and above for max speed

Attached is an EX Kernel Manager profile, copy it to the ElementalX/gov_profiles folder on the internal drive and load it using CPU/Governor options/Load. Make sure touch boost is disabled and input boost settings all set to 0.

Here's the raw text, you can load it using a shell script or modify it for Kernel Adiutor:

/sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_slack 80000
/sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 20000
/sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads 98 691200:17 806400:71 1017600:77 1190400:10 1305600:85 1382400:95 1401600:95
/sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 40000
/sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 691200
/sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 99
/sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay 20000 691200:60000 806400:20000
/sys/devices/system/cpu/cpu0/cpufreq/interactive/align_windows 0
/sys/devices/system/cpu/cpu0/cpufreq/interactive/boost 0
/sys/devices/system/cpu/cpu0/cpufreq/interactive/boostpulse_duration 80000
/sys/devices/system/cpu/cpu0/cpufreq/interactive/max_freq_hysteresis 0
/sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif 1
/sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load 1
/sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_slack 80000
/sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate 20000
/sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads 98 883200:7 940800:6 998400:6 1056000:5 1113600:7 1190400:5 1248000:95 1305600:6 1382400:17 1612800:8 1747200:95 1804800:95
/sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time 20000
/sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq 1804800
/sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load 99
/sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay 20000
/sys/devices/system/cpu/cpu4/cpufreq/interactive/align_windows 0
/sys/devices/system/cpu/cpu4/cpufreq/interactive/boost 0
/sys/devices/system/cpu/cpu4/cpufreq/interactive/boostpulse_duration 80000
/sys/devices/system/cpu/cpu4/cpufreq/interactive/max_freq_hysteresis 60000
/sys/devices/system/cpu/cpu4/cpufreq/interactive/use_migration_notif 1
/sys/devices/system/cpu/cpu4/cpufreq/interactive/use_sched_load 1
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
It's not even close to something like ghostpepper's setting.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Hey, you're welcome ;)

It's based on the initial post discussing min/max/nominal loads, not the updated alpha and v2 settings. Those are so close to interactive that it's better to just use stock kernel settings and chill. I need voltage tables for the Hydrogen Snapdragon 650, then it would be possible to choose max power/perf frequencies for each task.

---------- Post added at 06:00 AM ---------- Previous post was at 05:55 AM ----------

Call it the Nokia 3210 edition :p
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
You just blind pick some settings from nexus guide and not even tested them yourself. I'm doing lots of testing using guides I found and something like this was one of my first setups. Do some testing than bring it here. I'm testing since week already many adjustments with few guides I found. And for first, all depends on your use of phone. I actually found some efficient setting(which topped Geekbench mi max multicore score) and its great for daily use until it comes to gaming than it eats battery too fast. I'll bring something here once i found it really good.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I'm testing these settings right now, I put them up so other people could play around with them. Doesn't work, that's cool - at least we all can learn something.

Here are the min/max loadings for both clusters:

freq little max min
400000 52%	73%
691200	77%	17%
806400	71%	26%
1017600 77%	17%
1190400	82%	10%
1305600	85%	6%
1382400	89%	1%
1401600

freq big max min
400000	41%	121%
883200	84%	7%
940800	85%	6%
998400	85%	6%
1056000	85%	5%
1113600	84%	7%
1190400	86%	5%
1248000	86%	5%
1305600	85%	6%
1382400	77%	17%
1612800	83%	8%
1747200	87%	3%
1804800

Sharing is caring, whatever that means :p
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
About loads I found the most efficient are best here and all it goes about rest of settings like timer_slack, min_sample_time, high speed_load and so on.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Your "target_loads" are absurdly high, "98" puts those settings contrary to hi_speed and above_hispeed and their frequencies. The way you set them they are simply not working, your target is 98 and is above even the highest set frequency (which are all at 95%).

The most energy efficient (performance to power) frequencies for our CPUs are about 1Ghz and that should be a target, higher if you want more performance, lower if you want more energy savings (at the cost of performance), you should set 95-98 to be around 1000-1100Mhz and only allow higher frequency for prolonged tasks by setting 1800Mhz for 99% (some even set underclocking as max_frequency at 1600Mhz to save more power). Disable hi_speed and above_hispeed by setting go_hispeed_load to 300 to prevent them from interfering.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Post them then.

It's a problem with diminishing returns, you can spend ages tweaking governor settings for a 10% increase in battery life that gets wiped out by an inefficient screen. I'll test this Ghostpepper-based setup for a few days, if it doesn't yield appreciable SOT increases I'm switching back to stock.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Nah... I can bring something but pointless since I'm still adjusting it and don't want spam thread with useless stuff. And testing takes a lot time as I test every adjustment with at least one full battery cycle. All I can say is to set most efficient loads. And don't forget of timer slack -1, oh and set highspeed frequency for big cores at 1190400. Full setup I'll bring in a week or two.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Well even then hr timer will tick & alarms sub system (Linux one) will work for 48h.

Fun is fun and done is done. I did try to show you the balanced settings prioritising multi functionality. People who really want more should simply use conservative governor & next time buy the phone with only one A53 cluster as they obviously "don't need more" & don't want to use it as intended.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] man2106:
nice one bro lol for me i want both but obviously perfomance is more important then a stuttering phone
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
It's not like you get a stuttering phone when you have only A53 cores. There are a lot of phones with only those cores and they work very well. I even disabled all big cores for fun and testing on Mi Max and it worked fine, not as fast as normal, but without stuttering. I just had to wait longer for webpages and apps to load. The thing is I don't see a point because there is not much of a power save with only running on small cores, maybe on heavy tasks like gaming there would be....
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Andy4Shurr:
We really need to set that other thread up for kernel tweaks. It's useful information but it's getting lost in here and also it's getting increasingly harder to filter through to search posts for ROM updates or related info! Just my opinion.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
It would be nice to have several profiles and switch them intelligently, e.g. power saving profile for internet, and turbo profile for games.

KennelAuditor has such possibility of defining several profiles for cooperation with Tasker.

However smarter is having several scripts with settings run by tasker depending of circumstances.

Agreed but it needs be dedicated to particular hardware, phone model, and system, for it to render as useful.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] andjohn:
Like a phone forum instead of a ROM specific thread?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Well you can use different profiles in Kernel Auditor but forgot anything turbo especially in GPU intensive games where you actually need to save on CPU power consumption but CPU frequency must stay high enough to allow full speed RAM operations (as that's the way it goes with Snapdragon boards) so that you have better headroom for GPU & less throttling by thermal engine. Think 500MHz is a best achievable sustained frequency & even that is achieved only when CPU power usage is tuned on stock MiUI & otherwise I can get GPU to get throttled down to 450MHz in less than a 30 min. A one GHz for a CPU is really golden middle regarding performance/power consumption no matter what lithographic processes is used to make it, it's simply tied to silicone as essential material.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Ok, stop the off-topic and go open power/performance tweaks thread, guys.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
Just created the thread as Nijel suggested.

Please come and continue [emoji41]
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ivy.lally:
It sounds like ultra stamina mode of Xperia. With the exception Xperia ultra stamina still provides music application and email, the only except telephony.

However this is a mode, user can switch it on and off when needed. In fact, switching the ultra stamina off requires reboot.

Aqua-M4 E2303, modded MarshMallow
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] careless_angel:
Hi nijel8, Thank you for your rom)

Could you please lay out your kernel settings so that they can be used in the kernel harfix4? So to speak for dummies)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
They are used in Harfix. The way Harfix is created it inherits all settings configured in ramdisk - that means all settings pertaining governor and core control that are set in Nijel8 kernel.

If you simply install Harfix over this rom then it will use this rom settings.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
What mat9v said... And even more... Harfix is clone of my kernel with some extra governors and features. If you don't intend to use those extra things there is no point of switching kernels. And if you use them then my settings will be irrelevant... So either way no need to post my settings. If you're curious what they are you can find them on my github.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Try to clear data of application - settings - application - Facebook
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] zminh1:
I found the problem, If I move Messenger to internal storage instead of SD card, it works smoothly. This happens for some other app too (not all).
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] azizak:
if I'm rebooting the phone. It stays on the lineage blue screen, And not loaded. I waited a long time. it did not open.

Mi Max cihazımdan Tapatalk kullanılarak gönderildi
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] i.freaky:
Anyone facing ghost voice issues? Getting irritated by it. Solution please
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] rm001:
Sinse the last 2 or 3 upgrades, WhatsApp notifications come with a very long delay, the lag may be up to several hours. But when you open the application manually, or if you use the WhatsApp`s widget, the "lost" notification arrives instantly. May be also helps if the "Popup notification" is allowed.

At the same time the Viber and Gmail work as usual, without lags.

The same problem also on the Nitrogen OS and other latest Lineage-based ROMs.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] whatsek:
Check the doze settings for whatsapp.

Verstuurd vanaf mijn Mi Max met Tapatalk
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] laolang_cool:
doze is on by default for all apps, is it the reason for the delayed notification?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] rm001:
Ok, I`ll try, but on previous versions, with the same doze setting, there was`n any issue with delays
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] myxcon:
On latest version I too have issues with whatsapp delayed notifications, like couple hours notifications delay. I turned off battery optimizations for whatsapp, see how that turns out in terms of battery and notifications.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dvdivx:
Is there any way of updating the firmware file to the current one?