Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proximity sensor doesn't work #9

Open
b100dian opened this issue Jun 2, 2021 · 5 comments
Open

Proximity sensor doesn't work #9

b100dian opened this issue Jun 2, 2021 · 5 comments
Labels
bug Something isn't working major Big failure
Milestone

Comments

@b100dian
Copy link
Contributor

b100dian commented Jun 2, 2021

One way to do it:
mi_ultrasound_extn: us_manual_cal_load: Cannot open calibration file: /mnt/vendor/persist/audio/us_manual_cal

Another way: find out what MI fw does different than lineage (service/executable?)

There were two bugs here: one was that the kernel as built for lineage missed the ultrasound driver, see link to commit below.
The other one is that for it to work, it needs adioservice and audio-hal-2.0..

@b100dian b100dian added bug Something isn't working major Big failure labels Jun 2, 2021
@b100dian b100dian added this to the public milestone Jun 2, 2021
@b100dian
Copy link
Contributor Author

@b100dian
Copy link
Contributor Author

Actually, there is something that prevents microphone sound during calls when enabling those services.
It used to work with the 2020 gst-droid and the DIGI SIM card, but on 4.1.0 I upgraded to 2021 gst-droid (and then it used to work with mapplauncherd-booster-silica-qt5-media disabled) but with the Vodafone SIM the latter workaround did not work anymore.
The good news is that, while on a call, the power button can be used to close the screen and open it back...
See sailfishos-on-tucana/droid-config-tucana@6f8d75c

The correct solution is probably around pulseaudio droid enabling these 'soundcards'

@b100dian b100dian reopened this Jul 22, 2021
@b100dian
Copy link
Contributor Author

Really hoping this was fixed with sailfishos-on-tucana/droid-config-tucana@6c1e933
I made 8 successful sound boots on 4.1, one unsuccesfull after upgrading to 4.2 and 9 successful after the upgrade.
The race is definitely lesser..

If you encounter a situation where no sound is in a call, systemctl-user restart pulseaudio fixes it (but it doesn't make the proximity sensor work). You can issue that from gui if you register it with qCommand.

@b100dian
Copy link
Contributor Author

b100dian commented Apr 2, 2022

Very much buggy and racy since 4.3, reopening

@b100dian b100dian reopened this Apr 2, 2022
@b100dian
Copy link
Contributor Author

Just a thought, the 4.3 changelog references

Boosting of the camera (startup) added back (earlier removed by sandboxing)

https://forum.sailfishos.org/t/release-notes-suomenlinna-4-3-0/8495#camera-13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major Big failure
Projects
None yet
Development

No branches or pull requests

1 participant