My digital audio chain is as follows:
piCorePlayer 8.2.0 RPi4 --> latest DiepPi running CamillaDSP on RPi4 --> USB DAC
I use the following udev rule to launch a python script when the USB DAC becomes available (e.g. after switching from the optical input to the USB input):
The script uses the pycamilladsp library to communicate with CamillaDSP via a websocket.
The rule triggers as expected but, unfortunately, the script produces the following IOError:
I verified that camilladsp is not restarted, as its pid stays the same.
Note that the script runs quite well if launched in a dietpi user terminal.
Any help would be much appreciated.
piCorePlayer 8.2.0 RPi4 --> latest DiepPi running CamillaDSP on RPi4 --> USB DAC
I use the following udev rule to launch a python script when the USB DAC becomes available (e.g. after switching from the optical input to the USB input):
Code:
SUBSYSTEM=="usb", ACTION=="add", ENV{ID_VENDOR_ID}=="152a", ENV{ID_MODEL_ID}=="85dd", RUN+="/usr/bin/su dietpi -c '/usr/bin/python3 /home/dietpi/myscript.py'"
The script uses the pycamilladsp library to communicate with CamillaDSP via a websocket.
The rule triggers as expected but, unfortunately, the script produces the following IOError:
Code:
[Errno 110] Connection timed out
I verified that camilladsp is not restarted, as its pid stays the same.
Note that the script runs quite well if launched in a dietpi user terminal.
Any help would be much appreciated.
Last edited: