maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

abyzthomas 2016-12-14 17:13

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1520552)
The problem is the SFOS 2.0.4.13 image, which prevents SFDroid from starting. You need to reinstall using the image 2.0.1.11 image of the first post. You can upgrade to the latest SFOS version afterwards.

There is a problem with 2.0.1.11 image with the phone call echoing at the call recipient end. Someone mentioned that 2.0.4.13 fixes this issue and from my limited use, I can kind confirm it is resolved. Now if someone knows and can tell us how we can apply that fix to 2.0.1.11 image or after installation, that would be great.

abyzthomas 2016-12-14 17:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by F0x123 (Post 1520560)
Hey, sfdroid is running :)
Can I use whatsapp and get push notifications?

Whatsapp works


Quote:

Originally Posted by F0x123 (Post 1520560)
And also how can I update SFOS to the latest version? System update tells me the version is the latest, which is not true...

Just follow the instructions on the first post.

Set RELEASE=2.0.5.6

claustn 2016-12-14 17:27

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by abyzthomas (Post 1520564)
Whatsapp works

Yes, but without notification in Sailfish, as he asked

mautz 2016-12-14 19:06

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by abyzthomas (Post 1520563)
There is a problem with 2.0.1.11 image with the phone call echoing at the call recipient end. Someone mentioned that 2.0.4.13 fixes this issue and from my limited use, I can kind confirm it is resolved. Now if someone knows and can tell us how we can apply that fix to 2.0.1.11 image or after installation, that would be great.

Take a look here: https://talk.maemo.org/showpost.php?...&postcount=215

F0x123 2016-12-14 20:11

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by abyzthomas (Post 1520564)
Whatsapp works




Just follow the instructions on the first post.

Set RELEASE=2.0.5.6

Yes I have seen that. But I am new in this topic so I do not know how to start/use that script. I think somehow with the terminal in SFOS.

minimec 2016-12-14 21:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by F0x123 (Post 1520572)
Yes I have seen that. But I am new in this topic so I do not know how to start/use that script. I think somehow with the terminal in SFOS.

I would establish a ssh connection with your computer. You can do this in >Settings>'Developer mode'. It makes the upgrade process much easier. You can then connect to the phone with 'ssh nemo@<phone_ip>'.

The upgrade process is not a script, but a chain of different terminal commands. I suggest that you did not yet enable some 'openrepos' repositories.

First... Make sure that 'zypper' is installed
Code:

devel-su pkcon install zypper
Upgrade procedure

1. assign version to variable
Code:

RELEASE=2.0.5.6
2. put the device in release mode
Code:

ssu release $RELEASE
3. Add the Nexus 5 'adaptation0' repository
Code:

devel-su sed -i -e 's#^adaptation=.*$#adaptation=http://repo.merproject.org/obs/home:/RealJohnGalt:/testing:/hammerhead/sailfish_latest_armv7hl/#' \
/usr/share/ssu/repos.ini

4. delete/add/enable 'mw' repository (3 commands)
Code:

ssu dr mw
ssu ar mw http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_armv7hl/
ssu er mw

5. list repositories (check your changes)
Code:

ssu lr
6. clean/refresh database (2 commands)
Code:

devel-su zypper clean -a
devel-su zypper ref -f

7. start upgrade (That will take a long time. At least 1 hour or even more.)
Code:

version --dup
At some point, the upgrade will stop and 'hang'. Probably at a package similar to 'sociald-onedrive-signon' or so. The upgrade should be more than 80% done (that is my experience). Remember that package name... (write it down somewhere) and abort the installation with 'CTRL+C'.

8. sync/reboot (2 commands). You may have to force shutdown with a 'long press' on the power button.
Code:

sync
reboot

9. reinstall last package
Code:

devel-su zypper in -f <last package>
10. continue with 'version --dup' / sync / reboot
Code:

version --dup
sync
reboot

The upgrade should now be complete. In case the store is not working, disable the 'adaptation0' repository and refresh the database...
Code:

devel-su dr adaptation0
devel-su zypper ref

Update: I changed the procedure to match the indications of the first post in this thread.

mautz 2016-12-14 22:02

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
@ minimec

Nice guide!

The installation up to the crash at around 80% takes around 2 hours...you'll have to abort the installation yourself with 'CTRL+C'.

I always do a 'version --dup' again to install the missing packages, it only takes a few minutes.

mautz 2016-12-14 22:04

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I compiled a new kernel of the cyaonegnmod 12.1-CAF source.

Kernel boots, but lipstick doesn't start.

I get the following error message in journalctl:

Code:

localhost mce[740]: modules/display.c: mdy_stm_step(): ui
start failed, retrying

Any ideas?

minimec 2016-12-14 22:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1520577)
@ minimec

Nice guide!

The installation up to the crash at around 80% takes around 2 hours...

I always to a version --dup again to install the missing packages, only takes a few minutes.

Yeah. I did that too, but had problems two times now. Last time was the upgrade to 2.0.5.6. It installed 'mesa-llvmpipe' and removed a lot of packages of the 'adaptation0' repository. I lost the whole lipstick GUI interface and had to debug...

Update: The problem I faced may be related to the fact, that I disabled the 'adaptation0' repository too early.

deprecated 2016-12-14 22:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by abyzthomas (Post 1520563)
There is a problem with 2.0.1.11 image with the phone call echoing at the call recipient end. Someone mentioned that 2.0.4.13 fixes this issue and from my limited use, I can kind confirm it is resolved. Now if someone knows and can tell us how we can apply that fix to 2.0.1.11 image or after installation, that would be great.

I fixed echoing in the 2.0.1.11 image (old, original hardware adaptation - it is fixed in the 2.0.4.13 image) some time ago. I posted my solution in this thread:

http://talk.maemo.org/showpost.php?p...&postcount=215

With those fixes, it doesn't echo, and the microphone sounds great. Those edits aren't necessary in the newer hardware adaptation, but I guess you need it for sfdroid. Let me know if I can be of further assistance! :D

F0x123 2016-12-14 22:19

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Thank you very much! I will try that tomorrow if that takes so much time.

Besides, is there any hope left, that there will be an official release of SFOS for Fairphone 2? Or that a device like the nexus 5 will get a better android app support / alien dalvik support? This is the last thing keeping me and my family on android.

nh1402 2016-12-15 08:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by F0x123 (Post 1520560)
Hey, sfdroid is running :) Thank you very much for your support!

Is there any how to for sfdroid.
I am looking for answer for issues like:
How can I start an android app directly from SFOS?
Can I use paid apps from google play?
Can I use whatsapp and get push notifications?

And also how can I update SFOS to the latest version? System update tells me the version is the latest, which is not true...

  1. You can't, yet.
  2. Yes
  3. yes and then not quite (You'll get the notifications in Android, but not in Sailfish)

The questions you've asked are actually my tasks to complete, I just haven't had the time to get to work on it yet, should do soon though.

minimec 2016-12-15 12:42

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1520578)
I compiled a new kernel of the cyaonegnmod 12.1-CAF source.

Kernel boots, but lipstick doesn't start.

I get the following error message in journalctl:

Code:

localhost mce[740]: modules/display.c: mdy_stm_step(): ui
start failed, retrying

Any ideas?

The relevant function is here... https://git.merproject.org/mer-core/...4a1846d2bfc6d4

Could be a problem with the 'frame buffer device' or the 'hardware compositor' ( be aware that I am not a developer... ;) )

You could test the hardware compositor ( --> 'test_hwcomposer' ), but on my device 'test_hwcomposer' fails with 'Segmentation fault' after displaying the screen resolution.

abyzthomas 2016-12-15 14:05

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by nh1402 (Post 1520588)
[LIST=1]
I just haven't had the time to get to work on it yet, should do soon though.

First of all, thank you for your great work on sfdroid.

Do you have any idea why the 2.0.4.13 image fails to start the sfdroid? I like to use that image because it has much better audio for phone calls. @deprecated suggested edit /system/build.prop for 2.0.1.11 is not giving me the same results as 2.0.4.13 image.

I appreciate your help.

mautz 2016-12-17 06:04

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I'm a little bit tired at the moment backporting so many stuff to our old kernel, so i started to make a cm13 port for the Nexus. I ran in a few troubles building libhybris, hope to find a solution. I'll keep you updated :-)

deprecated 2016-12-17 18:11

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1520637)
I'm a little bit tired at the moment backporting so many stuff to our old kernel, so i started to make a cm13 port for the Nexus. I ran in a few troubles building libhybris, hope to find a solution. I'll keep you updated :-)

@mautz, you've already done incredible work. I, for one, am extremely grateful. If you're successful in porting cm13 with libhybris, that will just extend the life of our N5's. I'm happy with mine, as is, but I welcome your efforts!

Meanwhile, I think I'm going to start with the HADK to bring it over to my Nexus 6 and/or Nexus 5X. We'll see!

