[One (M7) General] hamdir:
So i've been experimenting a lot with base 3.62, stock kernel and gaming boost

The problem with stock kernels is thermals and throttling, i find it easily getting hot when gaming with boost, so i was trying to find a middle ground, I found out that we can not change the max CPU frequency using scripts unless we have the CPU powersaver enabled, only then pnpmanager allows us to change the max CPU frequency for the main core (the others 3 cores we can not change)

so i came up with the following strategy in order to delay heat as much as I can on stock kernel (and hence battery drain)

Boost.sh (apply before playing sensor controlled games)

echo ""
echo "Tweaking...ondemand governor"
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo ""
echo " Locking...Max CPU frequency"
echo 1 > /sys/power/powersave
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1458000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 0 > /sys/power/powersave
echo ""
echo " Switching...GPU governor"
echo "ondemand" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
echo ""
echo " Locking...Max GPU frequency"
chmod 666 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
chmod 444 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo ""
echo " Switching...scheduler"
echo "cfq" > /sys/block/mmcblk0/queue/scheduler
echo ""
echo " Done"
echo ""
exit 0

Applying Boost.sh will first boost the CPU using up_threshold 50 and then it will temporarily enable CPU powersaver this will allow us to lock the max main core speed to 1458mhz (300mhz boosted underclock), all the other cores will be left unlocked at their max 1728mhz, this will greatly reduce CPU usage but will give us better main thread CPU power, the point of enabling power is delaying > 40c battery heat, if you play on full speed the device will quickly throttle all cores to 1134mhz anyway, so this solution is a very good middle ground, after a while the other cores will be throttled to 1134mhz due to battery reaching 40c but the main core will never throttle below 1458mhz since it's lock

after setting up the CPU, the script will lock the GPU to 400 and prevent the system from throttling it down anymore

if you want to brute force more out of the GPU, change the GPU governor to "performance" during boost but i don't recommend it, you need to let the GPU cool down during the moments of pause or loading etc this is why ondemand is better, but few games benefit from performance gpu governor like Ripetide 2

you can also choose the Max CPU speed you want for the main core, choose between 1728000, 1674000, 1566000, 1458000, 1350000, 1242000 and 1134000

Boost.sh is usually needed for games configured with motion tilt controls like Asphalt 8, it's the only situation where the HTC One fails to ramp up the CPU

You apply Boost.sh followed by enabling HTC powersaver, this will max the other cores to 1134mhz and leave the main at our locked selected speed, it will further delay heat and still run Asphalt 8 very smoothly on max graphics

With this method I was able to maintain the most prolonged boosted gaming session without significant heat

unBoost.sh (apply permanently on boot and after you finish with boost, also use for touch based games)

echo ""
echo "Tweaking...ondemand governor"
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo ""
echo " Unlocking...Max CPU frequency"
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo ""
echo " Switching...GPU governor"
echo "ondemand" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
echo ""
echo " locking...Max GPU frequency"
chmod 666 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
chmod 444 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo ""
echo " Switching...scheduler"
echo "cfq" > /sys/block/mmcblk0/queue/scheduler
echo ""
echo " Done"
echo ""
exit 0

unBoost.sh restores back the defaults, like CPU up_threshold 90 but I keep the GPU clock locked out of throttling since I strongly oppose the GPU throttling policy by HTC, I'm even applying unBoost on boot, this way I completely disable GPU throttling from stock kernel without touching thermald, many games run fine without any boost especially touch games like FPS shooters (Modern Combat 4 and Dead Trigger 2) but they still need to disable GPU throttling this is why I use unBoost to play Dead Trigger 2 and set it at boot to be my default

ofcourse if you want to lock Dead Trigger 2 to 60fps range with High graphics you will still need boost but it still runs very playable with unBoost