FORUMS
Remove All Ads from XDA

Tired of games lagging?Are you rooted?Try this and maximize your S4 gaming potential!

2,398 posts
Thanks Meter: 1,111
 
By nfsmw_gr, Senior Member on 5th September 2013, 05:03 AM
Post Reply Email Thread
Only for i9505.


Hey guys!
I've been experimenting a lot with my S4 and I figured out why many games lag...
The reason is that my gpu clock drops from max clock I set, to 320mhz once the temperature reaches 68C!
Some may say, this doesn't happen because the gpu doesn't thermal throttle on the S4 like on the HTC One...
Well...I used performance governor which is supposed to keep the gpu clock to the max at all times, and guess what?
When the temperature reached 68C my gpu clock went down to 320mhz even with performance governor!
How is that possible...?
Performance governor can't throttle down!
Thermal throttling is to blame. (or something else, that doesn't care about governors? )
It's not a coincidence this happened at exactly 68C like before.
(If anyone wants to argue with me about this I'd appreciate if he/she doesn't spam my thread for the love of god and pm me.)

Anyway, enough with the prologue..

This was a royal pain in the ass for me because I almost regret selling my silky smooth S3.
After tons of random searching and messing with the system of my phone I found the solution!
Here it is!

Sell your S4!


Nah, I'm just joking!
It's a great phone.

Here's the real solution:

I set

/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/min_pwrlevel

to 0 out of curiosity, which controls the lowest power level, or clock, that the gpu will use.
By default it's set at 4.
Since max was already 0 which means it's the highest value I set min to 0 too, and guess what?
The gpu clock remained at my set max, 504mhz, all the time, even after 68C!
Tried three games I know this problem happened and all three worked at 504mhz!

(for pure information, it was Modern Combat 4, Gangstar, and Asphalt 8)

How can you try it?


I've attached two scripts, one that sets the value to 0 and uses max gpu frequency all the time and one that sets the value to 4 so that the gpu can use the lower clock states again!

For Script Manager Users, free

Use script manager as root to run these widgets and I'd recommend you put two widgets on the home screen!
One for the first script enabling this tweak, and one for the second that disables it.

For Tasker Users, need to pay

If you have tasker you could use it too and set it to run the content of the first script as root at every heavy game and enable the tweak automatically, after that use tasker again to run the content of the second script when you go to your home screen (or anything else you want to set) and disable the tweak automatically!

Beware!I will not responsible if you damage your hardware!

Recommended prerequisites:


- Custom kernel preferably ktoonsez's or ausdim's, but any kernel with undervolt and thermal throttling control support will do.

Increased heat may be produced after doing this, so I recommend you to undervolt at least a little to reduce the overall heat, plus increase the thermal throttling limits too to prevent the cpu throttling down.
I use 85 as start limit and 82 as stop limit but you don't have to use my values.
I just find them safe enough and high enough so that they don't interfere with my games.


Try it and report back, many games are way smoother now, at least for me.
I'll be waiting for your results!
Have a nice day guys!

P.S. If you need to tune even more your device, take a look at my personal settings found here:
http://forum.xda-developers.com/show...postcount=1106
The gaming profiles are set at 1242mhz min now, not 1458mhz like before, because the gpu clocks work properly now the cpu doesn't need that much boost to avoid lag.
And the gpu clock I use now is 504mhz instead of the stock 450mhz in the link.
That's it!
Attached Files
File Type: zip gaming on.zip - [Click for QR Code] (232 Bytes, 2306 views)
File Type: zip gaming off.zip - [Click for QR Code] (234 Bytes, 693 views)
The Following 14 Users Say Thank You to nfsmw_gr For This Useful Post: [ View ] Gift nfsmw_gr Ad-Free
 
 
5th September 2013, 06:51 AM |#2  
donalgodon's Avatar
Senior Member
Thanks Meter: 697
 
More
You said that the gpu clock remained at my set max, 504mhz, all the time, even after 68C, but you didn't say how hot it got.

Did it get hotter than that? I'm a bit wary of frying the board to squeeze out a few extra frames on my device, but that's just me.
5th September 2013, 07:00 AM |#3  
3ayachi's Avatar
Member
Flag Jemmal
Thanks Meter: 12
 
More
Haw much does it take you to reach 68° ? I have the 9500 version and i didnt face that problem yet.. it s going warm but doesnt lag

Envoyé depuis mon GT-I9500 en utilisant Tapatalk 4
5th September 2013, 03:53 PM |#4  
nfsmw_gr's Avatar
OP Senior Member
Flag Salamina,Greece
Thanks Meter: 1,111
 
More
Quote:
Originally Posted by donalgodon

You said that the gpu clock remained at my set max, 504mhz, all the time, even after 68C, but you didn't say how hot it got.

Did it get hotter than that? I'm a bit wary of frying the board to squeeze out a few extra frames on my device, but that's just me.

You won't don't worry.

Both the cpu and gpu have a tolerance up to 100C, plus the system automatically shuts down before reaching critical high temperature.
For me it didn't get much hotter, only a few degrees.
You can monitor the frequencies and temperature with the Qualcomm Trepn Profiler which is an advanced free monitoring app for Qualcomm devices:

https://developer.qualcomm.com/mobil...trepn-profiler

or

you can use this app by senior member @rlorange which is much simpler and gets the job done just right:

http://forum.xda-developers.com/show...postcount=3547

Quote:
Originally Posted by 3ayachi

Haw much does it take you to reach 68° ? I have the 9500 version and i didnt face that problem yet.. it s going warm but doesnt lag

Envoyé depuis mon GT-I9500 en utilisant Tapatalk 4

Sorry but this is not for the i9500, this is the first thing I wrote.
I don't even know if this happens on your device mate.
Anyway, it doesn't take much, play a heavy game for a few minutes an you'll reach 68C.
The Following 3 Users Say Thank You to nfsmw_gr For This Useful Post: [ View ] Gift nfsmw_gr Ad-Free
5th September 2013, 03:54 PM |#5  
nfsmw_gr's Avatar
OP Senior Member
Flag Salamina,Greece
Thanks Meter: 1,111
 
More
Updated link with my settings, now it's correct.
Sorry about that.
The Following 2 Users Say Thank You to nfsmw_gr For This Useful Post: [ View ] Gift nfsmw_gr Ad-Free
25th October 2013, 09:19 PM |#6  
Moz007's Avatar
Senior Member
Flag France
Thanks Meter: 51
 
More
Is it possible to change this value without a reboot ? Like in a small app for example ?
24th November 2013, 01:15 AM |#7  
hasan4791's Avatar
Senior Member
Flag Gurgaon
Thanks Meter: 451
 
More
Hey buddy...juz chk yu are having any thermald file under /system/etc...??
24th November 2013, 10:23 AM |#8  
Member
Thanks Meter: 5
 
More
thanks mate!! It's working perfectly
3rd December 2013, 12:06 AM |#9  
crazysoccerman's Avatar
Member
Thanks Meter: 20
 
More
So this won't work with a rooted s4 on stock rom and kernel?

If not I'm returning my phone. I played vice city today and the lag was terrible. I've only had this phone for two days and I'm dissatisfied with verizon and samsung for gimping it and then locking it down.

imo, companies advertising the power of their chips is false advertising when they set temperature throttle so low
3rd December 2013, 12:27 AM |#10  
nfsmw_gr's Avatar
OP Senior Member
Flag Salamina,Greece
Thanks Meter: 1,111
 
More
Quote:
Originally Posted by crazysoccerman

So this won't work with a rooted s4 on stock rom and kernel?

If not I'm returning my phone. I played vice city today and the lag was terrible. I've only had this phone for two days and I'm dissatisfied with verizon and samsung for gimping it and then locking it down.

imo, companies advertising the power of their chips is false advertising when they set temperature throttle so low

No mate, I'm sorry.
But good news is Samsung WILL fix your phone no matter knox 0x0 or 0x1.
(confirmed)
So flash your device and try again!
I must agree, companies are full of crap when advertising their products, it's so furstrating! :@
This throttling issue happens with any device, including iDevices.
The Following 2 Users Say Thank You to nfsmw_gr For This Useful Post: [ View ] Gift nfsmw_gr Ad-Free
3rd December 2013, 12:33 AM |#11  
crazysoccerman's Avatar
Member
Thanks Meter: 20
 
More
Bootloader is locked. Most likely forever.

Don't have MDK so I cant loki.

Even with safestrap (which doesn't work for my MJ7) you can't flash custom kernels.

This phone is going back

I'm going back to my trusty gnex for now. It would probably play GTA better at s4 resolution because I overclocked it and disabled thermal throttling.

Maybe I'll get a g2 with loki support...

Either way, I would like to give a Linus Torvalds Salute™ to samsung and verizon.
Post Reply Subscribe to Thread

Tags
adreno 320, galaxy s4, i9505, thermal throttling

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes