Thread: Jolla C
View Single Post
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#439
Originally Posted by Feathers McGraw View Post
Thank you for this. Interesting too, I can't imagine what the difference between "torch-light0" and "flashlight" is.

Can you do a ls- l on both of those directories please? On the other devices, the control file is world readable and writable. If it's obvious which one is which, you could try turning the torch on and off manually, e.g. to turn it on

Code:
echo 1 > /sys/class/leds/torch-light0/brightness
And to turn it off:

Code:
echo 0 > /sys/class/leds/torch-light0/brightness
I have some other changes to package, so if we can figure this out tonight I should be able to provide a working flashlight app pretty much straight away.
There is a flashlight shortcut in settings, first results with it off, second with on:
nemo@Sailfish ~]$ cat /sys/class/leds/flashlight/brightness
0
[nemo@Sailfish ~]$ cat /sys/class/leds/torch-light0/brightness
0
[nemo@Sailfish ~]$ cat /sys/class/leds/torch-light0/brightness
0
[nemo@Sailfish ~]$ cat /sys/class/leds/flashlight/brightness
127
[nemo@Sailfish ~]$
Compass is gone from CSD (same code as before works *#*#310#*#*, running from term complains about xdg_runtime and fails to start display). Twice already lost mobile network connection and had to re-airplane-mode it (toggle greyed out, starting from options did not work). The extra length makes a huge difference in fingerterm, and also a bit of relearning is needed for pulley menus, at first was releasing too soon

Last edited by szopin; 2016-06-20 at 16:49.
 

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