maximilian1st 2016-12-17 23:40

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by minimec (Post 1520576)
...At some point, the upgrade will stop and 'hang'. Probably at a package similar to 'sociald-onedrive-signon' or so. The upgrade should be more than 80% done (that is my experience). Remember that package name... (write it down somewhere) and abort the installation with 'CTRL+C'.

8. sync/reboot (2 commands). You may have to force shutdown with a 'long press' on the power button.
Code:

sync
reboot

9. reinstall last package
Code:

devel-su zypper in -f <last package>
10. continue with 'version --dup' / sync / reboot
Code:

version --dup
sync
reboot

The upgrade should now be complete. In case the store is not working, disable the 'adaptation0' repository and refresh the database...
Code:

devel-su dr adaptation0
devel-su zypper ref

Update: I changed the procedure to match the indications of the first post in this thread.

Very good guide to upgrade, you might want to emphasize that the upgrade really takes two hours to complete.

During the upgrade from 2.0.1.11 to 2.0.4.13 (I use the 2.0.4.13 version because of another phone and it's backup) I came across the 80% stall and had to CTRL-c and follow the procedures as explained above. After a forced shutdown and reboot I got this message while reconnecting via SSH
Code:

NOTICE: Env value ignored HYBRIS_LD_LIBRARY_PATH=/usr/libexec/droid-hybris/system/lib:/vendor/lib:/system/lib
,---
| SailfishOS 2.0.4.13 (Fiskarsinjoki) (armv7hl)
'---
[nemo@Nexus5 ~]$ version --dup
REFRESHING CACHE AND DOWNLOADING PACKAGES
[W] QDBusConnectionPrivate::serviceOwnerChangedNoLock:1280 - QDBusConnection: name 'org.freedesktop.PackageKit' had owner '' but we thought it was ':1.58'
Refreshing: 83%
Message: adaptation0: Store credentials not received. Connection was disconnected before a reply was received
store: Store credentials not received. Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Finished transaction (status=1, runtime=53501ms)
UPGRADING SYSTEM
[95 %] [Install] ohm-plugins-misc 1.2.1-1.14.1: [100 %]^C

Not sure what the "Env value ignored" message means at the start of the SSH connection but I had to CTRL-c again as the "version --dup" stopped again at 95% this time. Same procedure "sync/reboot/SSHlogin" but now the "version --dup" will fail with the following error
Code:

[nemo@Nexus5 ~]$ version --dup
REFRESHING CACHE AND DOWNLOADING PACKAGES
[W] QDBusConnectionPrivate::serviceOwnerChangedNoLock:1280 - QDBusConnection: name 'org.freedesktop.PackageKit' had owner '' but we thought it was ':1.91'
Refreshing: 0%
Error: File '/repodata/repomd.xml' not found on medium 'https://store-repository.jolla.com/releases/2.0.4.13/jolla-hw/adaptation-lge-hammerhead/armv7hl/?credentials=store'

Finished transaction (status=2, runtime=3187ms)
UPGRADE NOT COMPLETE - Retry 1 of 9

Do I have a broken upgrade that stopped at 95%?

deprecated 2016-12-18 04:00

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by maximilian1st (Post 1520675)
"version --dup" will fail with the following error
Code:

[nemo@Nexus5 ~]$ version --dup
REFRESHING CACHE AND DOWNLOADING PACKAGES
[W] QDBusConnectionPrivate::serviceOwnerChangedNoLock:1280 - QDBusConnection: name 'org.freedesktop.PackageKit' had owner '' but we thought it was ':1.91'
Refreshing: 0%
Error: File '/repodata/repomd.xml' not found on medium 'https://store-repository.jolla.com/releases/2.0.4.13/jolla-hw/adaptation-lge-hammerhead/armv7hl/?credentials=store'

Finished transaction (status=2, runtime=3187ms)
UPGRADE NOT COMPLETE - Retry 1 of 9

Do I have a broken upgrade that stopped at 95%?

ssu dr adaptation0
pkcon refresh
then try the version --dup again. The process typically re-enables adaptation0 repository, running that will clean it up.

Edit: also remember to manually install whatever package(s) the upgrade fails on following the reboot, using pkcon install <packagename>

Let me know if I can be of any assistance!

maximilian1st 2016-12-18 07:49

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1520681)
...The process typically re-enables adaptation0 repository, running that will clean it up....

That's the info one needs to know. Is there any way to contact the original poster and add up a lot of all these tips and tricks in the OP? He seems to have disappeared since June.
Thank you and all of the smart devs for your input and be sure that a lot of silent users thank you the same way ;-)

