sailfishos-sony-tama / main

Documentation, releases, and issues
MIT License
36 stars 7 forks source link

XZ2 H8266 Sailfish OS 4.5.0.16 Bluetooth not working #196

Closed VZuyev closed 1 year ago

VZuyev commented 1 year ago

Bluetooth not working. systemctl restart bluetooth (up to three times) Bluetooth working. reboot Bluetooth not working. ...

rinigus commented 1 year ago

This report was done before I released SFOS update, so I have no idea what did you use for update. Over here, on XZ2 single sim, BT looks to be working. Will release update officially shortly, please make OTA as expected and test again. I tested using GUI switches in Settings

VZuyev commented 1 year ago
  1. Installed today https://github.com/sailfishos-sony-tama/main/releases/download/4.4.0.58/Sailfish_OS-4.4.0.58-h8266-0.5.0.1.zip
  2. Updated to 4.5.0.16 today according to this instruction https://github.com/sailfishos-sony-tama/main#over-the-air-updates-ota
rinigus commented 1 year ago

OK, you skipped one 4.4 release, but I don't know if it is of any importance. Have you tried to start bluetooth from GUI - without touching any systemd services manually? Has bluetooth worked for you on XZ2 SFOS earlier?

I will soon upload 4.5 SFOS images as well. If you are flashing anyway, you could try those too

VZuyev commented 1 year ago

Bluetooth worked on 4.4.0.58 and 4.4.0.72.

  1. Today installed 4.4.0.58, updated to 4.4.0.72, updated to 4.5.0.16. Bluetooth not worked. Yes, I have tried to start bluetooth from GUI - without touching any systemd services manually.
  2. Today installed 4.4.0.58, updated to 4.5.0.16. Bluetooth not working. Yes, I have tried to start bluetooth from GUI - without touching any systemd services manually.
rinigus commented 1 year ago

I cannot reproduce it on h8216 (XZ2) and h8324 (XZ2c). On my devices bluetooth starts, connects, and allows to use bt device during a call.

VZuyev commented 1 year ago

https://forum.sailfishos.org/t/4-5-0-16-xperia-xa2-plus-bluetooth-not-available/14349 Settings-> Utils-> Bluetooth Restart helps now.

VZuyev commented 1 year ago

Installed 4.5.0.16 https://github.com/sailfishos-sony-tama/main/releases/download/4.5.0.16/Sailfish_OS-4.5.0.16-h8266-0.5.0.1.zip Bluetooth not working. Settings->Utils->Bluetooth Restart helps.

rinigus commented 1 year ago

Settings->Utils->Bluetooth Restart helps.

please explain. Does the restart via Utils makes it possible to use BT? After that all works as it should?

VZuyev commented 1 year ago

Yes. Restart via Utils makes it possible to use BT. After reboot BT doesn't work again.

VZuyev commented 1 year ago

Please correct flash-on-windows.bat.

flash-on-windows.zip

Corrected fragment:

:no_error_serialnumbers

for %%d in ( %serialnumbers% ) do ( set fastbootcmd=%fastbootcmd_no_device% -s %%d @call :getvar product findstr /R ":: H8266" %tmpflashfile% >NUL 2>NUL if not errorlevel 1 ( call :new_product_found %%d ) )

rinigus commented 1 year ago

Please submit PR with the change. Then I can attribute it to you. File to patch is https://github.com/sailfishos-sony-tama/droid-config-sony-tama-pie/blob/hybris-10/sparse/boot/flash-on-windows.bat

VZuyev commented 1 year ago

https://github.com/sailfishos-sony-tama/droid-config-sony-tama-pie/blob/hybris-10/sparse/boot/flash-on-windows.bat Everything seems to be correct in this file.

Fragment from file https://github.com/sailfishos-sony-tama/droid-config-sony-tama-pie/blob/hybris-10/sparse/boot/flash-on-windows.bat:

:no_error_serialnumbers

for %%d in ( %serialnumbers% ) do ( set fastbootcmd=%fastbootcmd_no_device% -s %%d @call :getvar product findstr /R "@DEVICES@" %tmpflashfile% >NUL 2>NUL if not errorlevel 1 ( call :new_product_found %%d ) )

Fragment from not working file flash-on-windows.bat Sailfish_OS-4.5.0.16-h8266-0.5.0.1:

:no_error_serialnumbers

for %%d in ( %serialnumbers% ) do ( set fastbootcmd=%fastbootcmd_no_device% -s %%d @call :getvar product findstr /R ":: H8266 :: H8266" %tmpflashfile% >NUL 2>NUL if not errorlevel 1 ( call :new_product_found %%d ) )

rinigus commented 1 year ago

Closing as original issue seems to be resolved.