Thread: Jolla C
View Single Post
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#399
Originally Posted by Feathers McGraw View Post
Hey, could you cat /etc/hw-release, and either tree /sys or even better have a rummage for the file that controls the LED please? I'd like to add support for Jolla C in Hammerhead Torch, and I need to know where the LED "control file" is.

Here's the location on some other devices:

Code:
Jolla=/sys/kernel/debug/flash_adp1650/mode
Motorola Photon Q=/sys/class/leds/torch-flash/flash_light
LG Nexus 5=/sys/class/leds/led:flash_torch/brightness
Fairphone Fairphone 2=/sys/class/leds/led:flash_torch/brightness
(from controlfile.conf)
Code:
[nemo@Sailfish ~]$ cat /etc/hw-release
# This file is copied as hw-release (analogous to os-release)
NAME="Intex Aqua Fish"
ID=l500d
MER_HA_DEVICE=l500d
MER_HA_VENDOR=qualcomm
VERSION="0.0.1.24 (armv7hl)"
VERSION_ID=0.0.1.24
PRETTY_NAME=" 0.0.1.24 (armv7hl)"
SAILFISH_BUILD=24
SAILFISH_FLAVOUR=release
HOME_URL="https://sailfishos.org/"
[nemo@Sailfish ~]$
there are these, not sure which is the correct one:
Code:
[nemo@Sailfish ~]$ cd /sys/class/leds/
button-backlight/ flashlight/       lcd-backlight/    torch-light0/
[nemo@Sailfish ~]$ cd /sys/class/leds/torch-light0/
[nemo@Sailfish torch-light0]$ ls
brightness  device  max_brightness  power  subsystem  trigger  uevent
[nemo@Sailfish torch-light0]$ cd ../flashlight
[nemo@Sailfish flashlight]$ ls
brightness  device  max_brightness  power  subsystem  trigger  uevent
[nemo@Sailfish flashlight]$

Last edited by szopin; 2016-06-17 at 15:31.
 

The Following 5 Users Say Thank You to szopin For This Useful Post: