Hi i am just wondering is there a way to get the raspberry pi to detect the usb speaker on boot. If the pi is rebooted and the speaker is plugged it, it will not work or even appear until it is plugged out and back in again.
Thanks
Code: Select all
sudo mousepad /boot/config.txtCode: Select all
# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
dtparam=audio=offCode: Select all
wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bashCode: Select all
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
Bus 001 Device 002: ID 1908:2070 GEMBIRD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bashIt appears the Pi zero can shut off power to its usb ports.
Code: Select all
echo 0 > /sys/devices/platform/soc/20980000.usb/buspowerCode: Select all
wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bash