CM6. SetCPU. Unable to disable PerfLock? - EVO 4G General

Hi All,
Ive recently flashed over to the stable version of CM6. So far so good. I've tried to tweak the phone here and there to get better battery life out of it.
I'm running stock kernel and SetCPU can't disable Perflock. I get a message saying "Perflock not found. You dont need to disable Perflock"
Any ideas ?
I want to setup a few profiles to help ease up on battery usage.
Thanks in advance.

PerfLock is already disabled in CM6... All perflock does is gives you the ability to underclock the processor, which you can already do with CM6

Related

Set CPU Not Functioning

So, I guess I'll just C+P my post from the SetCPU thread since no one was able to answer the question there. I figure I might get some help from the EVO crowd since this might be specific to the device.
'So I have a wee bit of an issue with 2.0.4 I think... I just rooted my EVO 4G, installed SetCPU, AutoDetect, main Profile 768/460 set on boot. However, I rebooted and it says in the Notification bar that that's the profile it's running, however when I open up SetCPU the speeds jump between 245 and 998...Is SetCPU not throtleing the CPU correctly?'
Also, the only options for SetCPU I'm getting are userspace, ondemand and performance.
Is there something I did wrong when I rooted it?
What kernel are you using? The reason I ask is because I had the king #12 installed and setcpu didn't seem to be doing anything. Based on the the scaling options it sounds like a Toast kernel. Different kernels get different options. King kernels have about 5 different scaling options. I think for $29.95 he will add a 6th option.
Stock kernel. I haven't gotten around to messing with the kernel or ROM yet. Do I have to be running a modded kernel for SetCPU to function at all?
Shushunmire said:
Stock kernel. I haven't gotten around to messing with the kernel or ROM yet. Do I have to be running a modded kernel for SetCPU to function at all?
Click to expand...
Click to collapse
Well this is very simple then you can't OC the stock kernel. I also don't think that SetCPU can govern a stock kernel. You must flash either Toast or Kings..
SetCPU will govern a stock ROM, just hit menu on its main screen and select Disable Perflock. Disable the perflock and tell it to do so on boot. Then you can change the clock speeds around and profiles will work. Only downside is it still won't overclock, but if you are looking for power savings, this is the way to do it.
superlinkx said:
SetCPU will govern a stock ROM, just hit menu on its main screen and select Disable Perflock. Disable the perflock and tell it to do so on boot. Then you can change the clock speeds around and profiles will work. Only downside is it still won't overclock, but if you are looking for power savings, this is the way to do it.
Click to expand...
Click to collapse
Ya I didn't think you could use setcpu with a stock kernel so that's some good info right there.. thanks.
Thanks! That did it! I wasn't really liking the idea of flashing a custom ROM or kernel to my device just yet, so this is great. I had my fair share of issues with HD2 running custom ROMS and kernels and for now I want something that just works until I get more familiar with the process.

[Q] setcpu not working

I am using an hd2, and i have noticed something that may be causing a lot of battery drain, that is consistent among every build that I have used. When I use setcpu, and give it root access, and whether i select auto detect or manually put in nexus one/snap dragon, it does not listen to the cpu cap that i put. i will exit the app, and go back to it, and the cpu clock speed with almost always exceed the cpu cap that i set, and many times, it will be running at the full 998 mhz. why is this, and how can i fix it?
I uninstalled SetCPU the other day as a little experiment. It makes f-all difference to me. In fact it makes things worse.
no longer needed with the latest kernels
metaltorizo said:
I am using an hd2, and i have noticed something that may be causing a lot of battery drain, that is consistent among every build that I have used. When I use setcpu, and give it root access, and whether i select auto detect or manually put in nexus one/snap dragon, it does not listen to the cpu cap that i put. i will exit the app, and go back to it, and the cpu clock speed with almost always exceed the cpu cap that i set, and many times, it will be running at the full 998 mhz. why is this, and how can i fix it?
Click to expand...
Click to collapse
This problem seems to relate to a kernel feature called perflock .. disabling this in-kernel allows the cpu cap in setcpu to be adhered to .. Unfortunately this is done at compile time and has no userland interface to use. I dont think its relating to all the battery drain you see but for sure if you limit cpu speeds with profiles like screen off it will have an effect.
try updateing super user libraries.
BurekUSvemiru said:
try updateing super user libraries.
Click to expand...
Click to collapse
Whats that then ?
how would i go about updating the su libraries? does anybody have an actual fix to this, because i would think my battery would be a lot better if the set cpu app was actaully working. and no, the latest kernels dont seem to be doing their job, because they all burn through juice like theres no tomorrow.
u have 2.04 installed ? it fc'd for me , now im using 2.02 no problems , try that
metaltorizo said:
how would i go about updating the su libraries? does anybody have an actual fix to this, because i would think my battery would be a lot better if the set cpu app was actaully working. and no, the latest kernels dont seem to be doing their job, because they all burn through juice like theres no tomorrow.
Click to expand...
Click to collapse
You don't update the su libraries .. su is either a static file or a link to busybox .. i cba looking right now .. probably a binary compiled statically ..
To have your issue resolved have a word with your friendly neighborhood kernel builder and ask him to disable perflock .. Its not needed for normal operation.
I'm having the same problem. Does anyone know how to get setcpu to work?! I have an HD2 running darkstone Froyo.

