yashsingh1/xdaforums huggingface dataset:
[OnePlus X Android Development] rinigus:
microphone fix for voice call

On onyx, beta 3, the voice call quality is not the best for the ones listening to the calls coming from onyx. The situation was similar to what we had on mako and could be observed in logcat during a voice call: the loaded microphone during a call was handset-mic (analog microphone on mako, I presume also analog on onyx). While on mako we fixed it by finding a bug in hybris, this time it looks like a hybris is used that had the patch applied. While I didn't look into beta3 source, I hope that https://github.com/libhybris/libhybris/pull/313 is in.

On onyx, it seems to me that the underlying CM base does not load the proper microphone. I did not confirm it by reflashing CM, but addition of the following lines to /default.prop loaded voice-dmic-ef leading to much better voice quality to others listening to your call:

ro.qc.sdk.audio.ssr=false

ro.qc.sdk.audio.fluencetype=fluence

persist.audio.fluence.mode=endfire

persist.audio.handset.mic=digital

persist.audio.voicecall.mic=0

The settings are similar to the ones on mako and are simplified from settings proposed https://forums.oneplus.net/threads/fix-crappy-call-quality.102742/page-3#post-10249839 (I kept the ones that seemed familiar and haven't checked for minimal set)

I don't know exactly what is the bug "Voicecall volume is stuck at max". With these lines in /default.prop I can adjust volume of the voice call by pressing volume up/down during a call, adjustment indicated by slider on a screen. As for volume itself that's harder to judge in the rather noisy environment I am in at present.

Please check if these improve voice calls for you.
[OnePlus X Android Development] elvarr:
All works, but it's hard judge in the dynamics.
[OnePlus X Android Development] rinigus:
to judge, you would have to call a buddy and ask whether they can hear you better :) . For me, the difference was clear immediately.
[OnePlus X Android Development] elvarr:
I checked, everything is ok.
[OnePlus X Android Development] klałn:
A package jolla-mediaplayer has a radio. It's works on 2.0.4.14. There's a bug, when you start it. You will hear yourself in headphones, but it can be fixed by turning speaker and going back to headphones in this app.

Do you have Sfdroid on your onyx? I can't find zip to install from TWRP, only instruction how to compile it.

When or how we can get Sfdroid?
[OnePlus X Android Development] lfc222222:
Is there a similar modification to improve audio of incoming calls?

tho I do not use opx as my daily driver the few times I did receive calls the audio quality was pretty poor...
[OnePlus X Android Development] rinigus:
Not really, to my knowledge. The incoming voice is transmitted to the earpiece quite well (as far as I can judge) and your problems are probably either microphone on the other side or connection quality.
[OnePlus X Android Development] ferlanero:
Thank you very much!! Works perfect!! :D
[OnePlus X Android Development] adhit_barker:
Any update for sfos?
[OnePlus X Android Development] ferlanero:
Yes. Just do:

ssu release

ssu re 2.0.4.14

version --dup
[OnePlus X Android Development] adhit_barker:
But it must old bootloader?
[OnePlus X Android Development] ferlanero:
With OOS 2.x and Recovery TWRP 3.0.2 works out of the box :D
[OnePlus X Android Development] adhit_barker:
Can't try.. I now on BL 3.x and use multirom

Any change from 2.0.2.15 to 2.0.4.14?
[OnePlus X Android Development] rinigus:
[MENTION=7427754]adhit_barker[/MENTION], since you are on multirom maybe you could help me out. I have a rather specific question regarding sensors.qcom process. On onyx Sailfish, we have 67 threads in sensors.qcom . This is rather large number. For comparison, on Nexus 4, there are 9 threads (SFOS). Would you mind checking how many sensors.qcom threads do you have? Ideally, it would be on 5.1, but values from 6.0 are also very much appreciated. You may have to use sudo to get number of threads in Android for this process.

Just want to check whether such large number of threads is coming from Android layer and is a norm for onyx.

As for changes between SFOS releases, see https://blog.jolla.com/fiskarsinjoki/ (there are more formal changelogs at together.jolla.com).
[OnePlus X Android Development] ferlanero:
Anybody here is using 4K video recording with Sailfish Camera App, like posted here? http://xdaforums.com/oneplus-x/orig-development/mod-custom-camera-hal-4k-uhd-dci-30-fps-t3315382

If so, what are the steps to make it works?

Thanks in advance :)
[OnePlus X Android Development] jmpa07:
Hi guys:

Does anyone here know how to add an exchange account? Currently, I can't find a way to add exchange accounts :/

Hope you can help me :D
[OnePlus X Android Development] ferlanero:
No way to add exchange accounts to non officially supported Jolla devices
[OnePlus X Android Development] rmitchell:
MfE account

Not true. I have been using a MfE account for ages with my op x. You need to download a few packages and their translations. I had to initially d/l with my Jolla and pkcon install-local but think it can be done with certain repo added. PM me for information.
[OnePlus X Android Development] lewadedun:
has anyone updated to 2.0.5.6? No bugs?
[OnePlus X Android Development] mousse04:
I'm interestedto know more about how to do that?
[OnePlus X Android Development] rmitchell:
MfE

Know you had to do a full flash install but any luck mousse04 ?
[OnePlus X Android Development] mousse04:
What do you mean?
[OnePlus X Android Development] kimmoli:
- Take the camera-hal from there, extract files from it.

- i recommned to take a backup of original files before overwriting

- remount system as rw

- overwrite files

- reboot

- install my droid-camres (build it or find from my obs)

- generate new camera resolutions json and put it where it goes.

- change video resolution to highest, and bitrate to >30 Mbps from camera settings.
[OnePlus X Android Development] rmitchell:
MfE

With what we talked about installing on your opx. Have bumped it on the forum so other users know it can work. Cheers.
[OnePlus X Android Development] Kermit13:
does anybody install 2.0.5.6 on the opx ?
[OnePlus X Android Development] lewadedun:
No.

"we are working on the OTA update. (soon)" - LiKimmo answered on Twitter
[OnePlus X Android Development] Kermit13:
good news :) ..thanks
[OnePlus X Android Development] kaulian:
I updated to 2.0.5 my opx and everything fine.

Just follow that :

https://wiki.merproject.org/wiki/Ad...S_for_Onyx#WIP_Over-the-Air_updates_.28OTA.29
[OnePlus X Android Development] adhit_barker:
Still BL 2.x.x sir?
[OnePlus X Android Development] kaulian:
2.0.5.6
[OnePlus X Android Development] adhit_barker:
Is it Bootloader LP, not MM?
[OnePlus X Android Development] mousse04:
This what I thought too ;). Thanks for confirmation ;)
[OnePlus X Android Development] mousse04:
Some question for you dev :)

Don't you plan to use the latest 2.0.1.7 SailfishOS version?

Are still looking for someone to make the port? (I read something about that in your other post).

What about camera? No news to make it work ?
[OnePlus X Android Development] taaeem:
You could try out the OTA instructions of hammerhead but you would have to adjust the repos so they point to devel and the right repo. But that's NOT tested, I did it once and it worked but it will probably mess up your device.

And sadly no nothing new about cam.
[OnePlus X Android Development] mousse04:
Are you speaking about that

https://wiki.merproject.org/wiki/Adaptations/libhybris/Install_SailfishOS_for_hammerhead ?

But how to adjust the repo as Jolla say that ota is only supported for N4 and N5?
[OnePlus X Android Development] mousse04:
Bug :

When I connect my device to my car (bluetooth), contacts are not displayed. Car says that contact has been sync, but nothing is displayed (I have a Peugeot 3008).

I have downloaded another ambiance and selected in the tri state menu as top target ... but doesn't work.

Question:

About flashlight and some patches. You told me that some patches enabling flashlight doesn't work because camera is not available and I think your're right, but what I don't understand is that, with your build, a flashlight app is provided and it works well ...
[OnePlus X Android Development] elvarr:
Hello guys! This port will go on Chinese version - Onyx, and the European version? I'm confused.
[OnePlus X Android Development] knauji:
I don't think it makes a difference. it works on my Chinese opx.
[OnePlus X Android Development] kimmoli:
Don't know about bluetooth sync, don't have anything to test it with. Sync in which direction, from Peugeot to phone or phone to Peugeot?

Altough quickly looking, i found few similar issues from TJC. Maybe there could be some explanations why it does not work, or if there is a workaround. I leave looking those deeper to you.

Any pointer to ambiance you installed, so i could try to reproduce. Does built-in ambiances work as expected?

The built-in flashlight-app does not use gstreamer to control flash, it controls it "directly" via sysfs.
[OnePlus X Android Development] mousse04:
It is always from Phone to Peugeot.

What is strange is that, when I owned a Jolla phone some times ago, I'm pretty sure sync was working.

And if you look here : https://together.jolla.com/question/274/pbap-bluetooth-profile-support-is-requested/

seems fixed in a previous SailfishOS release.

ok, I can confirm that with built-in ambiance it works fine.

The external ambiance I'm using are : https://openrepos.net/content/fravaccaro/star-wars-vii-ambience

Ok, so, this built-in flashlight-app has been written for 1+X ?
[OnePlus X Android Development] kimmoli:
hmm. strange, i used that ambience package while developing tristate switch. I'll take a second look.

YEs
[OnePlus X Android Development] mousse04:
Let me know if finally you tristate switch works with that ambiance.

I have 2 other problems actually :

First, vibrator is very low. Most of the time I can't feel my 1+X to vibrate.

Second, in settings, I don't see any menu to set APN or network mode. I'm pretty sure it was there, but I suspect I have downloaded something (patch?) with mess everything up. Could you check on your side ?

What about getting jolla store ?

Thanks a lot
[OnePlus X Android Development] kimmoli:
I just got another report that sync to car is not working, with similar symptoms. /me goes to buy a new car. not.
[OnePlus X Android Development] mousse04:
lol. So, what do you need as log to debug that ? I can log when I will connect the phone to the car
[OnePlus X Android Development] kimmoli:
No problems here

See first post, https://sailfish-for-opo.tchncs.de/tricks-and-fixes , specially:

dconf reset /apps/jolla-settings/maskedSettings

Waits Jolla to make some infra changes
[OnePlus X Android Development] kimmoli:
I have no idea.

install bluez-hcidump package and run hcidump ?

and, please, can we keep this on this channel? :angel:
[OnePlus X Android Development] mousse04:
Are you referring to my Twitter message? If yes, sorry about that.
[OnePlus X Android Development] mousse04:
I did it but can't find any errors ... And -V (verbose option) doesn't seem to be available for hcidump ...
[OnePlus X Android Development] kimmoli:
Problem is that i assume ambience-file is always in folder which name is same as ambience...

like:

/usr/share/ambience/ambience-starwars-vii-3/ambience-starwars-vii-3.ambience

But with this starwars thing, all three are in same folder:

/usr/share/ambience/ambience-starwars-vii/

ambience-starwars-vii-1.ambience

ambience-starwars-vii-2.ambience

ambience-starwars-vii-3.ambience

Fix is in repos now. Close your settings, run following from shell, ssh, whatevö:

ssu ar onyx-common http://repo.merproject.org/obs/home:/taaem:/common/sailfish_latest_armv7hl/
devel-su pkcon repo-set-data onyx-common refresh-now true
devel-su pkcon install triambience onyx-triambience-settings-plugin
devel-su pkcon install triambience

(yes, triambience (the daemon part) is installed twice, due a bug in previous rpm scriptlet)

:D UPDATE :D

The update of triambience daemon package will screw up your ambiences. There are some manual ownership changes in rpm script.

To fix this, cast following spells:

devel-su chgrp -R privileged /home/nemo/.local/share/system/privileged
devel-su chown privileged /home/nemo/.local/share/system/privileged
devel-su chgrp -R privileged /home/nemo/.local/share/system/Contacts

Investigating what else could be fupped.
[OnePlus X Android Development] kimmoli:
Short update what is being worked on:

Front (selfie) camera works, video "works": you can take one video, then reboot to reuse camera

Rear (main) camera doesn't work

Headphones works after reboot

Mobile settings visible after reboot, events view pulldown menu went broken (hopefully fixied now)

Note: If your touchscreen stops respoding (display is on but nothing happens), try swiping/dragging around with two fingers to revive it.
[OnePlus X Android Development] mousse04:
Thanks [MENTION=1082346]kimmoli[/MENTION] for the follow up :).

3 good news : front camera, headphones, mobile setting menu. One less ;).

What's the problem with this camera? Is it about how SailfishOS is handling camera? Or is it coming from camera drivers?

Because, I've seen that in many SailfishOS ports, camera is broken ...

Edit: what will be the new server to check a new build ;) ?
[OnePlus X Android Development] kimmoli:
The 2.0.5.6 is not yet fully baked, still few regressions to fix, so the OTA update you have performed is not complete.

Don't worry, you'll just need to do that again when "we say it's ready".

If you do OTA now, please report any regression you notice to us.

We are also planning to include fixes for old bugs (like voicecall volume, bluetooth state restored after boot) to next beta.

--EDIT--

Known regressions:

* Camera image orientation fails - This is due gstreamer plugin is not the patched version (fixed)

* MTP connection fails - Permission related issue (wip)

* Bluetooth audio connection fails - Totally unknown
[OnePlus X Android Development] ferlanero:
In OTA 2.0.5 6 there is a regresion on pictures orientation when using OPX camera: the pictures doesn't have the correct orientation, they always are showed flipped
[OnePlus X Android Development] elvarr:
USB --> PC connection. The PC doesn't see onyx.

---------- Post added at 11:04 AM ---------- Previous post was at 10:40 AM ----------

I have carefully analyzed the "Voicecall volume is stuck at max". The camera starts up only at this location:
[OnePlus X Android Development] Kermit13:
I did the update yesterday as well... pictures are like before and the pc connection is working too.

Only the voice quality when making a call could be better...
[OnePlus X Android Development] kimmoli:
For MTP connection, can you post output of ls -la /dev/mtp ?

This voice quality issue is strange, as i have no complaints on the quality.

I tried the [MENTION=7078096]rinigus[/MENTION] fix (earlier in this thread) for that but then i got complaints about fuggy sound. But partially applying that fix, the voicecall volume control started to work (not on the speakerphone mode).
[OnePlus X Android Development] rinigus:
Voice quality issue is strange, indeed. We get with [MENTION=1082346]kimmoli[/MENTION] opposite results when using

persist.audio.handset.mic=digital

in /default.prop. All my call partners preferred digital setting with [MENTION=1082346]kimmoli[/MENTION] getting "fuggy" voice complaints. [MENTION=7461812]Kermit13[/MENTION], I'd suggest to try with my settings and see if they improve the quality of the call for you as well (see https://github.com/kimmoli/sfos-onyx-issues/issues/2 for details).

I don't know the reasons behind different results. Maybe we have different modem versions? I installed SFOS as soon as I unpacked the phone, without any upgrades. Unfortunately, I didn't record which Android version I had.... Since we don't have usable multirom, I'm not really keen in going back to android
[OnePlus X Android Development] Kermit13:
[MENTION=1082346]kimmoli[/MENTION]

this is the output on the phone while a pc connection...

[nemo@localhost ~]$ ls -la /dev/mtp

total 0

dr-xr-x--- 1 root mtp 0 Feb 7 1971 .

drwxr-xr-x 20 root root 17280 Dec 3 22:07 ..

-rw-rw---- 1 root mtp 0 Feb 7 1971 ep0

-rw-rw---- 1 root mtp 0 Dec 4 12:08 ep1

-rw-rw---- 1 root mtp 0 Dec 4 12:08 ep2

