sm8150-common: Limit max brightness for "green" & "blue" leds
* Reducing max_brightness limits the LED current draw from 8mA to approximately 1mA. * This mitigates light leaking. Change-Id: I3f9b08f3073e256fba102495c6134375fe02b6ae
This commit is contained in:
@@ -51,7 +51,7 @@ on init
|
||||
# add for cit-test of led
|
||||
chmod 0666 /sys/class/leds/led:torch_0/brightness
|
||||
chmod 0666 /sys/class/leds/led:switch_0/brightness
|
||||
|
||||
|
||||
chmod 0666 /dev/uhid
|
||||
|
||||
on early-fs
|
||||
@@ -222,7 +222,8 @@ on charger
|
||||
start vendor.power_off_alarm
|
||||
setprop sys.usb.controller a600000.dwc3
|
||||
setprop sys.usb.configfs 1
|
||||
start leds-sh
|
||||
write /sys/class/leds/green/max_brightness 32
|
||||
write /sys/class/leds/blue/max_brightness 32
|
||||
|
||||
service vendor.thermal-engine /vendor/bin/thermal-engine
|
||||
class main
|
||||
@@ -263,11 +264,6 @@ service panel-info-sh /system/vendor/bin/sh /vendor/etc/init.panel_info.sh
|
||||
user root
|
||||
oneshot
|
||||
|
||||
service leds-sh /system/vendor/bin/sh /vendor/etc/init.leds.sh
|
||||
class core
|
||||
user root
|
||||
oneshot
|
||||
|
||||
service nv_mac /vendor/bin/nv_mac
|
||||
class late_start
|
||||
user system
|
||||
|
||||
Reference in New Issue
Block a user