oriole: grant write access to the LHBM node
Bug: 182520014
Test: on device
Change-Id: I5c23c93ee0aa5fad745bf2344581d07e2e64b01c
diff --git a/conf/init.oriole.rc b/conf/init.oriole.rc
index 8425b5a..c3e6976 100644
--- a/conf/init.oriole.rc
+++ b/conf/init.oriole.rc
@@ -31,6 +31,10 @@
# Start the twoshay touch service
start twoshay
+ # LHBM
+ # FIXME(b/183223359): Only grant write access to SystemUI.
+ chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode
+
# Toggle glove_mode according to touch_sensitivity_mode
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
write /sys/class/spi_master/spi11/spi11.0/glove_mode 00