blueman icon indicating copy to clipboard operation
blueman copied to clipboard

Cannot connect any sound device

Open schottz opened this issue 3 years ago • 5 comments

After last update, I'm unable to connect to my sound devices. Both my Alexa and JBL Headphone, even listed on discovered devices, cannot be paired.

The error like below is shown at the bottom of the window.

blueman: 2.3.3 BlueZ: Distribution: Linux Mint 21 Desktop environment: Cinnamon

Connection Failed: File "/usr/lib/python3/dist-packages/blueman/main/DbusService.py", line 154, in _handle_method_call
    method(*(args + (ok, lambda exception: self._return_dbus_error(invocation, exception))))
  File "/usr/lib/python3/dist-packages/blueman/plugins/applet/DBusService.py", line 66, in connect_service
    self.parent.Plugins.RecentConns.notify(object_path, uuid)
  File "/usr/lib/python3/dist-packages/blueman/plugins/applet/RecentConns.py", line 143, in notify
    self._rebuild()
  File "/usr/lib/python3/dist-packages/blueman/plugins/applet/RecentConns.py", line 86, in _rebuild
    self._item.set_sensitive(True)
  File "/usr/lib/python3/dist-packages/blueman/plugins/applet/Menu.py", line 106, in set_sensitive
    self._menu_plugin.on_menu_changed()
  File "/usr/lib/python3/dist-packages/blueman/plugins/applet/Menu.py", line 145, in on_menu_changed
    self._emit_dbus_signal("MenuChanged", self._get_menu())
  File "/usr/lib/python3/dist-packages/blueman/plugins/applet/Menu.py", line 149, in _get_menu
    for key in sorted(self.__menuitems.keys())
TypeError: '<' not supported between instances of 'tuple' and 'int'

schottz avatar Oct 13 '22 20:10 schottz

Can you check #1888?

cschramm avatar Oct 13 '22 22:10 cschramm

Should I do something? =x

schottz avatar Oct 14 '22 01:10 schottz

Would be great if you can test with the fix.

An easy way would be to download https://github.com/blueman-project/blueman/blob/1cb88bd8c05a0106d974eacba9bc984396d80c0d/blueman/plugins/applet/Menu.py and https://github.com/blueman-project/blueman/blob/1cb88bd8c05a0106d974eacba9bc984396d80c0d/blueman/main/indicators/StatusNotifierItem.py and replace the respective files on your system.

No worries if you're not able to test it.

cschramm avatar Oct 14 '22 06:10 cschramm

I’ll do and return

Em sex., 14 de out. de 2022 às 03:08, Christopher Schramm < @.***> escreveu:

Would be great if you can test with the fix.

An easy way would be to download https://github.com/blueman-project/blueman/blob/1cb88bd8c05a0106d974eacba9bc984396d80c0d/blueman/plugins/applet/Menu.py and https://github.com/blueman-project/blueman/blob/1cb88bd8c05a0106d974eacba9bc984396d80c0d/blueman/main/indicators/StatusNotifierItem.py and replace the respective files on your system.

No worries if you're not able to test it.

— Reply to this email directly, view it on GitHub https://github.com/blueman-project/blueman/issues/1887#issuecomment-1278528757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBBXDJC77DRTYK234LZMYTWDD2GBANCNFSM6AAAAAAREUIA3I . You are receiving this because you authored the thread.Message ID: @.***>

--

Felipe Schottz

schottz avatar Oct 14 '22 10:10 schottz

Hi @cschramm . It worked! Replaced the files and restarted the computer. I had the error below at first. After turning the computer off and on again, it seems it's working well.

Thank you

Connection Failed: org.freedesktop.DBus.Error.UnknownObject Method "Connect" with signature "" on interface "org.bluez.Device1" doesn't exist

schottz avatar Oct 14 '22 12:10 schottz

Awesome, thanks for double-checking! A 2.3.4 is already published (here, not yet in Linux Mint).

cschramm avatar Oct 14 '22 14:10 cschramm