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)

BluesLee 2015-02-16 17:04

SailfishOS 2.0 on Nexus 5
 
Remark
This is not the main support thread for SailfishOS on the Nexus 5 (XDA Thread) nor a discussion thread for other devices (Porting Sailfish to Android Devices). The current port is - with few minor restrictions - usable on a daily basis.



General stuff
Compared to the Jolla phone the Nexus 5 has a bigger screen, from my viewpoint a better haptic and it is a wonderful device to test different operating systems using Multirom. You can boot to some Android flavors, SFOS, Ubuntu Touch, Firefox OS ...

Main contributors
  • sledges - a Jolla employee who coordinates different ports, go-to guy if you don't know whom to ask:)
  • alin, situ, vgrade ... - main Nexus 5 porters
  • tassadar - multirom guru
  • msameer - master of camera and multimedia stuff
  • krnlyng, nh1402 - Android support
  • And many more contributors, testers ...

Current version
Beta 1 based on SailfishOS 2.0.0.10 via OTA, coming from beta0 SailfishOS 1.1.9.28.

What's hot?
Sat, 12.12.2015: Running complete (underlying) CyanogenMod / Android within a SFOS window, see sfdroid

What works and what not? Comments
  • To avoid black rectangle just create your own ambience
  • GPS works - thanks to mal- hint: you can transfer and install jolla-here app from your Jolla phone
  • OTA updates work
  • Cameraplus / harbour-camera video recording crash (regression)

Installation
Follow the Wiki. Grab it from http://images.devaamo.fi/sfe/hammerhead/

Bugtracker
See and please contribute (!) to our bugtracker


Most annoying bugs from my point of view
Bug 835: [hammerhead][alpha12][cameraplus] crash upon stopping video recording
Bug 837: [hammerhead][alpha12] Bad battery life caused by sensors


Support
XDA thread and IRC Freenode #sailfishos-porters and
http://piratepad.net/hadk-faq

Tips and tricks
  • Backup and restore
    From your home directory on the Jolla phone do
    Code:

    tar cvf vault.tar .vault
    and transfer the tar file to your Nexus 5 and restore it using the Jolla backup and restore from the settings app.
  • Install keyboard prediction as root
    Code:

    pkcon install jolla-xt9
  • Activate Low Power Mode
    Code:

    pkcon install mce-tools
    mcetool --set-low-power-mode=enabled

  • Copy over maps package from Jolla Phone
    Code:

    pkcon download . sailfish-maps
  • Dbus command for persistent 3G technology setting in mobile network settings (survives reboots)
    Code:

    dbus-send --system --type=method_call --print-reply
    --dest=org.ofono /ril_0 org.ofono.RadioSettings.SetProperty string:TechnologyPreference variant:string:umts


Demati 2015-02-17 16:43

Re: [WIP] SailfishOS on Nexus 5
 
I was tooling around with SFOS on my Nexus 5 this morning and I figured out how to mount Android user data so that it is accessible via SFOS. I did the following:

Code:

devel-su
mkdir /android
mount /dev/mmcblk0p28 /android

User data is then available in:
/android/media/0/

I also updated my fstab file by adding the following line at the end:
Code:

/dev/mmcblk0p28 /android ext4 rw,relatime,data 0 0

Kangal 2015-02-18 08:47

Re: [WIP] SailfishOS on Nexus 5
 
I've been following this for a little while. I didn't know they finally got MultiROM support. Seems to be a couple more bugs fixed since I last checked.

I'm tempted to grab a Nexus 5 just to play around.
Hmmm, let's just check my bank account first?

m4r0v3r 2015-02-18 12:13

Re: [WIP] SailfishOS on Nexus 5
 
ive ordered a nexus 5, waiting on it, cheers for this, itll make my setup much much easier.

but what if you mounted the android data were the sailfish android data is, cant you then have some sort of sync in terms of your applications across the two OSes?

does double tap to wake not work?

llelectronics 2015-02-18 20:05

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

does double tap to wake not work?
No not working


What I also noticed is that on the nexus 5 gstreamer regulary freezes. At least I can't even watch a small movie or clip. LLs video player just freezes and I need to force close it.
Maybe this should be added to the list of problems aswell.
edit: Just to clarify. Audio is working fine. Just video freezes. So might be also a video driver issue.

Demati 2015-02-19 00:50

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1461195)
No not working


What I also noticed is that on the nexus 5 gstreamer regulary freezes. At least I can't even watch a small movie or clip. LLs video player just freezes and I need to force close it.
Maybe this should be added to the list of problems aswell.
edit: Just to clarify. Audio is working fine. Just video freezes. So might be also a video driver issue.

Can you give more information on the codec your videos are using? I don't use video playback often but in my occassional usage I haven't experienced any issues.

llelectronics 2015-02-20 21:40

Re: [WIP] SailfishOS on Nexus 5
 
Oh it doesn really matter. I tried mp4 youtube streams and flv files and ogg files.
Pretty much every video file caused some freeze after a couple minutes.
Sometimes also the video is not shown correctly.

Can you try to reproduce it with LLs video Player ?

BluesLee 2015-02-22 16:49

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by Demati (Post 1461050)
I was tooling around with SFOS on my Nexus 5 this morning and I figured out how to mount Android user data so that it is accessible via SFOS. I did the following:

Code:

devel-su
mkdir /android
mount /dev/mmcblk0p28 /android

User data is then available in:
/android/media/0/

I also updated my fstab file by adding the following line at the end:
Code:

/dev/mmcblk0p28 /android ext4 rw,relatime,data 0 0

Thank you, i added this to the 'Tips and tricks' section.

Quote:

Originally Posted by llelectronics (Post 1461529)
Oh it doesn really matter. I tried mp4 youtube streams and flv files and ogg files.
Pretty much every video file caused some freeze after a couple minutes.
Sometimes also the video is not shown correctly.

Can you try to reproduce it with LLs video Player ?

Reproduced with all available players and added to the list of issues. The usage of videos is overestimated:D

panjgoori 2015-02-22 17:28

Re: [WIP] SailfishOS on Nexus 5
 
A quick question. Is Sailfish OS is also availabe for Galaxy S4 I9505 ? I want to give it a try.

TemeV 2015-02-22 18:30

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by panjgoori (Post 1461687)
A quick question. Is Sailfish OS is also availabe for Galaxy S4 I9505 ? I want to give it a try.

http://talk.maemo.org/showthread.php?t=92506
https://wiki.merproject.org/wiki/Adaptations/libhybris

veeall 2015-02-26 22:06

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by m4r0v3r (Post 1461133)
ive ordered a nexus 5...

I'm thinking about buying one too, to get to see SF on a better glass, but then there's always the update problem, is the work on porting ongoing or do i face a possibility that i have to keep using an old SF release on it at some point, as with n9. Oh, why i'm even asking. ;)

coderus 2015-02-27 01:29

Re: [WIP] SailfishOS on Nexus 5
 
1.1.2.16 for Nexus5: http://images.devaamo.fi/sfa/hammerhead/alpha7/

m4r0v3r 2015-02-27 10:37

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by coderus (Post 1462202)

aside from the tutorial being a bit borked, boots up fine.

BluesLee 2015-02-27 17:46

Re: [WIP] SailfishOS on Nexus 5
 
Good news guys, good news!:D
Quote:

On 2015-02-26
MSameer vgrade: camera is in my hands and it will run soon :) 23:30
vgrade MSameer: no worries, thanks for sensors 23:31
And some hot news:)
Quote:

vakkov GUYS 14:55
vakkov got apkenv working!!!!!! 14:55
I will update the initial post after testing the latest build.

Have fun.

llelectronics 2015-02-27 19:19

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1462264)
Good news guys, good news!:D


For sensors you can probably check the new build http://images.devaamo.fi/sfa/hammerhead/alpha8/

Have fun.

Can't install either of that two zips in there.
Quote:

Error executing updater binary in zip '/tmp/mr_update.zip'
Is what I get in multirom when trying to install.

Demati 2015-02-27 22:34

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1462277)
Can't install either of that two zips in there.


Is what I get in multirom when trying to install.

Same here. I gave up on Alpha 8 for now and installed Alpha 7. Not quite sure what is new with Alpha 7 but so far so good!

m4r0v3r 2015-02-28 14:13

Re: [WIP] SailfishOS on Nexus 5
 
same issue for me, i wouldnt mind helping tbh, but i know literally nothing of C or a linux system

BluesLee 2015-02-28 16:07

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1462277)
Can't install either of that two zips in there.

Quote:

Originally Posted by Demati (Post 1462289)
Same here. I gave up on Alpha 8 for now and installed Alpha 7. Not quite sure what is new with Alpha 7 but so far so good!

Quote:

Originally Posted by m4r0v3r (Post 1462356)
same issue for me, i wouldnt mind helping tbh, but i know literally nothing of C or a linux system

Please try again with the new alpha 8 build - quicktest was okay for me (installation with multirom and sensors)

http://images.devaamo.fi/sfa/hammerh...1502281513.zip

m4r0v3r 2015-02-28 17:18

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1462370)
Please try again with the new alpha 8 build - quicktest was okay for me (installation with multirom and sensors)

http://images.devaamo.fi/sfa/hammerh...1502281513.zip

attempted it, doesnt boot, gets to the google screen, then reboots

llelectronics 2015-02-28 21:23

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1462370)
Please try again with the new alpha 8 build - quicktest was okay for me (installation with multirom and sensors)

http://images.devaamo.fi/sfa/hammerh...1502281513.zip

Yeah installs and boots fine. Auto orientation works.
Camera not. It opens a white window (seems like some qml components are missing) . See the error reported in terminal :

Code:

[W] unknown:20 - file:///usr/share/jolla-camera/camera.qml:20:9: Type CameraPage unavailable
            CameraPage {
            ^
[W] unknown:96 - file:///usr/share/jolla-camera/pages/CameraPage.qml:96:13: Type CaptureView unavailable
                CaptureView {
                ^
[W] unknown:3 - file:///usr/share/jolla-camera/pages/capture/CaptureView.qml:3:1: module "QtPositioning" is not installed
    import QtPositioning 5.1
    ^

The strange thing is that I am not able to install anything from store or via rpm.
Even pkcon refresh is throwing an Authentification failed

Update: After disabling the adaptation0 repo everything seems to work again. You can do that with

Code:

ssu dr adaptation0
Update 2: Ok the adaptation0 provides gstreamer plugins I guess as I cannot get videos running (Gstreamer is missing a plugin error)

So I guess this needs another fix.

m4r0v3r 2015-02-28 23:51

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1462393)
Yeah installs and boots fine. Auto orientation works.
Camera not. It opens a white window (seems like some qml components are missing) . See the error reported in terminal :

Code:

[W] unknown:20 - file:///usr/share/jolla-camera/camera.qml:20:9: Type CameraPage unavailable
            CameraPage {
            ^
[W] unknown:96 - file:///usr/share/jolla-camera/pages/CameraPage.qml:96:13: Type CaptureView unavailable
                CaptureView {
                ^
[W] unknown:3 - file:///usr/share/jolla-camera/pages/capture/CaptureView.qml:3:1: module "QtPositioning" is not installed
    import QtPositioning 5.1
    ^

The strange thing is that I am not able to install anything from store or via rpm.
Even pkcon refresh is throwing an Authentification failed

Update: After disabling the adaptation0 repo everything seems to work again. You can do that with

Code:

ssu dr adaptation0
Update 2: Ok the adaptation0 provides gstreamer plugins I guess as I cannot get videos running (Gstreamer is missing a plugin error)

So I guess this needs another fix.

that is indeed odd, and someones porting gstreamer 1.0

edit: after a redownload and reinstall it works,

coderus 2015-03-01 09:35

Re: [WIP] SailfishOS on Nexus 5
 
Alpha8 with sensors support: http://images.devaamo.fi/sfa/hammerhead/alpha8/

BluesLee 2015-03-01 10:55

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1462393)
Yeah installs and boots fine. Auto orientation works.
Camera not. It opens a white window (seems like some qml components are missing) . See the error reported in terminal :

Code:

[W] unknown:20 - file:///usr/share/jolla-camera/camera.qml:20:9: Type CameraPage unavailable
            CameraPage {
            ^
[W] unknown:96 - file:///usr/share/jolla-camera/pages/CameraPage.qml:96:13: Type CaptureView unavailable
                CaptureView {
                ^
[W] unknown:3 - file:///usr/share/jolla-camera/pages/capture/CaptureView.qml:3:1: module "QtPositioning" is not installed
    import QtPositioning 5.1
    ^

The strange thing is that I am not able to install anything from store or via rpm.
Even pkcon refresh is throwing an Authentification failed

Update: After disabling the adaptation0 repo everything seems to work again. You can do that with

Code:

ssu dr adaptation0
Update 2: Ok the adaptation0 provides gstreamer plugins I guess as I cannot get videos running (Gstreamer is missing a plugin error)

So I guess this needs another fix.

Thank you for testing.

Maybe my post regarding alpha 8 was misleading and enthusiastic. It was not meant to fix camera issues which will be available after MWC.

I will address the store issues. Fix for terminal keyboard size is not included too.

BluesLee 2015-03-06 05:42

Re: [WIP] SailfishOS on Nexus 5
 
Some video content you might like:D

Sailfish OS 2.0 su Nexus 5, hands-on dal #MWC15 and
Sailfish OS 2.0 su Nexus 5 #MWC15

Morpog 2015-03-06 06:03

Re: [WIP] SailfishOS on Nexus 5
 
Last video is quite interesting. As you can see the events view is missing quick toggles on the phone :(

But what I haven't seen in any video before is tapping on homescreen and first line of app drawer is appearing. Kinda like the swipe in from bottom on N9.

llelectronics 2015-03-06 16:30

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Last video is quite interesting. As you can see the events view is missing quick toggles on the phone
From what I saw in the demo devices so far they might end up in the swipe down menu that shows all the ambiances. Left besides the ambiances you find different icons like silent and so on. They might of course be binded to the ambiance itself. But I could imagine the possibility to integrate quick toggles there.

m4r0v3r 2015-03-07 10:10

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by BluesLee (Post 1463196)

holyy ****k

:D

i wonder if GPS works too, id instantly switch over if it did

mikelima 2015-03-07 23:09

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1463264)
From what I saw in the demo devices so far they might end up in the swipe down menu that shows all the ambiances. Left besides the ambiances you find different icons like silent and so on. They might of course be binded to the ambiance itself. But I could imagine the possibility to integrate quick toggles there.

I think those icons are there to show how the ambience is configured to work, but I doubt they are directly usable to activate or deactivate the feature. But you can select different ambiences with the needed features directly enabled.

They are an interesting mode to customize the phone. One of the ambiences in the nexus 5 demo has a bluetooth icon, one a silence mode, plus an "1H" badge on the right... which may mean you can "daisy chain" ambiences, or maybe make them active for a predefined time. If the notification screen can be changed depending on the active ambience as well, and the notification API becoms public, I think many applications will benefit from this.

I suppose shortcuts will be made available in the phone form factor as well, maybe it is not yet implemented.

m4r0v3r 2015-03-08 11:24

Re: [WIP] SailfishOS on Nexus 5
 
i wonder if the slight lag is fixed. During any of the alphas inside the Warehouse app when transitioning between the page stacks there was some jerkiness. its obviously not the hardware, but something in there not quite right.

llelectronics 2015-03-08 11:38

Re: [WIP] SailfishOS on Nexus 5
 
I think the graphicsdriver is not optimized at all at the moment. Not sure if even hardware acceleration is turned on.
Try scrolling with webcat. This is really awful to look at as it is dropping frames like crazy.

m4r0v3r 2015-03-08 15:26

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by llelectronics (Post 1463419)
I think the graphicsdriver is not optimized at all at the moment. Not sure if even hardware acceleration is turned on.
Try scrolling with webcat. This is really awful to look at as it is dropping frames like crazy.

dont think i care tbh, i just really want it now lol, or atleast that level of hardware support on sailfish 1.x

iKozzz 2015-03-08 21:29

Re: [WIP] SailfishOS on Nexus 5
 
Hello!
I found steps when audio begins to lag.
using alpha8.

Audio lags when:
Screen is ON.
and
You make manipulations with sensors (cover proximity sensor or rotating device)

What is affected: Audio player, Ringtone(select ringtone, some one's calling)

What doesn't affected: Video is not affected by this method. Rotating or covering sensor doesn't make any visual artifacts or audio distortions.

P.S.
Does anyone know where to get "fluendo-mp3-armv7hl.rpm" in order to gain mp3 support?
Is it a good idea to build a package from this: https://core.fluendo.com/gstreamer/s...st-fluendo-mp3

thanks.

Demati 2015-03-09 11:26

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by m4r0v3r (Post 1463315)
holyy ****k

:D

i wonder if GPS works too, id instantly switch over if it did

The only issue is that we won't really know how well the GPS sensor works. You need an Android Compatibility Layer to have any sort of mapping or navigation. I just don't know how you would test/use GPS without it.

juiceme 2015-03-09 18:27

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by Demati (Post 1463515)
The only issue is that we won't really know how well the GPS sensor works. You need an Android Compatibility Layer to have any sort of mapping or navigation. I just don't know how you would test/use GPS without it.

Really? How come?
Why not test with Rena for example?

mosen 2015-03-09 20:25

Re: [WIP] SailfishOS on Nexus 5
 
Another SF2.0 on Nexus 5 Video by Jolla Users from MWC

m4r0v3r 2015-03-10 10:10

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by Demati (Post 1463515)
The only issue is that we won't really know how well the GPS sensor works. You need an Android Compatibility Layer to have any sort of mapping or navigation. I just don't know how you would test/use GPS without it.

cant you test with HERE maps? Or is that only for Jolla?

coderus 2015-03-10 10:32

Re: [WIP] SailfishOS on Nexus 5
 
There is native PoorMaps for example.

Demati 2015-03-13 11:43

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by m4r0v3r (Post 1463612)
cant you test with HERE maps? Or is that only for Jolla?

HERE requires an Android runtime environment which we don't have on the Nexus 5. I don't think we'll be testing that any time soon.

Quote:

Originally Posted by coderus
There is native PoorMaps for example.

I wasn't aware of this! I'll look for it and try to test this weekend. I haven't flashed to Alpha 8 yet but once I do this will be one of the first things I try.

MartinK 2015-03-13 15:44

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by coderus (Post 1463614)
There is native PoorMaps for example.

ModRana should also run fine - I have seen it already seen it multiple times running on Sailfish OS on devices other than the Jolla. :)

Only issue I have seen was the missing qt5-qtdeclarative-import-sensors package, which is AFAIK always installed on the Jolla but not always on other devices. This can be fixed like this (as root):

Code:

zypper in qt5-qtdeclarative-import-sensors
(And I really need to finally add it as a modRana dependency. :) )

nh1402 2015-03-13 17:41

Re: [WIP] SailfishOS on Nexus 5
 
Quote:

Originally Posted by Demati (Post 1463950)
HERE requires an Android runtime environment which we don't have on the Nexus 5. I don't think we'll be testing that any time soon.

Don't be so sure about that. I'm trying to get it working but no one who knows about android internals is helping me. I can "boot" into CM11 and get to the setup page, but touch input isn't working so I can't get past that and I don't know how to fix it yet.


All times are GMT. The time now is 04:01.

vBulletin® Version 3.8.8