Looking for advice from you clever people. The udev rule is working
very nicely in my setup - Squeezelite starts quite reliably when the DAC
appears.
But there's a related issue. If the USB DAC disappears while
Squeezelite is running, it causes problems with other synced players -
playback stops after a while. If I turn off the soft power on the
Squeezelite player then the other players that are synced immediately
resume playback. So it would be good if there was a way to kill the
Squeezelite player when the DAC disappears.
demsg isn't very informative when the DAC disappears - all I get is:
Code:
--------------------
[ 29.271053] usb 1-1.3: USB disconnect, device number 4
[ 29.271063] usb 1-1.3.1: USB disconnect, device number 5
[ 29.278931] usb 1-1.3.2: USB disconnect, device number 6
[ 31.709085] vcc-sd: disabling
--------------------
However, the original dmesg messages told me that the actual DAC was
device number 5, so I could have extracted and stored that somewhere:
Code:
--------------------
[ 2.081071] usb 1-1.3.1: new full-speed USB device number 5 using
xhci_hcd
[ 2.195147] usb 1-1.3.1: New USB device found, idVendor=08bb,
idProduct=2704, bcdDevice= 1.00
[ 2.195153] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[ 2.195158] usb 1-1.3.1: Product: USB Audio DAC
[ 2.195162] usb 1-1.3.1: Manufacturer: Burr-Brown from TI
[ 2.202658] hid-generic 0003:08BB:2704.0001: hidraw0: USB HID v1.00 Device
[Burr-Brown from TI USB Audio DAC ] on
usb-0000:01:00.0-1.3.1/input2
--------------------
But how to use that in a udev rule? The next time the DAC appears the
USB device numbers will increment, so I need a way to update the udev
rule. Can I create a udev rule on-the-fly, e.g. could the script that
runs when device appears generate a rule that waits for it to disappear
based on the device number?
Is there another more obvious way?
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=113661
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix