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)

sailor 2019-11-27 00:12

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Awesome achievement, it's really great to see this thread alive.
If I'm not mistaken, that video recording/playback never worked on this device so far (although video itself works). Finding a solution would really complete the work so far.

claustn 2019-11-27 08:23

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

Originally Posted by sailor (Post 1562672)
Awesome achievement, it's really great to see this thread alive.
If I'm not mistaken, that video recording/playback never worked on this device so far (although video itself works). Finding a solution would really complete the work so far.

Video recording works/worked on 2.0.4.13 and 2.0.5.something, although you need some tricks and is not reliable.

edp17 2019-11-27 09:48

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

Originally Posted by claustn (Post 1562678)
Video recording works/worked on 2.0.4.13 and 2.0.5.something, although you need some tricks and is not reliable.

I agree. Video recording/playback works fine on these versions 2.0.4.13, 3.0.3.9 and 3.2.0.12.
The video playback works on my image too but only in Kodi.
In the built on video player, it doesn't work.

Probably if I solve one of them (recording or playback) it will solve the other too.

edp17 2019-11-27 09:58

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
In my image (wip0.16) the camera works only for making pictures.
If I switch to video mode, the back camera show the image but freezes when I hit the red button. For video recording the back camera shows only a black screen and the red button doesn't function.

So far when the camera is launched from console, these are the error messages I saw:
1. Switch to front camera (video recording):
Code:

[D] unknown:0 - using Wayland-EGL

(jolla-camera:30851: GSTreamer-CRITICAL **:
Registering meta implementation 'NemoGstBufferOrientationMeta' Without init function
[W] unknown:43 - file:///usr/lib/qt5/qml/Salfish/Silica/PulleyAnimationHint.qml:43:25: Unable to assign [undefined] to QQuickItem*
[W] unknown:0 - CameraBin error: "failed to negotiate caps"

and

2. Back camera, hit the red button to record a video:
Code:

(jolla-camera:30851: GSTreamer-CRITICAL **:
Registering meta implementation 'NemoGstBufferOrientationMeta' Without init function
[W] unknown:43 - file:///usr/lib/qt5/qml/Salfish/Silica/PulleyAnimationHint.qml:43:25: Unable to assign [undefined] to QQuickItem*
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
[W] unknown:0 - CameraBin error: "GSTreamer encountered a general supporting library error"

Terminated

Tried to google, but didn't find any obvious answer.
Tried to copy over the camera config files from the working 3.2.0.12 version, but didn't help.

I am still working on it. :)

claustn 2019-11-27 12:32

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Did you try to use another application for taking pictures/ video recording? I use Camera+. Of course, I doubt it will make any difference

edp17 2019-11-27 13:23

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

Originally Posted by claustn (Post 1562695)
Did you try to use another application for taking pictures/ video recording? I use Camera+. Of course, I doubt it will make any difference

Yes I did. The same result. Something is missing or needs to be updated (like for the date & time issue) but I don't know what. :)

edp17 2019-11-27 15:31

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
In wip0.16 I spotted a serious problem.
Today it happened multiple times. Somebody called me and we didn't hear each other.
It works when I make a call, but it isn't always when I get a call.

Plus during the call I switched to the loudspeaker, and from this point the phone was randomly automatically switching between the ear piece and the loudspeaker. Hmm.
It seems need to go back to the drawing board.

Edit: In this minute my phone just started to play the ringtone. The screen was blank and there was no incoming call. I couldn't stop the phone playing the ringtone because seemingly there was no reason why it started.
I restarted the network but didn't help. I needed to restart the phone to get rid of it. Strange. Oh my, I thought I had only the video recording to fix. :)

edp17 2019-11-28 08:17

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

Originally Posted by mautz (Post 1562671)
What is the problem with video playback?

Sorry, I missed to respond on this one.
The problem is when I try to play an mp4 video with the native media player, the video playing doesn't start. However the same video can be played without any issues with Kodi.

edp17 2019-11-28 11:55

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
@mautz
I have been thinking about the recently discovered audio problems related to the phone calls.
In my previous builds this problem was not there and I remember that I adopted your
/etc/pulse/arm_msm8974_hammerhead.pa file from your config.

Could you let me know what is this file and why it was necessary for your config, please?

Thank you.

edp17 2019-11-28 12:38

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I think the video recording/playing and the sound during the incoming calls issues are somehow connected.
I have identified a common error message 'shared memfd open() failed: Function not implemented'. Maybe this is a red herring again, but I have a feeling that if I find a solution to this error, that will fix both problems.

mautz 2019-11-29 09:48

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sorry, i'm not sure at the moment about the modifications i did to the pulseaudio file. Have you tried the one from Real John Galt?

I'll compare them both later. But i think the error could be PA related.

EDIT: They have differences. Just try the one from John.

mautz 2019-11-29 09:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Interesting read: https://github.com/mer-hybris/pulseaudio-modules-droid

Get debug output from PA with this command:

systemctl-​user stop pulseaudio ; pulseaudio -vvvv -n --file=/etc/pulse/arm_droid_default.pa

edp17 2019-11-29 10:03

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

Originally Posted by mautz (Post 1562773)
Sorry, i'm not sure at the moment about the modifications i did to the pulseaudio file. Have you tried the one from Real John Galt?

I'll compare them both later. But i think the error could be PA related.

EDIT: They have differences. Just try the one from John.

Thanks and no worries. :)
All the problems are definitely audio related. I have figured out the reason why the incoming call was mute, because the ear piece volume was sett to 0. When I used the volume rocker and pumped up the volume, I started to hear. The other issue when the caller didn't hear me was also related because the microphone was off. I toggled to on and started to work this too.
I think the video recording is also related because the camera app is trying to record sound with the video, but something is not configure correctly, therefore it crashes.

