aidl: light: Add support for button-backlight2 device

Needed on natrium.

Change-Id: I345ff6039702c26a5c580a73290c4d19c4ae272b
This commit is contained in:
LuK1337 2024-06-22 12:26:14 +02:00
parent 7329fd774f
commit f75adee245
No known key found for this signature in database
2 changed files with 11 additions and 0 deletions

View File

@ -55,6 +55,7 @@ static std::vector<LedDevice> getBacklightLedDevices() {
static const std::string kButtonLedDevices[] = {
"button-backlight",
"button-backlight1",
"button-backlight2",
};
static std::vector<LedDevice> getButtonLedDevices() {

View File

@ -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/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/breath
chown system system /sys/class/leds/green/brightness