Reply
Thread Tools
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#331
Originally Posted by velox View Post
You could make a bool property in your LEDControl in the main qml which you can query in all other qml files
If that works it'll be perfect! Are you sure there's no need to trigger the window to redraw or anything?
 

The Following User Says Thank You to Feathers McGraw For This Useful Post:
velox's Avatar
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#332
It should work. QML has automagical data bindings for most things.
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)
 

The Following 2 Users Say Thank You to velox For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#333
Btw, there's a Settings LED plugin in OpenRepos, why not add the support in it instead? Would be easier to use than a separate app.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 2 Users Say Thank You to Bundyo For This Useful Post:
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#334
Originally Posted by velox View Post
It should work. QML has automagical data bindings for most things.
It worked! I had to add a Q_PROPERTY in the C++ class, with read/write/notify methods. Thanks so much for giving me that hint, it's was just the information I needed.

There's a new version of Hammerhead Torch on openrepos, the cover and icon button should now be synchronised.

Originally Posted by Bundyo View Post
Btw, there's a Settings LED plugin in OpenRepos, why not add the support in it instead?
I can't find it, can you give me a link? I wanted to make a Sailfish app because I haven't made one before, but I don't have anything against contributing to that too if people would use it.
 

The Following User Says Thank You to Feathers McGraw For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#335
Should be this one:

https://openrepos.net/content/sfietk...jolla-settings
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following User Says Thank You to Bundyo For This Useful Post:
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#336
Originally Posted by Bundyo View Post
Should be this one:

https://openrepos.net/content/sfietk...jolla-settings
Thanks I can't see a link to the source though...if it's all qml I might be able to extract it from the rpm, but I have no idea how it's licensed.
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#337
https://github.com/SfietKonstantin/jolla-settings-torch

__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following User Says Thank You to Bundyo For This Useful Post:
Posts: 10 | Thanked: 11 times | Joined on Aug 2015 @ germany
#338
Originally Posted by romu View Post
Oh great, thank you. Now, we just need to package this into something more usable than a terminal. Personaly, I can't, but I would greatly appreciate
That's right, it's not really comfortable on the terminal.
Does anyone know if you can run a script from the surface?
Or do we need here is a small app for the Nexus 5?

Can someone post the result of an Jolla Phone from the following line:
Code:
ll /sys/class/leds/
Maybe we can use the existing Flashlight Apps with the N5,
with a corresponding symlink in Fliesystem.

Edit:
oh, I should upgrade my browser page.
Sorry, the post can be ignored

Last edited by jetronic; 2016-01-04 at 22:29.
 
Posts: 307 | Thanked: 488 times | Joined on Sep 2010 @ USA around Chicago
#339
Originally Posted by jetronic View Post
Can someone post the result of an Jolla Phone from the following line:
Code:
ll /sys/class/leds/
Code:
root@Jolla leds]# ll /sys/class/leds/
total 0
lrwxrwxrwx 1 root root 0 1970-02-14 02:12 blue -> ../../devices/leds-qpnp-f859d800/leds/blue
lrwxrwxrwx 1 root root 0 1970-02-14 02:12 green -> ../../devices/leds-qpnp-f859d800/leds/green
lrwxrwxrwx 1 root root 0 1970-02-14 02:12 lcd-backlight -> ../../devices/mdp.0/qcom,mdss_fb_primary.161/leds/lcd-backlight
lrwxrwxrwx 1 root root 0 2016-01-05 08:24 led:flash_0 -> ../../devices/leds-qpnp-f859da00/leds/led:flash_0
lrwxrwxrwx 1 root root 0 2016-01-05 08:24 led:flash_1 -> ../../devices/leds-qpnp-f859da00/leds/led:flash_1
lrwxrwxrwx 1 root root 0 2016-01-05 06:22 led:flash_torch -> ../../devices/leds-qpnp-f859da00/leds/led:flash_torch
lrwxrwxrwx 1 root root 0 2016-01-05 08:24 mmc1:: -> ../../devices/msm_sdcc.1/leds/mmc1::
lrwxrwxrwx 1 root root 0 1970-02-14 02:12 red -> ../../devices/leds-qpnp-f859d800/leds/red
I think you are on to something .

On N5 following 2 folders exists:
/sys/devices/leds-qpnp-f859da00/leds/
/sys/devices/leds-qpnp-f859d800/leds/

links in /sys/class/leds seems to be pointing to
/sys/devices/leds-qpnp-f859da00/leds

See attachment for more file listings.
led.txt

Hope this helps.
__________________
Apps for iPhone & iPad
Malayalam Keyboard for iPhoneTelugu Keyboard for iPhoneGujarati Keyboard for iPhone
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#340
WHAT! This is crazy, there absolutely needs to be another way of enabling the backside led!
This application creates a dummy video feed just to enable the led for illuminating purposes, there should be no need to start the camera for it
 

The Following 4 Users Say Thank You to juiceme For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:44.