70 lines
2.9 KiB
Plaintext
Executable File
70 lines
2.9 KiB
Plaintext
Executable File
on property:sys.boot_completed=1
|
|
chown root system /sys/class/devfreq/ff9a0000.gpu/governor
|
|
chmod 0664 /sys/class/devfreq/ff9a0000.gpu/governor
|
|
chown root system /sys/class/devfreq/ff9a0000.gpu/min_freq
|
|
chmod 0664 /sys/class/devfreq/ff9a0000.gpu/min_freq
|
|
chown root system /sys/class/devfreq/ff9a0000.gpu/max_freq
|
|
chmod 0664 /sys/class/devfreq/ff9a0000.gpu/max_freq
|
|
chown root system /sys/class/devfreq/dmc/governor
|
|
chmod 0664 /sys/class/devfreq/dmc/governor
|
|
|
|
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 0
|
|
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 0
|
|
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor schedutil
|
|
write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor schedutil
|
|
write /sys/class/devfreq/dmc/governor dmc_ondemand
|
|
|
|
on charger
|
|
chown root system /sys/class/devfreq/ff9a0000.gpu/governor
|
|
chmod 0664 /sys/class/devfreq/ff9a0000.gpu/governor
|
|
chown root system /sys/class/devfreq/ff9a0000.gpu/min_freq
|
|
chmod 0664 /sys/class/devfreq/ff9a0000.gpu/min_freq
|
|
chown root system /sys/class/devfreq/ff9a0000.gpu/max_freq
|
|
chmod 0664 /sys/class/devfreq/ff9a0000.gpu/max_freq
|
|
chown root system /sys/class/devfreq/dmc/governor
|
|
chmod 0664 /sys/class/devfreq/dmc/governor
|
|
|
|
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 0
|
|
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 0
|
|
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor schedutil
|
|
write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor schedutil
|
|
write /sys/class/devfreq/dmc/governor dmc_ondemand
|
|
|
|
on early-boot
|
|
# Update dm-verity state and set partition.*.verified properties
|
|
verity_update_state
|
|
|
|
on boot
|
|
chown system system /sys/class/thermal/thermal_zone0/policy
|
|
chown system system /sys/class/thermal/thermal_zone1/policy
|
|
chown system system /sys/class/thermal/thermal_zone2/policy
|
|
|
|
# update cpusets feature nodes for rk3399 tablet
|
|
write /dev/cpuset/foreground/cpus 0-5
|
|
write /dev/cpuset/foreground/boost/cpus 4-5
|
|
write /dev/cpuset/background/cpus 0-3
|
|
write /dev/cpuset/system-background/cpus 0-3
|
|
write /dev/cpuset/top-app/cpus 0-5
|
|
#write /sys/devices/system/cpu/cpufreq/policy4/interactive/target_loads "65 1008000:70 1200000:75 1416000:80 1608000:90"
|
|
#ioprio rt 4
|
|
|
|
# reduce schedul time to improve io performance
|
|
write /sys/kernel/debug/sched_features NO_ENERGY_AWARE
|
|
|
|
chmod 0666 /sys/kernel/debug/usb/fe800000.usb/mode
|
|
|
|
on init
|
|
chown root root /sys/class/devfreq/dmc/system_status
|
|
chmod 0666 /sys/class/devfreq/dmc/system_status
|
|
|
|
on post-fs-data
|
|
|
|
#CABC
|
|
chown root system /sys/class/graphics/fb0/cabc
|
|
chmod 0664 /sys/class/graphics/fb0/cabc
|
|
|
|
on early-init
|
|
write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor performance
|
|
write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor performance
|
|
write /sys/class/devfreq/dmc/governor performance
|