EDIT: Haha, I spoke too fast, SFOS does not boot anymore but I have a backup \o/
This is what the "version --dup" did:
Code:

[root@Nexus5 nemo]# ssu dr adaptation0
[root@Nexus5 nemo]# pkcon refresh
Refreshing cache                                                                                                                     
Waiting in queue                                                                                                                     
Waiting for authentication                                                                                                           
Waiting in queue                                                                                                                     
Starting                                                                                                                             
Refreshing software list                                                                                                             
[root@Nexus5 nemo]# version --dup
REFRESHING CACHE AND DOWNLOADING PACKAGES
Finished transaction (status=1, runtime=48089ms)
UPGRADING SYSTEM
Finished transaction (status=1, runtime=12884ms)
FINISHING

Remove (24 packages)
 - droid-config-hammerhead-policy-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - droid-config-hammerhead-pulseaudio-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - geoclue-provider-hybris;0.2.4-10.2.1.jolla;armv7hl;installed
 - gstreamer1.0-droid;0.20161124.0-10.8.2.jolla;armv7hl;installed
 - hybris-libsensorfw-qt5;0.8.28-10.2.1.jolla;armv7hl;installed
 - libhybris-libEGL;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libGLESv1;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libGLESv2;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libOpenCL;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libOpenVG;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libhardware;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libnfc;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libsync;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libvibrator;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libwayland-egl;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-tests;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - mce-plugin-libhybris;1.7.0-10.2.2.jolla;armv7hl;installed
 - ngfd-plugin-droid-vibrator;0.91.1-10.2.2.jolla;armv7hl;installed
 - pulseaudio-modules-droid-common;8.0.51-10.2.1.jolla;armv7hl;installed
 - pulseaudio-modules-droid-glue;6.0.1-10.1.1.jolla;armv7hl;installed
 - pulseaudio-modules-droid;8.0.51-10.2.1.jolla;armv7hl;installed
 - qt5-feedback-haptics-droid-vibrator;0.0.4-10.1.1.jolla;armv7hl;installed
 - qt5-qpa-hwcomposer-plugin;5.1.0.15-10.2.3.jolla;armv7hl;installed

Download (14 packages)
 - libdrm;2.4.39-1.1.3;armv7hl;jolla
 - mesa-llvmpipe-libEGL;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libGLESv2;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libglapi;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libwayland-egl;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe;9.2.5+git2-1.3.21;armv7hl;jolla
 - ofono-configs-mer;1.18+git7-10.6.2.jolla;armv7hl;mw
 - ohm-configs-default;1.1.20.1-1.7.5;armv7hl;jolla
 - pulseaudio-modules-nemo-common;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-mainvolume;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-parameters;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-stream-restore;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-policy-enforcement;8.0.26-1.20.2;armv7hl;jolla
 - pulseaudio;8.0+git4-1.20.2;armv7hl;jolla

Install (18 packages)
 - droid-config-hammerhead-policy-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - gstreamer1.0-droid;0.20161124.0-10.8.2.jolla;armv7hl;installed
 - libdrm;2.4.39-1.1.3;armv7hl;jolla
 - libhybris;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - mesa-llvmpipe-libEGL;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libGLESv2;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libglapi;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libwayland-egl;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe;9.2.5+git2-1.3.21;armv7hl;jolla
 - ngfd-plugin-droid-vibrator;0.91.1-10.2.2.jolla;armv7hl;installed
 - ofono-configs-mer;1.18+git7-10.6.2.jolla;armv7hl;mw
 - ohm-configs-default;1.1.20.1-1.7.5;armv7hl;jolla
 - pulseaudio-modules-nemo-common;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-mainvolume;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-parameters;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-stream-restore;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-policy-enforcement;8.0.26-1.20.2;armv7hl;jolla
 - pulseaudio;8.0+git4-1.20.2;armv7hl;jolla

<Status 18> (1 packages)
 - ofono-configs-mer;1.18+git7-10.6.2.jolla;armv7hl;mw

REBOOT NOW unless you need to investigate update
issues or know what you are doing (or both).

All bugs encountered until reboot are features.

[root@Nexus5 nemo]# sync
[root@Nexus5 nemo]# reboot

Does it remove and reinstall packages when it says
Code:

Remove (24 packages)
 - droid-config-hammerhead-policy-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - droid-config-hammerhead-pulseaudio-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - geoclue-provider-hybris;0.2.4-10.2.1.jolla;armv7hl;installed
 - gstreamer1.0-droid;0.20161124.0-10.8.2.jolla;armv7hl;installed
 - hybris-libsensorfw-qt5;0.8.28-10.2.1.jolla;armv7hl;installed
 - libhybris-libEGL;0.0.5.17-10.2.1.jolla;armv7hl;installed

So I flash again using the info on the first page and adding the kernel with 100hz by minimec.

deprecated 2016-12-19 03:44

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by maximilian1st (Post 1520686)
That's the info one needs to know. Is there any way to contact the original poster and add up a lot of all these tips and tricks in the OP? He seems to have disappeared since June.
Thank you and all of the smart devs for your input and be sure that a lot of silent users thank you the same way ;-)

EDIT: Haha, I spoke too fast, SFOS does not boot anymore but I have a backup \o/
This is what the "version --dup" did:
Code:

[root@Nexus5 nemo]# ssu dr adaptation0
[root@Nexus5 nemo]# pkcon refresh
Refreshing cache                                                                                                                     
Waiting in queue                                                                                                                     
Waiting for authentication                                                                                                           
Waiting in queue                                                                                                                     
Starting                                                                                                                             
Refreshing software list                                                                                                             
[root@Nexus5 nemo]# version --dup
REFRESHING CACHE AND DOWNLOADING PACKAGES
Finished transaction (status=1, runtime=48089ms)
UPGRADING SYSTEM
Finished transaction (status=1, runtime=12884ms)
FINISHING

Remove (24 packages)
 - droid-config-hammerhead-policy-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - droid-config-hammerhead-pulseaudio-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - geoclue-provider-hybris;0.2.4-10.2.1.jolla;armv7hl;installed
 - gstreamer1.0-droid;0.20161124.0-10.8.2.jolla;armv7hl;installed
 - hybris-libsensorfw-qt5;0.8.28-10.2.1.jolla;armv7hl;installed
 - libhybris-libEGL;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libGLESv1;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libGLESv2;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libOpenCL;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libOpenVG;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libhardware;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libnfc;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libsync;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libvibrator;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-libwayland-egl;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris-tests;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - libhybris;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - mce-plugin-libhybris;1.7.0-10.2.2.jolla;armv7hl;installed
 - ngfd-plugin-droid-vibrator;0.91.1-10.2.2.jolla;armv7hl;installed
 - pulseaudio-modules-droid-common;8.0.51-10.2.1.jolla;armv7hl;installed
 - pulseaudio-modules-droid-glue;6.0.1-10.1.1.jolla;armv7hl;installed
 - pulseaudio-modules-droid;8.0.51-10.2.1.jolla;armv7hl;installed
 - qt5-feedback-haptics-droid-vibrator;0.0.4-10.1.1.jolla;armv7hl;installed
 - qt5-qpa-hwcomposer-plugin;5.1.0.15-10.2.3.jolla;armv7hl;installed

Download (14 packages)
 - libdrm;2.4.39-1.1.3;armv7hl;jolla
 - mesa-llvmpipe-libEGL;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libGLESv2;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libglapi;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libwayland-egl;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe;9.2.5+git2-1.3.21;armv7hl;jolla
 - ofono-configs-mer;1.18+git7-10.6.2.jolla;armv7hl;mw
 - ohm-configs-default;1.1.20.1-1.7.5;armv7hl;jolla
 - pulseaudio-modules-nemo-common;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-mainvolume;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-parameters;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-stream-restore;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-policy-enforcement;8.0.26-1.20.2;armv7hl;jolla
 - pulseaudio;8.0+git4-1.20.2;armv7hl;jolla

Install (18 packages)
 - droid-config-hammerhead-policy-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - gstreamer1.0-droid;0.20161124.0-10.8.2.jolla;armv7hl;installed
 - libdrm;2.4.39-1.1.3;armv7hl;jolla
 - libhybris;0.0.5.17-10.2.1.jolla;armv7hl;installed
 - mesa-llvmpipe-libEGL;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libGLESv2;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libglapi;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe-libwayland-egl;9.2.5+git2-1.3.21;armv7hl;jolla
 - mesa-llvmpipe;9.2.5+git2-1.3.21;armv7hl;jolla
 - ngfd-plugin-droid-vibrator;0.91.1-10.2.2.jolla;armv7hl;installed
 - ofono-configs-mer;1.18+git7-10.6.2.jolla;armv7hl;mw
 - ohm-configs-default;1.1.20.1-1.7.5;armv7hl;jolla
 - pulseaudio-modules-nemo-common;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-mainvolume;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-parameters;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-modules-nemo-stream-restore;8.0.22-1.14.3;armv7hl;jolla
 - pulseaudio-policy-enforcement;8.0.26-1.20.2;armv7hl;jolla
 - pulseaudio;8.0+git4-1.20.2;armv7hl;jolla

