MarkMB1
Posts: 6
Joined: Wed Nov 13, 2019 1:44 am

USB Speaker doesn't appear unless plugged in and out

Tue Jan 28, 2020 10:38 pm

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

User avatar
Botspot
Posts: 1284
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: USB Speaker doesn't appear unless plugged in and out

Wed Jan 29, 2020 2:06 pm

Try disabling the Pi's internal sound card.

Code: Select all

sudo mousepad /boot/config.txt
Add a # before dtparam=audio=on, and below it add dtparam=audio=off.

Like this:

Code: Select all

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
dtparam=audio=off
Save the file (Ctrl+S), then reboot. See if that work. If not, what does the command lsusb say?
Ever wished you could "open" a RaspiOS .img file? Well now you can! I've developed Pi-Power-Tools, the only RaspiOS img editor on the planet.
https://github.com/Botspot/Pi-Power-Tools
Want to try it out?

Code: Select all

wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bash

MarkMB1
Posts: 6
Joined: Wed Nov 13, 2019 1:44 am

Re: USB Speaker doesn't appear unless plugged in and out

Thu Jan 30, 2020 4:59 pm

I just tried that and it didn't work when i execute the command lsusb the USB speaker doesn't appear

Code: Select all

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
However when its plugged out and in again it appears

Code: Select all

Bus 001 Device 002: ID 1908:2070 GEMBIRD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Attachments
Audio1.jpg
Audio1.jpg (24.76 KiB) Viewed 505 times

User avatar
Botspot
Posts: 1284
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: USB Speaker doesn't appear unless plugged in and out

Thu Jan 30, 2020 5:02 pm

What Raspberry Pi model are you using?
Ever wished you could "open" a RaspiOS .img file? Well now you can! I've developed Pi-Power-Tools, the only RaspiOS img editor on the planet.
https://github.com/Botspot/Pi-Power-Tools
Want to try it out?

Code: Select all

wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bash

MarkMB1
Posts: 6
Joined: Wed Nov 13, 2019 1:44 am

Re: USB Speaker doesn't appear unless plugged in and out

Thu Jan 30, 2020 8:00 pm

Raspberry pi zero w

User avatar
Botspot
Posts: 1284
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: USB Speaker doesn't appear unless plugged in and out

Thu Jan 30, 2020 8:28 pm

MarkMB1 wrote:
Thu Jan 30, 2020 8:00 pm
Raspberry pi zero w
It appears the Pi zero can shut off power to its usb ports.
https://www.raspberrypi.org/forums/view ... p?t=203261
Try running this command when the usb speaker is plugged in but not recognized:

Code: Select all

echo 0 > /sys/devices/platform/soc/20980000.usb/buspower
Ever wished you could "open" a RaspiOS .img file? Well now you can! I've developed Pi-Power-Tools, the only RaspiOS img editor on the planet.
https://github.com/Botspot/Pi-Power-Tools
Want to try it out?

Code: Select all

wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bash

Return to “Graphics, sound and multimedia”