[HTC One X9] dsjiffry:
Update : Aug 8th 2017

These settings should benefit any helio X10 device maybe even other mediatek octa core devices.

The idea behind these settings is to keep the CPU in the lower frequency states and prevent unnecessary power drain when performing simple tasks.

to apply these settings I used Kernel Aduitor.

First Up Interactive Governor Settings

[SIZE="3"]Above hispeed delay - 20000 1326000:30000 1469000:40000 1781000:10000
Bootpulse duration - 0
hispeed freq - 1183000
boost - 0
go hispeed load - 70
io is busy - 0
min sample time - 20000
target loads - 60 1183000:80 1326000:90 1469000:97 1625000:99
timer rate - 25000
timer slack - 35000[/SIZE]

Limit you CPU to 1781MHz To save some battery all 1.9GHz does is produce heat and the performance isn't worth it.

Also you must disable touch-boost by editing the build prop line; ro.mtk_perfservice_support=1 to ro.mtk_perfservice_support=0

This will save a lot of battery life as the CPU won't jump to high frequencies when you touch the screen.

Also in Virtual Memory settings set the folowing

dirty ratio - 90

dirty background ratio - 80

dirty expire centisecs - 1000

dirty writeback centisecs - 2000

swappiness - 40

vfs cache pressure - 10

Z-RAM disksize - 300MB

Next up....... RAM management so the HTC X9 RAM management is good but it can be made better by going into the low memory killer tab in Kernel Auditor and tapping on the light option.

and that is it. we can't do much without a custom Kernel......... Also you can increase entropy by changing it's read value to 1664 and write value to 2048. I don't know if this is needed on marshmallow but I did it anyway.

Even more battery Savings

You will need Tasker for the following.............

Note: This Will limit your CPU to 5 cores and reduce unecessary CPU Scaling also will disable some bug checks

Make a new 'device boot' profile and add the following as tasks

1. Wait 30s

2.Run Shell:

[SIZE="3"]
su

echo "0" > /sys/module/alarm_dev/parameters/debug_mask
echo "0" > /sys/module/alarmtimer/parameters/debug_mask
echo "0" > /sys/module/binder/parameters/debug_mask
echo "0" > /sys/module/earlysuspend/parameters/debug_mask
echo "0" > /sys/module/sbsuspend/parameters/sbsuspend_debug_mask
echo "0" > /sys/module/pvrsrvkm/parameters/gPVRDebugLevel
echo "0" > /sys/module/musb_hdrc/parameters/debug_level
echo "0" > /sys/module/lowmemorykiller/parameters/debug_level

echo "5" > /proc/hps/num_limit_low_battery
echo "5" > /proc/hps/num_limit_power_serv
echo "5" > /proc/hps/num_limit_thermal
echo "5" > /proc/hps/num_limit_ultra_power_saving

echo "99" > /proc/hps/up_threshold
echo "90" > /proc/hps/down_threshold
echo "0" > /proc/hps/rush_boost_enabled
echo "0" > /proc/hps/input_boost_enabled

echo "1781000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "1781000" > /proc/cpufreq/cpufreq_limited_max_freq_by_user

echo "0" > /proc/gpufreq/gpufreq_input_boost
echo "0-4" > /dev/cpuset/foreground/cpus
[/SIZE]

Make Another tasker Profile 'on device unlock'

1.Run Shell;

[SIZE="3"]
su
echo "99" > /proc/hps/up_threshold
echo "90" > /proc/hps/down_threshold
echo "0" > /proc/hps/rush_boost_enabled
echo "0" > /proc/hps/input_boost_enabled
[/SIZE]

Credits;

jajk - Learned a lot from his Skinny Custom Boot thread.