summaryrefslogtreecommitdiffstats
path: root/minuitwrp/graphics_overlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp/graphics_overlay.cpp')
-rw-r--r--minuitwrp/graphics_overlay.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/minuitwrp/graphics_overlay.cpp b/minuitwrp/graphics_overlay.cpp
index 5d759f6d4..84ea6e0ea 100644
--- a/minuitwrp/graphics_overlay.cpp
+++ b/minuitwrp/graphics_overlay.cpp
@@ -164,6 +164,16 @@ static void overlay_blank(minui_backend* backend __unused, bool blank)
}
write(fd, blank ? "000" : brightness, 3);
close(fd);
+
+#ifdef TW_SECONDARY_BRIGHTNESS_PATH
+ fd = open(TW_SECONDARY_BRIGHTNESS_PATH, O_RDWR);
+ if (fd < 0) {
+ perror("cannot open LCD backlight 2");
+ return;
+ }
+ write(fd, blank ? "000" : brightness, 3);
+ close(fd);
+#endif
#else
int ret;