<Status 18> (1 packages)
 - ofono-configs-mer;1.18+git7-10.6.2.jolla;armv7hl;mw

REBOOT NOW unless you need to investigate update
issues or know what you are doing (or both).

All bugs encountered until reboot are features.

[root@Nexus5 nemo]# sync
[root@Nexus5 nemo]# reboot

Does it remove and reinstall packages when it says
Code:

Remove (24 packages)
 - droid-config-hammerhead-policy-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - droid-config-hammerhead-pulseaudio-settings;0.0.1+master.20160731205022.7.gb89d413-10.5.3.jolla;armv7hl;installed
 - geoclue-provider-hybris;0.2.4-10.2.1.jolla;armv7hl;installed
 - gstreamer1.0-droid;0.20161124.0-10.8.2.jolla;armv7hl;installed
 - hybris-libsensorfw-qt5;0.8.28-10.2.1.jolla;armv7hl;installed
 - libhybris-libEGL;0.0.5.17-10.2.1.jolla;armv7hl;installed

So I flash again using the info on the first page and adding the kernel with 100hz by minimec.

Yeah, unfortunately sometimes the interruption does break the install. Typically if I have to reboot and restart more than once, then I can count on the process failing. It seems hit or miss, and there's really no prediction on the behavior. I'm trying to figure out a workaround.

FWIW, still writing the table to serve as a knowledgebase for which settings perform best with the best battery savings. I've gone away from msm-mpdecision lately, so still testing and I'll have the table done ASAP.

maximilian1st 2016-12-19 07:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1520738)
FWIW, still writing the table to serve as a knowledgebase for which settings perform best with the best battery savings. I've gone away from msm-mpdecision lately, so still testing and I'll have the table done ASAP.

Don't hesitate to post even a draft of your knowledge base. At the moment I can see the phone go from fully charged to empty in one night.

claustn 2016-12-19 17:03

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by maximilian1st (Post 1520743)
Don't hesitate to post even a draft of your knowledge base. At the moment I can see the phone go from fully charged to empty in one night.

download an app like sysmon to keep controlled your cpu usage. It happens that it remains to 60% even with no app opened, then the solution could be restart the phone. If someone knows how to kill processes that cause it, please tell us how to do it!

klinglerware 2016-12-19 19:39

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1519389)
Regarding the GPS issue above:

I've fixed the GPS issues on my end. I'm using an old baseband and I made some edits to /system/etc/gps.conf:

I'd like to edit gps.conf to see if editing the NTP Server makes a difference (the default already points to the google supl server), but /system/etc/ appears to be a read-only folder. Any thoughts on how I can give myself write permission?

claustn 2016-12-19 19:49

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by klinglerware (Post 1520777)
I'd like to edit gps.conf to see if editing the NTP Server makes a difference (the default already points to the google supl server), but /system/etc/ appears to be a read-only folder. Any thoughts on how I can give myself write permission?

maybe using a root enabled file manager? As filecase root for example.

deprecated 2016-12-19 21:42

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by klinglerware (Post 1520777)
I'd like to edit gps.conf to see if editing the NTP Server makes a difference (the default already points to the google supl server), but /system/etc/ appears to be a read-only folder. Any thoughts on how I can give myself write permission?

You can mount /system as read/write with:
Code:

devel-su mount /system -o remount,rw,relatime,data=ordered
This is temporary and will revert to read-only on reboot.

You can verify it is now mounted read/write with:
Code:

[nemo@Sailfish ~]$ mount | grep /dev/mmcblk0p25
You should see a result like (note the "rw". If it were read only, it would be "ro"):
Code:

/dev/mmcblk0p25 on /system type ext4 (rw,relatime,data=ordered)

klinglerware 2016-12-19 23:52

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1520785)
You can mount /system as read/write with:
Code:

devel-su mount /system -o remount,rw,relatime,data=ordered

Thank you. I was able to successfully edit gps.conf in vi.

Agps now seems to work for me (i.e., I can generally get a fix in seconds now, compared to several minutes with gps only), with a change to an ntp.org NTP server. Flashing the radio was unnecessary.