-rw-rw---- 1 root mtp 0 Dec 4 12:08 ep3
[OnePlus X Android Development] lfc222222:
Would you consider bundling 4K video as a native part of the build? (if that's doable)
[OnePlus X Android Development] Kermit13:
I added the line "persist.audio.handset.mic=digital" now to /default.prop... feels like the the voice is much more clear now and not interrupted anymore. I keep it like this for now...
[OnePlus X Android Development] kimmoli:
I have no permission from the author of 4K packaged to do that.
[OnePlus X Android Development] rinigus:
You probably also have to add

ro.qc.sdk.audio.fluencetype=fluence

persist.audio.fluence.mode=endfire

to /default.prop if they are not there. Also set persist.audio.fluence.speaker=false via setprop if you use hands-free mode. That should get you to the same settings as I have.

My experience was similar to yours - voice was interrupted (and a bit metallic in my case) with default settings. I guess, everyone has to select their own settings. Its just something to try if you have voice call issues.
[OnePlus X Android Development] Kermit13:
wow...now it`s perfect... completely new experience... the voice during a call was never so clear like it is now :good:
[OnePlus X Android Development] lfc222222:
Kimmoli, I asked the developer and they responded there is no issue to use their work just make sure to credit them. See below.

Would you please re-consider?
[OnePlus X Android Development] kimmoli:
I can make it a RPM package, to be installed separately - Then it might be possible to restore original hal.

This just needs to be finalised, i started it back then, but didn't get it working reliable.

--EDIT--

Now i remembered what was not reliable, remounting /system as rw from rpm scriptlets.

--EDIT2--

Here you go View attachment onyx-4k-video-0.0.1-1.armv7hl.rpm.zip

If you want to see what it does, see here https://github.com/kimmoli/onyx-4k-video

Unzip and Install

pkcon install-local onyx-4k-video-0.0.1-1.armv7hl.rpm

if installation fails, run this first

mount -n -o remount,rw /system

reboot after installation.

Camera settings should now show new resolutions.

(I'm not so into 4k, but the constant fps in any lightning is a must)

Revert back to normal

pkcon remove onyx-4k-video
[OnePlus X Android Development] kimmoli:
We found a solution to fix mtp.

If your mtp does

not

work, you can apply following workaround:

remove symlink

rm /etc/systemd/system/local-fs.target.wants/dev-usb\\x2dffs-adb.mount

or disable it with systemctl.

and reboot.

This will prevent system from mounting adb ffs. Mounting it will break permissions of the mtp ffs mounting.

(adb was not mounted earlier due another bug, which got fixed, and successfully mounting adb breaks mtp)

(ffs - FunctionFS)
[OnePlus X Android Development] raj.ify:
My day lost, stuck playing around with this one, nothing worked.
[OnePlus X Android Development] elvarr:
kimmoli, i've removed as you have written and nothing has helped.
[OnePlus X Android Development] kimmoli:
If you had file /etc/systemd/system/local-fs.target.wants/dev-usb-ffs-adb.mount you'r update is not complete, and that wont help. Something else is broken, and i'm afraid you need to wait until we get the proper 2.0.5.6. out as OTA.
[OnePlus X Android Development] ferlanero:
On my OPX the MTP works as expected after OTA update without any workaround. Why in someone works and in other doesn't?
[OnePlus X Android Development] ferlanero:
After installing Sailfish 4K support on OnePlus X not only get 4K camera quality but you also get better overall camera performance :cool:
[OnePlus X Android Development] elvarr:
kimmoli, has solved a problem with mtp:

pkcon install buteo-mtp-qt5 buteo-mtp-qt5-sync-plugin
[OnePlus X Android Development] kaulian:
Hi all,

i have a fresh beta 3 installation but i have the problem with the exif orientation in pictures. Rotation is bad when i took pictures in portait mode.

which package fix that in beta 1 ?

perhaps this package is missing in my phone.

Thanks
[OnePlus X Android Development] kaulian:
fix : thanks to have a github with the issue

i have the bad gst-streamer-bad version ...

Installation of gstreamer1.0-plugins-bad-1.8.3+git1+haapajoki.20161126093851.1.g6e30af2-10.3.1.jolla.armv7hl.rpm and everything is OK
[OnePlus X Android Development] adhit_barker:
Hey [MENTION=5738857]taaeem[/MENTION], any update for bootloader MM?
[OnePlus X Android Development] cvp:
For those who have not noticed. The Jolla Store is now also available for ported devices.
[OnePlus X Android Development] bnwg:
Very good news!

Could anyone know and share if whatsapp, wechat and LINE are available in Jolla store?
[OnePlus X Android Development] lfc222222:
cvp, kimmoli,

Does that mean it is now safe to log into jolla account despite what it says here under Things that don't work Beta-3 heading : "Jolla Store (Harbour) doesn't work. Do not sign in with Jolla account."?
[OnePlus X Android Development] ferlanero:
Wow! It's true!! :D Jolla store fully working on OnePlus X Sailfish OS port. Fantastic!! :laugh:
[OnePlus X Android Development] cvp:
yes it is

sorry... but i talk about the Jolla Store and not aliendalvik support ;)
[OnePlus X Android Development] ferlanero:
I have updated. Absolutely happy with how Sailfish performs on OPX
[OnePlus X Android Development] adhit_barker:
Is it still BL LL sir?
[OnePlus X Android Development] ferlanero:
Can you explain better, please?
[OnePlus X Android Development] adhit_barker:
Last beta 3 is still bootloader Lolipop.. Now is it still old bootloader too?
[OnePlus X Android Development] ferlanero:
Yes it still uses bootloader Lolipop to boot the system and it will be forever as the OnePlus X Sailfish port is a libhybris based device.
[OnePlus X Android Development] adhit_barker:
So it did't get bootloader MM for boot
[OnePlus X Android Development] lfc222222:
There seems to be work going on to move libhybris forward to MM. See here
[OnePlus X Android Development] adhit_barker:
So sfos will boot MM bootloader?
[OnePlus X Android Development] kimmoli:
[MENTION=5738857]taaeem[/MENTION] dare to update first post?
[OnePlus X Android Development] lfc222222:
kimmoli, how to revert back to pixel ratio 2.0? 1.75 is too small for me :D
[OnePlus X Android Development] kimmoli:
Install necessary packages, unless you have them already

Set theme pixel ratio to 2.0

Reboot or restart lipstick

Please follow, whether the command is run as devel-su or nemo, it is important here.

devel-su pkcon refresh
devel-su pkcon install sailfish-content-graphics-closed-z2.0
devel-su pkcon install sailfish-content-graphics-default-z2.0

devel-su rm /etc/dconf/db/vendor.d/locks/silica-configs.txt
devel-su dconf update
dconf write /desktop/sailfish/silica/theme_pixel_ratio 2.0

systemctl --user restart lipstick
[OnePlus X Android Development] lewadedun:
can't see after upgrade...

in user repo...
[OnePlus X Android Development] kimmoli:
strange. This is what i, and a few others see in global:

$ ssu lr
Enabled repositories (global):
- adaptation-community ... http://repo.merproject.org/obs/nemo:/testing:/hw:/oneplus:/onyx/sailfishos_2.0.5.6/
- adaptation-community-common ... http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_2.0.5.6/
- apps ... https://releases.jolla.com/jolla-apps/2.0.5.6/armv7hl/
- hotfixes ... https://releases.jolla.com/releases/2.0.5.6/hotfixes/armv7hl/
- jolla ... https://releases.jolla.com/releases/2.0.5.6/jolla/armv7hl/
[OnePlus X Android Development] lewadedun:
I only have:

Enabled repositories (global):
- apps ... https://releases.jolla.com/jolla-apps/2.0.5.6/armv7hl/
- hotfixes ... https://releases.jolla.com/releases/2.0.5.6/hotfixes/armv7hl/
- jolla ... https://releases.jolla.com/releases/2.0.5.6/jolla/armv7hl/

Can anyone show the list of repositories (user), without openrepos repo?