USB soundcard only works after unplugging and plugging in again

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mcmurdyy

USB soundcard only works after unplugging and plugging in again

Post by mcmurdyy »

Hello,

I have an USB Sound Card/DAC which is not recognised by Linux Mint 18.3 at bootup/reboot. It doesn't appear in the Audio Settings and it doesn't appear either in aplay -l
When i unplug it and plug it back in it works fine.
Does someone know how I can make my card recognised at startup?

The output of inxi -Fxz after unplugging and plugging in again:

Code: Select all

System:    Host: maarten-desktop Kernel: 4.13.0-45-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   Mobo: ASUSTeK model: P6X58D-E v: Rev 1.xx
           Bios: American Megatrends v: 0803 date: 08/06/2012
CPU:       Hexa core Intel Xeon X5670 (-HT-MCP-) cache: 12288 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 35277
           clock speeds: max: 2934 MHz 1: 1629 MHz 2: 1632 MHz 3: 1658 MHz
           4: 1603 MHz 5: 1678 MHz 6: 1603 MHz 7: 1633 MHz 8: 1709 MHz
           9: 1623 MHz 10: 1613 MHz 11: 1664 MHz 12: 1615 MHz
Graphics:  Card: NVIDIA GM204 [GeForce GTX 970] bus-ID: 03:00.0
           Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 970/PCIe/SSE2
           GLX Version: 4.5.0 NVIDIA 384.130 Direct Rendering: Yes
Audio:     Card-1 NVIDIA GM204 High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 03:00.1
           Card-2 Intel 82801JI (ICH10 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-3 GYROCOM C&C driver: USB Audio usb-ID: 007-007
           Sound: Advanced Linux Sound Architecture v: k4.13.0-45-generic
Network:   Card: Marvell 88E8056 PCI-E Gigabit Ethernet Controller
           driver: sky2 v: 1.30 port: d800 bus-ID: 05:00.0
           IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 6241.2GB (93.3% used)
           ID-1: /dev/sda model: CT240BX200SSD1 size: 240.1GB
           ID-2: USB /dev/sdf model: Elements_107C size: 2000.4GB
           ID-3: /dev/sdg model: SAMSUNG_HD103SI size: 1000.2GB
           ID-4: /dev/sdh model: WDC_WD30EFRX size: 3000.6GB
Partition: ID-1: / size: 209G used: 15G (8%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 12.87GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 39.5C mobo: 40.0C gpu: 0.0:45C
           Fan Speeds (in rpm): cpu: 1654 psu: 0 sys-1: 784 sys-2: 1155 sys-3: 819
Info:      Processes: 285 Uptime: 1:15 Memory: 2150.1/11998.7MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
Before unplugging the card it gives the same output, just without the Audio Card-3 device.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: USB soundcard only works after unplugging and plugging in again

Post by Hoser Rob »

Are you using a USB 3 port? Try a USB 2 one.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
mcmurdyy

Re: USB soundcard only works after unplugging and plugging in again

Post by mcmurdyy »

Hoser Rob wrote: Tue Jun 12, 2018 7:50 am Are you using a USB 3 port? Try a USB 2 one.
It is already connected to a USB 2 port.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: USB soundcard only works after unplugging and plugging in again

Post by MrEen »

When sound is NOT working, in the terminal type lsmod | grep snd and paste back the result.
mcmurdyy

Re: USB soundcard only works after unplugging and plugging in again

Post by mcmurdyy »

MrEen wrote: Tue Jun 12, 2018 5:55 pm When sound is NOT working, in the terminal type lsmod | grep snd and paste back the result.

Code: Select all

maarten@maarten-desktop ~ $ lsmod | grep snd
snd_hda_codec_hdmi     49152  1
snd_hda_codec_realtek    98304  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_intel          40960  5
snd_hda_codec         126976  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           81920  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              20480  1 snd_hda_codec
snd_pcm                98304  6 snd_hda_intel,saa7134_alsa,snd_hda_codec,snd_hda_core,cx231xx_alsa,snd_hda_codec_hdmi
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
snd_seq                65536  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_seq,snd_pcm
snd                    81920  27 snd_hda_intel,saa7134_alsa,snd_hwdep,snd_seq,snd_hda_codec,cx231xx_alsa,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: USB soundcard only works after unplugging and plugging in again

Post by MrEen »

Okay. For some reason, snd_usb_audio is not loading at boot, and I assume does when you plug in the device. Verify this with lsmod | grep snd when sound is working.

I think the easiest solution in that case is to open /etc/modules for editing with gksudo xed /etc/modules and add a new line at the bottom of the file with snd-usb-audio (you don't need to worry that I didn't use underscores there.) After adding the line, save the file and reboot.

If you prefer to hunt down the real source of the problem, my best guess is ACPI might be the cause and might need to be turned off in grub. However I don't know enough about it to advise any further.

Hope that helps.
mcmurdyy

Re: USB soundcard only works after unplugging and plugging in again

Post by mcmurdyy »

MrEen wrote: Wed Jun 13, 2018 7:10 am Okay. For some reason, snd_usb_audio is not loading at boot, and I assume does when you plug in the device. Verify this with lsmod | grep snd when sound is working.

I think the easiest solution in that case is to open /etc/modules for editing with gksudo xed /etc/modules and add a new line at the bottom of the file with snd-usb-audio (you don't need to worry that I didn't use underscores there.) After adding the line, save the file and reboot.

If you prefer to hunt down the real source of the problem, my best guess is ACPI might be the cause and might need to be turned off in grub. However I don't know enough about it to advise any further.

Hope that helps.
Unfortunately that doesn work either. Now snd_usb_audio is loaded at boot-time, but it still doesn't recognise the card. Also the lsusb command doesn't show the card until replugging in.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: USB soundcard only works after unplugging and plugging in again

Post by MrEen »

Okay. Sorry about that. I guess you should reverse the change to /etc/modules and we'll have to wait for someone else to help. Like I said I'm guessing ACPI needs to be off, but that's not something I have any experience with and I don't want you to end up unable to boot at all.
Locked

Return to “Sound”