[Q] please reply SetCpu scaling problem - Galaxy S II Q&A, Help & Troubleshooting

i flashes check rom revolutionhd v4 on my s2 with kernel darkknight v2.5.2 i installed setcpu but battery level profiles with limited scaling at 50% and then everything was working fine after soemtime when i opened my phone setcpu keeps on changing the scale to max 12000 from 500 no matter what i do any idea?

a little more information is needed.
what governor are you using to control scaling.

Related

[KERNEL][23/07] █░ SGSII | 2.6.35.7-MirageS2 [v5]- STOP BATT DRAIN | OC 1600mhz ░█

[KERNEL][23/07] █░ SGSII | 2.6.35.7-MirageS2 [v5]- STOP BATT DRAIN | OC 1600mhz ░█
Firstly, I'm not responsable if you brick your phone doing overclock or a bad use of this kernel. So, be careful.
This kernel is built from a custom modified source by me (I've added and modified some things to an updated SGS2 source), I've tried to modify it to get the lowest battery drain, so this kernel should stay in a step between performance and battery, if you like some more performance you can download SetCPU, or other custom app to modify freqs and default governor.
What's included:
-For XXKG1/G2/G3 (should work with olders too)
-Modified Freq range 11 steps (200-400-500-600-800-900-1000-1200-1400-1504-1600 Mhz)
-CPU UV sysinterface (thanks to ninphetamine)
-Modified cpufreq.c to force processor to go step-by-step in freqs.
-Default Freq: 500-1200 Mhz ondemand (the best to get low batt drain, should drain lower in sleep)
-Lowest maximum freq blocked to 400mhz (so if you put 200-200, it will run 200-400, locked due to better performance)
-Available governors: interactive-smartass-conservative-userspace-powersave-ondemand-performance (custom modded smartass, ondemand and interactive governors)
-CFS Scheduler.
-SLQB Allocator.
-CFQ Block IO Scheduler (Available: no-op, deadline, cfq)
-Modified Initramfs from saturn_de (thanks to him and Chainfire) - I've added some values to this init.rc to get lower battery drain and some performance. (some different from saturn)
-CWM 4.0.0.2 Recovery
-Disabled Profiling support and debugs, added ThumbEE, Improved Control Group Support.
-Added some CFQ IO tweaks
-Changed dalvikvm heapsize to 60m (this should improve performance on tasking)
-Touchscreen fix added (thanks to vicenzo91)
*[email protected]
*[email protected]
*int:fast is not included due to performance problems.
*not compatible with tegrak OC (tested with SetCPU)
test with performance 1504mhz, vfs_cache_pressure=100 and dalvik 64m (default vfs=70, you can modify it downloading Sysctl Config from Market)
v5:
*set samsung-update1 as base (fix reboots)
*added slqb patch
*removed bfq
Download:
SERVERS:
[USA]SGSII-2.6.35.7-MirageS2-v5
[DEUTSCHLAND]SGSII-2.6.35.7-MirageS2-v5
[Mirror]http://sgsii.z4mb0.net/Kernels/SGSII-2.6.35.7-MirageS2-v5.tar Mirror by El TeKi thanks
reserved.....
Wow nice to see you here. Will try it out immediately
Sent from my GT-I9100 using XDA Premium App
looks really really really promising... trying it now
how come i only get scores around 3200 with every rom and kernel? and everyone else has so high
going to try this one soon
yeaaa baby !!
Good to see you here Neo. Been a Aurax/Reflex fan on the Desire...
This is good news!
Regards
Awesome, will try this when i get home
Sent from my GT-I9100 using XDA Premium App
Just flashed. Oc to 1.5ghz. First quadrant 4566
will give feedback on batt consumption soon
Hope to see soon a rom made by you..... On my old desire i had your auraxtsense!!! U are great
Very nice neo. I'm a fan of your desire rom.. now u make a kernel for sgs2. No doubt, i will try it in the future. I hope u release your own version rom for sgs2.
+1
Sent from my GT-I9100 using XDA App
+2
Sent from my GT-I9100 using XDA App
trunks986 said:
Hope to see soon a rom made by you..... On my old desire i had your auraxtsense!!! U are great
Click to expand...
Click to collapse
Soon mate, soon. Thanks
Holy shiznit,who would've thought we'd be seeing you here Neo?I gotta thank you for the first rom that made me actually love my Desire.Not the only one,but it was the first whatsoever.
I'd like to tell you a thing or two(or three ) though.
1)You should add support for SetCPU's voltage control.I know there are other apps that do the same thing,but the number of people using SetCPU is massive.And on the Galaxy S 2,undervolting is very important,especially to avoid issues with overheating.
2)Could you pleaaaase lower the max clock by only 4MHz?My phone is unstable at 1504MHz with 1350mV,while it's rock stable at 1500Mhz with 1325mV.And I'm serious,4MHz only and it makes a huge difference,while performance-wise it's the same.
3)You could also overclock the GPU.200MHz with 750mV min and 400MHz with 1100mV max seems stable for everyone.You can gain quite a lot of performance,while it doesn't heat or consume more.You can also test if what I say is true yourself.
Else that those three...Well,welcome to our world pal!The world of power!
I don't know what you did to get 5000 in productivity on smartbench11 cos I can't hit more than 4300 even with the vfs setting changed...and yes I am overclocked to 1.5ghz and locked there.
Hi can make a kernel with default clock with 1,5ghz please ?
Yanardag said:
Hi can make a kernel with default clock with 1,5ghz please ?
Click to expand...
Click to collapse
Just download SetCPU and set the min and max to full.
Mirror http://www.megaupload.com/?d=4LLP5HPF
Another mirror http://www.multiupload.com/L215724GBY
Just flashed your kernel. Thanks
Is auto brightness broken ? The brightness goes to 100% on autobrightness eventhough it is night and there is no light
Tried wiping dalvik cache but did not help
EDIT: Covering the light sensors with a black blanket did not change anything. So there seems to be a problem with auto brightness. I am on stock KG1 leaked rom

