[G3 Android Development] mostafaz:
Q&A

Q: i have long charge time !

A: there is a driver to reduce charge current if battery temp goes high to prevent damage, if cpu temp goes high thermal driver will cut off freqs so it can reduce charge time, so monitor system for why temp is high specially on battery.

Q: can i turn intelli_thermal_2 off to get better performance?

A: we have 2 intelligent thermal control driver, if you turn it off the built-in driver will get online and control the temperature which is controlling temp during the boot till intelli_2 get online then you can have more control over it. i changed parameters from 80 & 90 degC to 72 & 75 degC for safer temp control (as a user requested ). so if you want get higher freq values at higher temperature you should get control of intelli_2.

caution: reduce the temperature for long life.

Q: i can't get last_kmsg , there is no last_kmsg ?

A: actually there is a tunable parameters to let the kernel dump it at fails but you can use ADB and get live kmsg log at terminal by running "cat /proc/kmsg". it will show you live show

<3>[ 8624.446243 / 07-07 11:08:50.416] pre-check do_freq_control temp[47],	limit_idx[14],
<3>[ 8624.696399 / 07-07 11:08:50.666] pre-check do_freq_control temp[48],	limit_idx[14],
<3>[ 8624.946358 / 07-07 11:08:50.916] pre-check do_freq_control temp[47],	limit_idx[14],
<3>[ 8625.196421 / 07-07 11:08:51.166] pre-check do_freq_control temp[46],	limit_idx[14],
<3>[ 8625.446387 / 07-07 11:08:51.416] pre-check do_freq_control temp[46],	limit_idx[14],
<3>[ 8625.696374 / 07-07 11:08:51.666] pre-check do_freq_control temp[46],	limit_idx[14],

if you want get log only for your desired parameters like temp you can limit it with "cat /proc/kmsg | grep temp"

Q: my device is always hot and max freq is decreasing to lower values?

A: depends on your config, decreasing max freq is due to thermal limitation ( protect your device from heat by decreasing max freq to produce less heat ... ).

you can find out which process using the cpu and cpu produced heat :

run "top -s cpu" in your android terminal or adb :

PID PR CPU% S #THR VSS RSS PCY UID Name
22972 2 [B] 26%[/B] S 14 1362360K 135488K bg u0_a23 [B]android.process.media[/B]
4432 0 [B]24%[/B] S 4 9680K 2632K fg media_rw [B]/system/bin/sdcard[/B]
4974 1 7% S 14 1354472K 69500K fg system com.android.settings
361 2 3% S 18 191664K 6452K fg system /system/bin/surfaceflinger
22960 0 2% S 10 1716192K 198660K bg u0_a38 com.android.gallery3d
23060 3 1% R 1 3068K 1288K fg root top
21534 0 1% S 20 1221608K 49832K bg u0_a104 com.grarak.kerneladiutor
3532 0 0% S 148 2023996K 93580K fg system system_server
1134 0 0% D 1 0K 0K fg root mdss_fb0

in this case process.media is using much more that other processes , find out why it's running or end that process.

Q: i faced lag ! what can i do ?

A: depends on your config, but try ramp up thermal degC can prevent to throttle freq & cores (you will kill your device by heat :) )

Q: can i take my device temprature down ?

A: depends on your config, try lower down temprature degC limit to make throttle freq & core as soon as possible.

lower down max freq, you have not to kill performance at all ;) try free up the ram from unwanted apps

Q: i have long charge time ?

A: i switched cpu_governor at charge process to have shortest ( ~ 1:20 ), monitor its rate at battery usage.( i've tested slim and alucard )

Q: what you mean by optimized build?

A: simple answer is i use GCC build flags in build process, google it.

Q: do you have any script for configuration?

A: actually i'm trying to build some script :

example: to drop cache and free up ram in scheduled time using: echo 2 > /proc/sys/vm/drop_caches

and some cool script from dorimanx

implementing stweak can fix all of these stuff

Q: why there is a build for slim governor and one for elementalx?

A: they have almost similar code, they can't live toghether or i can't make them.i'm working on it.

Q: do you have plan to build with separate toolchain, like uber-7,5 or linaro ?

A: it depends on users feedback, let's experience them, who cares :)

Q: do you support other variants like D852 and ... ?

A: as far as i can ;)

Q: why kernel options not tuned?

A: i've planing to implement stweak to have control over sysfs

Q: what is your kernel config?

A: i satisfied if i have 0% or 1% during the night

# My simple profile
cpu alucard
hotplug alucard
gpu powersave
i/o noop 1024
screen
232 237 256, saturation 75 (franco config)
entropy
read 512, write 256
fsync off
thermal
core control off
freq throttle 75, core throttle 72
temp,core hysterecis 10

# my smoothness profile
cpu slim/elementalx
down_differential 10
input_enent_timeout 800
sampling_down_factor 2
ui/sampling_rate 15000
hotplug alucard
sample_rate 35%
gpu msm-adreno
simple algorithm laziness 3, ramp threshold 7
screen same
i/o fiops 1024
entropy same
fsync same
note: for better performance set same sample rate at cpu and hotplug