Hi, i try to fix CPU frequency as maximum in Nexus 5.
Two days ago, i succeeded in turning on all cores and making their frequencies maximum.
However, it suddenly does not work :(
How did i turn on all cores and making their frequecies max?
By writing init scripts (rc script) in android_platform/devices/lge/hammerhead/init.hammerhead.rc.
My init scripts echoing /sys/devices/system/cpu/cpu#/online and /sys/devices/system/cpu/cpu#/cpufreq/scaling_max/min_freq.
Moreover, i turn off mpdecision daemon.
I tried to check out whether the echoing deliver the requests to kernel code
by inserting printk() into store_online() of kernel_source/drivers/base/cpu.c
It was working two days ago, but now it does not work ..
I saw coincidentally a adb logcat message:
E/ThermalEngine( 188): Unable to read max frequency from online cpu.
E/ThermalEngine( 188): Failed to set desired CPU[1] frequency limit to 2265600
It seems "ThermalEngine" blocks the echoing.
So my questions are:
1. Is my analogy correct?
2. How can I turn off "ThermalEngine"? and will it have no critical impact on the system? (for example, what if it destroys my phone?!)
3. As I understood, there might be other system daemons which have impact on cpu freq or cpu on/off. If i guess it correctly, how can i control them?