I am trying John's .pa file now.
Plus I have spotted a difference between your an my 'hw-settings.ini' file, so I have adopted yours.

mautz 2019-11-29 10:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
What was the difference?

EDIT I'm trying to backport bluez5 at the moment. No luck so far, if i'll get it done, i'll let you know the needed steps.

edp17 2019-11-29 10:26

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

Originally Posted by mautz (Post 1562774)
Interesting read: https://github.com/mer-hybris/pulseaudio-modules-droid

Get debug output from PA with this command:

systemctl-​user stop pulseaudio ; pulseaudio -vvvv -n --file=/etc/pulse/arm_droid_default.pa

I have tried this and got the output but not sure how to read. There was no error as I saw. (I started the camera and tried to record a video.)

By the way, do you know how the system knows which .pa file to use?
Currently there are a few .pa files in /etc/pulse:
arm_droid_default.pa
arm_qualcomm_msm_8974_hammerhead_flattened_device_ tree_000b.pa
bluez4_stream_restore.pa
default.pa
system.pa

plus there was my original one that I move away:
arm_msm8974_hammerhead.pa

edp17 2019-11-29 10:31

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

Originally Posted by mautz (Post 1562776)
What was the difference?

EDIT I'm trying to backport bluez5 at the moment. No luck so far, if i'll get it done, i'll let you know the needed steps.

VideoPlayback=1 was missing from mine

I had the following in mine but were commented out in yours:

#[FmRadio]
#DefaultFrequency=90.0
#InputDevice=input-fm_tuner

#[Audio]
#RecordTopDevice=input-builtin_mic
#RecordBottomDevice=input-builtin_mic
#RecordTopDeviceChannel=left
#RecordBottomDeviceChannel=right

So, I too commented out them.

Bluez5 blackport:
Thank you for doing that.
Why is bluez5 better than buelz4? What is the difference after all?

edp17 2019-11-29 10:35

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I forgot to let you know that yesterday I pushed my droid-config-hammerhead, droid-hal-version-hammerhead and droid-hal-hammerhead changes to the github.In case you are interested.

edp17 2019-11-29 13:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Because of the outcome of my recent camera tests on different Sailfish OS versions, I am not concerned about the video recording in my build anymore. :)
(I agree with all who says this problem should be fixed but it is kind of a 'nice to have' one. Therefore I'll only try to find a solution once I am done all the other planned tasks or if somebody finds out how to fix ;).)

claustn 2019-11-29 18:11

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Yeah, it would be nice to have video recording too, but I don't use it so much.
I am a bit concerned about the call issues you talked about, does it occur often?

Anyway, thanks a lot!

claustn 2019-11-30 15:27

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
SFOS 3.2 flashed! First thing I notice, MTP file transfer does not work, it is showing me "Preparing USB mode" but I can see my Nexus on Windows.
Am I missing something?

sailor 2019-11-30 18:02

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I'm wondering: Would it have advantages/does it mean a lot of work to
change to CM14 as base? Someone mentioned this in a post before and I'm not sure what to think about the idea.

mautz 2019-11-30 18:49

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

It is possible and hopefully the video recording is working again. If a 12.1 base is working well you'll have the advantage of Android support. I hope that the bugs from the past are gone, like the crappy battery live and the slow OTA updates.

@claustn

Should be a missing package. Is the package mtp-vendor-configuration-sailfish installed? Just a wild guess.

edp17 2019-11-30 21:01

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

Originally Posted by claustn (Post 1562789)
Yeah, it would be nice to have video recording too, but I don't use it so much.
I am a bit concerned about the call issues you talked about, does it occur often?

Anyway, thanks a lot!

I agree. I don't use video recording at all on my Nexus, so that is a nice to have. Especially as the recording doesn't really working on other 3.x versions either.

About the issues during the calls. Well, I have to say it is always present at incoming calls.
Today I tested a bit and it seems the audio and microphone are muted by default for the incoming calls. Therefore right after I accepted the call I needed to push the volume up with the volume rocker and had to toggle the microphone icon. After this, the call worked and we could hear each other.
BUT! For incoming calls if the other party disconnects the call, at my end the call somehow remained "active". I am not sure how to explain it but if next time if the same caller calls me, the phone thinks there is an ongoing call in progress and offers to put the old "active" call on hold/end and accept the new one.
This is strange and I didn't find out the reason behind. Even if I restarted the ofono and network, didn't help, just when I rebooted the phone.
Interestingly the outgoing calls work ok.

So I welcome any help and test on this area.

edp17 2019-11-30 22:39

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
As the calls (incoming/outgoing) are the most stable on 3.0.3.9 maybe the AD is responsible for this behaviour. I'll test my build without installed AD and any Android app to see whether the situation is better. I'll report back.

edp17 2019-11-30 22:57

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
If anybody is interested I re-packaged the sudo rpm. I included the modified sudoers file where I added nemo and the sudo command doesn't ask password. It can be downloaded from here.

edp17 2019-12-01 10:43

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
News.
it is good or bad depends on your own preference. :)

I have tested the last build (wip0.19 available in my signature) without AD and calls worked as expected. Everything. Inbound/outbound. There were no issues with audio, ear piece, loudspeaker and microphone.
So, the strange behaviour is definitely related to the AD, moreover I think to one of the android app I installed. (I suspect the linphone.)
I'll too test that and report back.

mautz 2019-12-01 16:49

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Could you check if package geoclue-provider-mlsdb is installed?
If not please add it to jolla-configuration-hammerhead in patterns. It is required to use Mozilla Services for faster GPS fix.

edp17 2019-12-02 08:55

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

Originally Posted by mautz (Post 1562863)
Could you check if package geoclue-provider-mlsdb is installed?
If not please add it to jolla-configuration-hammerhead in patterns. It is required to use Mozilla Services for faster GPS fix.

Yes, I can confirm this is included in the build.
geoclue-provider-mlsdb and geoclue-provider-mlsdb-agreements are both installed.

claustn 2019-12-02 11:09

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

Originally Posted by edp17 (Post 1562848)
News.
it is good or bad depends on your own preference. :)

I have tested the last build (wip0.19 available in my signature) without AD and calls worked as expected. Everything. Inbound/outbound. There were no issues with audio, ear piece, loudspeaker and microphone.
So, the strange behaviour is definitely related to the AD, moreover I think to one of the android app I installed. (I suspect the linphone.)
I'll too test that and report back.

So is it related to AD or that specific app (linphone)?
What is the difference of this new image with the previous one?

edp17 2019-12-02 11:33

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

Originally Posted by claustn (Post 1562882)
So is it related to AD or that specific app (linphone)?
What is the difference of this new image with the previous one?

I have installed AD and a few apps (excluding the linphone) but have not got the chance to test them yet. I'll report once I got the result.

