aboutsummaryrefslogtreecommitdiff
path: root/src/flashlight.c
diff options
context:
space:
mode:
authorAlfred Neumayer <dev.beidl@gmail.com>2020-02-16 20:08:48 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-06 15:59:37 +0200
commit215c6ddc8712a798ae6df8a54900d81a76c5ca56 (patch)
treed5b8214a59660949dc054f4f8f6aff25a47a7e99 /src/flashlight.c
parent9d403329ad1ad1d6ef3acb936e617666aa902a6f (diff)
downloadayatana-indicator-power-215c6ddc8712a798ae6df8a54900d81a76c5ca56.tar.gz
ayatana-indicator-power-215c6ddc8712a798ae6df8a54900d81a76c5ca56.tar.bz2
ayatana-indicator-power-215c6ddc8712a798ae6df8a54900d81a76c5ca56.zip
flashlight: Add more brightness file paths
Diffstat (limited to 'src/flashlight.c')
-rw-r--r--src/flashlight.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/flashlight.c b/src/flashlight.c
index 08ad884..a5d7f97 100644
--- a/src/flashlight.c
+++ b/src/flashlight.c
@@ -27,8 +27,12 @@
#define QCOM_ENABLE "255"
#define QCOM_DISABLE "0"
-const size_t qcom_sysfs_size = 2;
-const char* const qcom_sysfs[] = {"/sys/class/leds/torch-light/brightness", "/sys/class/leds/led:flash_torch/brightness"};
+const size_t qcom_sysfs_size = 5;
+const char* const qcom_sysfs[] = {"/sys/class/leds/torch-light/brightness",
+ "/sys/class/leds/led:flash_torch/brightness",
+ "/sys/class/leds/flashlight/brightness",
+ "/sys/class/leds/torch-light0/brightness",
+ "/sys/class/leds/torch-light1/brightness"};
char* flash_sysfs_path = NULL;
gboolean activated = 0;