[MOD]8-21-Powersave CPU Manager-Auto Underclock/Overclock Based on Batt %

Powersave CPU Manager
Automatically manages you cpu no matter what you use, ie. setcpu, cpumaster, virtuous_oc. This will automatically underclock your cpu and change the governor when your battery reaches a specified level. Kind of like powersave mode in settings.
You don't need to do anything to make it happen its all automated. By default it sets the governor to conservative and underclocks to 702000 then depending on whats installed it restarts virtuous_oc or changes back the governor to ondemand and the cpu back to stock (1188000).
These settings can be edited at:
/system/etc/init.d/74-virtuous for virtuous users
/system/etc/init.d/75-pcm for stock users
/system/etc/init.d/76-pcmapk for apk users (setcpu)
The lines are commented so editing should be easy enough in root explorer, if not lmk i will help out.
You will have to restart setcpu or whatever apk after your battery reaches the threshold. It works with setcpu, cpumaster, cputuner, and overclock widget.
Once you battery gets above the threshold it will restart virtuous oc or change the gov and cpu freq to whatever you specify in the script. It checks the battery level every minute.
The virtuous oc attachment includes virtuous oc this can be flashed right over my flashable oc daemon. It can be used with roms that include virtuous oc as well.
Download the zip you need:
Virtuous_OC-PCM = Virtuous_OC and PCM
PCM = PCM Stand alone Auto sets default cpu frequency use without setcpu or virtuous
PCMAPK = PCM for use with some apk's that control cpu (setcpu)
Please report any bugs here.
How to edit settings:
This is virtuous_oc version but they are all about the same.
Edit the lines in red to adjust settings, this is labeled actual script will look a little different.
Code:
#!/system/bin/sh
#PowerSave CPU Manager Virtuous
#smokin1337
SLEEP=60
(
while : ; do
#Powersave Threshold Default-25
CAP=[color=red]25[/color] [color=blue]<<-- This is the battery percent where the powersave settings will be applied, change the number in red.[/color]
LEVEL=`cat /sys/class/power_supply/battery/capacity`
if [ "$LEVEL" -lt "$CAP" ]; then
pkill virtuous_oc
#Powersave Governor
echo [color=red]conservative[/color] > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor [color=blue]<<-- Edit this to the governor you want it to be set to in powersave mode. ie. powersave, conservative, ondemand, userspace, etc.[/color]
#Powersave CPU Frequency
echo [color=red]702000[/color] > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq [color=blue]<<-- Edit this to set the cpu frequency for powersave mode ie. underclock. [/color]
else
/system/xbin/virtuous_oc
fi
sleep $SLEEP
done
) &
In the stand alone version (75-pcm) there is also a setting for your default governor when not in powersave. This will be your default setting.
Your rom MUST support init.d, this is a script.​
Thank you!
I will try it now.
Does this work with the kernel in the 2.08.651.2 release?
Is this a Terminal-based app or an actual app? If Terminal, what command invokes it?
Also, you say whatever CPU management tool we use doesn't matter, does that also mean I can just toss SetCPU altogether?
Yes it works with the new kernel. It gets installed to init.d so it runs by itself when you boot the phone. You dont need to run it in a terminal.
It works with setcpu, you need the pcmapk version. What it does is shutdown setcpu when your battery gets low and underclocks your cpu to save battery. You just have to run setcpu again when your battery gets charged.
I'm interested in this mod but I don't understand what i have to do. Do I download all 3? I don't want to use any apk. to help. Do any of those downloads manage everything alone. PLEASE HELP...thank you and sorry for the noob ???s.
abreuw83 said:
I'm interested in this mod but I don't understand what i have to do. Do I download all 3? I don't want to use any apk. to help. Do any of those downloads manage everything alone. PLEASE HELP...thank you and sorry for the noob ???s.
Click to expand...
Click to collapse
Yes the PCM-signed.zip will manage it without any apk or virtuous oc. Just flash it as is. Sorry about the explanation of it i didnt know how far to go.
Wow...thanks for the quick response. Thank you for your work.
not trying to be a **** here but whats the point of this being used with setcpu since setcpu seems to already do what you are describing here. profiles set up right will underclock and change govenor when battery gets to level X.
Now for the others it seems to be helpful for those that like profiles being used.
Honestly i havent used setcpu. But your right it works well by itself, and really good with virtuous oc. I use it personally with virtuous oc and it helps alot saving juice.
Gonna try this out. I don't want to overclock, I just want to underclock in order to save juice.
Please help me understand it a little more, I already use virtuous oc, I've been running the pcm version with virtuous oc the last dew days and notice a huge lag when phone reaches 20%, how can i give it a bit more juice? I think whatever you set it to when battery is low is too slow..
How does virtuous oc work together with pcm?
Also is the version for the virtuous OC-PCM in this thread the same as in the other thread (virtuous OC thread)?
3vo fre3vo'd
Anyone can help with this please ^^^^
3vo fre3vo'd
my phone after installing virtuos OC-PCM kept rebooting spiral how can I remove it from recovery.. thank you...please fast ...
drZuheir said:
my phone after installing virtuos OC-PCM kept rebooting spiral how can I remove it from recovery.. thank you...please fast ...
Click to expand...
Click to collapse
Download the uninstaller file in the thread related to it. But by now im pretty sure you fixed it. Is it stable yet?
Edit: This is stable but it doesn't save juice and my OC isn't completely stable.

