![]() |
Re: SailfishOS 2.0 on Nexus 5
Quote:
Since the file is owned by root:root, it will probably require changing permissions/ownership of that file so that the app can write to it, at least until I can work out how to turn it on the "right way". Seems like the kind of thing libhybris handles, but I couldn't find any info on how to actually use it. Anyone know how? |
Re: SailfishOS 2.0 on Nexus 5
I have never done something like this (and it sounds like the wrong thing to do), but you might be able to add chmod commands to a %post script (don't forget to undo on %postun if it even works) in your rpm spec file to change permissions on installation…
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
I would create a folder called scripts under nemo home directory so you can keep your scripts together. It is not are requirement. Create a file /home/nemo/scripts/flashlight.sh and copy the following to it. Code:
#!/bin/bash Code:
[Desktop Entry] Hope this helps to get you going. Edit: Make sure the script is executable. Code:
chmod 755 /home/nemo/scripts/flashlight.sh |
Re: SailfishOS 2.0 on Nexus 5
@abyzthomas: it works...almost. It doesn't behave like a regular SFOS application, so it's not obvious about how to close it properly. But that's better than nothing. Thanks a lot.
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
Code:
nemo ~ $ ls -l /sys/class/leds/led\:rgb_red/ What are the permissions/ownership of the files on the N5? I haven't actually received mine yet! |
Re: SailfishOS 2.0 on Nexus 5
3 Attachment(s)
So I made an app:
http://i.imgur.com/ZytGbjP.png I don't have a N5 yet so if someone can test for me I'd really appreciate it! RPMs are attached. EDIT: sauce https://github.com/sam-hobbs/harbour-hammerhead-torch EDIT: now on openrepos https://openrepos.net/content/feathe...mmerhead-torch It works fine editing a file in /home/nemo in the emulator, but I can't create the file /sys/class/leds/led:flash_torch/brightness in the emulator which is really annoying! So I think it will work, but it might not. Also, can someone explain what the difference between debug and release modes is in the SDK? I thought release mode just removed debugging symbols or something like that, but I get no errors compiling in debug mode and lots in release mode :confused: |
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
Did you have to change any permissions? Only thing that's bugging me about it is that if you toggle the flashlight from the cover action it won't update the icon when you open the main page and vice versa. On "traditional" Qt I'd do this with signals and slots but it's taking a while to get my head around Qml and the docs aren't great either compared to normal Qt, which is understandable. The best I could do for now is to use onStatusChanged on the main page (see here), but that only works when switching between pages within the app (try main page to about and back, and it will refresh); it doesn't work when switching between the cover and the app itself. Are there any signals for when different pages gain focus or anything like that? |
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
Code:
Image { |
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
Re: SailfishOS 2.0 on Nexus 5
It should work. QML has automagical data bindings for most things. :)
|
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.
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
There's a new version of Hammerhead Torch on openrepos, the cover and icon button should now be synchronised. Quote:
|
Re: SailfishOS 2.0 on Nexus 5
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
Re: SailfishOS 2.0 on Nexus 5
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
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/ with a corresponding symlink in Fliesystem. Edit: oh, I should upgrade my browser page. Sorry, the post can be ignored |
Re: SailfishOS 2.0 on Nexus 5
1 Attachment(s)
Quote:
Code:
root@Jolla leds]# ll /sys/class/leds/ 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. |
Re: SailfishOS 2.0 on Nexus 5
Quote:
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 |
Re: SailfishOS 2.0 on Nexus 5
Quote:
@jetronic: the app is done, just go back to few previous messages and you'll find it. |
Re: SailfishOS 2.0 on Nexus 5
screenshot
Remember this is still violently alpha quality. But we can now get Internet access working in Android via the fake wifi connection xposed module, flashing gapps work, logging in to your existing google account to gain access to the google play store all work. Yes whatsapp works (but contact sync does not) you can restore your conversation backup and then send messages to those people however. |
Re: SailfishOS 2.0 on Nexus 5
Impressive @nh1402!
|
Re: SailfishOS 2.0 on Nexus 5
|
Re: SailfishOS 2.0 on Nexus 5
Will this port work on Android 6.0.1
|
Re: SailfishOS 2.0 on Nexus 5
I have to restart the phone from time to time as the touch screen is not responsive. I am not sure if it is caused by enabling LPM (mce-tool) or the bad state of my nexus5.
Has anyone experienced such behaviour? |
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
Re: SailfishOS 2.0 on Nexus 5
Touchscreen freeze happens from time to time on my N5. I'm using my N5 as my only phone for more than 6 months now, and I've got 2/3 freezes.
Regarding orientation, did you try to restart the sensor framework? This could prevent to reboot the whole phone. |
Re: SailfishOS 2.0 on Nexus 5
Quote:
Observations! 1. After the screen wakes up for an alert, if I press the power button at some specific moment, right before it goes back to sleep. It usually happens only if I pressing power button to unlock. 2. Sometimes while on phone a call, maybe when remote end hangs up before you? Not sure, but there is a specific event that is causing it here also. Solution? Just reboot! :):) Still very happy sailing on N5!!! :):):) |
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
Also can confirm that I have had the issue with the phone going to sleep after a phone call has been terminated by the other party. And I have also had the phone lock in one orientation and not want to switch when tilted. Rebooting works wonders in all cases. It is good that Sailfish is fast to reboot, as for example BlackBerry 10 takes eons to reboot, both to shut down and to start up. |
Re: SailfishOS 2.0 on Nexus 5
A lot of new names here. Please keep in mind that all mentioned issues are not new and that you can contribute to the bugtracker so that developers see how important it is to fix those https://bugs.nemomobile.org
|
Re: SailfishOS 2.0 on Nexus 5
Does this port work on 6.0.1 also with dual boot
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
2. devel-su 3. systemctl restart sensorfwd 4. exit (2 times) |
Re: SailfishOS 2.0 on Nexus 5
Thanks, i also found the bug in the wiki for the orientation freeze discussion and will try capturing some verbose sensorfwd output when it happens again.
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
Re: SailfishOS 2.0 on Nexus 5
Quote:
https://bugs.nemomobile.org/show_bug.cgi?id=820 The discussion towards the end of it is explicitly about debugging the orientation freeze, where repro/logs are requested. |
Re: SailfishOS 2.0 on Nexus 5
Does this port work on 6.0.1 also with dual boot
|
Re: SailfishOS 2.0 on Nexus 5
I've updated Hammerhead torch so it works with jPhone as well, since I don't have my hammerhead yet could someone please test that it still works OK? I had to change the method of writing to the file because the jPhone control file is weird.
Latest versions (0.4) is available on openrepos. |
Re: SailfishOS 2.0 on Nexus 5
Quote:
|
All times are GMT. The time now is 12:07. |
vBulletin® Version 3.8.8