maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 on Nexus 5 (https://talk.maemo.org/showthread.php?t=94620)

Feathers McGraw 2016-01-03 23:15

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by velox (Post 1493547)
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?

velox 2016-01-03 23:32

Re: SailfishOS 2.0 on Nexus 5
 
It should work. QML has automagical data bindings for most things. :)

Bundyo 2016-01-04 04:17

Re: SailfishOS 2.0 on Nexus 5
 
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.

Feathers McGraw 2016-01-04 20:48

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by velox (Post 1493555)
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.

Quote:

Originally Posted by Bundyo (Post 1493571)
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.

Bundyo 2016-01-04 21:34

Re: SailfishOS 2.0 on Nexus 5
 
Should be this one:

https://openrepos.net/content/sfietk...jolla-settings

Feathers McGraw 2016-01-04 22:07

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by Bundyo (Post 1493678)

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 2016-01-04 22:18

Re: SailfishOS 2.0 on Nexus 5
 
https://github.com/SfietKonstantin/jolla-settings-torch

;)

jetronic 2016-01-04 22:22

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by romu (Post 1493418)
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 :D

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

abyzthomas 2016-01-05 02:59

Re: SailfishOS 2.0 on Nexus 5
 
1 Attachment(s)
Quote:

Originally Posted by jetronic (Post 1493689)
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.
Attachment 38024

Hope this helps.

juiceme 2016-01-05 05:45

Re: SailfishOS 2.0 on Nexus 5
 
Quote:

Originally Posted by Bundyo (Post 1493687)

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 :p


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

vBulletin® Version 3.8.8