BUILD ID = OS VERSION: 18.104.22.168
HARDWARE: XA2 Ultra
UI LANGUAGE: Finnish
REGRESSION: no (probably)
Removing paired Bluetooth device doesn’t remove cache item from
/var/lib/bluetooth/cache which can lead to confusion.
- Have two identical handsfrees at hand
- Power on and pair handsfree 1
- Make a call and use the handsfree to see it works OK
- Shut down handsfree 1
- Remove handsfree 1 from paired devices
- Power on and pair handsfree 2
- Make a call and use the handsfree to see if it works
- No remnants of handsfree 1 in
- The device works as expected
- Obsolete cache item in
- The call is router to handsfree
- It works for a second or two, then disconnects
- The Bluetooth device is connected but the call can’t be routed to it
After step 5) there are two files in
/var/lib/bluetooth/cache folder with different MAC addresses and same name (tested with JBL TUNE750BTNC). Removing device 2 and re-pairing it doesn’t fix the issue.
I fixed the issue by removing all Bluetooth devices, turning off Bluetooth, clearing all files from the cache dir, powering on Bluetooth and pairing the device once again. Removing only the device may well be enough though, I just didn’t bother grepping the files using the on screen keyboard.
This is likely not a regression but a long time bug. I remember hitting the same bug (or close) in Sailfish 3.x and clearing the cache did the trick.
An educated but still blind suggestion: purge the cache directory of non-paired devices when Bluetooth is turned on.