Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


BT Audio Sink
#17
(08-10-2018, 05:17 PM)Tim Curtis Wrote: Ok, bluealsa-aplay not starting would explain the "no audio" symptom.

bluealsa-aplay is started by a UDEV rule set. It uses /etc/bluealsaaplay.conf file to determine the audio output device.

/etc/udev/rules.d/10-a2dp-autoconnect.rules
------>/usr/local/bin/a2dp-autoconnect

Try monitoring UDEV during a connection from the Echo.
 
udevadm monitor -p

If in fact a connection is happening then the monitor will dump out a bunch of properties similar to below. A good connection will have properties that contain the 'NAME' attribute with a mac address as the value.


Code:
KERNEL[6804.792571] add      /devices/virtual/input/input2 (input)
ACTION=add
DEVPATH=/devices/virtual/input/input2
EV=100007
KEY=2fc800 1452 0 0 0 0 10300 49e8 c00 e1680 f f8100000 10000ffc
MODALIAS=input:b0005v0000p0000e0000-e0,1,2,14,k71,72,73,8A,8B,A3,A5,A6,A7,A8,AB,AE,C8,C9,D0,161,164,166,16A,16C,18B,18E,18F,190,191,192,193,195,ramlsfw
NAME="5C:8D:4E:91:48:AE"
PRODUCT=5/0/0/0
PROP=0
REL=0
SEQNUM=1240
SUBSYSTEM=input

-Tim


Brrr. UDEV. Makes me want to get out my wooden stake and garlic-bulb necklace.

Ok, so when the Nexus 6P connects, I get six stanzas from udevadm:

1) KERNEL [...] add    /platform/devices/soc/...
2) UDEV [...] add    /platform/devices/soc/...
3) KERNEL [...] add    /devices/virtual/input/input9 (input)
4) KERNEL [...] add    /devices/virtual/input/input9/event1 (input)
5) UDEV [...] add    /devices/virtual/input/input9 (input)
6) UDEV [...] add    /devices/virtual/input/input9/event1 (input)

The NAME attribute you mention shows up in the 3rd and 5th stanza.

OTOH, when the Echo connects, I get only two stanzas, below, which to my eye look to have the same kind of content as 1) and 2) for the Nexus 6P.

It should be obvious I'm working beyond the reach of my headlights here.

Regards,
Kent

Code:
i@moode43c:~ $ udevadm monitor -p
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[231835.084054] add      /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11 (bluetooth)
ACTION=add
DEVPATH=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11
DEVTYPE=link
SEQNUM=1724
SUBSYSTEM=bluetooth

UDEV  [231835.087592] add      /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11 (bluetooth)
ACTION=add
DEVPATH=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11
DEVTYPE=link
SEQNUM=1724
SUBSYSTEM=bluetooth
SYSTEMD_ALIAS=/sys/subsystem/bluetooth/devices/hci0:11
SYSTEMD_WANTS=bluetooth.target
TAGS=:systemd:
USEC_INITIALIZED=231835087195
net.ifnames=0
Reply


Messages In This Thread
BT Audio Sink - by dmueller - 08-05-2018, 06:22 PM
RE: BT Audio Sink - by Tim Curtis - 08-05-2018, 10:48 PM
RE: BT Audio Sink - by dmueller - 08-09-2018, 12:34 AM
RE: BT Audio Sink - by TheOldPresbyope - 08-06-2018, 03:45 PM
RE: BT Audio Sink - by dmueller - 08-09-2018, 12:39 AM
RE: BT Audio Sink - by Tim Curtis - 08-09-2018, 12:50 AM
RE: BT Audio Sink - by dmueller - 08-09-2018, 01:02 AM
RE: BT Audio Sink - by Tim Curtis - 08-09-2018, 01:45 AM
RE: BT Audio Sink - by TheOldPresbyope - 08-09-2018, 08:23 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 12:16 AM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 12:52 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 02:46 PM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 03:14 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 03:17 PM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 03:50 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 05:17 PM
RE: BT Audio Sink - by TheOldPresbyope - 08-10-2018, 07:13 PM
RE: BT Audio Sink - by Tim Curtis - 08-10-2018, 07:37 PM
RE: BT Audio Sink - by badbat75 - 08-12-2018, 07:45 AM
RE: BT Audio Sink - by dmueller - 08-13-2018, 12:35 AM
RE: BT Audio Sink - by Tim Curtis - 08-13-2018, 01:40 AM
RE: BT Audio Sink - by dmueller - 08-14-2018, 12:51 AM
RE: BT Audio Sink - by dmueller - 09-04-2018, 08:44 PM
RE: BT Audio Sink - by dmueller - 09-13-2018, 06:08 PM
RE: BT Audio Sink - by Tim Curtis - 10-01-2018, 06:17 PM
RE: BT Audio Sink - by dmueller - 10-11-2018, 03:09 PM
RE: BT Audio Sink - by damnfool - 04-24-2019, 10:19 PM
RE: BT Audio Sink - by Tim Curtis - 04-24-2019, 10:35 PM
RE: BT Audio Sink - by damnfool - 04-24-2019, 11:30 PM
RE: BT Audio Sink - by TheOldPresbyope - 04-24-2019, 10:50 PM
RE: BT Audio Sink - by damnfool - 04-24-2019, 11:41 PM
RE: BT Audio Sink - by Tim Curtis - 04-24-2019, 11:52 PM

Forum Jump: