Need little help in an attempt to find CPU problem - Xiaomi Redmi Note 4 Questions & Answers

After flashing custom kernel, kernel reports big and LITTLE CPUs no matter what, even if I restore to everything stock MIUI. Now the CPUs are divided into 2 clusters (1,2,3,4 little and 5,6,7,8 big) and the "big" cluster is always active whereas the other cluster has gone dormant and hardly works (only in extreme cpu load). This big.little architecture is not implemented on snapdragon 625 but custom kernel destroyed its default configuration, I don't know how. As a result, I AM EXPERIENCING LAGS. SERIOUS LAGS EVERYWHERE BECAUSE MOST OF THE TIME ONLY 4 CPUs ARE WORKING.
I need a little info from anyone who's using STOCK MIUI (any version) with no custom kernel.
Somebody please show me the contents of the file named "current_in_state" located at
/sys/devices/system/cpu/cpufreq/
A screenshot would do.
Thanks in advance.
Sent from my Redmi Note 4 using Tapatalk

Related

HTC One X+ Gaming and Optimization Guide/Tweaks - Look No Further!

First off you must be rooted, and before you go complaining about lag, battery life, poor gaming performance, etc, have a look on the internet because chances are you either have a faulty device or someone has already created a fix. Many new phone manufacturers will market their device as quad or even octa core, tricking the market into believing that smooth gaming and UI are a result of having a 1.7ghz quad core or such when in reality the chip pushing the pixels is the GPU, probably the most important factor in a chipset which gets likewise upgraded every generation but is not advertised as heavily as the CPU.
So why the lag?
The Tegra 3 CPU is linked to the GPU, therefore, the GPU will only scale up to its maximum frequency if the CPU has activated multiple cores and is running at a high clock speed, however to save battery life the Tegra 3 prefers to use 1 core. This is why most Gameloft games lag (as they only use 1 core). Fortunately there is a fix, you can allow the GPU to scale dynamically by using the attached init.d script, if it doesn`t work, try using smanager, setting it to run on boot with su access. This will allow the phone to weight its processing more on the gpu, allowing the power hungry 40nm CPU to scale down to a lower clock, hence saving power. If you get stuttering in the UI make sure you flash a custom rom and enable the GPU 2d rendering or GPU UI rendering option in aroma.
Why won`t my phone scale to 1.7ghz all the time?/Why does my phone only use a single core when clearly more power is needed?
The Tegra 3 is also not a 1.7ghz quad core per say, the processor can only scale to 1.7ghz when using a single core. This is buggy as sometimes the processor will get stuck in single core and cause lag and unnecessary battery drain if the frequency scales too high in order to multitask. To fix this, head over to Nik3r`s thread and flash his elite kernel, hxore is also great however it does not include blades commits (however the removal of hotplug will give similar effects). These blade kernel implementations will allow the phone to use all four cores at 1.7ghz, dramatically assisting multithreaded applications and games that are cpu intensive but poorly optimized. To enable this use attached script.
My Launcher is constantly reloading/Heavy open world games lag/Sense multitasking sucks!
Elite also features swap memory, although I cannot recommend it for daily use, if you are a heavy gamer, it will help in any unity or unreal engine game and also stops the launcher from reloading which can be annoying (sense is a ram hog). These come in various sizes which from 128mb to 256mb and performance gains really depend on usage or what you think is necessary.
Performance is great but battery life is terrible
You might also want to try UV your phone,again poses some risk but cannot cause permanent damage like the aforementioned swap memory, before doing so check you tegra 3 chip variant. These range from 1-4 with the original One X being 1-3 and the One X+ being mainly 4, 3 if you are unlucky, the higher the better and faster/cooler. You can check by using a terminal emulator and typing:
cat /sys/kernel/debug/t3_variant
I personally own a variant 4 which operates well even with a 100 millivolt UV, however as all devices are different you will have to experiment with this. This option will keep heat down and save power as the tegra 3 has plenty of CPU to spare. I will also provide multiple UV Scripts for you to try out (stock elite is -25 millivolts). I also recommend using the phone in powersave when not gaming, the majority of games will probably run well even in powersave (limited to 1.15ghz and 3 cores).
Display uses the most power/auto-brightness scales too high or low/I just want to turn my button backlights off
You can also use a brilliant app called Lumos to manage screen brightness (the bright SLCD 2 screen does have its drawbacks) and backlight brightness or you can copy the lowest brightness apk from insertcoin v 3.2.1.
Developers aren`t releasing updates
Developers work for free and are devoting there free time that they could be spending on leisure, family or work to better our devices. They are not obliged to do this and release their work publicly. Most developers will listen to requests but please do not pester them excessively just because they see it unfit for implementation. please thank all developers for there hard work and even consider donating. A simple thanks is always appreciated, happy flashing.:good:
Update 1: New scripts!, seemed to have fixed a problem regarding the gpu failing to decouple, could explain why people were seeing no improvement. Custom folder if you want to tailor your device`s performance to your specific needs/rom/kernel, standard, just contains scripts that should provide a sizable performance gain for all devices.
How do I use this script? Flash it?
Thanks for the explanation!
ryanjsoo said:
First off you must be rooted, and before you go complaining about lag, battery life, poor gaming performance, etc, have a look on the internet because chances are you either have a faulty device or someone has already created a fix. Many new phone manufacturers will market their device as quad or even octa core, tricking the market into believing that smooth gaming and UI are a result of having a 1.7ghz quad core or such when in reality the chip pushing the pixels is the GPU, probably the most important factor in a chipset which gets likewise upgraded every generation but is not advertised as heavily as the CPU.
So why the lag?
The Tegra 3 CPU is linked to the GPU, therefore, the GPU will only scale up to its maximum frequency if the CPU has activated multiple cores and is running at a high clock speed, however to save battery life the Tegra 3 prefers to use 1 core. This is why most Gameloft games lag (as they only use 1 core). Fortunately there is a fix, you can allow the GPU to scale dynamically by using the attached init.d script, if it doesn`t work, try using smanager, setting it to run on boot with su access. This will allow the phone to weight its processing more on the gpu, allowing the power hungry 40nm CPU to scale down to a lower clock, hence saving power. If you get stuttering in the UI make sure you flash a custom rom and enable the GPU 2d rendering or GPU UI rendering option in aroma.
Why won`t my phone scale to 1.7ghz all the time?/Why does my phone only use a single core when clearly more power is needed?
The Tegra 3 is also not a 1.7ghz quad core per say, the processor can only scale to 1.7ghz when using a single core. This is buggy as sometimes the processor will get stuck in single core and cause lag and unnecessary battery drain if the frequency scales too high in order to multitask. To fix this, head over to Nik3r`s thread and flash his elite kernel, hxore is also great however it does not include blades commits (however the removal of hotplug will give similar effects). These blade kernel implementations will allow the phone to use all four cores at 1.7ghz, dramatically assisting multithreaded applications and games that are cpu intensive but poorly optimized. To enable this use attached script.
My Launcher is constantly reloading/Heavy open world games lag/Sense multitasking sucks!
Elite also features swap memory, although I cannot recommend it for daily use, if you are a heavy gamer, it will help in any unity or unreal engine game and also stops the launcher from reloading which can be annoying (sense is a ram hog). These come in various sizes which from 128mb to 256mb and performance gains really depend on usage or what you think is necessary.
Performance is great but battery life is terrible
You might also want to try UV your phone,again poses some risk but cannot cause permanent damage like the aforementioned swap memory, before doing so check you tegra 3 chip variant. These range from 1-4 with the original One X being 1-3 and the One X+ being mainly 4, 3 if you are unlucky, the higher the better and faster/cooler. You can check by using a terminal emulator and typing:
cat /sys/kernel/debug/t3_variant
I personally own a variant 4 which operates well even with a 100 millivolt UV, however as all devices are different you will have to experiment with this. This option will keep heat down and save power as the tegra 3 has plenty of CPU to spare. I will also provide multiple UV Scripts for you to try out (stock elite is -25 millivolts). I also recommend using the phone in powersave when not gaming, the majority of games will probably run well even in powersave (limited to 1.15ghz and 3 cores).
Display uses the most power/auto-brightness scales too high or low/I just want to turn my button backlights off
You can also use a brilliant app called Lumos to manage screen brightness (the bright SLCD 2 screen does have its drawbacks) and backlight brightness or you can copy the lowest brightness apk from insertcoin v 3.2.1.
Developers aren`t releasing updates
Developers work for free and are devoting there free time that they could be spending on leisure, family or work to better our devices. They are not obliged to do this and release their work publicly. Most developers will listen to requests but please do not pester them excessively just because they see it unfit for implementation. please thank all developers for there hard work and even consider donating. A simple thanks is always appreciated, happy flashing.:good:
Click to expand...
Click to collapse
scarletbaron said:
How do I use this script? Flash it?
Thanks for the explanation!
Click to expand...
Click to collapse
Place them in etc/init.d folder and set permissions to rwxrwxrwx using root explorer or run on boot using scriptmanager.
ryanjsoo said:
Place them in etc/init.d folder and set permissions to rwxrwxrwx using root explorer or run on boot using scriptmanager.
Click to expand...
Click to collapse
I don't see a folder in etc called init.d, am I supposed to create a folder and name it init.d?
Sent from my HTC One X+ using xda app-developers app
Will these scripts help with the temperature Top?
Sent from my HTC One X+ using xda premium
Thanks for the wonderful effort.
As I am using the interactive optimized script, I encountered a problem at:
/sys/devices/gr3d/enable_3d_scaling
It said it cannot find such folder.
My phone spec:
- ARHD 6.5
- Elite kernel, latest one
Thanks
I really don't want to ask a dump question but there are a lot of files in the rar. I use Elegancia 5.2 with custom kernel, AT&T, so what is the file(s) suitable for me.
Pls give me a clue. Thks
Sent from my HTC One X+ using Tapatalk 2
Decide by yourself which scripts fit your needs. You will most likely want to use decoupled gpu and try different io schedulers. For 1.7ghz quad and uv I'm not sure if they will work on att . Which kernel do you use?
Whatdo you want to achieve?
Gesendet von meinem HTC One X+ mit Tapatalk 4
THX for that. I tried two scripts with ChaOS and it feels snappier
Gesendet von meinem HTC One X+ mit Tapatalk 2
nchantmnt said:
Decide by yourself which scripts fit your needs. You will most likely want to use decoupled gpu and try different io schedulers. For 1.7ghz quad and uv I'm not sure if they will work on att . Which kernel do you use?
Whatdo you want to achieve?
Gesendet von meinem HTC One X+ mit Tapatalk 4
Click to expand...
Click to collapse
I what to achieve good battery when phone is not in use and great proformance when in use
By the way I'm on stock kernel
Sent from my HTC One X+ using xda app-developers app
I tried running all of them in smanager but it always says something about not being able to locate a module that's is searching for. Any suggestions?
Sent from my HTC One X+
Help
Hello everyone I'm trying to decide between S3 and HOX+ and the only thing that seems to be better in S3 is gaming performance. Can I play Modern Combat 4, Asphalt 7, and NFS:MW smoothly on this phone? Do these scripts fix Gameloft lag?
ChongWiz said:
Hello everyone I'm trying to decide between S3 and HOX+ and the only thing that seems to be better in S3 is gaming performance. Can I play Modern Combat 4, Asphalt 7, and NFS:MW smoothly on this phone? Do these scripts fix Gameloft lag?
Click to expand...
Click to collapse
I've never had a problem with gameloft games
Sent from my HTC One X+ using xda app-developers app
I still do experience lags with the international one x+ on games like canabalt and most of 3D games are unplayable (sonic 4 ep II THD for example).
I'm on AOSP+ with Blade kernel, GPU scalling doesn't change a lot... I've tried supercharger V6, very smooth but not in games as well...
Any ultimate solution?
Thanks ryan, after using a couple of your scripts, combined with a much larger VM Heap. My phone feels like it should of out of the box For some reason tapatalk won't let me thank your OP. So i thanked post 3 lol
Sent from my HTC One X+ using Tapatalk 4 Beta
yokozuna82 said:
I what to achieve good battery when phone is not in use and great proformance when in use
By the way I'm on stock kernel
Sent from my HTC One X+ using xda app-developers app
Click to expand...
Click to collapse
You`ll want to look into a custom kernel as all use the smartmax governor which has better batterylife than ondemand and use cpuquiet driver which switches cores easier, ie uses less power, generates less heat as cores are clocked lower but more are active. Try the undervolt script but use a less aggressive one if you experience crashing or lag.
AndroHero said:
Thanks ryan, after using a couple of your scripts, combined with a much larger VM Heap. My phone feels like it should of out of the box For some reason tapatalk won't let me thank your OP. So i thanked post 3 lol
Sent from my HTC One X+ using Tapatalk 4 Beta
Click to expand...
Click to collapse
Thanks, your welcome, don`t forget to thank the kernel and rom devs as well
What function do the UV (50/75/100) scripts and the sio sheduler have
Sent from my One X+ using xda premium
UV is undervolting. In this case each frequency step is undervolted by 50/75/100 MV which will help to keep your device cooler and thus saves batery and prevents thermal throtteling but also might cause instability. For the i/o sheudlers ask google, its to complex for one small post. But in a nutshell it determines in what order tasks are handled.
Gesendet von meinem HTC One X+ mit Tapatalk 4 Beta
nchantmnt said:
UV is undervolting. In this case each frequency step is undervolted by 50/75/100 MV which will help to keep your device cooler and thus saves batery and prevents thermal throtteling but also might cause instability. For the i/o sheudlers ask google, its to complex for one small post. But in a nutshell it determines in what order tasks are handled.
Gesendet von meinem HTC One X+ mit Tapatalk 4 Beta
Click to expand...
Click to collapse
OK thank you
Sent from my One X+ using xda premium

[Q] Galaxy S3 Cores... One is missing or disabled

Since i got my GSIII i've been tweaking and experimenting with the best setup to give myself a nice experience without draining the hell out of the battery (especially now that my battery is an aged piece of s**t that won't last more than 6 hours, maybe because of my own actions )
I've gone through many different ROMS, official test builds, kernel configurations, etc... but a thing that has ALWAYS caught my eye is the fact that every single CPU tweaking mod i've ever used only lists 3 cores on the device
I should point out that i own an international SIII (GT-I9300), which comes with the Exynos 4412, it's not the best, but it does it's job pretty well, even with the default PegasusQ governor, personally, i just switch the I/O Scheduler to SIO for better performance, since i have a ton of media on the phone
If the 4412 is a quad core why is that 4th core never listed? i might be overlooking somthing completely obvious and stupid, and i probably should have figured it out by now, it's been a while since i've been using android phones, but this question has bugged me since i bought the phone over a year ago... can someone please explain this? i'll be forever grateful
Do you have power saving enabled or any app to save battery installed?
Modelistis said:
Do you have power saving enabled or any app to save battery installed?
Click to expand...
Click to collapse
Neither of them... power saving disables two cores and makes the phone feel sluggish, and everybody knows battery saver apps are BS
Cores are numbered from 0, not one. So the four cores would be 0,1,2,3. Making the total number of cores to be 4
Aleycat said:
Cores are numbered from 0, not one. So the four cores would be 0,1,2,3. Making the total number of cores to be 4
Click to expand...
Click to collapse
Somebody told me about this some time ago... but even the CPU usage display option in the developers menu only lists 3 cores (separated by slashes) it seems as one core is system reserved... for usage by the phone itself... not for user needs
However... i switched CPU governors yesterday... and i noticed number 3 popped up... i might have been the reason that core was missing in SetCPU... but the built in meter still shows 3 cores... not 4
What governor are you using? Also i noticed mine also show only 3 cores.
had the same bug on my s3 with cm 11 just now but it went away after reloading the governor (there is a different governor than what i was using that only has 3 core enabled, so it might just be a bug with the phone using the wrong governor or bugged governor setting)
edit: just did some more testing and the pegasusq governor i am using dynamically disables cores if usage is low (at least on cm 11, it just sets them to "stopped" on stock 4.3 with the same governor)

CPU control under Android lollipop 5.0.2

Hello everyone,
I'm looking for information. I have the current use case:
My smartphone is a Sharp Aquos Zeta SH-03G with lollipop 5.0.2 (I didn't get a choice on the device I could get )
By digging a bit in the system I found out that this smartphone is configured somehow to not use the full CPU capacity. It justs use 5 cores out of 8 of the snapdragon 810 whatever the activity on the phone.
However all the core are seen as possible to use by the kernel with correct frequencies.
Only the core up to 1.5Ghz are use normally. for the core up to 2Ghz, only one is used and not at the top frequency (max 1.4Ghz)
Which make this phone to act as a 5 core up to 1.5Ghz. I'm just curious to understand where I should look like to see where that configuration is done.
Is it in the custom kernel source code? Is it some arguments given at boot time? Is it in some configuration file somewhere on one of the booting partition?
They release the source code of the kernel so I just give at least a quick check in the processor core frequency definition for a snapdragon 810 and it was looking like all is defined approprietly to use all of them. Also the system report that it really see 8 cores and that 8 cores may be use if needed...
Any help appreciated, thanks!

All G5 CPUs locked down to 1.5ghz

Hey, I saw that all CPUs are currently locked down to 1593mhz. Our chip should have 2x1.5ghz for general use and 2x2.1ghz for high performance tasks.
But in stock as in custom Roms, I see all CPUs locked down, max freq 1593mhz and no control over queue processing, either from hotplug or CPU front. Is there something I missed? Or LG just lied to us?
I know from thermal point of view that our device would not be able to sustain 2.1ghz for a long time, but if the frequency is not even available, it is a serious matter... +500mhz is not something to overlook!
If thats true, thatd be a heartbreaking, the first thing I look to before choosing a device, is clock speed
Unlock the game optimization
I checked on cpu-z and frequencies. With optimization on, it won't go over 1,5 ghz but with that option off it is easily jumping to maximum clock speed (faster battery drain). Stock rom, don't know about custom roms.
Linux User said:
I checked on cpu-z and frequencies. With optimization on, it won't go over 1,5 ghz but with that option off it is easily jumping to maximum clock speed (faster battery drain). Stock rom, don't know about custom roms.
Click to expand...
Click to collapse
You mean game optimization in settings/battery? I think we do not have that option in custom ROMs (I am currently trying Aicp 12.1) and never changed it in stock. I will try going back to stock to disable that option and see if the frequency table changes... If it does, it will be a pre-requisite before flashing custom ROMs in our device. Still, it is something the kernel should handle.
I would underclock the device on my own, as I did with my good old G2, but not having the option for the CPUs to scale as intended is not cool...
Well, frequency table shows no change with stock, but somehow, CPUs 3 and 4 scale up to 2150mhz now.
I guess LG did not cheat in the strict sense of the word, but just does not want us to have control over our devices...
Sent from my LG-H850 using Tapatalk
Floodland said:
Hey, I saw that all CPUs are currently locked down to 1593mhz. Our chip should have 2x1.5ghz for general use and 2x2.1ghz for high performance tasks.
But in stock as in custom Roms, I see all CPUs locked down, max freq 1593mhz and no control over queue processing, either from hotplug or CPU front. Is there something I missed? Or LG just lied to us?
I know from thermal point of view that our device would not be able to sustain 2.1ghz for a long time, but if the frequency is not even available, it is a serious matter... +500mhz is not something to overlook!
Click to expand...
Click to collapse
So... I was freaked out after reading this thread, so i rushed to check using cpu Z and it turned out that mine is clocked at 2.15, so i don't know what is wrong u
The Snapdragon 820 inside the LG G5 has a quad-core processor which has 2 cores clocked at 2.15 GHz and two other cores clocked at 1.6 GHz (1593 MHz), it's the way the manufacturer (Qualcomm) decided the processor to be, the LG G5 is not underclocked. Some users may get different results in applications like CPU-Z or AnTuTu depending on which core the application is based on.
Android_420 said:
The Snapdragon 820 inside the LG G5 has a quad-core processor which has 2 cores clocked at 2.15 GHz and two other cores clocked at 1.6 GHz (1593 MHz), it's the way the manufacturer (Qualcomm) decided the processor to be, the LG G5 is not underclocked. Some users may get different results in applications like CPU-Z or AnTuTu depending on which core the application is based on.
Click to expand...
Click to collapse
The frequency table shown by kernel adiutor (or any kernel tweaking software) shows ranges 307-1593 for all processors.
I know the hardware behind, my first though was that LG underclocked it. Now I see the phone just hides its behavior and does not show the real table (or the available software is not able to see it).
We will need additional kernel development in order to effectively control the core speeds in our devices.
Case closed, thank you for the responses.
Floodland said:
The frequency table shown by kernel adiutor (or any kernel tweaking software) shows ranges 307-1593 for all processors.
I know the hardware behind, my first though was that LG underclocked it. Now I see the phone just hides its behavior and does not show the real table (or the available software is not able to see it).
We will need additional kernel development in order to effectively control the core speeds in our devices.
Case closed, thank you for the responses.
Click to expand...
Click to collapse
old versions of kernel auditor are buggy with the g5, they see it as a single quad core instead of big/little dual 2 cores. You need the newest kernel auditor.

Huge temperature difference between cores. Advice needed

Device - Samsung Galaxy S4
ROM - Resurrection Remix 6.0.1_r72 (https://forum.xda-developers.com/galaxy-s4/i9505-develop/rom-resurrection-lollipop-v5-5-5-t3195202)
Kernel - Alucard kernel repacked from https://forum.xda-developers.com/ga...p/jdcteam-optimized-cyanogenmod-14-0-t3479888
Rooted
There are no problems with software but I've put it here anyway as the instructions suggest.
My problem is the following - I've been playing with undervolting to make my battery last longer and in order to test the stability I've ran StabilityTest.
The voltages seems to be stable but I've noticed a big problem with throttling once I get into 1V domain.
The cores behave totally separately as if on a different board instead inside the same processor.
The first thing is that on idle 3 out of 4 cores will report 32-35C but the last core shows 0.
The second thing happens under a full load - The first core gets super hot very fast (up to 70 when it begins to throttle) the cores 2&3 are around 40-50C and the last core is still stubbornly locked on 0 even though it's under a full load!
It seems obvious to me that the temperature is not reported correctly but I don't know what to do about it.
Is this about thermal sensor being moved out of place or broken? Or something else?
Any advice is welcome.

Categories

Resources