I9100G and SetCPU

I have been testing different SetCPU settings on my I9100G and been running AnTuTu Benchmark. Here are the results:
hotplug - 6153
ondemand - 3739
conservative - 3830
performance - 4066
SetCPU not installed - 4964
Does that even make any sense? Shouldn't I have the best performance with the performance setting?
Not surely.... This may be different for any situation... It depends on the kernel, voltages and so on... I thinks that it's normal!
Sent from my Galaxy SII powered by CheckRom
Would anyone know what are the default kernel settings?
It's strange because when I disable SetCPU I am getting a worse performance again, but from what I can see in system files, the SetCPU settings are still here.
EDIT:
Actually some more tests:
hotplug - 6036
conservative - 5834
ondemand - 5740
performance - 5058
I might have forgot to tick the "Enable" thing in SetCPU with some of the first tests :/
_AnAkIn_ said:
Would anyone know what are the default kernel settings?
It's strange because when I disable SetCPU I am getting a worse performance again, but from what I can see in system files, the SetCPU settings are still here.
EDIT:
Actually some more tests:
hotplug - 6036
conservative - 5834
ondemand - 5740
performance - 5058
I might have forgot to tick the "Enable" thing in SetCPU with some of the first tests :/
Click to expand...
Click to collapse
Wich rom/kernel are you runing?
_AnAkIn_ said:
I have been testing different SetCPU settings on my I9100G and been running AnTuTu Benchmark. Here are the results:
hotplug - 6153
ondemand - 3739
conservative - 3830
performance - 4066
SetCPU not installed - 4964
Does that even make any sense? Shouldn't I have the best performance with the performance setting?
Click to expand...
Click to collapse
And what values you get on glbenchmark?

