sm8150-common: Set gain of vibrator to 0x55 on boot

* Seems better than the default of 0x80, vibrator is
   a bit too strong by default.

Change-Id: I7b48d31139437ab4b9b443a761c114ad803ba1ee
This commit is contained in:
Alexander Koskovich 2021-01-17 23:44:43 -07:00 committed by Omkar Chandorkar
parent ec9d1bfd62
commit 77874845dc
No known key found for this signature in database
GPG Key ID: 95A33FD984777F70
1 changed files with 5 additions and 0 deletions

View File

@ -188,6 +188,11 @@ on boot
restorecon /sys/kernel/debug/regmap/0-0035/registers
restorecon /sys/kernel/debug/regmap/0-0042/registers
restorecon /sys/kernel/debug/regmap/tavil-slim-pgd/registers
# Reduce default vibrator gain from 0x80 to 0x55,
# also allow gain customization via persistent property
write /sys/class/leds/vibrator/gain ${persist.vendor.vib.gain:-0x55}
on property:vendor.display.lcd_density=560
setprop dalvik.vm.heapgrowthlimit 256m