The changes in wip0.19 are:
  • the findutils tool included (maybe this is not a benefit for many but I prefer to use the locate command to find files/folders)
  • a new pa file (arm_qualcomm_msm_8974_hammerhead_flattened_device _tree_000b.pa) in /etc/pulse folder from John Galt's repo. I thought this could solve the recording issues, but it didn't. :(
  • the '-mapplauncherd-booster-silica-qt5-media' is enabled when I did the build. This is for faster camera start (I am not sure whether the camera starts really quicker but the comment in the file suggested this to switch on for devices with 2GB or more ram.)

claustn 2019-12-02 18:07

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

Originally Posted by mautz (Post 1562825)
Should be a missing package. Is the package mtp-vendor-configuration-sailfish installed? Just a wild guess.

It was not installed. I installed it, however MTP is still not working. In the meanwhile I use WinSCP.

edp17 2019-12-03 09:12

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
News on the call related issues.

I had an other idea too about the root cause because, on wip0.16 where the issue was identified, I remembered for some apks I allowed to run as a background process. So booted back into wip0.16 and removed this setting for all apps. Then tested the calls. It worked the same crappy way. Then I uninstalled linphone completely but that didn't solve the issue either. I have a feeling that even if I removed all apks and AD completely would not solve the issue on this build. Again, this was on wip0.16.

Then I installed the latest build (wip0.19) then tested the calls. Worked fine. Then installed AD only on it and tested calls. Worked fine. Then installed some apps (whatsapp, telegram, messenger lite, opera mini + others) and configured them, then tested the calls again. Still worked fine.
On wip0.19 I have not installed linphone at all. (I am about to test that too just didn't want to mess up my working rom.)

It seems the problem might related to the AD or linphone or a different .pa file in wip0.16, but is definitely solved in wip0.19.

Now, the only real remaining issue (unless you find something else too :)) is the video recording.

On the two extra packages (connman-tools and timed-qt5) that we manually need to install/refresh to get the bluetooth and date & time change work, I will try to include these into the next build.
As this will be the only difference, if you already are using wip0.19, doesn't make any sense to wait for and install the new build. You can simply install these two packages and you're done. (If I do any other change in the new build, will let you know anyway.)

I have updated the details in my signature too.

mautz 2019-12-03 14:03

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sorry, i've forgotten, why do wen need the connman-tools package?

You could add it to jolla-configuration-hammerhead in patterns.

edp17 2019-12-03 14:23

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

Originally Posted by mautz (Post 1562932)
Sorry, i've forgotten, why do wen need the connman-tools package?

You could add it to jolla-configuration-hammerhead in patterns.

Yeah, that is my plan to add it there. And as well the timed-qt5 to see whether that will solve the date & time change issue.

The connman-tools is required for the bluetooth. The /usr/bin/bt-sleep-monitor script is using the connmanctl command from it.
Without the connman-tools, I couldn't turn on the bluetooth, but once I installed, bluetooth started to work fine.

mautz 2019-12-03 14:41

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Timed-qt5 is already installed so no need to put it in the patterns.

I think something wents wrong with it during mic build, so it has to be reinstalled after first boot.

edp17 2019-12-03 14:47

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

Originally Posted by mautz (Post 1562935)
Timed-qt5 is already installed so no need to put it in the patterns.

I think something wents wrong with it during mic build, so it has to be reinstalled after first boot.

Yes, I know that is installed that why I don't get it why the date & time change doesn't work out of the box. I also don't understand why re-installing the timed-qt5 is fixing this. That's why I thought I add into the patter to re-install and see whether that makes any difference.
Anyway, this is how it is. :)

mautz 2019-12-03 14:50

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Just give it a try, but i think it's not a big problem if this doesn't fix it.

Edit:How's battery life?

edp17 2019-12-03 15:06

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

Originally Posted by mautz (Post 1562941)
Just give it a try, but i think it's not a big problem if this doesn't fix it.

Edit:How's battery life?

So far, as I see, the battery life is similar to 3.0.3.9. However I have not used any battery life monitor app to see numbers. This result is purely based on how it feels in my everyday usage. (I will do test myself too once I stop tweaking/installing/compiling stuff on the phone. :))
Any more thorough test is welcome. :)

claustn 2019-12-03 15:42

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
About battery life:
I did a simple test with the wip0.16 tonight, with airplane mode on and nothing running (except Depecher in background I think), the battery decreased of 1% only over 7 hours. It seems better than my 2.0.4.13

I'll report other tests when I'll definitely switch to this new version.

Anything to make file transfer MTP work?

edp17 2019-12-03 15:57

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

Originally Posted by claustn (Post 1562948)
About battery life:
I did a simple test with the wip0.16 tonight, with airplane mode on and nothing running (except Depecher in background I think), the battery decreased of 1% only over 7 hours. It seems better than my 2.0.4.13

I'll report other tests when I'll definitely switch to this new version.

Anything to make file transfer MTP work?

Thank you for the battery test! :)

Sorry cannot suggest anything but I will try the MTP on wip0.19 for you tonight. (If I can stay awake. :o)


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

vBulletin® Version 3.8.8