Extweak settings Problems

Hii
I am currently using neat rom lite..and siyah 3.3d kernel..
However i am having some problem..Even though i get the option of OCing my cpu to 1400 through extweaks.. I am unable to do any overclocking with other apps like set cpu or sys tuner..They still show my max cpu freq as 1200..
Also today i scaled my cpu from 800-1400mhz for playing a heavy demanding game( the dark knight rises) and after about 40 min of gameplay..i found out from cpu spy..that 39 min my cpu stayed on 800mhz...while for only 30s it stayed at 1.4 ghz.. why sooo?
what am i doing wrong? can anyone shed some light please
thanks
aviral1990 said:
Hii
I am currently using neat rom lite..and siyah 3.3d kernel..
However i am having some problem..Even though i get the option of OCing my cpu to 1400 through extweaks.. I am unable to do any overclocking with other apps like set cpu or sys tuner..They still show my max cpu freq as 1200..
Also today i scaled my cpu from 800-1400mhz for playing a heavy demanding game( the dark knight rises) and after about 40 min of gameplay..i found out from cpu spy..that 39 min my cpu stayed on 800mhz...while for only 30s it stayed at 1.4 ghz.. why sooo?
what am i doing wrong? can anyone shed some light please
thanks
Click to expand...
Click to collapse
well even if u set 1.4g also the same will be reached only when the cpu demand for the same is created by any app and since for most of the games 800mhz is more than sufficeient.
also over clocking CPU will in long run does hamper ur performance rather than improving the same, and also u may find issues like Random reboot or freezes creeping up
try using extweaks only and uninstall other set cpu apps..
Tricks25 said:
try using extweaks only and uninstall other set cpu apps..
Click to expand...
Click to collapse
actually i want to use set cpu so i can tweak the governer settings..but really i dunno whats happening..it doesnt let get me past 1200 and even if i OC to 1400 using extweaks..it doesnt OC to 1400 because set cpu doesnt let it do so...
And comon..the dark knight rises is an open world game with awesome graphics..how can it not utilize the max processor..i cant believe it wont need more than 800mhz..coz it stutters a bit..
Update your kernel and extweaks app.
SetCPU app is original (from GPlay) or ripped from Internet?

[Q] Galaxy S3 UI Lag with Siyah

Hi All..
First lemme give my phone details:
Galaxy S3 International (i9300)
Kernel : Siyah 1.8.9
ROMs (Dual Boot)
: WanamLite v5.5 (based on ZSEMA1)
CM10.1 Nightly
MODS : JKAY framework
My problem is that there is noticeable UI lags when in the homescreen or the app drawer.
I have not overclocked/underclocked the CPU. Have no undervoltage setting as well. In STweaks, the max CPU freq is set to the stock 1400Mhz and the min CPU freq is set to the recommended 200Mhz. And I have kept the "touch boost level" to 1200Mhz.
When I see the UI lags, I used CPU spy to monitor the CPU speeds. What I could see was that the speeds were at the lower end (200 - 800 Mhz) !!! Since the touch boost level is set to 1200, shouldn't the CPU jump to 1200 Mhz when I unlock/touch the screen ? I agree that the CPU speed needn't stay at 1200Mhz after the speed boost, but shouldn't it stay at a freq to ensure that there is no UI lag ?
If the operating freq is at 1400Mhz, the UI is perfect !!! It goes to this state automatically usually (takes a while ), or manually I can make this happen by setting the min CPU freq to say 1300 MHz from STweaks. Once this state is hit, the UI wrks with no lag until say I lock the screen, or maybe the device goes to sleep for a while.
Any ideas as to why the CPU freq stays at lower values and doesn't come up enough to give a lag free UI ?
stanzlavos said:
Hi All..
First lemme give my phone details:
Galaxy S3 International (i9300)
Kernel : Siyah 1.8.9
ROMs (Dual Boot)
: WanamLite v5.5 (based on ZSEMA1)
CM10.1 Nightly
MODS : JKAY framework
My problem is that there is noticeable UI lags when in the homescreen or the app drawer.
I have not overclocked/underclocked the CPU. Have no undervoltage setting as well. In STweaks, the max CPU freq is set to the stock 1400Mhz and the min CPU freq is set to the recommended 200Mhz. And I have kept the "touch boost level" to 1200Mhz.
When I see the UI lags, I used CPU spy to monitor the CPU speeds. What I could see was that the speeds were at the lower end (200 - 800 Mhz) !!! Since the touch boost level is set to 1200, shouldn't the CPU jump to 1200 Mhz when I unlock/touch the screen ? I agree that the CPU speed needn't stay at 1200Mhz after the speed boost, but shouldn't it stay at a freq to ensure that there is no UI lag ?
If the operating freq is at 1400Mhz, the UI is perfect !!! It goes to this state automatically usually (takes a while ), or manually I can make this happen by setting the min CPU freq to say 1300 MHz from STweaks. Once this state is hit, the UI wrks with no lag until say I lock the screen, or maybe the device goes to sleep for a while.
Any ideas as to why the CPU freq stays at lower values and doesn't come up enough to give a lag free UI ?
Click to expand...
Click to collapse
ANNNNNNNNNNNND what rom are you talking about!?! CM10.1 or Samsung? if you want a LAGG FREE phone do the following.
1: OverClock the CPU to 1.6ghz, then set min to 500mhz, use a -25mV or a -50mV
2: Set Governor to LULZACTIVEQ
3: Set MIN GPU freq to 266mhz
4: Set MAX GPU freq to 640mhz
5: Disable "gentle fair sleepers" on the CPU tab
6: Set the SCHEDULER to CFQ
7: Go to settings and enable GPU rendering
and FINALLY if non of the above work, FLASH Null_22.1 for a Samsung ROM. and Revolt, cm10.1, jellybam for a AOSP rom.
IF NON OF THAT WORK'S download super wipe and flash a new phone.
Can I just say, 1200mhz?!?! Default is 800 and I'm using 700 on my device. It's a bit extreme.
Perhaps your governor is affecting smoothness. Try using pegasusq. Or it may be the app your using to change CPU frequency doesn't even have ROOT access
International S III 16GB / CM10.1 / Gokhan's SK
paintball23456 said:
ANNNNNNNNNNNND what rom are you talking about!?! CM10.1 or Samsung? if you want a LAGG FREE phone do the following.
1: OverClock the CPU to 1.6ghz, then set min to 500mhz, use a -25mV or a -50mV
2: Set Governor to LULZACTIVEQ
3: Set MIN GPU freq to 266mhz
4: Set MAX GPU freq to 640mhz
5: Disable "gentle fair sleepers" on the CPU tab
6: Set the SCHEDULER to CFQ
7: Go to settings and enable GPU rendering and disable hardware overlays (resets on boot)
and FINALLY if non of the above work, FLASH Null_22.1 for a Samsung ROM. and Revolt, cm10.1, jellybam for a AOSP rom.
IF NON OF THAT WORK'S download super wipe and flash a new phone.
Click to expand...
Click to collapse
No. Do not disable hardware overlays. That will, if anything, cause your device to lag more.
Theshawty said:
No. Do not disable hardware overlays. That will, if anything, cause your device to lag more.
Click to expand...
Click to collapse
O_O not in my case..
paintball23456 said:
O_O not in my case..
Click to expand...
Click to collapse
This is a quote from a guy over at rootzwiki
Without a hardware overlay every application that is displaying things on the screen will share video memory and will have to constantly check for collision and clipping to render a proper image, this can cost a lot of processing power. With a hardware overlay each application gets its own portion of video memory, getting rid of the need to check for collision and clipping.
Basically, using hardware overlays can reduce CPU usage by quite a bit, so I would leave it enabled.
Click to expand...
Click to collapse
Theshawty said:
This is a quote from a guy over at rootzwiki
Click to expand...
Click to collapse
Right.. then why dafudge is my s3 SMOOTHER with it enabled?
paintball23456 said:
Right.. then why dafudge is my s3 SMOOTHER with it enabled?
Click to expand...
Click to collapse
Maybe you're just lucky, I dunno. It's better to let a real dev share his/her input on this. I'm merely a noob who knows how to Google...
Theshawty said:
Maybe you're just lucky, I dunno. It's better to let a real dev share his/her input on this. I'm merely a noob who knows how to Google...
Click to expand...
Click to collapse
L.O.L but not that big of a noob... thanks for the info - and also reminding me for the 100,000,000,000,000 time to sign up to rootwiki
paintball23456 said:
L.O.L but not that big of a noob... thanks for the info - and also reminding me for the 100,000,000,000,000 time to sign up to rootwiki
Click to expand...
Click to collapse
Heh, maybe not.
Uhm, you're welcome, I guess? :good:
It's probably smoother due to the fact that the CPU will be working at a higher frequency more often. Those that have disabled hardware overlays are causing their CPU to ramp up every time an application has to render an image
paintball23456 said:
ANNNNNNNNNNNND what rom are you talking about!?! CM10.1 or Samsung? if you want a LAGG FREE phone do the following.
1: OverClock the CPU to 1.6ghz, then set min to 500mhz, use a -25mV or a -50mV
2: Set Governor to LULZACTIVEQ
3: Set MIN GPU freq to 266mhz
4: Set MAX GPU freq to 640mhz
5: Disable "gentle fair sleepers" on the CPU tab
6: Set the SCHEDULER to CFQ
7: Go to settings and enable GPU rendering
and FINALLY if non of the above work, FLASH Null_22.1 for a Samsung ROM. and Revolt, cm10.1, jellybam for a AOSP rom.
IF NON OF THAT WORK'S download super wipe and flash a new phone.
Click to expand...
Click to collapse
The lag is more obvious in the Touchwiz based Wanamlite ROM.
1) As i said, when running at 1.4Ghz (with stock voltage settings) itsef the UI is smooth. So I don't actually want to overclock. . The problem is that the CPU speed doesn't rise up and stays between 200-800 causing the lag.
2) Will try changing the governor (first let me read how it is different from pegasusq ).
3,4) Again, with stock settings itself the UI is smooth. The problem is what i have said under point 1.
5) Already done.
6) WIll try setting scheduler to CFQ (again, lemme read bout it first )
7) GPU rendering is already ticketd. Hardware overlays are not disabled (thought this would increase the lag).
Is NULL_22.1 a Touchwiz based ROM ? And Jelybam is an AOKP ROM I supose ?
Wouldn't want to do the last option.
Also, I saw that you have mentioned three ROMs in your signature. Siyah lets you dual boot right, how come 3 ? Or were you just talking about your preference ?
And, does siyah 1.8.9 for the S3 let us boot with NULL_22.1 and jellybam in dual boot? Are all these combos possible ?
Sammy + CM10.1 (this works, I knw )
Sammy + AOKP
AOKP + CM10.1
raminica seemed
23Six said:
Can I just say, 1200mhz?!?! Default is 800 and I'm using 700 on my device. It's a bit extreme.
Perhaps your governor is affecting smoothness. Try using pegasusq. Or it may be the app your using to change CPU frequency doesn't even have ROOT access
International S III 16GB / CM10.1 / Gokhan's SK
Click to expand...
Click to collapse
From what I understood, it just boosts upto 1200Mhz on touch and needn't stay there. Right ? The only downside there is battery life I suppose ?
Am already using pegasusq and yes, sTweaks does have root access.

Categories

Resources