summaryrefslogtreecommitdiff
path: root/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-02-07 00:04:57 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:49:34 +0300
commitf417401d5b9b0f8e7bd4c04781150394b7569163 (patch)
tree2348af4ce40638a21085eeb6a1236b2a665c3ba4 /light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
parent54bb90253415cf4d301f8d99ec7cf775ca432439 (diff)
sdm660-common: Support button backlight
Change-Id: Id13a42976df428c95c19eae49e1c114f057510bb
Diffstat (limited to 'light/android.hardware.light@2.0-service.xiaomi_sdm660.rc')
-rw-r--r--light/android.hardware.light@2.0-service.xiaomi_sdm660.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
index 969bdac..46a2e62 100644
--- a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
+++ b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
@@ -9,6 +9,10 @@ on boot
chown system system /sys/class/leds/white/ramp_step_ms
chown system system /sys/class/leds/white/start_idx
+ chown system system /sys/class/leds/button-backlight/max_brightness
+ chown system system /sys/class/leds/button-backlight1/brightness
+ chown system system /sys/class/leds/button-backlight1/max_brightness
+
chown system system /sys/class/leds/lcd-backlight/max_brightness
start vendor.light-hal-2-0