[Q] Change Default CPU Speed On Boot Permanently - CM7

Like the title says, I was just wondering if there was a way to change the default CPU speed on boot permanently? I know I can use SetCPU, but sometimes that hasn't held through a boot and I had to set the speed manually. So, I was hoping there was just some script somewhere I would have to change. But then I got to wondering, would that be possible from my phone? Would I have to build my own kernel? Or would I just be able to decompile the rom in dsixda's kitchen to change a kernel script? Any help is greatly appreciated!
I use ROM Toolbox. It has a ton of stuff including CPU Control and CPU Profiles (like to make it 691MHz max when the screen is off). And you get a lot of other stuff with ROM Toolbox. But you could say the CPU part is like Set CPU. Don't really know if this answered your question. Hope I helped though.
I'm pretty sure CM7 has a built in CPU setting feature in its Cyanogenmod Settings -> Performance menu. It gives you the option to set on boot as well. I've never played around with it so I'm not sure if it'll give you the same problems you're describing now, but it's worth a shot if you don't want the separate app.
Is your phone rooted?
Sent from my Black Ice'd Glacier using XDA App
c707h3j said:
I'm pretty sure CM7 has a built in CPU setting feature in its Cyanogenmod Settings -> Performance menu. It gives you the option to set on boot as well. I've never played around with it so I'm not sure if it'll give you the same problems you're describing now, but it's worth a shot if you don't want the separate app.
Click to expand...
Click to collapse
I think I remember this too.
--sent from my glacier.

Help me: Need maximum battery time

