(12-18-2023, 07:49 AM)Falco Wrote: I did get my response from Topping, but unfortunately not really helpful...
Code:
Dear,
Thank you for contacting TOPPING support. We are happy to assist.
Even though the audio stops, there will still be a signal coming in, so it won't go into standby. If you turn off the computer it will go into standby
Best Regards
service
service@tpdz.net
Hmm,
I am reading right now... depending on where your DAC is located on the usb bus, it should be possible to power it off and on...
On my Pi4 we are looking for the DAC-Z8
lsusb returns the following:
Code:
Bus 002 Device 002: ID 1058:264f Western Digital Technologies, Inc. My Passport 264F
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 20b1:30fd XMOS Ltd EVER SOLO DAC-Z8
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
from which I see my DAC is on BUS 1, DEVICE 5, then
lsusb -t returns the following:
Code:
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 1: Dev 5, If 1, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 1: Dev 5, If 2, Class=Application Specific Interface, Driver=, 480M
|__ Port 1: Dev 5, If 3, Class=Human Interface Device, Driver=usbhid, 480M
From which I see my DAC is on BUS 1, Port 1, Port 1 (look at the cascading entries after the BUS line)
the syntax is
BUS- then the ports, one after another separated by dots: port[.port[.port[.port]]] etc etc, so for me the device identifier would be
1-1.1
as Bus 01 => gives the first
1
the underneath Port 1 => gives the second
1
the further underneath Port 1 => gives the third
1 (as we found here our device number,
5)
the whole idea is to power off the data lines of the port, then allow the device to autosuspend and ask it to suspend itself ASAP:
## first, power off the data lines of the port
Code:
echo '1-1.1' | sudo tee /sys/bus/usb/drivers/usb/unbind
## allow autosuspend
Code:
echo auto | sudo tee /sys/bus/usb/devices/1-1.1/power/control
## try to autosuspend in 1 second
Code:
echo 1000 | sudo tee /sys/bus/usb/devices/1-1.1/power/autosuspend_delay_ms
## wake it back up by powering the data lines
Code:
echo '1-1.1' | sudo tee /sys/bus/usb/drivers/usb/bind