Skip to main content
Topic: Cannot use bluetooth (Read 1596 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cannot use bluetooth

I have bluez blueman bluez-utils bluez-dinit bluez-tools installed and the bluetoothd service is enabled.
From my Artix device I cannot see the other device.
The other device can see Artix and connect.

On Artix in blueman-manager it shows it connected  but "Send File" is grayed out.
And I cannot send a note: "Unable to find service record".

/var/log/errors.log:

Code: [Select]
kernel: 
bluetoothd[571]: src/plugin.c:plugin_init() Failed to init vcp plugin
bluetoothd[571]: src/plugin.c:plugin_init() Failed to init mcp plugin
bluetoothd[571]: src/plugin.c:plugin_init() Failed to init bap plugin
connman-vpnd[602]: Can't load /usr/lib/connman/plugins-vpn/openconnect.so: libopenconnect.so.5: cannot open shared object file: No such file or directory
wpa_supplicant[604]: bgscan simple: Failed to enable signal strength monitoring
kernel:
bluetoothd[572]: src/plugin.c:plugin_init() Failed to init vcp plugin
bluetoothd[572]: src/plugin.c:plugin_init() Failed to init mcp plugin
bluetoothd[572]: src/plugin.c:plugin_init() Failed to init bap plugin
connman-vpnd[605]: Can't load /usr/lib/connman/plugins-vpn/openconnect.so: libopenconnect.so.5: cannot open shared object file: No such file or directory
wpa_supplicant[607]: bgscan simple: Failed to enable signal strength monitoring
obexd[945]: Unable to find service record
bluetoothd[572]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)
obexd[945]: Unable to find service record
obexd[945]: Unable to find service record
bluetoothd[572]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free unit: getpeername: Transport endpoint is not connected (107)
bluetoothd[572]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free unit: getpeername: Transport endpoint is not connected (107)
obexd[945]: Unable to find service record

Re: Cannot use bluetooth

Reply #1
Quote
connman-vpnd[605]: Can't load /usr/lib/connman/plugins-vpn/openconnect.so: libopenconnect.so.5: cannot open shared object file: No such file or directory
This looks like a library break with connman which is strange since it is in the package directly.
Try rebuilding connman and see if the library break error is repaired.
Code: [Select]
$ git clone https://gitea.artixlinux.org/packagesC/connman.git


Re: Cannot use bluetooth

Reply #2
Isn't that error related to some vpn daemon?
I put all the /var/log/errors.log file there.

Re: Cannot use bluetooth

Reply #3
 
 Saw someone complained about bt broke after python-cairo and cairo packages upgrade. Try downgrade those two see if that quick fix helps.
  

Re: Cannot use bluetooth

Reply #4
Just rebuilding the python-cairo package will address the current python issue.
My python applications ran after installing the local build.
Or some users went to the AUR git version which also addresses the issue.

Re: Cannot use bluetooth

Reply #5
Code: [Select]
connman-vpnd[602]: Can't load /usr/lib/connman/plugins-vpn/openconnect.so: libopenconnect.so.5: cannot open shared object file: No such file or directory
Quote
Isn't that error related to some vpn daemon?
The executable is directly from connman.
Code: [Select]
$ pacman -Ql connman
connman /etc/
connman /etc/connman/
connman /etc/connman/main.conf
connman /usr/
connman /usr/bin/
connman /usr/bin/connman-vpnd
connman /usr/bin/connmanctl
connman /usr/bin/connmand
connman /usr/bin/connmand-wait-online
<... snipped ...>
The error message shows library breakage occurring.
When I see a library break, I start building the package to see if addresses the issue.
Most of the time it will fix the issue though a few times a linked library or very rarely libraries needed to be redone as well.

I also have the same bluetooth errors you posted in "/var/log/errors.log":
Code: [Select]
Feb  8 08:28:21  <server name> bluetoothd[877]: src/plugin.c:plugin_init() Failed to init vcp plugin
Feb  8 08:28:21 <server name> bluetoothd[877]: src/plugin.c:plugin_init() Failed to init mcp plugin
Feb  8 08:28:21 <server name> bluetoothd[877]: src/plugin.c:plugin_init() Failed to init bap plugin
My bluetooth works with these posted failures though with network-manager's applet.

Re: Cannot use bluetooth

Reply #6
What version of pyhton-cairo should I try?
I have "world/python-cairo 1.23.0-2 [installed]".

I reinstalled connman I will check errors.
But shouldn't that error be a problem for a vpn only?

Re: Cannot use bluetooth

Reply #7
The latest update today for me is now at world/python-cairo 1.23.0-3.
Just update and it should be good if you have not already.

Re: Cannot use bluetooth

Reply #8
Code: [Select]
blueman-manager 
Traceback (most recent call last):
  File "/usr/bin/blueman-manager", line 16, in <module>
    from blueman.main.Manager import Blueman
  File "/usr/lib/python3.10/site-packages/blueman/main/Manager.py", line 10, in <module>
    from blueman.Functions import *
  File "/usr/lib/python3.10/site-packages/blueman/Functions.py", line 37, in <module>
    import cairo
  File "/usr/lib/python3.10/site-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
ImportError: /usr/lib/python3.10/site-packages/cairo/_cairo.cpython-310-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index

Re: Cannot use bluetooth

Reply #9
Blueman-manager now needs to be build and linked to the newer python-cairo application.
Updates can be frustrating to be sure if all the packages are not at the same level at the same time.
The best way I find for myself is to compile the packages locally if I need it right away to address the API/library/linkage breaks.
Otherwise I just wait until the distribution releases the fixed package in question.

Re: Cannot use bluetooth

Reply #10
On another Artix device blueman-manager was able to see BT devices but not my Linux phone.
The phone could see it and connect but  same error: "Unable to find service record" and I couldn't do things.

After updating it is the same but the phone cannot see it anymore.
It is working fine with a BT headset.

So maybe something went wrong when updating on the 1st device?

Re: Cannot use bluetooth

Reply #11
I am glad the bluetooth headset connected, it shows that you have a functioning setup.

When one device does not connect but others do this sounds like an encryption/protocol version situation.
Kind of like each device is speaking in it's own language resulting in a lack connectivity.
One would have to research the device on what bluetooth versions work with it and if there are work arounds/procedures for the stated device.
It could even mean purchasing new hardware to get the connection to go.
If the device has hard encoded firmware, usually the only solution to incompatibilities would be new hardware.

Re: Cannot use bluetooth

Reply #12
On the first Artix device I cannot use the BT at all.
It was working on another Linux.
And my phone used to work on both Artix devices, but not on Artix.

1st device:
Code: [Select]
rfkill 
ID TYPE      DEVICE      SOFT      HARD
 0 bluetooth hci0   unblocked unblocked
 1 wlan      phy0   unblocked unblocked

lsusb |grep Bluetooth
Bus 003 Device 004: ID 0bda:0821 Realtek Semiconductor Corp. RTL8821A Bluetooth

Re: Cannot use bluetooth

Reply #13
Update first device with realtek card can use the BT speakers.
I can see my other Artix device but I cannot send a note let alone a file.