forked from rock64-android/device-rockchip-rk3328
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.box.rc
30 lines (26 loc) · 1.18 KB
/
init.box.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on early-init
# raise cpu fre.
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
on property:sys.boot_completed=1
# recover cpu fre.
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
on init
write /proc/sys/vm/swappiness 100
write /sys/block/zram0/comp_algorithm lz4
on boot
exec u:r:su:s0 root -- /system/bin/busybox sh /system/bin/fix_performance.sh
# update cpusets feature nodes for rk3328 box
write /dev/cpuset/foreground/cpus 0-3
write /dev/cpuset/foreground/boost/cpus 0-3
write /dev/cpuset/background/cpus 0
write /dev/cpuset/system-background/cpus 0-3
write /dev/cpuset/top-app/cpus 0-3
chown root system /sys/class/display/HDMI/color
chmod 0666 /sys/class/display/HDMI/color
chmod 0666 /sys/class/display/HDMI/mode
chown root system /sys/class/graphics/fb0/hdr_bt1886eotf
chmod 0664 /sys/class/graphics/fb0/hdr_bt1886eotf
chown root system /sys/class/graphics/fb0/hdr_st2084oetf
chmod 0664 /sys/class/graphics/fb0/hdr_st2084oetf