aboutsummaryrefslogtreecommitdiff
path: root/src/flashlight.c
Commit message (Collapse)AuthorAgeFilesLines
* src: add support for getting flashlight paths through deviceinfoMuhammad2023-06-051-13/+35
| | | | Signed-off-by: Muhammad <muhammad23012009@hotmail.com>
* Handle state changes for flashlight switchRobert Tari2023-02-121-1/+3
| | | | fixes https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-power/-/issues/5
* flashlight: Add support for PM8998 based SoCsJami Kettunen2021-08-281-5/+16
| | | | | | | | | These sysfs and switch paths are used on Qualcomm SoCs which contain a PM8998 PMIC block. This at the very least includes the Snapdragon 835 (MSM8998) and Snapdragon 845 (SDM845). This was tested as working on the OnePlus 5 (MSM8998) and OnePlus 6 (SDM845) smartphones.
* flashlight: Add support for simpler sysfs toggles (#34)Jami Kettunen2021-08-281-14/+56
| | | | | | | | | | Unlike the overcomplicated Qualcomm mess, there are also simpler sysfs toggles which you can just write 1/0 to when enabling/disabling the flash. This is used by the MediaTek flashlight_core driver on the Volla Phone (Helio P23 / MT6763) for example, which this also adds support for. Pinephone also uses a simple sysfs toggle for flashlight.
* Try to detect if flash needs to be enabled (latched) separatelyFlorian Leeber2020-08-061-8/+23
|
* flashlight: Add more brightness file pathsAlfred Neumayer2020-08-061-2/+6
|
* src/flashlight.c: Cast char* from const char* when assigning flash_sysfs_path.Mike Gabriel2018-03-251-1/+1
|
* Added warning to avoid overheating of the LED.Jan Sprinz (NeoTheThird)2018-03-251-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | Ported from UBports power indicator: commit ef020b31be15f1126d3e5ea5ec399179aad586b8 Author: Jan Sprinz (NeoTheThird) <neo@neothethird.de> Date: Sat Sep 16 16:02:50 2017 +0200 Forgot semicolon *blush* commit c8be2d9a142e17bdfa86ee68e23a18ba0680c244 Author: Jan Sprinz (NeoTheThird) <neo@neothethird.de> Date: Sat Sep 16 15:53:29 2017 +0200 Change var name commit 3d6a37503bafcbf397220dcfac5624a686f2f900 Author: Jan Sprinz (NeoTheThird) <neo@neothethird.de> Date: Sat Sep 16 14:24:05 2017 +0200 Added warning to avoid overheating of the LED Ported-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* Add basic flashlight support.Marius Gripsgard2018-03-251-0/+77
Ported from UBPorts power indicator: commit efef6f25f378021c99b3078958482b3c4ffc43a2 Author: Marius Gripsgard <mariogrip@ubuntu.com> Date: Sun Aug 13 00:09:01 2017 +0200 Add support for other flashlight sysfs paths commit 3f4339876ddb586b75a73fab51a54b1d4d54fdd1 Author: Marius Gripsgard <mariogrip@ubuntu.com> Date: Fri Jul 28 21:23:54 2017 +0200 Add basic support for QCOM flashlight, Fixes https://github.com/ubports/ubports-touch/issues/79 This does not work on non QCOM devices Ported-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>