08-10-2018, 07:13 PM
(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