In the Settings>Location menu, clicking "High-accuracy positioning" and "Device-only mode" seems to work the best for me, though I did not test that rigorously (so that may not be a real finding).

I am on the hardware adaptation associated with the CM12 2.0.1.11 image, OTA'd to 2.0.5.6...

deprecated 2016-12-20 00:14

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by klinglerware (Post 1520793)
Thank you. I was able to successfully edit gps.conf in vi.

Agps now seems to work for me (i.e., I can generally get a fix in seconds now, compared to several minutes with gps only), with a change to an ntp.org NTP server. Flashing the radio was unnecessary.

In the Settings>Location menu, clicking "High-accuracy positioning" and "Device-only mode" seems to work the best for me, though I did not test that rigorously (so that may not be a real finding).

I am on the hardware adaptation associated with the CM12 2.0.1.11 image, OTA'd to 2.0.5.6...

Glad that worked for you. It may be my region or environment, but GPS only worked for me after the edits to gps.conf AND the baseband from 4.4.3. May I ask what GPS app you're using on 2.0.5.6?

klinglerware 2016-12-20 01:52

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1520794)
Glad that worked for you. It may be my region or environment, but GPS only worked for me after the edits to gps.conf AND the baseband from 4.4.3. May I ask what GPS app you're using on 2.0.5.6?

I use the latest version of Poor Maps.

The Nexus 5 is really nice on paper, and when it works. But it seems like you don't know what you are going to get with the hardware. I've returned one because LTE didn't work, and then I returned another one where LTE worked but not wifi. I completely believe a situation where reverting to an older radio would be a legitimate fix for one group of owners, unnecessary for a second group, and unworkable for a third.

Say what you will about the old Nokia, but you could generally rely on build quality meeting a certain standard.

deprecated 2016-12-20 05:51

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by klinglerware (Post 1520796)
Say what you will about the old Nokia, but you could generally rely on build quality meeting a certain standard.

Absolutely. Prior to the Stephen Elop takeover, Nokia were incredible devices in QA and build quality, especially those made in Finland. That's because they have always been PROUD of their image and brand, not just their bottom line. It's a shame that, even though the N9 design lived on in Lumia models, Nokia has been reduced to a Windows OEM farm. :(

mautz 2016-12-21 23:12

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
So, i kind of got cm13 working on our Nexus5...

First i wanna thank all the people of #sailfish-porters who helped me..thank you guys!

Today i installed my first compiled version and it booted :)

But that is so far the only thing its doing :D

WIFI doesn't work...
Cellular doesn' work...
Bluetooth doesn't work...
Camera doesn't work...

The gui doesn't start, because of oom_adjust errors(got thi solved by editing many systemd services, then the gui comes up, but this was only to see if the gui is working.)

Sound works.
Vibration works.
Touch works.
Buttons work.
Telnet and SSH (both using USB) work.
Charging works.
Led works.

So, many things to figure out, but it looks promising :-)

I'll keep you updated.

deprecated 2016-12-22 06:04

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1520893)
So, i kind of got cm13 working on our Nexus5...

....

So, many things to figure out, but it looks promising :-)

I'll keep you updated.

Excellent news, @mautz! I'm curious and haven't looked into it much, does cm13 use a 3.10.x kernel, and as such could it run tickless - theoretically? I look forward to helping you any way I can. If you need tests run or logs or anything of the sort, I'd be glad to help out.

nh1402 2016-12-22 08:18

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1520898)
Excellent news, @mautz! I'm curious and haven't looked into it much, does cm13 use a 3.10.x kernel, and as such could it run tickless - theoretically? I look forward to helping you any way I can. If you need tests run or logs or anything of the sort, I'd be glad to help out.

No it's the same old 3.4 kernel. The only 3.10 kernel that you can boot with the Nexus 5 is this kernel but not much of it works, and the work on it seems to have been abandoned.

claustn 2016-12-22 14:25

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
guys, simple question: to use another kernel instead the original one, i have to reinstall sailfish right? how I install the different kernel and what's the best for battery saving? I'm tired of this battery drain.

deprecated 2016-12-22 16:42

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by claustn (Post 1520914)
guys, simple question: to use another kernel instead the original one, i have to reinstall sailfish right? how I install the different kernel and what's the best for battery saving? I'm tired of this battery drain.

No, you just flash the kernel zip in TWRP. I use minimec's 100Hz version found here.

Your battery savings will depend on how far you can undervolt your SoC, which depends on its PVS binning, age, etc.

I use a minimum frequency of 300MHz (as it seems to give me less CPU usage than 249MHz), maximum frequency of 1.5GHz, msm-mpdecision hotplug driver, conservative governor, noop I/O scheduler, 320MHz on GPU. My voltage table is custom, expect lipstick crashes and reboots. You should use the standard table and mine as a reference. Work down 10mV at a time for the lowest frequency until it's unstable, then ramp it up 5mV for longevity. Put some load on the device (moving around through menus works), and watch the load state with something like AIDA64. Watch which frequencies the device enters, for example 422Mhz or 652MHz, and adjust their voltages a little at a time as you did before. This is time consuming, but it is the only guaranteed way you'll undervolt and save some battery.

My settings are as follows, I only lose ~8-10% over 12 hours with screen off. Special thanks to minimec for bits of his shell script and 100Hz/swap-enabled recompile, and mautz for the kernel work and integrating all these features:

Code:

# Min/Max Frequency
/bin/echo "1574000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
/bin/echo "300000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

# msm_mpdecision
/bin/echo "1" > /sys/kernel/msm_mpdecision/conf/enabled

# voltage table (undervolt) (kernel v7 with new low frequencies)
/bin/echo "620 620 620 630 665 735 750 760 770 780 800 810 855 870 900 950 1010" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

# simple gpu
/bin/echo "320000000" > /sys/class/kgsl/kgsl-3d0/max_gpuclk
/bin/echo "4" > /sys/module/msm_kgsl_core/parameters/simple_laziness
/bin/echo "7000" > /sys/module/msm_kgsl_core/parameters/simple_ramp_threshold
/bin/echo "simple" > /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor

# set governor
/bin/sleep 3
/bin/echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# set I/O scheduler
/bin/echo "noop" > /sys/block/mmcblk0/queue/scheduler


claustn 2016-12-22 19:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
is there also an improvement using Sailfish 2.0.4 instead of 2.0.1 ? I just wonder if i should update or not

mautz 2016-12-22 21:11

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by deprecated (Post 1520898)
Excellent news, @mautz! I'm curious and haven't looked into it much, does cm13 use a 3.10.x kernel, and as such could it run tickless - theoretically? I look forward to helping you any way I can. If you need tests run or logs or anything of the sort, I'd be glad to help out.

I'll release a testing version, when its more usable.

As nh1402 alredy said, there's no new kernel version in cm13. Google never finished the 3.10 kernel, so until today no one got it fully working.
But the 3.4 kernel of cm13 has many many updates over the cm12.1 version and it'll will be much easier to add new features.

I hope i can release the test build next week...

And 8-10% for 12hours of screen off time is very impressive, i'm stuck at 1% per hour, but that's enough for me ;)

edi194 2016-12-22 21:46

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Hi guys, i'm new in SfOS and everything so sorry for noob question.

I've updated SFOS on N5 to 2.0.5.6 and almost everything is working well. Almost, becouse i can't record videos and battery drain is massive. Can someone help me atleast with camera? I use it everyday. I'll be grateful for any help :)

mautz 2016-12-22 22:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by edi194 (Post 1520941)
Hi guys, i'm new in SfOS and everything so sorry for noob question.

I've updated SFOS on N5 to 2.0.5.6 and almost everything is working well. Almost, becouse i can't record videos and battery drain is massive. Can someone help me atleast with camera? I use it everyday. I'll be grateful for any help :)

You could try cameraplus from openrepos:

https://openrepos.net/content/msameer/cameraplus-0

Maybe this helps with recording videos.

edi194 2016-12-22 23:05

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1520943)
You could try cameraplus from openrepos:

https://openrepos.net/content/msameer/cameraplus-0

Maybe this helps with recording videos.

Tested already, it's crashing after hitting 'stop recording button' like stock one :/

minimec 2016-12-22 23:22

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by edi194 (Post 1520941)
I've updated SFOS on N5 to 2.0.5.6 and almost everything is working well. Almost, becouse i can't record videos and battery drain is massive. Can someone help me atleast with camera? I use it everyday. I'll be grateful for any help :)

You have to swipe down the camera settings (default jolla cam app) and toggle between Photo/Video and/or Front/Main camera. After having done that, video recording should work.

Regarding massive battery drain: Do you use sfdroid? I also had this massive drain and checking with 'top' in the terminal I found a 'main' process that was using CPU like hell. So I did 'pkill main' (with 2.0.5.6 you can also use 'killall main'), and battery drain was gone...


All times are GMT. The time now is 05:50.

vBulletin® Version 3.8.8