From c0695517bc70bcf05329a8404898d9af07cfc4b1 Mon Sep 17 00:00:00 2001 From: Ilya Matyukhin Date: Fri, 19 Mar 2021 12:36:23 -0700 Subject: [PATCH] oriole: grant write access to the LHBM node Bug: 182520014 Test: on device Change-Id: I5c23c93ee0aa5fad745bf2344581d07e2e64b01c --- conf/init.oriole.rc | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ on fs # 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