Skip to content

Commit

Permalink
lmi: init: Add input boost settings from MIUI
Browse files Browse the repository at this point in the history
Change-Id: I6087baca10c3e1e585863d26b6ca9845a81cde9c
Signed-off-by: UtsavBalar1231 <[email protected]>
  • Loading branch information
UtsavBalar1231 authored and macka69 committed Jul 30, 2022
1 parent d19ca92 commit 18a05c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions init/init.xiaomi.rc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ on boot
chown system system /sys/class/thermal/thermal_message/temp_state
write /sys/block/sda/queue/wbt_lat_usec 75000

on property:sys.boot_completed=1
# configure input boost settings
write /sys/devices/system/cpu/cpu_boost/input_boost_freq "0:1344000"
write /sys/devices/system/cpu/cpu_boost/powerkey_input_boost_freq "0:1804800 1:0 2:0 3:0 4:2419200 5:0 6:0 7:2841600"
write /sys/devices/system/cpu/cpu_boost/powerkey_input_boost_ms 400

on charger
mkdir /mnt/vendor/persist
chown root system /mnt/vendor/persist
Expand Down

0 comments on commit 18a05c3

Please sign in to comment.