sdm845-common: Improve LED ramp generation algorithm.

Distribute ramp duration equally to both on and off time, use more
ramp steps (16 instead of 8) and lower green brightness to better match
brightness of red and blue (green LED is much brighter than the other
two).

Change-Id: I48d94b4020515a5cbb15486f8d44dd151b475ab0
This commit is contained in:
Danny Baumann
2018-07-08 14:57:35 +02:00
parent c162e21253
commit 646a48d17f
2 changed files with 23 additions and 17 deletions

View File

@@ -2,6 +2,9 @@ on boot
chown system system /sys/class/leds/red/start_idx
chown system system /sys/class/leds/green/start_idx
chown system system /sys/class/leds/blue/start_idx
chown system system /sys/class/leds/red/lut_flags
chown system system /sys/class/leds/green/lut_flags
chown system system /sys/class/leds/blue/lut_flags
service light-hal-2-0 /system/bin/hw/android.hardware.light@2.0-service.oneplus_sdm845
class hal