summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Sharma <hemantbeast@gmail.com>2017-12-29 22:33:53 +0530
committerHemant Sharma <hemantbeast@gmail.com>2018-01-14 15:58:33 +0000
commit4ebecf5026301cbb8becaf6c65f08e0aca503bfd (patch)
treebb634e133ed5a1510ec21c338f7f6b6cba14e070
parent50375a3297fee7546e31f872cccc0dfb84f1599b (diff)
armani: Update ramdisk
* set proper permission to leds and flash light Change-Id: I5d3fbd45a6715e7d23cb92981ee324f84b142b2b
-rwxr-xr-xrootdir/init.armani.rc19
1 files changed, 19 insertions, 0 deletions
diff --git a/rootdir/init.armani.rc b/rootdir/init.armani.rc
index 3fb50bc..651bbcb 100755
--- a/rootdir/init.armani.rc
+++ b/rootdir/init.armani.rc
@@ -115,6 +115,25 @@ on boot
chown system system /sys/class/leds/blue/duty_pcts
chown system system /sys/class/leds/blue/ramp_step_ms
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/led:flash_0/brightness
+ chown system system /sys/class/leds/led:flash_torch/brightness
+ chown system system /sys/class/leds/lcd-backlight/brightness
+ chown system system /sys/class/leds/wled:backlight/brightness
+ chmod 0664 /sys/class/leds/red/brightness
+ chmod 0664 /sys/class/leds/green/brightness
+ chmod 0664 /sys/class/leds/blue/brightness
+ chmod 0664 /sys/class/leds/led:flash_0/brightness
+ chmod 0664 /sys/class/leds/led:flash_torch/brightness
+ chmod 0664 /sys/class/leds/lcd-backlight/brightness
+ chmod 0664 /sys/class/leds/wled:backlight/brightness
+
+ # Enable writing to brightness node under torch-light from userspace
+ chown system system /sys/class/leds/torch-light/brightness
+ chmod 0666 /sys/class/leds/torch-light/brightness
+
# Switch to interactive and let PowerHAL configure it
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay