Thread: Jolla C
View Single Post
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#474
Originally Posted by szopin View Post
first results with it off, second with on:
I'm a bit confused by this, if you mean the commands I posted, shouldn't that be the other way round, i.e.

Code:
echo 1 > /sys/class/leds/torch-light0/brightness
for on and

Code:
echo 0 > /sys/class/leds/torch-light0/brightness
for off?

Edit: never mind, I asked on IRC. The control file is /sys/class/leds/torch-light0/brightness but unlike other devices, it's not just 1 or 0, the number in the file actually determines the brightness. 255=full brightness, but if you set it to 255, it drops to 1 after about a second. Setting it to 127 is the max it can be without dropping off after a few seconds (this is the same value set when the camera is recording video).

I've released a new RPM for Hammerhead Torch on openrepos with experimental support for Jolla C, would appreciate testing/feedback.

Last edited by Feathers McGraw; 2016-06-25 at 12:26.
 

The Following 2 Users Say Thank You to Feathers McGraw For This Useful Post: