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)

dubliner 2016-12-26 09:04

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Let's me just start off by saying you are doing a wonderful job! Thanks a million! Having been an faithful user of the N900, Sailfish on the Nexus 5 has been a revelation. :)

I originally followed RealJohnGalt's instructions to install 2.0.1.11 on a clean CM 12.1, however, without sfdroid and gapps. Everything was working perfectly.

Then I upgraded to version 2.0.5.6 following minimec's howto in #366. The result is great with one smallish problem. The sensors stop working after a while (no values being displayed at all in AIDA64). A simple reboot does NOT seem (!) to fix this. However, reflashing sensorsfix3.zip mostly helps, though not always.

Do you have any suggestions as how to remedy this situation?

claustn 2016-12-26 17:13

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Guys, I would like to install a custom android rom to use some features i miss on sailfish (Here maps for example).
I'm using multirom, how I can install the new rom and delete the original one?
What's a light rom without google apps you suggest me?

dubliner 2016-12-27 09:18

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
About the sensors failing in 2.0.5.6:

Quote:

Originally Posted by dubliner (Post 1521050)
The sensors stop working after a while (no values being displayed at all in AIDA64). A simple reboot does NOT seem (!) to fix this. However, reflashing sensorsfix3.zip mostly helps, though not always.

As far as I could determine, it's not the reflashing of sensorsfix3.zip that does the trick. That may just have been coinicidental.

BTW, the files from sensorsfix3.zip are all on the device located under the /system directory as you would expect (owner root.root, 644). I looked at this while the sensors were inoperable. Filedate is set to Aug 1 2008, which does not correspond to the date set within the zip archive. So, presumably that was the system time during the installation process.

What brought the sensors back this morning was a push-off-button-for-10s reboot.

Am I actually the only one experiencing this weird problem? :eek:

Let's just say, once one has recorded a Christmassy video sideways, one is reminded of the validity of working sensors. :cool:

mautz 2016-12-27 13:40

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Nope, the sensors service sometimes crashes or does not start on boot, just restart it with
Code:

devel-su systemctl restart sensorsfw
and everything should be fine.

claustn 2016-12-27 14:00

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
guys i've done a mess!
I installed an android rom and now sailfish doesn't start anymore!
Here is the black screen :mad:
http://i64.tinypic.com/34j3fw9.jpg

claustn 2016-12-27 16:41

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
i would like to recover my data at least, how i can export the partition in recovery mode? someone can help me?

edit: i found the nemo folder after hours, enabled MTP in Recovery and now i'm copying all my files..

mautz 2016-12-27 19:44

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Is SFOS your primary rom?

If not you could flash one of my or minimecs kernels and see if it boots again.

claustn 2016-12-27 20:31

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
it's not. I tried with the flash of the kernel but nothing changed.
I have my personal data, now i will do a complete format and a clean install

maximilian1st 2016-12-27 20:50

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

Originally Posted by claustn (Post 1521109)
i would like to recover my data at least, how i can export the partition in recovery mode? someone can help me?

edit: i found the nemo folder after hours, enabled MTP in Recovery and now i'm copying all my files..

You might want to share where you found the Sailfish folder. I don't remember exactly where it is and I just flashed CM13 back on the phone just to see how the battery behaves.

claustn 2016-12-27 20:57

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
it was in multirom/sailfish/ and then a hidden folder beginning with a dot. Now i wiped all the data and i can't give you the full path.

mautz 2016-12-27 22:07

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

/data/media/multirom/roms/'rom-name'/data/.stowaways/sailfishos/home/nemo
https://github.com/Tasssadar/multirom/wiki/Storing-ROMs

claustn 2016-12-28 12:01

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
latest from my side: now i have cm 14 as internal rom and sailfish with multirom. CM boots, sailfish not and requires kernel with kexec-hardboot. What should i do? If a flash a kernel with kexec-hardboot Sailfish works, but android no more...

mautz 2016-12-28 13:58

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Wait until theres a cm14 kernel with kexec patch available or compile it yourself. Or do not use cm14 as primary rom.

claustn 2016-12-28 15:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
ok, now with CM13 everything works! Now i try to update sailfish

claustn 2016-12-28 17:52

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


Tried to update to 2.0.4.13, mine stopped at jolla-developer-mode
...now Sailfish doesn't boot anymore

minimec 2016-12-28 18:31

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

Originally Posted by claustn (Post 1521144)
Tried to update to 2.0.4.13, mine stopped at jolla-developer-mode
...now Sailfish doesn't boot anymore

Even though the lipstick GUI does not start, doesn't mean that the system failed to boot. If you enabled the 'ssh' connection, you might be able to login to the phone.

I would then try to enable the 'adaptation0' repository again and refresh the database.

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

devel-su zypper ref

Then try the following:
Code:

devel-su zypper remove mesa-llvmpipe  # Might not be installed...

devel-su zypper in droid-config-hammerhead-policy-settings droid-config-hammerhead-pulseaudio-settings geoclue-provider-hybris hybris-libsensorfw-qt5 libhybris-libGLESv1 libhybris-libOpenCL libhybris-libOpenVG libhybris-libwayland-egl mce-plugin-libhybris ngfd-plugin-droid-vibrator pulseaudio-modules-droid-glue pulseaudio-modules-droid pulseaudio-modules-droid-common gstreamer1.0-droid qt5-qpa-hwcomposer-plugin qt5-feedback-haptics-droid-vibrator libhybris-tests libhybris-libvibrator libhybris-libnfc libhybris-libGLESv2 libhybris-libEGL libhybris-libsync libhybris-libhardware libhybris

Sync and reboot the phone.
Code:

sync && reboot && exit
I hope that this works. I will update the upgrade procedure with additional notes about upgrade problems.

mautz 2016-12-28 18:51

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

Originally Posted by claustn (Post 1521144)
Tried to update to 2.0.4.13, mine stopped at jolla-developer-mode
...now Sailfish doesn't boot anymore

You should leave the upgrade running for about 2-3hours, it sometimrs hangs at a package for quite a long time.Or like RealJohnGalt wrote, a good idea is to run it over night.

claustn 2016-12-28 20:01

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
it stucks on the google logo on boot, trying to boot the system, black screen and so on in a loop. I left the phone doing the update for more than 2 hours, at 84% with the developer mode package i've done ctrl+c, sync and reboot.
I will reflash Sailfish, too many times in only few days!

mautz 2016-12-28 20:29

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
If it is stuck at boot why don't you ssh into the device and finish the upgrade?

I reinstalled and upgraded the systems many times on my first try...after a few days i realized i was missing the adaptation0 repo :D

claustn 2016-12-29 13:07

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I can ssh when the phone is on and connected to my Local network, how I can do that without booting the operating system? Through usb? I'm on windows and I use Putty.

mautz 2016-12-29 13:32

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
If the wifi was on, you could try to connect to it via wifi when you get stuck at boot.

If this does not work, connect it via USB and you should connect to 192.168.2.15.

mautz 2016-12-29 14: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...

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.

A minor update, fixed thee OOM errors on startup, so gui starts normaly now. Wifi also now works. Next step is to get cellular working...i'll keep you updated.

claustn 2016-12-29 14:34

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

Originally Posted by minimec (Post 1521145)
I would then try to enable the 'adaptation0' repository again and refresh the database.

Maybe i found the problem, the command can't enable "adaptation0",
tried as user and as root with same result.

mautz 2016-12-29 15:28

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Which command did you use?

Code:

ssu er adaptation0
?

claustn 2016-12-29 16:05

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

Originally Posted by minimec (Post 1521145)
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

devel-su zypper ref


I used that code from minimec, i will try with this one, thank you!

edit: works!

claustn 2016-12-29 16:45

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
a question about sfdroid: how actually i close it? i noticed only now, that even if I close it as a normal app (swype down) i receive vibration notification (new messages) from whatsapp inside Sailfish

mautz 2016-12-29 19:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Before closing sfdroid you could use a app like Greenify to put the apps into sleep mode. I think you could kill sfdroid by killing the surfaceflinger process, but then you'll have the long start time when you open sfdroid again.

dubliner 2017-01-01 14:14

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

Originally Posted by deprecated (Post 1518465)
Meanwhile, I made a fix to my intermittent call issues with the microphone on my Nexus 5. Not sure if it was due to a bug or a hardware fault, but every person I called reported a bad echo from my end. Not sure if this has been discussed here before, but my fix is as follows:

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

edit /system/build.prop (I used nano). Find the following strings and replace as indicated:

persist.audio.handset.mic.type=digital (replace digital with analog)
persist.audio.dualmic.config=endfire (replace endfire with false)

Save the file and reboot your device. Echo gone, call quality improved dramatically. Enjoy!

I am facing the very same problem, albeit using SFOS 2.0.5.6/CM 12.1 on the Nexus 5.

I changed the settings persist.audio.handset.mic.type to analog and also persist.audio.dualmic.config to false (and rebooted the phone), which did not make a difference (at least to people on the other end of the phone call). Elsewhere it was suggested to switch persist.audio.dualmic.config back to endfire, still no difference. :(

However, there is a problem I find a lot more grave. When I connect the Nexus 5/SFOS to a bluetooth handfree device, I am unable to understand the other person since the audio I get is completely distorted (sounds like lots of static). On the plus side, the person on the other end can hear me perfectly (which unfortunately does not help much). I came across Android sources on the web pointing to the persist.audio.fluence.* settings in the /system/build.prop. Yet, those pieces of advice were confusing and contradictory. :confused: Thus, I'd love to find out how you handle those phone audio issues on your Nexus 5 phones?

Does anyone get clear audio both ways, preferably also with handsfree devices?

maximilian1st 2017-01-04 15:57

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

Originally Posted by dubliner (Post 1521266)
Does anyone get clear audio both ways, preferably also with handsfree devices?

Nope I got the exact same problem and thought the phone might have a problem so I flashed CM13 on it and used it for a few days and the bluetooth works perfectly. I will flash sailfish back on it later at some point.
Also wanted to say I bought a new LG battery produced in 2016.6 and that makes a huge difference in uptime, using Android of course, don't know yet about sailfish...

dubliner 2017-01-04 16:08

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

Originally Posted by maximilian1st (Post 1521409)
...I flashed CM13 on it and used it for a few days and the bluetooth works perfectly...

Could you give us your current persist.audio.fluence.* settings in the /system/build.prop file? I'd like to compare them.

BTW, when you say Bluetooth, you're speaking of the hands-free protocol used during phone calls, aren't you? Sorry, just want to be sure.

As for the battery, that's a thought I've been contemplating as well. How much of a struggle was it to get the old battery removed?

maximilian1st 2017-01-04 20:43

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Here come the list, doing this on the phone so no bothering taking out stuff...
more build.prop | grep persist
persist.sys.dun.override=0
persist.sys.root_access=0
persist.hwc.mdpcomp.enable=true
persist.debug.sensors.hal=w
persist.radio.apm_sim_not_pwdn=1
persist.radio.mode_pref_nv10=1
persist.radio.data_no_toggle=1
persist.audio.handset.mic.type=digital
persist.audio.dualmic.config=endfire
persist.audio.fluence.voicecall=true
persist.audio.fluence.voicecomm=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.speaker=false
persist.radio.custom_ecc=1
persist.radio.always_send_plmn=true
persist.sys.dalvik.vm.lib.2=libart.so

Bluetooth as in connecting the phone to the car's audio to hear music and make and receive phone calls, so yes hands-free as you mean it.

As for the battery, it must have taken 10 to 15 minutes to open the phone and replace the battery. I used this guide from the iFixit website and used their tools that I bought years ago. They now have a European shop and a new version of my tools box here.

dubliner 2017-01-04 21:51

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

Originally Posted by maximilian1st (Post 1521419)
persist.audio.fluence.voicecall=true
persist.audio.fluence.voicecomm=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.speaker=false

Thanks a million for your quick and detailed reply. As it turns out the fluence settings are exactly the same with SFOS/CM12.1. Too bad, I was hoping for some helpful inspiration from that file.

Also kudos for your encouraging report on changing the battery. How great is the risk to damage the connections to the antennae? AFAIK those are located on the back shell?!

Now let's hope someone can tell us how to reliably eleminate the echo and how to establish a BT hands-free connection without "static"...

maximilian1st 2017-01-05 12:49

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The current ported phone to use seems to be the OnePlus X, the devs actively work on it and it seems to have all the HW functioning as well as the Jolla store...

juiceme 2017-01-05 14:37

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

Originally Posted by maximilian1st (Post 1521444)
The current ported phone to use seems to be the OnePlus X, the devs actively work on it and it seems to have all the HW functioning as well as the Jolla store...

Except it doesn't havr the one killer feature which Nexus5 has, wireless charging.

deprecated 2017-01-05 15:49

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

Originally Posted by maximilian1st (Post 1521444)
The current ported phone to use seems to be the OnePlus X, the devs actively work on it and it seems to have all the HW functioning as well as the Jolla store...

The Jolla store works on OPX now? Interesting.

dubliner 2017-01-05 17:04

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

Originally Posted by maximilian1st (Post 1521444)
The current ported phone to use seems to be the OnePlus X, the devs actively work on it and it seems to have all the HW functioning as well as the Jolla store...

To be quite honest, that sounds rather depressing to me, because even during these few days I've grown quite attached to my SFOS/Nexus 5. One Plus X devices are rather expensive and even more difficult to purchase.

The fact that also Android users seemed to suffer from the same audio problems may be reason for hope. After all, apparently those problem have been overcome on the Nexus 5. So, SFOS based on CM13 or CM14.1 might just do the trick. So, I can't wait for more exciting news on that front. :-)

rinigus 2017-01-05 18:20

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

Originally Posted by dubliner (Post 1521462)
To be quite honest, that sounds rather depressing to me, because even during these few days I've grown quite attached to my SFOS/Nexus 5. One Plus X devices are rather expensive and even more difficult to purchase.

The fact that also Android users seemed to suffer from the same audio problems may be reason for hope. After all, apparently those problem have been overcome on the Nexus 5. So, SFOS based on CM13 or CM14.1 might just do the trick. So, I can't wait for more exciting news on that front. :-)

@dubliner, don't get depressed yet ...

As mentioned earlier on this thread, we had similar issues on nexus 4 SFOS (and ubuntu touch on N4). See http://talk.maemo.org/showpost.php?p...&postcount=219 on how to check whether you have the same bug. More description is at http://talk.maemo.org/showpost.php?p...&postcount=223

To test whether the changes in build.prop are indeed working, use logcat as described at https://forum.xda-developers.com/sho...&postcount=441 . Make sure that when you make the changes to noise-canceling mic do take an effect and you get the microphone as an expected one in logcat. That way you could actually test whether the microphone that you use during a call is analog (handset-mic) or digital (...dmic...).

On OPX, the hands-free (corrected) required (for @kimmoli) an analog microphone. See issue https://github.com/kimmoli/sfos-onyx-issues/issues/2 . We also had conflicting results with kimmoli regarding the use of noise-canceling mic, maybe due to differences in OPX hardware (mine works perfectly in noise-canceling mode). Maybe something similar is with N5 with possible hardware issues, but I would suggest to test it using logcat and find the best settings for you.

cheers,

rinigus

mautz 2017-01-06 00:05

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

Originally Posted by dubliner (Post 1521462)
So, SFOS based on CM13 or CM14.1 might just do the trick. So, I can't wait for more exciting news on that front. :-)

Update on CM13 port:

Not working:

Bluetooth
Compass
Camera

Working:

Everything else i tested :p

deprecated 2017-01-06 00:36

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

Originally Posted by mautz (Post 1521484)
Update on CM13 port:

Not working:

Bluetooth
Compass

Working:

Everything else i tested :p


That's pretty stellar news, @mautz. Thank you for all of your hard work!

dubliner 2017-01-06 09:45

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
@rinigus, Thank you so much for all your assistance and for compiling those helpful links.

Quote:

Originally Posted by rinigus (Post 1518493)
getprop persist.audio.fluence.voicecall

(this can be run as nemo). If you see empty line as a response you are hit by the bug! Find an updated image for N5, or ask for an update

getprop persist.audio.fluence.voicecall gives me an empty line, so it's probably the same bug. Do I get this right? Whatever I put into the build.prop file is not going to make it into the system.

Quote:

Originally Posted by rinigus (Post 1518513)
since the bug is fixed and in hybris proper, its just a matter of bugging the developers to recompile the SFOS images.

You made that suggestion in November. I wonder, has anyone tried?

Unfortunately, I haven't quite figured out how to use logcat (sorry).


All times are GMT. The time now is 23:26.

vBulletin® Version 3.8.8