sailfishos-on-tucana / Readme

Use this repository for bugs and docs.
3 stars 2 forks source link

Proximity sensor doesn't work #9

Open b100dian opened 3 years ago

b100dian commented 3 years ago

~~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 commented 3 years ago

Fixed with https://github.com/b100dian/Xiaomi_Kernel_OpenSource/commit/4465895f995f6369988820b82628e89a7d78a2f2

b100dian commented 3 years ago

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 https://github.com/sailfishos-on-tucana/droid-config-tucana/commit/6f8d75cf811c6b6331ca2b62ede25930711e68ef

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

b100dian commented 3 years ago

Really hoping this was fixed with https://github.com/sailfishos-on-tucana/droid-config-tucana/commit/6c1e93385327bc33f64878fc3a72cb57b9b2685f 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 commented 2 years ago

Very much buggy and racy since 4.3, reopening

b100dian commented 1 year ago

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