Thank you for your donation!


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


Topping D10s DAC auto standby?
#21
Does this actually work? and on which model RPis?

I ask because there's a number of blog/forum threads out there which claim the RPi doesn't support controlling the power to individual end-user ports but rather to banks of ports on different "buses" (and that there's differences between the different models in this regard).  There's so much misinformation on the InterWeb™ I don't want to start quoting something I haven't tested myself.

Unfortunately, I don't have a USB power meter or similar to be able to test the behavior of various "solutions" with respect to the one to four USB ports available on different models.

Regards,
Kent
Reply
#22
(12-18-2023, 06:07 PM)TheOldPresbyope Wrote: Does this actually work? and on which model RPis?

I tried this on my Linux box; it has one level less of "port", and it works for my audio-interface: it disappears from the system, and then is up again and takes the audio focus again; all without disconnecting the USB cable. It does not go on standby itself, as it doesn't do it on its own.

Yhe level of BUS / PORT / PORT described in my example is 1:1 to what I see on my Pi4 on moOde 8.3.7

Later, or tomorrow, I'll try it with the same audio card and report here.
Trying, though, could only work, or result in a "Device not found", as I got several times before actually understanding the structure of the device USB path.
Reply
#23
Check to see if this unbinds only the single port or if it unbinds all the ports (on some RPis) or all the ports on one bus (on other RPis).

It'll be up to someone with a Topping DAC to check if it actually succeeds in letting the DAC go to standby (and come back).


Regards,
Kent
Reply
#24
(12-18-2023, 09:38 PM)TheOldPresbyope Wrote: Check to see if this unbinds only the single port or if it unbinds all the ports (on some RPis) or all the ports on one bus (on other RPis).

It'll be up to someone with a Topping DAC to check if it actually succeeds in letting the DAC go to standby (and come back).


Regards,
Kent

Hmm, if it works the same way also for USB pendrives, I think I can get 4 things attached at once, and chek them all.
Well, I have my DAC, the Focusrite 2i2, and a Razer "DAC on a cable" so it might be enough.
Tomorrow morning, boys-at-school and wife-at-work; I'll experiment. I have a Pi3 too (well, I also have a 1 and a 2)...
S**t, you almost got me busy till lunch... :-)
Reply
#25
(12-18-2023, 09:38 PM)TheOldPresbyope Wrote: Check to see if this unbinds only the single port or if it unbinds all the ports (on some RPis) or all the ports on one bus (on other RPis).

It'll be up to someone with a Topping DAC to check if it actually succeeds in letting the DAC go to standby (and come back).


Regards,
Kent

I have a spare RPi 3B+ and of course a Topping DAC, so when I have the time I'll give it a go!

And just a question, this a feature from the OS right, so when I use a spare SD card it's just stored there not somehow on the RPI hardware itself? Because then I could use the same card with my main RPI4B as well to test.
Reply
#26
Correct. Its OS level settings and not written to the Pi firmware.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#27
(12-18-2023, 09:38 PM)TheOldPresbyope Wrote: Check to see if this unbinds only the single port or if it unbinds all the ports (on some RPis) or all the ports on one bus (on other RPis).

It'll be up to someone with a Topping DAC to check if it actually succeeds in letting the DAC go to standby (and come back).


Regards,
Kent

There's actually some dedicated info for the Raspberry Pi's when using uhubctl

With specifics for:
Raspberry Pi B+,2B,3B
Raspberry Pi 3B+
and Raspberry Pi 4B


I will try a bit when I have the time as especially the "toggle" command could be interesting to easily switch between on/off
Reply
#28
I just installed uhubctl to check on my RPi4B with moOde 8.3.7, I did not need to build from source. uhubctl seems to by in RaspiOS bullseye's repos...


Code:
login as: pi
pi@192.168.1.137's password:
Access denied
pi@192.168.1.137's password:

RPiOS: 11.8 Bullseye 64-bit | Linux: 6.1.21 64-bit
Model: Pi-4B 2GB
Audio: D10s


       m o O d e   a u d i o   p l a y e r

             Release 8.3.7 2023-12-07
               (C) 2014 Tim Curtis


The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright or
in the moOde source files. moOde comes with absolutely
no warranties either expressed or implied, or any other
such guarantees.

** To set a new password for your userid type 'passwd'.

Last login: Thu Dec 21 11:06:14 2023 from 192.168.1.204
pi@moode-kelder:~ $ sudo uhubctl
Current status for hub 2 [1d6b:0003 Linux 6.1.21-v8+ xhci-hcd xHCI Host Controller 0000:01:00.0, USB 3.00, 4 ports, ppps]
 Port 1: 02a0 power 5gbps Rx.Detect
 Port 2: 02a0 power 5gbps Rx.Detect
 Port 3: 02a0 power 5gbps Rx.Detect
 Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 1-1 [2109:3431 USB2.0 Hub, USB 2.10, 4 ports, ppps]
 Port 1: 0100 power
 Port 2: 0100 power
 Port 3: 0100 power
 Port 4: 0503 power highspeed enable connect [152a:8750 Topping D10s]
Current status for hub 1 [1d6b:0002 Linux 6.1.21-v8+ xhci-hcd xHCI Host Controller 0000:01:00.0, USB 2.00, 1 ports, ppps]
 Port 1: 0503 power highspeed enable connect [2109:3431 USB2.0 Hub, USB 2.10, 4 ports, ppps]
pi@moode-kelder:~ $
Reply
#29
And tested with the following code I can switch the USB2 ports off (and my topping D10s then also switches off)


Code:
sudo uhubctl -l 1-1 -a 0


And to switch back on again

Code:
sudo uhubctl -l 1-1 -a 1
After switching off and on again, my D10s comes back up fine again. Now to see if an easy switch can be made, or even an additional command when music stops and starts again...

One remark, I tested a RPi4B which has an USB2 and an USB3 hub. The catch is that the network port is connected to the USB3 hub so if you turn that off, you cannot turn back on again. I have my RPi with moOde connected via wifi and that did not give issues. So connect any dac to the USB2 port when using this approach, but I believe that's the advise anyway.
Reply
#30
(12-21-2023, 10:17 AM)Falco Wrote: And tested with the following code I can switch the USB2 ports off (and my topping D10s then also switches off)


Code:
sudo uhubctl -l 1-1 -a 0


And to switch back on again

Code:
sudo uhubctl -l 1-1 -a 1
After switching off and on again, my D10s comes back up fine again. Now to see if an easy switch can be made, or even an additional command when music stops and starts again...

One remark, I tested a RPi4B which has an USB2 and an USB3 hub. The catch is that the network port is connected to the USB3 hub so if you turn that off, you cannot turn back on again. I have my RPi with moOde connected via wifi and that did not give issues. So connect any dac to the USB2 port when using this approach, but I believe that's the advise anyway.

Is it also possible to just switch on/off the Topping, by means of "1-1.4" instead of the hub-wise "1-1"?
Just asking
Reply


Forum Jump: