Partially revert "kunlun2: light: minor cleanup"
This reverts commit 1d06f837c1
.
This commit is contained in:
parent
9e0bb715c6
commit
3da4b8031b
2 changed files with 5 additions and 0 deletions
|
@ -132,6 +132,7 @@ void Light::handleRgb(const LightState& state, size_t index) {
|
|||
}
|
||||
|
||||
for (const auto& entry : colorValues) {
|
||||
set(makeLedPath(entry.first, "lut_flags"), 95);
|
||||
set(makeLedPath(entry.first, "start_idx"), index);
|
||||
set(makeLedPath(entry.first, "duty_pcts"), getScaledDutyPercent(entry.second));
|
||||
set(makeLedPath(entry.first, "pause_lo"), pauseLo);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
on boot
|
||||
chown system system /sys/class/backlight/panel0-backlight/brightness
|
||||
chown system system /sys/class/backlight/panel0-backlight/max_brightness
|
||||
chown system system /sys/class/backlight/panel0-backlight/actual_brightness
|
||||
|
||||
chmod 0644 /sys/class/backlight/panel0-backlight/brightness
|
||||
chmod 0644 /sys/class/backlight/panel0-backlight/max_brightness
|
||||
|
@ -12,6 +13,7 @@ on boot
|
|||
chown system system /sys/class/leds/red/pause_lo
|
||||
chown system system /sys/class/leds/red/ramp_step_ms
|
||||
chown system system /sys/class/leds/red/start_idx
|
||||
chown system system /sys/class/leds/red/lut_flags
|
||||
|
||||
chown system system /sys/class/leds/blue/blink
|
||||
chown system system /sys/class/leds/blue/brightness
|
||||
|
@ -20,6 +22,7 @@ on boot
|
|||
chown system system /sys/class/leds/blue/pause_lo
|
||||
chown system system /sys/class/leds/blue/ramp_step_ms
|
||||
chown system system /sys/class/leds/blue/start_idx
|
||||
chown system system /sys/class/leds/blue/lut_flags
|
||||
|
||||
chown system system /sys/class/leds/green/blink
|
||||
chown system system /sys/class/leds/green/brightness
|
||||
|
@ -28,6 +31,7 @@ on boot
|
|||
chown system system /sys/class/leds/green/pause_lo
|
||||
chown system system /sys/class/leds/green/ramp_step_ms
|
||||
chown system system /sys/class/leds/green/start_idx
|
||||
chown system system /sys/class/leds/green/lut_flags
|
||||
|
||||
chmod 660 /sys/class/leds/red/blink
|
||||
chmod 660 /sys/class/leds/red/duty_pcts
|
||||
|
|
Loading…
Reference in a new issue