Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest git version bluealsa - D-bus error #233

Closed
Pro-pra opened this issue Jul 16, 2019 · 7 comments
Closed

latest git version bluealsa - D-bus error #233

Pro-pra opened this issue Jul 16, 2019 · 7 comments

Comments

@Pro-pra
Copy link

Pro-pra commented Jul 16, 2019

dbus sessions launched, bluetoothd work fine.

bluealsa: bluez.c:801: Registering endpoint: /org/bluez/hci0/A2DP/APTX/Source/1
bluealsa: bluez.c:801: Registering endpoint: /org/bluez/hci0/A2DP/MPEG24/Source/1
bluealsa: bluez.c:801: Registering endpoint: /org/bluez/hci0/A2DP/SBC/Source/1
bluealsa: ba-adapter.c:134: Freeing adapter: hci0
bluealsa: bluez.c:1065: Registering profile: /org/bluez/HSP/AudioGateway
bluealsa: bluez.c:1065: Registering profile: /org/bluez/HFP/AudioGateway
bluealsa: main.c:328: Acquiring D-Bus service name: org.bluealsa
bluealsa: main.c:333: Starting main dispatching loop
bluealsa: Couldn't acquire D-Bus name: org.bluealsa
bluealsa: main.c:337: Exiting main loop

dbus-monitor --system messages after start bluealsa:

signal sender=org.freedesktop.DBus -> dest=(null destination) serial=228 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.114"
   string ""
   string ":1.114"
signal sender=org.freedesktop.DBus -> dest=(null destination) serial=84 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.114"
   string ":1.114"
   string ""

@Pro-pra Pro-pra changed the title latest git version D-bus error latest git version bluealsa - D-bus error Jul 18, 2019
@darjusp
Copy link

darjusp commented Jul 18, 2019

got this one too on Arch when launching 'bluealsa':
bluealsa: Couldn't acquire D-Bus name: org.bluealsa

Acquired package from AUR https://aur.archlinux.org/packages/bluez-alsa-git/

is there a way how it could be avoided or fixed?

@arkq
Copy link
Owner

arkq commented Jul 18, 2019 via email

@darjusp
Copy link

darjusp commented Jul 18, 2019

sorry my mistake, it seems I launched it twice. when "killall bluealsa" and then "bluealsa &" comes without any errors. So does it mean that bluealsa works properly, and most probably doesn't cause failure to connect to bluetooth devices, which I am trying to solve now?

@arkq
Copy link
Owner

arkq commented Jul 18, 2019

So does it mean that bluealsa works properly

It's really hard to tell, because there can ba a lot of obstacles preventing connection with the BT device. But the best way to tell is to compile bluez-alsa with debug enabled and see the logs. If there is no logs (when the connection attempt is made) it might mean, that the connection is not forwarded to the bluealsa by the bluez daemon. Then, you have to look for the issue in the bluez itself. Also, make sure that profile which you try to utilize is enabled in the bluealsa (see bluealsa --help).

@Pro-pra
Copy link
Author

Pro-pra commented Jul 19, 2019

added dbus-monitor log, see start message.

This is right dbus-monitor log for old worked version bluealsa:

signal sender=org.freedesktop.DBus -> dest=(null destination) serial=235 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.119"
   string ""
   string ":1.119"
signal sender=:1.4 -> dest=(null destination) serial=544 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "UUIDs"
         variant             array [
               string "0000110a-0000-1000-8000-00805f9b34fb"
               string "00001801-0000-1000-8000-00805f9b34fb"
               string "0000110e-0000-1000-8000-00805f9b34fb"
               string "00001200-0000-1000-8000-00805f9b34fb"
               string "0000110c-0000-1000-8000-00805f9b34fb"
               string "00001800-0000-1000-8000-00805f9b34fb"
            ]
      )
   ]
   array [
   ]
signal sender=:1.4 -> dest=(null destination) serial=548 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "UUIDs"
         variant             array [
               string "00001112-0000-1000-8000-00805f9b34fb"
               string "0000110a-0000-1000-8000-00805f9b34fb"
               string "00001801-0000-1000-8000-00805f9b34fb"
               string "0000110e-0000-1000-8000-00805f9b34fb"
               string "00001200-0000-1000-8000-00805f9b34fb"
               string "0000110c-0000-1000-8000-00805f9b34fb"
               string "00001800-0000-1000-8000-00805f9b34fb"
            ]
      )
   ]
   array [
   ]
signal sender=:1.4 -> dest=(null destination) serial=550 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "UUIDs"
         variant             array [
               string "00001112-0000-1000-8000-00805f9b34fb"
               string "00001801-0000-1000-8000-00805f9b34fb"
               string "0000110e-0000-1000-8000-00805f9b34fb"
               string "00001800-0000-1000-8000-00805f9b34fb"
               string "00001200-0000-1000-8000-00805f9b34fb"
               string "0000110c-0000-1000-8000-00805f9b34fb"
               string "0000110a-0000-1000-8000-00805f9b34fb"
               string "0000111f-0000-1000-8000-00805f9b34fb"
            ]
      )
   ]
   array [
   ]

@darjusp
Copy link

darjusp commented Jul 19, 2019

So does it mean that bluealsa works properly

It's really hard to tell, because there can ba a lot of obstacles preventing connection with the BT device. But the best way to tell is to compile bluez-alsa with debug enabled and see the logs. If there is no logs (when the connection attempt is made) it might mean, that the connection is not forwarded to the bluealsa by the bluez daemon. Then, you have to look for the issue in the bluez itself. Also, make sure that profile which you try to utilize is enabled in the bluealsa (see bluealsa --help).

Arkadsiusz, thank you a lot. You delivered me to the right place - help section about profile. Maybe someone will face such problem in the future. So problem was not using profile calling: 'bluealsa &' . Adding profile allowed to connect 'bluealsa -p a2dp-sink &'. now i have another issue 'bluealsa-aplay: Couldn't open PCM: No such file or directory' but i won't be spamming here. Thanks again, now i can move forward with my project

@Pro-pra
Copy link
Author

Pro-pra commented Jul 23, 2019

Yes, fixed for me, missing /etc/dbis-1/system.d/bluealsa.conf in my system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants