forked from donjohanliebert/hardware_xiaomi
aidl: light: Add support for button-backlight2 device
Needed on natrium. Change-Id: I345ff6039702c26a5c580a73290c4d19c4ae272b
This commit is contained in:
parent
7329fd774f
commit
f75adee245
@ -55,6 +55,7 @@ static std::vector<LedDevice> getBacklightLedDevices() {
|
|||||||
static const std::string kButtonLedDevices[] = {
|
static const std::string kButtonLedDevices[] = {
|
||||||
"button-backlight",
|
"button-backlight",
|
||||||
"button-backlight1",
|
"button-backlight1",
|
||||||
|
"button-backlight2",
|
||||||
};
|
};
|
||||||
|
|
||||||
static std::vector<LedDevice> getButtonLedDevices() {
|
static std::vector<LedDevice> getButtonLedDevices() {
|
||||||
|
@ -37,6 +37,16 @@ on early-boot
|
|||||||
chown system system /sys/class/leds/button-backlight1/ramp_step_ms
|
chown system system /sys/class/leds/button-backlight1/ramp_step_ms
|
||||||
chown system system /sys/class/leds/button-backlight1/start_idx
|
chown system system /sys/class/leds/button-backlight1/start_idx
|
||||||
|
|
||||||
|
chown system system /sys/class/leds/button-backlight2/blink
|
||||||
|
chown system system /sys/class/leds/button-backlight2/breath
|
||||||
|
chown system system /sys/class/leds/button-backlight2/brightness
|
||||||
|
chown system system /sys/class/leds/button-backlight2/duty_pcts
|
||||||
|
chown system system /sys/class/leds/button-backlight2/max_brightness
|
||||||
|
chown system system /sys/class/leds/button-backlight2/pause_hi
|
||||||
|
chown system system /sys/class/leds/button-backlight2/pause_lo
|
||||||
|
chown system system /sys/class/leds/button-backlight2/ramp_step_ms
|
||||||
|
chown system system /sys/class/leds/button-backlight2/start_idx
|
||||||
|
|
||||||
chown system system /sys/class/leds/green/blink
|
chown system system /sys/class/leds/green/blink
|
||||||
chown system system /sys/class/leds/green/breath
|
chown system system /sys/class/leds/green/breath
|
||||||
chown system system /sys/class/leds/green/brightness
|
chown system system /sys/class/leds/green/brightness
|
||||||
|
Loading…
Reference in New Issue
Block a user