[Samsung Galaxy S10 Guides, News, & Discussion] David8960:
Is your S10 rooted? Do you want to make the most out of your CPU+GPU+BRIGHTNESS for the best gaming experience?

I made this little trick myself, I'm a newbie to linux but i finally managed to work. It was for my personal use, but i thought id share it, as im sure someone will find it useful! :)

## I AM NOT RESPONSIBLE FOR ANY DAMAGES DONE TO YOUR DEVICE ###

What is it?

- Well, the aim of this is convenience, and the best GPU+CPU+ScreenBrightness optimal for gaming.

This little trick allows you to simply press the Bixby Button; you'l see a popup, and your Screen will max out, your CPU will max out, and your GPU will max out. And to restore brightness, GPU and CPU states, you simply hold bixby.

What devices support it?

Well, this works on the S10 Exynos (G973F) XXBTA8 and works just fine. I recommend only using it on STOCK ROM.

It could work for other variants, but if it doesn't you may have to tweak the shell code.

Is it dangerous? ## I AM NOT RESPONSIBLE FOR ANY DAMAGES DONE TO YOUR DEVICE ###

Yes. Because the code forces your screen to a MAX state, and heats your phone up. It also removes GPU throttling, which is essential for max GPU performance in gaming. The CPU, however, is maxed out, but can throttle when needed, as its not essential to keep all cores up for gaming.

Id strongly advise removing the code holding bixby (or whatever button you assigned it to) after use (SPECIALLY WHEN SCREEN IS OFF, as it causes freezes. Probably due to GPU being maxed out)

Is it easy to install?

Yes. Surprisingly so.

# KIND REMINDER #

THIS WAS FOR MY OWN USE, BEAR THAT IN MIND WHEN COMMENTING ABOUT IT. I just shared it if someone found work interesting and helpful

# # INSTALLATION # #

So assuming your on Stock Rom, on the Samsung Galaxy S10 (I tested it on BTA8 software and worked)

1. Install Button Mapper from the developer "flar2" from the playstore.

2. Open, setup, and click BIXBY, then customize

2.1 Click on Advanced, and find the ROOT COMMAND

3. Enter the following code on SINGLE TAP

print "Game Mode ON" && mount -o remount,rw / && chmod 0000 /sys/devices/platform/18500000.mali/dvfs && chmod 0000 /sys/devices/platform/18500000.mali/dvfs_max_lock & chmod 0000 /sys/devices/platform/18500000.mali/dvfs_min_lock && echo '702000' > /sys/kernel/gpu/gpu_max_clock && echo '702000' > /sys/kernel/gpu/gpu_min_clock && echo 'performance' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor && echo 'performance' > /sys/devices/system/cpu/cpufreq/policy4/scaling_governor && echo 'performance' > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor && echo '1950000' > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq && echo '2314000' > /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq && echo '2730000' > /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq && echo '48599' > /sys/class/backlight/panel/brightness

4. Press OK

5. Press on Bixby LONG PRESS and enter the following code

print "RESET GPU/CPU" && mount -o remount,rw / && chmod 0644 /sys/devices/platform/18500000.mali/dvfs && chmod 0664 /sys/devices/platform/18500000.mali/dvfs_max_lock & chmod 0664 /sys/devices/platform/18500000.mali/dvfs_min_lock && echo '702000' > /sys/kernel/gpu/gpu_max_clock && echo '702000' > /sys/kernel/gpu/gpu_min_clock && echo 'schedutil' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor && echo 'schedutil' > /sys/devices/system/cpu/cpufreq/policy4/scaling_governor && echo 'schedutil' > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor && echo '442000' > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq && echo '507000' > /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq && echo '520000' > /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq && echo '20000' > /sys/class/backlight/panel/brightness

6. Press OK and your all set !

7. Then tap BIXBY and you'l see your screen max out along with the phones perfomance boosted. You wont notice the perfomance boost much, but i can assure you, that on games you'l notice a great deal of diference.

Points to note:

1. If you see an error display after entering the code, or a random bit of code, its probably targetting the wrong files on your device or you made a mistake when copying.

2. If your testing it with a CPU tweaker app, once activated, close and open the app, as some apps dont display the changes straight away.

3. Remember that it might not work on other variants, and that stock rom is recommended.

4. You may not see a confirmation popup when you remove the boost, but if the screen dimms slighly and you see nothing else, then its worked fine most definitely.

5. And lastly, enjoy and i hope its of help for someone. I'm sure the code can be made shorter but I'm a newbie with linux haha :(

Thanks !