How to undervolt the Display? [overcome] - Galaxy Tab Q&A, Help & Troubleshooting

In the changelog of the Overcome Rom there was a point like 'display undervolting' or so. How can i undervolt the display?
thx in advance

Its already been done. Hard coded in the kernel no user end modification needs to be done.

Related

How to Overclock to1.2G

Here is the method to OC 1.2G
- move to arch/arm/plat-s5pc11x and change next three files
: max8998+consumer.c, s5pc110-dvfs.c, s5pc110-clock.c
- And, change some parameters like,
1000000 --> 1200000
250 --> 300
1250 --> 1300
<in file max8998+consumer.c>
/* frequency, Mathced VDD ARM voltage , Matched VDD INT*/
#if 1
{1200000, 1300, 1100, 0},
static const unsigned int dvs_arm_voltage_set[][2] = {
{DVSARM1, 1300},
<in file s5pc110-dvfs.c>
/* frequency */
static struct cpufreq_frequency_table s5pc110_freq_table_1GHZ[] = {
{L0, 1200*1000},
<in file s5pc110-clock.c>
/*APLL_FOUT, MPLL_FOUT, ARMCLK, HCLK_DSYS*/
static const u32 s5p_sysout_clk_tab_1GHZ[][4] = {
// APLL:1000,ARMCLK:1000,HCLK_MSYS:200,MPLL:667,HCLK_DSYS:166,HCLK_PSYS:133,PCLK_MSYS:100,PCLK_DSYS:83,PCLK_PSYS:66
{1200* MHZ, 667 *MHZ, 1200 *MHZ, 166 *MHZ},
/*pms value table*/
/*APLL(m, p, s), MPLL(m, p, s)*/
static const u32 s5p_sys_clk_mps_tab_1GHZ[][6] = {
{300, 6, 1, 667, 12, 1},
Then compile to zImage and flash it with ODIN.
I will not upload my zImage file because it's for M110S.
If someone find best rates and ARM voltage for upper clock, leave it here.
THANK YOU..... now just have to wait for someone smarter then me to actually do it and post the file, lol.
For best battery life and less stress to CPU someone should try to find lowest VDD which supports high frequency.
Here is one I compiled. I didn't just change the 1ghz but added a the 1.2ghz as an extra speed.
This is COMPLETELY untested. I'm not really much of a coder.
This MAY brick your device. If you know how to unbrick a SGS that has been flashed with a bad kernel, then you can try it. This is VIBRANT only (as that's the code that I had on my laptop at the time.)
I am not responsible for any damages to your phone. Please, please, please, ONLY flash this if you know how to recover from a bad kernel.
ONLY CLICK HERE IF YOU READ AND AGREED WITH THE WARNING IN RED!!!
Why the hell would anyone want to overclock their phone?
If you just want to destroy the phone, dont do it. donate it instead.
Wonderful
I really miss the custum oc and undervolt kernels from my Nexus.
Good work !
emclondon said:
Why the hell would anyone want to overclock their phone?
If you just want to destroy the phone, dont do it. donate it instead.
Click to expand...
Click to collapse
who tells you the phone would be destroyed from OC? sure it really needs to be tested through stress tests and the first people to try will be endangered to brick, but normally the cpu is failing and freezing when it gets too hot. on the i7500 we have overclocking from 528mhz to 710mhz and most of the devices run fine with that. however some devices can only be clocked to 614mhz without freezing which is due their cpus are not that good quality, but never we had any user reporting a grilled cpu. however we have to be carefully with voltages (what actually causes cpu grilling) to not raise them to much.
ivanmmj said:
Here is one I compiled. I didn't just change the 1ghz but added a the 1.2ghz as an extra speed.
This is COMPLETELY untested. I'm not really much of a coder.
This MAY brick your device. If you know how to unbrick a SGS that has been flashed with a bad kernel, then you can try it. This is VIBRANT only (as that's the code that I had on my laptop at the time.)
I am not responsible for any damages to your phone. Please, please, please, ONLY flash this if you know how to recover from a bad kernel.
ONLY CLICK HERE IF YOU READ AND AGREED WITH THE WARNING IN RED!!!
Click to expand...
Click to collapse
your kernel is only 2.6mb in size while all the stock and other kernels are about 5mb. if i compile the kernel source myself i also get only about 2.6, any idea why? missing modules in the image maybe?
thank you!
edit: sorry for the off topic post...
jodue said:
your kernel is only 2.6mb in size while all the stock and other kernels are about 5mb. if i compile the kernel source myself i also get only about 2.6, any idea why? missing modules in the image maybe?
thank you!
edit: sorry for the off topic post...
Click to expand...
Click to collapse
You need initramfs
actuallly im more interested in saving battery life by underclocking and undervolting the phone. Is it possible also?
Or at least remain at 1Ghz but with voltage lowered.
If anyone found the best combination please share
My HTC Hero i OC all the time to 710Mhz no problems. It def got more "snappy".
To UC my Galaxy I use SetCPU. min 200 and max 400 when screen off.
Maybe I'll save som battery!?.
With screen on i use min 800 and max 1000.
Would be nice to run the Galaxy at 1.2Ghz.
Hi all! I'm in Europe, and I have a Galaxy S. I saw in the 4th post, that it's working only on Vibrant. I just wanna ask, it's working on Europe version Galaxy S?
Thanks, and great work
Development
Due to samsungs own dev team pretty much dominating ROM development, Kernals seem like a good place for the great minds at XDA to do what they do best! I really do hope that kernal development kicks off for the SGS as im used to haveing OC with UV on my N1 and really enjoyed the advantages these gave me. I hope someone with more tech knowledge can chuck together a OC Kernal for the SGS sometime soon ...
I don't need oc yet lol, this thing already flies, can't wait for froyo tho
jodue said:
your kernel is only 2.6mb in size while all the stock and other kernels are about 5mb. if i compile the kernel source myself i also get only about 2.6, any idea why? missing modules in the image maybe?
thank you!
edit: sorry for the off topic post...
Click to expand...
Click to collapse
As mentioned above, this is the kernel only, not the whole package. I didn't have time to set up the whole thing. I compiled that at 4 in the morning and was too tired to throw it all together. I've got a lot of work to do (irl) but maybe I'll get some more time later tomorrow to work on making something more flashable.
ivanmmj said:
As mentioned above, this is the kernel only, not the whole package. I didn't have time to set up the whole thing. I compiled that at 4 in the morning and was too tired to throw it all together. I've got a lot of work to do (irl) but maybe I'll get some more time later tomorrow to work on making something more flashable.
Click to expand...
Click to collapse
yeah, initramfs is not in your zImage ... after some reading i got it working with leshak's initramfs (http://github.com/leshak/i9000-leshak-initramfs). now i have a kernel which is about the right size (5.8 MB) i have't had time to flash it yet tho
This is really interesting - Imagining that one day it could be possible to overclock when gaming and hard multitasking and underclock/undervolt when needed to save battery!!
Im subscribing to this topic!
I've got a Vibrant Kernel up and running with initramfs and should be releasing it tonight. I'll add in more changes like OC/UV in the future.
justanothercrowd said:
I've got a Vibrant Kernel up and running with initramfs and should be releasing it tonight. I'll add in more changes like OC/UV in the future.
Click to expand...
Click to collapse
Is it easy to port to stock galaxy?
emclondon said:
Why the hell would anyone want to overclock their phone?
If you just want to destroy the phone, dont do it. donate it instead.
Click to expand...
Click to collapse
Hehe feel like laughing at you! I am overclocking almost all my devices (read - target all of them if I can) and I never had a device brick or cause any issue except for the temporary instability if I overdo it. This is how I test and use my hardware. Way to go. Once I learn how to compile these kernels, I will see what best speeds I could go before the phone becomes unstable.

[MOD] Disable perflock for stock kernel (2.03.405.3)

Here I put together perflock_disable update package for Legend stock kernel 2.6.29-5f084974. It is ment to disable perflock on every boot. This package consists of perflock_disable module (now licensed under GPL) from SetCPU app and boot script that loads this module.
Background:
Stock Legend's kernel has performance lock turned on. This means that (unless you recompiled your own kernel) CPU frequency scaling is somehow limited. Default limits are set from 480 to 600 MHz while screen is on and to 246 MHz while screen is off. Furthermore ondemand CPU scaling governor is limited from 246 to 600 MHz. This means you can not underclock you Legend with SetCPU unless you use perflock disable option which you have to set manually after every reboot. And here this "update" kicks in.
Requirements:
rooted Legend of course
kernel 2.6.29-5f084974
busybox
run-parts integrated in init.rc script (/etc/init.d)
Big thanks goes to coolbho3000 who now offers this module under GPL so we can use it outside his cool app.
Good post Blayo, wish it had come along earlier.
I hope more kernels will be coming along.
Sorry... how to install this ?
from ROM Manager ?
Learners Lisence said:
Good post Blayo, wish it had come along earlier.
I hope more kernels will be coming along.
Click to expand...
Click to collapse
Well this is for stock kernel. If you have your own kernel, you could have disabled perflok while you were compiling it and you wouldn't needed this module...
Vuska said:
Sorry... how to install this ?
from ROM Manager ?
Click to expand...
Click to collapse
Install it as any other update.zip via recovery mode. But you need run-parts in your init.rc, otherwise the module won't load.
I also compiled cpufreq governor modules (conservative and powersave) for stock kernel if anyone is interested...
But you need run-parts in your init.rc, otherwise the module won't load.
Click to expand...
Click to collapse
How to do this ?
This is beyond the scope of this tread. You can try Chef Central but to be honest, if you don't know what this is or how it is done, then this (Android Development) is perhaps not the right forum for you.
BlaY0 said:
Well this is for stock kernel. If you have your own kernel, you could have disabled perflok while you were compiling it and you wouldn't needed this module...
Click to expand...
Click to collapse
Yes, Blayo. I flashed the 806 kernel by dumfuq a week back. Im quite happy with it so far but would like to experiment with more Legend compatible kernels.
I read around a bit and then decided that underclocking and battery save could be achieved by a overclock kernel designed for 'performance' ....kinda like 'having the cake and eating it too"
Nevertheless, I appreciate the ideas associated with your present and possible future shares.
Thanks
Learners Lisence said:
I read around a bit and then decided that underclocking and battery save could be achieved by a overclock kernel designed for 'performance' ....kinda like 'having the cake and eating it too"
Click to expand...
Click to collapse
Yes of course. Those custom kernels don't have enabled perflock so you can set speed by using SetCPU without loading perflock_disable module.
Well, if I'm frank I have never been fond of overclocking. My goal is just to extend the battery life of these "hungry" devices as much as possible without affecting user experience.
Right now I'm testing conservative governor and have some problems, because SetCPU can't handle switching between governors as it should.
Cheers,
BlaY0 said:
This is beyond the scope of this tread. You can try Chef Central but to be honest, if you don't know what this is or how it is done, then this (Android Development) is perhaps not the right forum for you.
Click to expand...
Click to collapse
I'll try to search about chef central and i am very new in linux OS.
but thank you...
I will learn because i have legend and i like it
Good for you
Chef Central is a subforum her on xda-developers...
Thanks, nice work, i'm send you p.m. with a consulting.
what is the "run-parts integrated in init.rc script (/etc/init.d)" ?
and how about other kernel versions ?
mr.antooan said:
what is the "run-parts integrated in init.rc script (/etc/init.d)" ?
Click to expand...
Click to collapse
A way of running shell scripts at boot time in sequential order...
mr.antooan said:
and how about other kernel versions ?
Click to expand...
Click to collapse
What other kernel versions? Almost any custom kernel does not use perflock hence no need for perflock disable module...
Just to let you know guys... SetCPU 2.0.3 now supports perflock disable set on boot, so there is actually no need for this script any more...

vorkKernel-OC/UV Kernel for CM[20111105]

Hi. The following kernel is presented to you by
vorkKernel Team:
- kiljacken
- Benee​
Click to expand...
Click to collapse
This kernel is for Cyanogenmod and Miui. *Could* be incompatible with latest kangs or nightlies (after a kernel update from CM team). No support for stock or mcr...
It's incompatible with MIUI and CM Builds before #177
New vorkKernel Twitter Bot: Here
First I want to make clear that all credit goes to aremcee/arcee/rmcc (man so many nicks ). He did an awesome job with the kernel.
I just tweaked it a little bit to my needs.
Features:
uv/oc support. OC up to 1,5GHz (With E-Peen version)
AVP/System/RAM/GPU OC with E-Peen version
1,2 Ghz for batt safe version.
Special tweaked (working!) Performance and Powersave Govenors which don't lock the freq to one level (they choose between 3-4 Freq steps)
It's even possible to set max/min clock via setcpu or CMSettings!
Voodoo sound. Thanks supercurio! So awesome
Default IO-Sched is Deadline with a special flash storage tweak
Slub allocator
tweaked CFS cpu sched (Low latency)
compiled with a tweaked toolchain (base linaro gcc - optimized for tegra2)
VFP optimizations (vfpv3-d16) and overall compiler optimizations
flags! (more below in the flag section)
A App for easy downloading and configuring. Credits to kiljacken!
Click to expand...
Click to collapse
The standard part:
I'm not responsible for melted phones or something like that...
The camera is unstable with E-Peen mode (due to AVP OC). After a reboot it needs to stabilize a few minutes (so you break it with every reboot again). Same for Bluetooth. Please don't report a problem regarding this. It's known and can't be fixed.​
Click to expand...
Click to collapse
And the source code here.
Download (Market)
Credits to kiljacken for this awesome app! You need OI File Manager for the app (Comes with CM)!
(and if you refuse to use the app - or the app is refusing to work with you: here)
Only change something, if you want to enable OC - No need to touch anything else (like govenors, schedulers)​
What are flags and how can I use them?
I recommend to use the App kiljacken made, because it's super easy for you guys. If you not want to use the app *sadpanda* then you can click this link. This is the file the app is fetching to generate the UI.
The layout is following:
Available for following device/Element style (more below)/the flag you need to add/Flag name in App/Description for general Flag/Choice name in app/actual value you need to add after flag name
If the last two points are added you first enter the flag name and than the value. For example: density230
You connect the flags with a: -
Example: -camera-ring ...
The script is configured to detect flags after vorkKernel-VERSIONNUMBER. So you can add some flags after this.
Element style
c = Checkbox
l = List you can choose things from
e = you can enter your own value​
Click to expand...
Click to collapse
Error Reporting Guide
Start with rebooting, if that doesn't help, reflash CM and then the kernel, and check again. If you're using the updater app (make sure you have the latest version), use the error report function (and describe what you're problem is). If you're not using the app, then post what flags you are using, along with what your problem is.​
Click to expand...
Click to collapse
Additionally I just want to point out that I'm not doing this as a fulltime job, so don't expect daily updates or something like that. I will try to fix a problem as fast as possible but in some cases it can take a while.
If you want to support me you can sign up on dropbox via my referral link or just push this nice thanks button .. If you want to donate you can donate to aremcee/arcee/rmcc something. I'm learning C and linux and vorkKernel is my learning project and it is a hobby for me. Anyway if you still want to support a poor student, I have a link in my signature
Thanks to:
arcee + the whole CM Team
morfic for all the avp oc tweaks and other stuff
thalamus (for saving me going crazy with the toolchain )
Erasmux
All guys that made pull request and contributed in any possible way
Donators to our project (app or kiljacken's donate link)
the android community
and a very big thanks to b3ndech0 for his buildbox.
Thanks, this is very much appreciated
This kernel is amazing! Nice work with the filename flags. It's brilliant! This way we don't have to have the same setup, but can enjoy both CM7 and the kernel.
sibbor said:
I'll try this kernel later. Will wait for CM7 getting more optimized for our devices first. 2000 Quadrant scores out of the box just don't cut it - I don't want to overclock to 1.4 GHz just to reach speeds of MCR FR14 ;-)
Planning on including any changes from kholk?
Click to expand...
Click to collapse
More things will be in it soon. And Quadrant doesn't matter. CM feels better in normal use (except a few problems but it is a really good starting point).
Benee said:
More things will be in it soon. And Quadrant doesn't matter. CM feels better in normal use (except a few problems but it is a really good starting point).
Click to expand...
Click to collapse
Yes I know it doesn't really matter. Although, generally speaking, higher scores means the software is more optimized to the hardware; framework, kernel and/or drivers.
CM7 should be able to smash the performance out of the LG stock ROM without problem...
Thanks for you kernel additions! Subscribed to this thread now so I can follow your progress.
is this kernel for a stock rom?
thanks
sibbor said:
Yes I know it doesn't really matter. Although, generally speaking, higher scores means the software is more optimized to the hardware; framework, kernel and/or drivers.
CM7 should be able to smash the performance out of the LG stock ROM without problem...
Thanks for you kernel additions! Subscribed to this thread now so I can follow your progress.
Click to expand...
Click to collapse
Nah. You can boost quadrant to oblivion via data2ext for example on desire/nexus but it didn't helped in real life performance. The sql sync disable doesn't help with real usage, but boost quadrant etc. So many things which doesn't improve real usage, boost quadrant. Like deleting your /system (pro move...).
But yeah in some parts you are right and optimizing drivers boost it too + help real use performance, so I will do this too.
vekkio said:
is this kernel for a stock rom?
thanks
Click to expand...
Click to collapse
Really? Just read the title: vorkKernel-OC/UV Kernel for CM. For Cyanogenmod. Not stock...
seems the IO from quadrant score still low, is it same sqlite hack with paul that one?
emprize said:
seems the IO from quadrant score still low, is it same sqlite hack with paul that one?
Click to expand...
Click to collapse
yup. patched cm, then compiled this and added it to update.zip.
vekkio said:
is this kernel for a stock rom?
thanks
Click to expand...
Click to collapse
Haaahaa yeah u flash away hahahahha
EDIT:- No only joking
DONT PEOPLE READ
ok, flash this kernal and using cm7 oc to 1.4, quadrant get 31xx
edit : fail to exec smartbench
Benee any chance you could add the OC support to the CM settings?
Sent from my LG O2X CM7 Nightly
svceon said:
Benee any chance you could add the OC support to the CM settings?
Sent from my LG O2X CM7 Nightly
Click to expand...
Click to collapse
Yep but this would break pimp my cpu support and I think pimp my cpu is the better deal. A easy user interface with undervolting support. Awesome! .. so no I won't add it to cm settings
Awesome OC in CM7 makes it even better
I know I'm going to get flamed for this but how do you o/c once you have flashed the kernel? when i open setCPU its already at the max 1g when i go to the CM settings there's no frequencies to select in the cpu management option
is it different on the tegra chips as opposed to qualacom?
sibbor said:
Planning on including any changes from kholk?
Click to expand...
Click to collapse
Ok if I understand the changelog from kholk correct, most of the changes are already included (don't know exactly because he didn't copied the commit names and sums the function up). One commit isn't in it because it introduced the graphic glitches. vfp3-d16 support and compiler optimization will be added with next update. Then most things are in it.
spences10 said:
I know I'm going to get flamed for this but how do you o/c once you have flashed the kernel? when i open setCPU its already at the max 1g when i go to the CM settings there's no frequencies to select in the cpu management option
is it different on the tegra chips as opposed to qualacom?
Click to expand...
Click to collapse
Is stated in the OP:
So I compiled it with uv/oc support via pimp my cpu.
Click to expand...
Click to collapse
Pimp My CPU can be downloaded from here: http://forum.xda-developers.com/showthread.php?t=1018411
spences10 said:
I know I'm going to get flamed for this but how do you o/c once you have flashed the kernel? when i open setCPU its already at the max 1g when i go to the CM settings there's no frequencies to select in the cpu management option
is it different on the tegra chips as opposed to qualacom?
Click to expand...
Click to collapse
Nah no flaming . You need pimp my cpu for it. Cpasjute did some kernel hacks to enable oc and add a uv function. That means you can undervolt without compiling the kernel again. Unfortunatly it isn't compatible with setcpu..
The kernel seems ok; I tried OC till 1200 with 50-100 UV (depending on OC).
What's very good with CM7 (and this kernel) is battery life, 30-40% more compared with Modaco ROM (till FR14).
Anybody have tried higher frequencies (1300-1400)?
Thanks a lot.
lukemo said:
The kernel seems ok; I tried OC till 1200 with 50-100 UV (depending on OC).
What's very good with CM7 (and this kernel) is battery life, 30-40% more compared with Modaco ROM (till FR14).
Anybody have tried higher frequencies (1300-1400)?
Thanks a lot.
Click to expand...
Click to collapse
I have been using this all day running 1300Mhz @ 1200mV - normal use with wifi on - 84% battery left after ap. 12 hours

Is anyone making custom kernel now ?

We're waiting from a year.I want oc supported kernel.Will it be happen ?
Sorry for English
kilicaslan17 said:
We're waiting from a year.I want oc supported kernel.Will it be happen ?
Sorry for English
Click to expand...
Click to collapse
no, because our device is not OC capable..... some developers said, its too dangerous with our CPU.
aluk4rd said:
no, because our device is not OC capable..... some developers said, its too dangerous with our CPU.
Click to expand...
Click to collapse
Yes but mali400 gpu can be overclock so much.
kilicaslan17 said:
Yes but mali400 gpu can be overclock so much.
Click to expand...
Click to collapse
you seem very knowledgeable on the topic perhaps you should try getting into making an OC kernel
there is a thread that one of the guys started working on an OC kernel
have a search through it and see what you can do
efaustino84 said:
you seem very knowledgeable on the topic perhaps you should try getting into making an OC kernel
there is a thread that one of the guys started working on an OC kernel
have a search through it and see what you can do
Click to expand...
Click to collapse
i've changed the values in the frequency table (the highest frequency i tried to compile was CPU @ 1.1GHz and GPU @ 350mhz or 400Mhz i can remember it was around +50MHz then the stock frequency , go slow, too high values can be very dangerous) on the kernel sources but i had some truble compiling the kernel and even if i compiled the kernel the network drivers wouldnt work...(see the instructions on how to compile and how to fix the drivers in the kernel sources From SAMSUNG).
anyway i discontinued my work due to a certain "comment" i didnt like and i have no intention of start developing a public release.
Good Luck
PTGamer said:
i've changed the values in the frequency table (the highest frequency i tried to compile was CPU @ 1.1GHz and GPU @ 350mhz or 400Mhz i can remember it was around +50MHz then the stock frequency , go slow, too high values can be very dangerous) on the kernel sources but i had some truble compiling the kernel and even if i compiled the kernel the network drivers wouldnt work...(see the instructions on how to compile and how to fix the drivers in the kernel sources From SAMSUNG).
anyway i discontinued my work due to a certain "comment" i didnt like and i have no intention of start developing a public release.
Good Luck
Click to expand...
Click to collapse
Sad to see you stop developing but really just ignore them, just because someone says you suck or whatever and you stop doing it, its really not worth it

[Kernel] Battery saver kernel

Update
Here is an easier solution that doesn't require flashing.
Please use this for any new ROMs from now on.
Old solution ONLY FOR 5.10.8 and 5.10.16
This is a stock miui kernel from 5.10.8, with modified ramdisk to limit CPU frequency.
This is a test I made for myself to see how much it helps in battery time to limit the CPU. I'm sharing this, because others might be interested in it.
You need to have MIUI 5.10.8 or 5.10.16. Older versions are not fully compatible. (Vibration not working)
So, finally we have custom kernels?
No, the proper kernel source is not available yet, the kernel image is still untouched.
Will there be new versions?
Probably, as there are other possible ramdisk tweaks that can achieve better battery life.
How much this can help?
I didn't have the time for a long test yet, I hope there are some users here who are willing to compare the results with the factory kernel.
But I can make some points:
This won't help much with standby time, as the frequency there is already much more limited.
This will help the most in situations where the CPU is the biggest drainer, like games.
Is this going to slow down my phone?
Theoretically, it will be slower. However in real life usage, I can't tell the difference.
Why wouldn't you just use an app like SetCPU?
None of those apps I tried have worked.
Can this be done without flashing a new kernel?
Yes, you only have to update the frequency in KHz in /proc/cpufreq/cpufreq_limited_max_freq_by_user.
For example (with root privileges):
Code:
echo '1500000' > /proc/cpufreq/cpufreq_limited_max_freq_by_user
However, this will reset after a reboot.
The attached file can be flashed under recoveries. TWRP tested.
Or you can extract the boot.img, and flash it in fastboot.
xm_kernel.zip will limit the CPU at 1.5GHz.
xm_kernel_1200 will do 1.2GHz.
Version 2 will do the trick Ched666 suggested, thus reducing the time spent at maxfreq.
Version 3 will not disable the touch boost, instead it will replace perfservscntbl.txt with boost to 1183MHz and 2 cores.
Reserved
Looking forward results and tests.
Flashed on 5.9.24
Work perfect. Only one problem... Vibro is gone Both Incall and feedback
Bakumatsu said:
Flashed on 5.9.24
Work perfect. Only one problem... Vibro is gone Both Incall and feedback
Click to expand...
Click to collapse
Thanks for the heads-up. You probably need 5.10.8 for that to work.
I know. I just a flashagolic
ill be testing this later..nice work buddy
Test on miui 5.10.8, it works!
And later manually change value to 1200000, works without lag. But after reboot maxfreq reset to 1500000.
Can you make the same kernel, but with maxfreq 1200000?
Xmister said:
No, the proper kernel source is not available yet, the kernel image is still untouched.
Click to expand...
Click to collapse
isn't this the kernel source code: https://github.com/BalcanGSM/MediaTek-HelioX10-Kernel
avenant said:
isn't this the kernel source code: https://github.com/BalcanGSM/MediaTek-HelioX10-Kernel
Click to expand...
Click to collapse
That is just a basic MediaTek source, it's missing drivers and configuration for our device.
I think it is more easy to control the value by implement init.d on our device.
Xmister said:
What is this?
This is a stock miui kernel from 5.10.8, with modified ramdisk to limit CPU frequency at 1.5GHz.
This is a test I made for myself to see how much it helps in battery time to limit the CPU. I'm sharing this, because others might be interested in it.
You need to have MIUI 5.10.8. Older versions are not fully compatible. (Vibration not working)
So, finally we have custom kernels?
No, the proper kernel source is not available yet, the kernel image is still untouched.
Will there be new versions?
Probably, as there are other possible ramdisk tweaks that can achieve better battery life.
How much this can help?
I didn't have the time for a long test yet, I hope there are some users here who are willing to compare the results with the factory kernel.
But I can make some points:
This won't help much with standby time, as the frequency there is already much more limited.
This will help the most in situations where the CPU is the biggest drainer, like games.
Is this going to slow down my phone?
Theoretically, it will be slower. However in real life usage, I can't tell the difference.
Why wouldn't you just use an app like SetCPU?
None of those apps I tried have worked.
Can this be done without flashing a new kernel?
Yes, you only have to update the frequency in KHz in /proc/cpufreq/cpufreq_limited_max_freq_by_user.
For example (with root privileges):
Code:
echo '1500000' > /proc/cpufreq/cpufreq_limited_max_freq_by_user
However, this will reset after a reboot.
The attached file can be flashed under recoveries. TWRP tested.
Or you can extract the boot.img, and flash it in fastboot.
Click to expand...
Click to collapse
it show to be on maximum speed on cpu spy...why?
Jo-san said:
it show to be on maximum speed on cpu spy...why?
Click to expand...
Click to collapse
Maybe the flash wasn't successful,or you flashed over something.
This is mine, the 29 sec is during boot, until it activates.
Ched666 said:
Test on miui 5.10.8, it works!
And later manually change value to 1200000, works without lag. But after reboot maxfreq reset to 1500000.
Can you make the same kernel, but with maxfreq 1200000?
Click to expand...
Click to collapse
OP updated with 1.2GHz kernel
Xmister you really do a great job. I renember I used your kernel when my phone was still HTC one x and then I changed to use iPhone 5s ,6, and dropped few weeks ago. And then I am back to android envirnoment and still flashing your modded kernel. Many thanks for your contribution.
And BTW, I think the 1200 kHz really help in get away from the battery draining problems.
4pda users found interesting thing... When touch a screen, frequency increases to maximum.
But if write 0 to the /proc/cpufreq/cpufreq_limited_by_hevc and set read only permissions, this bug disappears. And no maximum freq when touch a screen.
I tried it, and phone is much less heat, and works at a reduced freqs.
ADD: make mod to xm_kernel 1,5 GHz with this tweak
Ched666 said:
4pda users found interesting thing... When touch a screen, frequency increases to maximum.
But if write 0 to the /proc/cpufreq/cpufreq_limited_by_hevc and set read only permissions, this bug disappears. And no maximum freq when touch a screen.
I tried it, and phone is much less heat, and works at a reduced freqs.
Click to expand...
Click to collapse
This seems working too.
OP updated with V2 kernels that do this automatically.
Xmister said:
This seems working too.
OP updated with V2 kernels that do this automatically.
Click to expand...
Click to collapse
Also made modification ))
No need to touch cpufreq_limited_by_hevc.
If you want to control the touch_boost, try this way.
Find the file in system/etc/perfservscntbl.txt
CMD_SET_CPU_CORE, SCN_APP_TOUCH is to control how many cores when touch boost.
CMD_SET_CPU_FREQ, SCN_APP_TOUCH is to set the value when touch boost.
Save after modify and reboot your device.
By @Ched6666 's way is totally disable touch_boost
v2 is compatible with 5.10.16 release?

Categories

Resources