I need maximum battery time. So what is the best kernel for this and it´s configuration? I don´t need answers like "search for it" . Go hell those stupid guys.
voidvader said:
I need maximum battery time. So what is the best kernel for this and it´s configuration? I don´t need answers like "search for it" . Go hell those stupid guys.
Click to expand...
Click to collapse
there is no such thing as perfect kernel or perfect configuration,
the factors that can determine the amount of battery usage depends heavily on the nature of the usage under the user itself,
most kernels with undervolt support and underclocking will do fine,
i'd suggest you try out tweaks and preferences yourself since no one can guarantee you an exact time frame,
but i'll give you mine,
ROM: WP8 Monochromatic 5.1
Kernel: Built-in rom (savie's)
Tweaks: Built-in rom
Scaling freq: 156min 624max
CPU Governor: ondemandx
reduced all bloatwares even gmail and maps,
Battery Time (heavy usage): 4hrs max (medium usage): 1-1.5 day max (minimal usage) 2-3days max
that's just about it,
please take the time to conduct a research on what is your best prefered battery saving method,
don't call anyone stupid,
it's bad and potato disapproves
Rom doesnt matter really if you manage the applications well.
Use kuros kernel + kuros tweaks. Thats the best battery saving combo Ive tried.
For governor, use ondemand, the most battery efficient governor and use deadline for i/o
deathnotice01 said:
there is no such thing as perfect kernel or perfect configuration,
the factors that can determine the amount of battery usage depends heavily on the nature of the usage under the user itself,
Click to expand...
Click to collapse
Not really. Change between Merruk #206 and kuros latest, you can really notice the battery drain difference. Its battery efficient than stock kernel in my tests.
Here u go:
Before all id reccomend updating the software to the latest version xD
Use the latest white kernel
Use v6 supercharger and some other tweaks
Reduce the screen brightness
Lower the system volume in the sounds options
Disable animation
Disable auto-sync
Disable backup settings
Disable roaming ^^,wifi,mobile internet,bluetooth when you dont use it(gps even if turned on allways is only actually active when theres a open app that uses gps ^^)
Disabling more sound effects will make it ugly and not cool lol,so do as u wish with thease:
Keyboard sounds
Lock screen sounds and vibration
set a boot frequency in set cpu like:
312-832,conservative,sio
Set up proper profiles in set cpu like
Screen off
312-312,powersave,noop
Charging
312-832,ondemand,sio
Battery 50 F
312-832, conservative,noop
Battery <16
312-832, conservative, noop
here just take my setcpu profiles, i made it in setcpu 3.07 just put it in the root of your sdcard and in setcpu enable profiles and click on restore profiles and click on that
http://www.mediafire.com/?ru786ho4o9i7jdp
Here are some build.prop tweaks
ro.ril.power.collapse=0
ro.ril.disable.power.collapse=0
dalvik.vm.heapstartsize=4
dalvik.vm.startheapsize=4
this one is alredy in v6 supercharger ;P
pm.sleepmode=1
remove some useless apps that u dont use but their allways running in the background(yeah remove anything u will never use)
Google maps
email(not gmail)
software update
and buying a new, better battery isnt a bad idea too ? is it (obviously xD)
I hope i Helped, this and some of my other build.prop tweaks made my battery go like lol xD it was lasting so long idk how much was it
Thank you all! Thanks so much guys!:good:
Filip98 said:
Here are some build.prop tweaks
ro.ril.power.collapse=0
ro.ril.disable.power.collapse=0
dalvik.vm.heapstartsize=4
dalvik.vm.startheapsize=4
this one is alredy in v6 supercharger ;P
pm.sleepmode=1
I hope i Helped, this and some of my other build.prop tweaks made my battery go like lol xD it was lasting so long idk how much was it
Click to expand...
Click to collapse
the correct one is "dalvik.vm.heapstartsize". dalvik.vm.startheapsize is not exist. nevertheless, this script only work for ICS. GB based rom doesnt have these prop. please be carefull with any prop for virtual memory like this one. if you clean your dalvik-cache you might ended up in bootloop.
Lots of information.
Thanks guys.
Sent from my GT-S5360 using xda premium

Help regarding Franco Kernel Manager?

Just downloaded the latest version of franco kernel manager 6.1. Im a total noob in terms of using this tool, so I've been looking for a guide or a tutorial that can assist in using it. Also what is the method of flashing the franco kernel from this tool? Where can I download the franco kernel.zip? I have been looking all over, cant seem to find it. Plz help
Im currently on RR Rom latest version 8.6.3. Im looking for a setting to enhance battery life and overall performance of the Phone.
rigerp said:
Just downloaded the latest version of franco kernel manager 6.1. Im a total noob in terms of using this tool, so I've been looking for a guide or a tutorial that can assist in using it. Also what is the method of flashing the franco kernel from this tool? Where can I download the franco kernel.zip? I have been looking all over, cant seem to find it. Plz help
Im currently on RR Rom latest version 8.6.3. Im looking for a setting to enhance battery life and overall performance of the Phone.
Click to expand...
Click to collapse
Hey there
What I did to get Franco kernel was flash it during my first time rooting (so it was a clean flash, as the phone had be factory reset). Once you're in TWRP, you flash Franco kernel and then magisk. This is one way to do it. I can't advise you to flash a new kernel without clean flash because I personally didn't do it and I don't know if issues will come from that. If you can do it, my personal advice is to just do a clean flash. You know the drill, wipe system data and that stuff > flash ROM > Kernel > Magisk, and done
As for where you can get the zip, there is a thread here in the OP5 XDA forum on ROMs and Kernels I think and that's where franco posted the kernels. He's got a website too linked in the same post
HOWEVER, he hasn't updated them since last year, and I don't think they have support for Android 10, only 9
As for settings, well, in my own experience, you won't get any noticeable boost in battery life or performance without doing some drastic change.
If you want better battery life, you can decrease the maximum CPU frequency, change the governor to Conservative or Powersave, disable some cores, or all of those at once, but they WILL degrade performance, sometimes you won't notice but then you'll try to load a heavy webpage on Chrome and then you'll REALLY notice it.
The inverse is also true. To increase performance you change the governor to performance; usually the CPU frequency is set to its maximum by default, and the cores are all enabled anyway so you don't have to change anything. BUT, keeping the governor in Performance will also keep the CPU clocks at its maximum, and that's going to drain your battery like CRAZY, plus it'll overheat it. Usually there is no practical need for this setting, but I use it to play games on Dolphin emulator since thats when I can actually make use of that performance.
A better alternative is to keep the governor on Interactive, which will scale up CPU clocks depending on the load (if doing light stuff, low clocks. Heavy stuff > high clocks). Otherwise, Conservative does the same thing but takes longer to use higher clocks, so battery is saved.
Always use 1 governor for all cores. Do NOT use multiple governors (example: powersave for big cores, performance for little cores) because that will cause instability issues
Also, if you make any changes, you gotta tap the toggle on it, which will say something like "stay on boot: true". Otherwise, if you for instance change your governor to Performance, and then reboot, all your changes will reset to Default
Personally I just keep my governor in Conservative and roll with the defaults.
Hope that helps ya
sorry for digging but I was loooking for solution..
just make a backup of present kernel (tuned with FKM) and then flash it from backup menu
I was trying flash with twrp, magisk, 'set on boot' at first and many other things but it was so simple, it's there all the time

Categories

Resources