3
0

Add CM performance profiles

Change-Id: I9979c903d63d2638f12a0a5774fa2290d1181324
This commit is contained in:
Caio Schnepper 2015-09-03 19:04:28 -03:00 committed by Gerrit Code Review
parent 1c708f0110
commit f0a445c957
2 changed files with 17 additions and 0 deletions

View File

@ -160,4 +160,8 @@
<!-- Boolean to enable stk functionality on Samsung phones -->
<bool name="config_samsung_stk">true</bool>
<!-- Performance profiles -->
<string name="config_perf_profile_prop">sys.perf.profile</string>
<string name="config_perf_profile_default_entry">1</string>
</resources>

View File

@ -441,3 +441,16 @@ service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1
service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbdisk0 /storage/usbdisk0
class late_start
disabled
## CyanogenMod Performance Profiles
# Powersave
on property:sys.perf.profile=0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
# Balanced
on property:sys.perf.profile=1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
# Performance
on property:sys.perf.profile=2
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance