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: I676b74aac3cbc1900c73b3236879479e8ecfca00
This commit is contained in:
Alexander Koskovich 2021-01-17 23:44:43 -07:00 committed by Omkar Chandorkar
parent 0b0f0f63f9
commit 40b17107ae
No known key found for this signature in database
GPG Key ID: 95A33FD984777F70
1 changed files with 4 additions and 0 deletions

View File

@ -203,6 +203,10 @@ on boot
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