Closed moozhub closed 3 years ago
Just realized this may be a duplicate of #359 ...
No, it seems like a separate issue. It looks like your headset does not like Sending AT message: RESP: command:(null), value:+XAPL=BlueALSA,6
response from bluealsa, and keeps sending AT+XAPL
command. Could you try to disable HFP profile and check only with A2DP (bluealsa -p a2dp-source
)?
Hi @Arkq thanks for the reply. I've indeed already tried this method, and at least for this particular device it seems to be worse off because the device itself doesn't ever seem to want to get into it's "phone" method, but I suppose that probably has to do with the profile being used... none the less it does pair but I've also been unable to get aplay to playback a sound file through it..
aplay:
$ aplay something.wav
D: ../../../src/asound/bluealsa-pcm.c:671: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Setting constraints
Playing WAVE 'something.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
D: ../../../src/asound/bluealsa-pcm.c:368: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Initializing HW
D: ../../../src/asound/bluealsa-pcm.c:375: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Couldn't open PCM: Remote peer disconnected
aplay: set_params:1407: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 22050
PERIOD_TIME: [85333 85334)
PERIOD_SIZE: (1881 1882)
PERIOD_BYTES: (3762 3764)
PERIODS: (5 7)
BUFFER_TIME: (511882 511883)
BUFFER_SIZE: NONE
BUFFER_BYTES: 22574
TICK_TIME: 0
D: ../../../src/asound/bluealsa-pcm.c:357: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Closing
bluealsa.service:
Aug 23 21:28:57 computer systemd[1]: Started Bluealsa daemon.
Aug 23 21:29:23 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:29:51 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:1009: Signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved()
Aug 23 21:29:58 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 48:C1:AC:E6:XX:XX: SBC
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SelectConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/a2dp.c:664: Selected A2DP SBC bit-pool range: [2, 89]
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:291: A2DP Source (SBC) configured for device 48:C1:AC:E6:XX:XX
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:294: Configuration: channels: 2, sampling: 48000
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/3
Aug 23 21:30:02 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/3
Aug 23 21:30:25 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
Aug 23 21:30:42 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
Aug 23 21:30:42 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:868: New transport: 14 (MTU: R:672 W:1008)
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:1068: Signal: org.freedesktop.DBus.Properties.PropertiesChanged()
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/bluez.c:1104: Signal: PropertiesChanged: org.bluez.MediaTransport1: State
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:750: Starting transport: A2DP Source (SBC)
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/sbc.c:114: SBC setup: 48000 Hz JointStereo allocation=SNR blocks=16 sub-bands=8 bit-pool=51 => 345000 bps
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:643: Starting IO loop: A2DP Source (SBC)
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:143: PCM has been closed: 10
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1006: Closing PCM: 10
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:313: Keep-alive polling: 0
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:901: Releasing A2DP transport: A2DP Source (SBC)
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: E: Couldn't release transport: The connection is closed
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1054: Exiting IO thread: A2DP Source (SBC)
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1032: Created new thread [ba-a2dp-sbc]: A2DP Source (SBC)
Aug 23 21:30:43 computer bluealsa[99036]: /usr/bin/bluealsa: D: ../../src/main.c:406: Exiting main loop
For what it's worth, I also tried pairing and playing back through a different headset the Samsung Galaxy Buds+ using my original settings with somewhat similar results:
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 24:5A:B5:F8:XX:XX: SBC
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 24:5A:B5:F8:XX:XX: AAC
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 24:5A:B5:F8:XX:XX: samsung-SC
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/AAC/Source/1
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:291: A2DP Source (AAC) configured for device 24:5A:B5:F8:XX:XX
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:294: Configuration: channels: 2, sampling: 48000
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/AAC/Source/3
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/AAC/Source/3
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluez.Profile1.NewConnection() on /org/bluez/HFP/AudioGateway
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:880: Starting RFCOMM loop: HFP Audio Gateway
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:1262: Created new RFCOMM thread [ba-rfcomm]: HFP Audio Gateway
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/sco.c:166: Checking Broadcom internal SCO routing
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/sco.c:172: Current SCO interface setup: 1 2 0 1 1
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/sco.c:200: Created SCO dispatcher [ba-sco-dispatch]: hci0
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:609: HFP Audio Gateway configured for device 24:5A:B5:F8:XX:XX
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:750: Starting transport: HFP Audio Gateway
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1032: Created new thread [ba-sco]: HFP Audio Gateway
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/sco.c:77: Starting SCO dispatcher loop: hci0
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/sco.c:241: Starting SCO loop: HFP Audio Gateway
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+BRSF, value:923
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:+BRSF, value:2784
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:126: RFCOMM: HFP Audio Gateway state transition: 0 -> 2
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+BAC, value:1,2,16
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:126: RFCOMM: HFP Audio Gateway state transition: 2 -> 3
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: TEST: command:+CIND, value:(null)
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:+CIND, value:("service",(0-1)),("call",(0,1)),("callsetup",(0-3)),("callheld",(0-2)),("signal",(0-5)),("roam",(0-1)),("battchg",(0-5))
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:126: RFCOMM: HFP Audio Gateway state transition: 3 -> 5
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: GET: command:+CIND, value:(null)
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:+CIND, value:0,0,0,0,0,0,5
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:126: RFCOMM: HFP Audio Gateway state transition: 5 -> 7
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+CMER, value:3,0,0,1
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:126: RFCOMM: HFP Audio Gateway state transition: 7 -> 8
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:126: RFCOMM: HFP Audio Gateway state transition: 8 -> 9
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+VGM, value:7
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+VGS, value:8
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+CCWA, value:1
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: W: Unsupported AT message: SET: command:+CCWA, value:1
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:ERROR
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+COPS, value:3,0
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: W: Unsupported AT message: SET: command:+COPS, value:3,0
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:ERROR
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+CMEE, value:1
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: W: Unsupported AT message: SET: command:+CMEE, value:1
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:ERROR
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+BIA, value:0,1,1,1,0,0,0
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+SAMSUNG, value:VID,117,PID,40978,BTVER,R175XXU0ATF2
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: W: Unsupported AT message: SET: command:+SAMSUNG, value:VID,117,PID,40978,BTVER,R175XXU0ATF2
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:ERROR
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+SAMSUNG, value:VR_BTN,0
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: W: Unsupported AT message: SET: command:+SAMSUNG, value:VR_BTN,0
Aug 23 21:44:10 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:ERROR
Aug 23 21:44:13 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:1085: RFCOMM poll timeout
Aug 23 21:44:13 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:724: RFCOMM: HFP Audio Gateway setting codec: mSBC
Aug 23 21:44:13 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:+BCS, value:2
Aug 23 21:44:13 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/at.c:161: AT message: SET: command:+BCS, value:2
Aug 23 21:44:13 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-rfcomm.c:107: Sending AT message: RESP: command:(null), value:OK
Aug 23 21:45:35 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
Aug 23 21:45:35 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_24_5A_B5_F8_XX_XX/a2dpsrc/sink
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:868: New transport: 20 (MTU: R:672 W:679)
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:1068: Signal: org.freedesktop.DBus.Properties.PropertiesChanged()
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/bluez.c:1104: Signal: PropertiesChanged: org.bluez.MediaTransport1: State
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:750: Starting transport: A2DP Source (AAC)
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1032: Created new thread [ba-a2dp-aac]: A2DP Source (AAC)
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:1437: Starting IO loop: A2DP Source (AAC)
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1006: Closing PCM: 10
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:143: PCM has been closed: 10
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:313: Keep-alive polling: 0
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:313: Keep-alive polling: 0
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: E: Couldn't acquire D-Bus name: org.bluealsa
Aug 23 21:45:38 computer bluealsa[103025]: /usr/bin/bluealsa: D: ../../src/main.c:406: Exiting main loop
Aug 23 21:45:38 computer systemd[1]: bluealsa.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 21:45:38 computer systemd[1]: bluealsa.service: Failed with result 'exit-code'.
Here is the same test with the Galaxy Buds with the settings you suggested (only -p a2dp-source)...
aplay:
$ aplay something.wav
D: ../../../src/asound/bluealsa-pcm.c:761: /org/bluealsa/hci0/dev_24_5A_B5_F8_XX_XX/a2dpsrc/sink: Setting constraints
Playing WAVE 'something.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
D: ../../../src/asound/bluealsa-pcm.c:397: /org/bluealsa/hci0/dev_24_5A_B5_F8_XX_XX/a2dpsrc/sink: Initializing HW
D: ../../../src/asound/bluealsa-pcm.c:404: /org/bluealsa/hci0/dev_24_5A_B5_F8_XX_XX/a2dpsrc/sink: Couldn't open PCM: Remote peer disconnected
aplay: set_params:1407: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 22050
PERIOD_TIME: [85333 85334)
PERIOD_SIZE: (1881 1882)
PERIOD_BYTES: (3762 3764)
PERIODS: (5 7)
BUFFER_TIME: (511882 511883)
BUFFER_SIZE: NONE
BUFFER_BYTES: 22574
TICK_TIME: 0
D: ../../../src/asound/bluealsa-pcm.c:386: /org/bluealsa/hci0/dev_24_5A_B5_F8_XX_XX/a2dpsrc/sink: Closing
bluealsa.service
Aug 23 21:51:06 computer systemd[1]: Started Bluealsa daemon.
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 24:5A:B5:F8:XX:XX: SBC
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 24:5A:B5:F8:XX:XX: AAC
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 24:5A:B5:F8:XX:XX: samsung-SC
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/AAC/Source/1
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:291: A2DP Source (AAC) configured for device 24:5A:B5:F8:XX:XX
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:294: Configuration: channels: 2, sampling: 48000
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/AAC/Source/3
Aug 23 21:51:24 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/AAC/Source/3
Aug 23 21:51:54 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
Aug 23 21:51:54 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_24_5A_B5_F8_XX_XX/a2dpsrc/sink
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:868: New transport: 14 (MTU: R:672 W:679)
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:1068: Signal: org.freedesktop.DBus.Properties.PropertiesChanged()
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/bluez.c:1104: Signal: PropertiesChanged: org.bluez.MediaTransport1: State
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:750: Starting transport: A2DP Source (AAC)
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:1437: Starting IO loop: A2DP Source (AAC)
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:143: PCM has been closed: 10
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1006: Closing PCM: 10
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:313: Keep-alive polling: 0
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:901: Releasing A2DP transport: A2DP Source (AAC)
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: E: Couldn't release transport: The connection is closed
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1054: Exiting IO thread: A2DP Source (AAC)
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1032: Created new thread [ba-a2dp-aac]: A2DP Source (AAC)
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: E: Couldn't acquire D-Bus name: org.bluealsa
Aug 23 21:51:55 computer bluealsa[103431]: /usr/bin/bluealsa: D: ../../src/main.c:406: Exiting main loop
Aug 23 21:51:55 computer systemd[1]: bluealsa.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 21:51:55 computer systemd[1]: bluealsa.service: Failed with result 'exit-code'.
Hey @Arkq .. is there any additional information I can provide for this issue? Would really like to take advantage of this project.
It looks to me as though it is aplay that is closing the connection, and the only reason I can imagine that happening is because it is not using "plug" to convert the audio parameters. Please can you post the output from aplay when you run it with this extra option:
aplay --dump-hw-params something.wav
[EDIT] ... and also please try:
aplay -D bluealsa:DEV=48:C1:AC:E6:XX:XX,PROFILE=a2dp something.wav
@moozhub - sorry, just read through the logs you posted again, and my first thought was completely wrong - it is definitely the bluealsa server that is failing. Please ignore my previous comment.
E: Couldn't release transport: The connection is closed E: Couldn't acquire D-Bus name: org.bluealsa
I think that the second error message is caused by D-Bus issue or bluealsa incorrect usage of D-Bus (probably the latter). Anyway, it seems like a problem with D-Bus communication. You can try to dump D-Bus system bus communication with dbus-monitor --system
maybe there will be some clue. If you running desktop with lots of services, this log might contain lots unrelated information (potentially confidential info...) I'm interested only with signals and messages send by BlueZ, BlueALSA and their clients.
@Arkq @borine apologies for the delay... In effort to reduce dbus chat that you all probably don't care about, I ended up just dropping to the multi-user target, restarting the bluetooth service and going from there... In the dbus log I have everything from restarting the bluealsa service, to connecting to my bluetooth headset, and finally playing the audio file that ultimately causes the bluealsa service to go away.. Will provide any additonal information you need..thanks for the assistance.
aplay:
$ aplay StarWars3.wav
D: ../../../src/asound/bluealsa-pcm.c:761: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Setting constraints
Playing WAVE 'StarWars3.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
D: ../../../src/asound/bluealsa-pcm.c:397: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Initializing HW
D: ../../../src/asound/bluealsa-pcm.c:404: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Couldn't open PCM: Remote peer disconnected
aplay: set_params:1407: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 22050
PERIOD_TIME: [85333 85334)
PERIOD_SIZE: (1881 1882)
PERIOD_BYTES: (3762 3764)
PERIODS: (5 7)
BUFFER_TIME: (511882 511883)
BUFFER_SIZE: NONE
BUFFER_BYTES: 22574
TICK_TIME: 0
D: ../../../src/asound/bluealsa-pcm.c:386: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Closing
bluealsa.service:
Sep 05 03:45:24 computer systemd[1]: Starting Bluealsa daemon...
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/AAC/Source/1
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/AAC/Source/1
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/AAC/Source/2
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/AAC/Source/2
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/MPEG/Source/1
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/MPEG/Source/1
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/MPEG/Source/2
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/MPEG/Source/2
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/1
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/1
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/2
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/2
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/main.c:397: Acquiring D-Bus service name: org.bluealsa
Sep 05 03:45:24 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/main.c:402: Starting main dispatching loop
Sep 05 03:45:24 computer systemd[1]: Started Bluealsa daemon.
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 48:C1:AC:E6:XX:XX: SBC
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SelectConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/a2dp.c:664: Selected A2DP SBC bit-pool range: [2, 89]
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:291: A2DP Source (SBC) configured for device 48:C1:AC:E6:XX:XX
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:294: Configuration: channels: 2, sampling: 48000
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/3
Sep 05 03:45:30 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/3
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/dbus.c:57: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:868: New transport: 14 (MTU: R:672 W:1008)
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:1068: Signal: org.freedesktop.DBus.Properties.PropertiesChanged()
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/bluez.c:1104: Signal: PropertiesChanged: org.bluez.MediaTransport1: State
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:750: Starting transport: A2DP Source (SBC)
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/sbc.c:114: SBC setup: 48000 Hz JointStereo allocation=SNR blocks=16 sub-bands=8 bit-pool=51 => 345000 bps
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:643: Starting IO loop: A2DP Source (SBC)
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:143: PCM has been closed: 10
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1006: Closing PCM: 10
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:313: Keep-alive polling: 0
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:901: Releasing A2DP transport: A2DP Source (SBC)
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: E: Couldn't release transport: The connection is closed
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1054: Exiting IO thread: A2DP Source (SBC)
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1032: Created new thread [ba-a2dp-sbc]: A2DP Source (SBC)
Sep 05 03:45:38 computer bluealsa[4078]: /usr/bin/bluealsa: D: ../../src/main.c:406: Exiting main loop
I think, I've seen something similar by myself - it was caused by invalid D-Bus message. It might be hard to debug...
Anyway, there is something strange in your last log. There is no Couldn't acquire D-Bus name: org.bluealsa
message, but bluealsa server quits anyway... Recently I've changed how main event loop is terminated. Could you add here some debug line and check whether it will be printed (might be debug("XXXXXXXXXXX")
? Because that's the other place where main event loop might be terminated, but this should happen only in case of SIGTERM or SIGINT signal....
Reprint from the log file of the most important part (bluealsa termination just after method return from Acquire call):
method call time=1599291938.880195 sender=:1.66 -> destination=org.bluealsa serial=3 path=/org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink; interface=org.bluealsa.PCM1; member=Open
method call time=1599291938.880580 sender=:1.65 -> destination=:1.59 serial=19 path=/org/bluez/hci0/dev_48_C1_AC_E6_XX_XX/sep1/fd0; interface=org.bluez.MediaTransport1; member=Acquire
method return time=1599291938.939132 sender=:1.59 -> destination=:1.65 serial=77 reply_serial=19
file descriptor
inode: 71753
type: socket
address family: bluetooth
uint16 672
uint16 1008
signal time=1599291938.939187 sender=:1.59 -> destination=(null destination) serial=78 path=/org/bluez/hci0/dev_48_C1_AC_E6_XX_XX/sep1/fd0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.MediaTransport1"
array [
dict entry(
string "State"
variant string "active"
)
]
array [
]
signal time=1599291938.940051 sender=org.freedesktop.DBus -> destination=:1.65 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string "org.bluealsa"
signal time=1599291938.940071 sender=org.freedesktop.DBus -> destination=(null destination) serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string "org.bluealsa"
string ":1.65"
string ""
@Arkq did you want me to checkout the latest or add the debug messages to the commit I'm currently working with?
Hi @Arkq apologies for the delay. I ended up just pulling down the latest from trunk, I'm now using 3.0.0 ... I added the debug statement in main.c as you instructed, I'm still experiencing the same issue.. Here's the dbus log that you wanted, I didn't see the debug statement I added in before g_main_loop_quit but I added in the log from the bluealsa service.. For what it's worth, it appears the original "Couldn't acquire D-Bus name" error returned in this test, perhaps the last time it didn't was a error on my part..
aplay:
$ aplay StarWars3.wav
D: ../../../src/asound/bluealsa-pcm.c:895: Getting BlueALSA PCM: PLAYBACK 48:C1:AC:E6:XX:XX a2dp
D: ../../../src/asound/bluealsa-pcm.c:769: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Setting constraints
Playing WAVE 'StarWars3.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
D: ../../../src/asound/bluealsa-pcm.c:396: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Initializing HW
D: ../../../src/asound/bluealsa-pcm.c:403: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Couldn't open PCM: Remote peer disconnected
aplay: set_params:1407: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 22050
PERIOD_TIME: [85333 85334)
PERIOD_SIZE: (1881 1882)
PERIOD_BYTES: (3762 3764)
PERIODS: (5 7)
BUFFER_TIME: (511882 511883)
BUFFER_SIZE: NONE
BUFFER_BYTES: 22574
TICK_TIME: 0
D: ../../../src/asound/bluealsa-pcm.c:385: /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink: Closing
dbus:
method call time=1600752507.685027 sender=:1.169 -> destination=org.bluealsa serial=3 path=/org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink; interface=org.bluealsa.PCM1; member=Open
method call time=1600752507.685980 sender=:1.163 -> destination=:1.12 serial=19 path=/org/bluez/hci0/dev_48_C1_AC_E6_XX_XX/sep1/fd3; interface=org.bluez.MediaTransport1; member=Acquire
method return time=1600752507.764434 sender=:1.12 -> destination=:1.163 serial=251 reply_serial=19
file descriptor
inode: 174319
type: socket
address family: bluetooth
uint16 672
uint16 1008
signal time=1600752507.764512 sender=:1.12 -> destination=(null destination) serial=252 path=/org/bluez/hci0/dev_48_C1_AC_E6_XX_XX/sep1/fd3; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.MediaTransport1"
array [
dict entry(
string "State"
variant string "active"
)
]
array [
]
signal time=1600752507.765128 sender=org.freedesktop.DBus -> destination=:1.163 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string "org.bluealsa"
signal time=1600752507.765159 sender=org.freedesktop.DBus -> destination=(null destination) serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string "org.bluealsa"
string ":1.163"
string ""
signal time=1600752507.765182 sender=org.freedesktop.DBus -> destination=:1.163 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.163"
signal time=1600752507.765196 sender=org.freedesktop.DBus -> destination=(null destination) serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.163"
string ":1.163"
string ""
error time=1600752507.765224 sender=org.freedesktop.DBus -> destination=:1.169 error_name=org.freedesktop.DBus.Error.NoReply reply_serial=3
string "Remote peer disconnected"
signal time=1600752507.765401 sender=org.freedesktop.DBus -> destination=:1.169 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
string ":1.169"
signal time=1600752507.765427 sender=org.freedesktop.DBus -> destination=(null destination) serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.169"
string ":1.169"
string ""
signal time=1600752507.765587 sender=:1.12 -> destination=(null destination) serial=253 path=/org/bluez/hci0/dev_48_C1_AC_E6_XX_XX/sep1/fd3; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.MediaTransport1"
array [
dict entry(
string "State"
variant string "idle"
)
]
array [
]
signal time=1600752507.765629 sender=:1.12 -> destination=(null destination) serial=254 path=/; interface=org.freedesktop.DBus.ObjectManager; member=InterfacesRemoved
object path "/org/bluez/hci0/dev_48_C1_AC_E6_XX_XX/sep1/fd3"
array [
string "org.freedesktop.DBus.Properties"
string "org.freedesktop.DBus.Introspectable"
string "org.bluez.MediaTransport1"
]
signal time=1600752507.765679 sender=:1.0 -> destination=(null destination) serial=3648 path=/org/freedesktop/systemd1/unit/bluealsa_2eservice; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.freedesktop.systemd1.Service"
array [
dict entry(
string "MainPID"
variant uint32 72126
)
dict entry(
string "ControlPID"
variant uint32 0
)
dict entry(
string "StatusText"
variant string ""
)
dict entry(
string "StatusErrno"
variant int32 0
)
dict entry(
string "Result"
variant string "success"
)
dict entry(
string "ReloadResult"
variant string "success"
)
dict entry(
string "CleanResult"
variant string "success"
)
dict entry(
string "UID"
variant uint32 4294967295
)
dict entry(
string "GID"
variant uint32 63
)
dict entry(
string "NRestarts"
variant uint32 2
)
dict entry(
string "ExecMainStartTimestamp"
variant uint64 1600752423036156
)
dict entry(
string "ExecMainStartTimestampMonotonic"
variant uint64 1956784142
)
dict entry(
string "ExecMainExitTimestamp"
variant uint64 0
)
dict entry(
string "ExecMainExitTimestampMonotonic"
variant uint64 0
)
dict entry(
string "ExecMainPID"
variant uint32 72126
)
dict entry(
string "ExecMainCode"
variant int32 0
)
dict entry(
string "ExecMainStatus"
variant int32 0
)
]
array [
string "ExecCondition"
string "ExecConditionEx"
string "ExecStartPre"
string "ExecStartPreEx"
string "ExecStart"
string "ExecStartEx"
string "ExecStartPost"
string "ExecStartPostEx"
string "ExecReload"
string "ExecReloadEx"
string "ExecStop"
string "ExecStopEx"
string "ExecStopPost"
string "ExecStopPostEx"
]
signal time=1600752507.765996 sender=:1.0 -> destination=(null destination) serial=3649 path=/org/freedesktop/systemd1/unit/bluealsa_2eservice; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.freedesktop.systemd1.Unit"
array [
dict entry(
string "ActiveState"
variant string "deactivating"
)
dict entry(
string "SubState"
variant string "stop-sigterm"
)
dict entry(
string "StateChangeTimestamp"
variant uint64 1600752507765529
)
dict entry(
string "StateChangeTimestampMonotonic"
variant uint64 2041513515
)
dict entry(
string "InactiveExitTimestamp"
variant uint64 1600752423036382
)
dict entry(
string "InactiveExitTimestampMonotonic"
variant uint64 1956784368
)
dict entry(
string "ActiveEnterTimestamp"
variant uint64 1600752423058065
)
dict entry(
string "ActiveEnterTimestampMonotonic"
variant uint64 1956806051
)
dict entry(
string "ActiveExitTimestamp"
variant uint64 1600752507765529
)
dict entry(
string "ActiveExitTimestampMonotonic"
variant uint64 2041513515
)
dict entry(
string "InactiveEnterTimestamp"
variant uint64 1600752423034070
)
dict entry(
string "InactiveEnterTimestampMonotonic"
variant uint64 1956782056
)
dict entry(
string "Job"
variant struct {
uint32 0
object path "/"
}
)
dict entry(
string "ConditionResult"
variant boolean true
)
dict entry(
string "AssertResult"
variant boolean true
)
dict entry(
string "ConditionTimestamp"
variant uint64 1600752423034191
)
dict entry(
string "ConditionTimestampMonotonic"
variant uint64 1956782177
)
dict entry(
string "AssertTimestamp"
variant uint64 1600752423034192
)
dict entry(
string "AssertTimestampMonotonic"
variant uint64 1956782178
)
dict entry(
string "InvocationID"
variant array of bytes [
ad 12 39 61 0e 18 43 44 9a 0b ec 8a d1 2e 15 77
]
)
]
array [
string "Conditions"
string "Asserts"
]
signal time=1600752507.766465 sender=:1.0 -> destination=(null destination) serial=3650 path=/org/freedesktop/systemd1; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.freedesktop.systemd1.Manager"
array [
dict entry(
string "NFailedUnits"
variant uint32 1
)
]
array [
]
signal time=1600752507.766972 sender=:1.0 -> destination=(null destination) serial=3651 path=/org/freedesktop/systemd1/unit/bluealsa_2eservice; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.freedesktop.systemd1.Service"
array [
dict entry(
string "MainPID"
variant uint32 0
)
dict entry(
string "ControlPID"
variant uint32 0
)
dict entry(
string "StatusText"
variant string ""
)
dict entry(
string "StatusErrno"
variant int32 0
)
dict entry(
string "Result"
variant string "exit-code"
)
dict entry(
string "ReloadResult"
variant string "success"
)
dict entry(
string "CleanResult"
variant string "success"
)
dict entry(
string "UID"
variant uint32 4294967295
)
dict entry(
string "GID"
variant uint32 63
)
dict entry(
string "NRestarts"
variant uint32 2
)
dict entry(
string "ExecMainStartTimestamp"
variant uint64 1600752423036156
)
dict entry(
string "ExecMainStartTimestampMonotonic"
variant uint64 1956784142
)
dict entry(
string "ExecMainExitTimestamp"
variant uint64 1600752507766176
)
dict entry(
string "ExecMainExitTimestampMonotonic"
variant uint64 2041514162
)
dict entry(
string "ExecMainPID"
variant uint32 72126
)
dict entry(
string "ExecMainCode"
variant int32 1
)
dict entry(
string "ExecMainStatus"
variant int32 1
)
]
array [
string "ExecCondition"
string "ExecConditionEx"
string "ExecStartPre"
string "ExecStartPreEx"
string "ExecStart"
string "ExecStartEx"
string "ExecStartPost"
string "ExecStartPostEx"
string "ExecReload"
string "ExecReloadEx"
string "ExecStop"
string "ExecStopEx"
string "ExecStopPost"
string "ExecStopPostEx"
]
signal time=1600752507.767242 sender=:1.0 -> destination=(null destination) serial=3652 path=/org/freedesktop/systemd1/unit/bluealsa_2eservice; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.freedesktop.systemd1.Unit"
array [
dict entry(
string "ActiveState"
variant string "failed"
)
dict entry(
string "SubState"
variant string "failed"
)
dict entry(
string "StateChangeTimestamp"
variant uint64 1600752507766403
)
dict entry(
string "StateChangeTimestampMonotonic"
variant uint64 2041514389
)
dict entry(
string "InactiveExitTimestamp"
variant uint64 1600752423036382
)
dict entry(
string "InactiveExitTimestampMonotonic"
variant uint64 1956784368
)
dict entry(
string "ActiveEnterTimestamp"
variant uint64 1600752423058065
)
dict entry(
string "ActiveEnterTimestampMonotonic"
variant uint64 1956806051
)
dict entry(
string "ActiveExitTimestamp"
variant uint64 1600752507765529
)
dict entry(
string "ActiveExitTimestampMonotonic"
variant uint64 2041513515
)
dict entry(
string "InactiveEnterTimestamp"
variant uint64 1600752507766403
)
dict entry(
string "InactiveEnterTimestampMonotonic"
variant uint64 2041514389
)
dict entry(
string "Job"
variant struct {
uint32 0
object path "/"
}
)
dict entry(
string "ConditionResult"
variant boolean true
)
dict entry(
string "AssertResult"
variant boolean true
)
dict entry(
string "ConditionTimestamp"
variant uint64 1600752423034191
)
dict entry(
string "ConditionTimestampMonotonic"
variant uint64 1956782177
)
dict entry(
string "AssertTimestamp"
variant uint64 1600752423034192
)
dict entry(
string "AssertTimestampMonotonic"
variant uint64 1956782178
)
dict entry(
string "InvocationID"
variant array of bytes [
ad 12 39 61 0e 18 43 44 9a 0b ec 8a d1 2e 15 77
]
)
]
array [
string "Conditions"
string "Asserts"
]
signal time=1600752507.767530 sender=:1.0 -> destination=(null destination) serial=3653 path=/org/freedesktop/systemd1; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.freedesktop.systemd1.Manager"
array [
dict entry(
string "NFailedUnits"
variant uint32 0
)
]
array [
]
bluealsa.service:
Sep 22 01:27:03 computer systemd[1]: Starting Bluealsa daemon...
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/AAC/Source/1
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/AAC/Source/1
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/AAC/Source/2
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/AAC/Source/2
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/MPEG/Source/1
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/MPEG/Source/1
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/MPEG/Source/2
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/MPEG/Source/2
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/1
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/1
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/2
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/2
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/main.c:391: Acquiring D-Bus service name: org.bluealsa
Sep 22 01:27:03 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/main.c:396: Starting main dispatching loop
Sep 22 01:27:03 computer systemd[1]: Started Bluealsa daemon.
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:998: Adding new Stream End-Point: 48:C1:AC:E6:XX:XX: SBC
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/dbus.c:59: Called: org.bluez.MediaEndpoint1.SelectConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/dbus.c:59: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/a2dp.c:668: Selected A2DP SBC bit-pool range: [2, 89]
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:291: A2DP Source (SBC) configured for device 48:C1:AC:E6:XX:XX
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:294: Configuration: channels: 2, sampling: 48000
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/3
Sep 22 01:28:20 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/3
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/dbus.c:59: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/dbus.c:59: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_48_C1_AC_E6_XX_XX/a2dpsrc/sink
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:868: New transport: 14 (MTU: R:672 W:1008)
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:1068: Signal: org.freedesktop.DBus.Properties.PropertiesChanged()
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/bluez.c:1104: Signal: PropertiesChanged: org.bluez.MediaTransport1: State
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:750: Starting transport: A2DP Source (SBC)
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/sbc.c:114: SBC setup: 48000 Hz JointStereo allocation=SNR blocks=16 sub-bands=8 bit-pool=51 => 345000 bps
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:644: Starting IO loop: A2DP Source (SBC)
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:144: PCM has been closed: 10
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1006: Closing PCM: 10
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/a2dp-audio.c:314: Keep-alive polling: 0
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:901: Releasing A2DP transport: A2DP Source (SBC)
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: E: Couldn't release transport: The connection is closed
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1054: Exiting IO thread: A2DP Source (SBC)
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/ba-transport.c:1032: Created new thread [ba-a2dp-sbc]: A2DP Source (SBC)
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: E: Couldn't acquire D-Bus name: org.bluealsa
Sep 22 01:28:27 computer bluealsa[72126]: /usr/bin/bluealsa: D: ../../src/main.c:399: Exiting main loop
Sep 22 01:28:27 computer systemd[1]: bluealsa.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 01:28:27 computer systemd[1]: bluealsa.service: Failed with result 'exit-code'.
Sep 22 01:28:28 computer systemd[1]: bluealsa.service: Scheduled restart job, restart counter is at 3.
Sep 22 01:28:28 computer systemd[1]: Stopped Bluealsa daemon.
@moozhub, if you are still using bluealsa, please check the solution posted by @xyzzy42 in here: https://github.com/Arkq/bluez-alsa/issues/398#issuecomment-735464291
@moozhub, if you are still using bluealsa, please check the solution posted by @xyzzy42 in here: https://github.com/Arkq/bluez-alsa/issues/398#issuecomment-735464291
Thanks, I always forget about selinux. I'll give it a shot soon and report back if it's corrected.
@Arkq I can confirm it's related to selinux, the solution provided assuming I wanted to keep selinux enabled didn't work for me however, but I'll try to work through it with the other user.. Thanks for the help
This issue was identified as being caused by SELinux config.
Hello,
I'm not fully sure on what may be going on since I just started playing with this project. My ultimate goal is to get a headset of mine to work with the Mumble voice application through ALSA since I recently ditched Pulseaudio. I'm able to pair the devices like normal and get them recognized with aplay but I seem to be experiencing a crash when attempting to do a simple playback test through the headset. I've pasted my findings below and appreciate any assistance.
.asoundrc:
BT Pairing:
bluealsa-aplay devices:
Execution of aplay:
bluealsa.service
strace of bluealsa process when attempting playback (may not be entirely useful, but whatever):
Also tried using the SCO profile:
EDIT forgot to mention bluealsa version: