#StackBounty: #usb #sound #microphone Have to reconnect microphone every time I reboot

Bounty: 100

Using a Blue Yeti USB microphone, connected to a Dell dock, connected to a laptop on Ubuntu 20.04.1 LTS.

The external mic is set as the default through a startup script (pactl set-default-source alsa_input.usb-Generic_Blue_Microphones_LT_2007170933195F390975_111000-00.analog-stereo), and it is correctly identified whenever I reboot.

The problem is that even though the mic is listed there and selected, it does not actually receive any input unless I disconnect and reconnect the usb/power cable in the microphone.

Any ideas on what could be causing this?


Get this bounty!!!

#StackBounty: #sound #20.04 #hp 20.04 – No Speaker Audio on HP Spectre x360 2020 15t eb000

Bounty: 50

Recently bought a 2020 HP Spectre X360 15t eb000. It has both Intel sound and a 1650ti Nvidia GPU.

The speakers don’t work in Linux at all. Headphones work fine in Linux, and all sound works fine in Windows. I installed all updates in both Windows and Linux for firmware and BIOS updates, and have tried the following:

  • Made sure everything is unmuted and with volume in alsamixer.
  • Added options snd-hda-intel dmic_detect=0 to the end of /etc/modprobe.d/alsa-base.conf
  • Used hdajackretask to try and make retask unconnected pins. There seem to be 3 Speaker choices here, "Speaker", "Speaker Left" and "Speaker Back". Only "speaker" is connected. I tried retasking the 2 unconnected ones to unused pins but it didn’t work. Its also weird that when I came back after reboot, it showed the same pins as unused again. I reversed this after it didn’t work.
  • Made sure sound was at full volume and unmuted in Windows.

UPDATE for 08/03/2020

I updated to kernel 5.7, didn’t work. Reversed the change in /etc/modprobe.d/alsa-base.conf, did not work. I kept it reversed.

Tried the fix in https://blog.kafaiworks.com/posts/arch-linux-audio-setup-on-msi-gp63/. Didn’t work and actually made the sound through headphones kind of grainy, so I reversed it as well.

Headphones still work fine. alsamixer now shows Nvidia sound as default for some reason. It lets me change to the Intel sound.

UPDATE for 08/31/2020

Updated kernel to 5.8.5, BIOS to F.07, still no luck. I also added options snd-hda-intel index=1,0 to alsa config according to this thread on the Arch forums, which now makes the Intel card the default in alsamixer.

I also tested sound through HDMI, which works fine.

INFORMATION AS OF 08/31/2020

My current output for pacmd list-cards is the following. Note how Speaker availability is ‘unknown’:

pacmd list-cards
2 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_01_00.1>
    driver: <module-alsa-card.c>
    owner module: 23
    properties:
        alsa.card = "1"
        alsa.card_name = "HDA NVidia"
        alsa.long_card_name = "HDA NVidia at 0x90080000 irq 17"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:01:00.1"
        sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
        device.bus = "pci"
        device.vendor.id = "10de"
        device.vendor.name = "NVIDIA Corporation"
        device.product.id = "10fa"
        device.string = "1"
        device.description = "HDA NVidia"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
        output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
        output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
        output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
        output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
        output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
        output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
        output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
        output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
        output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
        output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
        output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
        output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
        output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
        off: Off (priority 0, available: unknown)
    active profile: <off>
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
    index: 1
    name: <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
    driver: <module-alsa-card.c>
    owner module: 24
    properties:
        alsa.card = "0"
        alsa.card_name = "sof-hda-dsp"
        alsa.long_card_name = "HP-HPSpectrex360Convertible15t_eb000--86E7"
        alsa.driver_name = "snd_soc_skl_hda_dsp"
        device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
        sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "06c8"
        device.string = "0"
        device.description = "sof-hda-dsp"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        HiFi: Play HiFi quality Music (priority 8000, available: unknown)
        off: Off (priority 0, available: unknown)
    active profile: <HiFi>
    sinks:
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink/#1: sof-hda-dsp HDMI3/DP3 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink/#2: sof-hda-dsp HDMI2/DP2 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink/#3: sof-hda-dsp HDMI1/DP1 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink/#4: sof-hda-dsp Speaker + Headphones
    sources:
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor/#1: Monitor of sof-hda-dsp HDMI3/DP3 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink.monitor/#2: Monitor of sof-hda-dsp HDMI2/DP2 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink.monitor/#3: Monitor of sof-hda-dsp HDMI1/DP1 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor/#4: Monitor of sof-hda-dsp Speaker + Headphones
        alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__source/#5: sof-hda-dsp Headphones Stereo Microphone
        alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source/#6: sof-hda-dsp Digital Microphone
    ports:
        [Out] HDMI3: HDMI3/DP3 Output (priority 700, latency offset 0 usec, available: no)
            properties:
                
        [Out] HDMI2: HDMI2/DP2 Output (priority 600, latency offset 0 usec, available: no)
            properties:
                
        [Out] HDMI1: HDMI1/DP1 Output (priority 500, latency offset 0 usec, available: no)
            properties:
                
        [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
            properties:
                
        [Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: no)
            properties:
                
        [In] Mic2: Headphones Stereo Microphone (priority 200, latency offset 0 usec, available: no)
            properties:
                
        [In] Mic1: Digital Microphone (priority 100, latency offset 0 usec, available: unknown)
            properties:

Output for aplay -l is:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

And here’s what dmesg shows me:

dmesg | grep snd
[    2.252960] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    2.252962] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    2.253047] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    2.253102] snd_hda_intel 0000:01:00.1: Disabling MSI
[    2.253106] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    2.591495] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    2.591496] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.591497] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    2.591497] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    2.591498] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[    2.591499] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[    2.637523] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[    2.637525] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
[    2.637555] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> DMIC48kHz 6 mapping ok
[    2.637557] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> DMIC16kHz 7 mapping ok
[    2.637562] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDA Analog 0 mapping ok
[    2.637566] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDA Digital 1 mapping ok
[    2.637568] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI1 3 mapping ok
[    2.637571] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI2 4 mapping ok
[    2.637574] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI3 5 mapping ok
dmesg | grep audio

[    2.253106] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    2.280935] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    2.280938] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    2.280948] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.281114] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    2.344192] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    2.423134] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[    2.438667] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
[    2.438668] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    2.438670] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    2.554393] sof-audio-pci 0000:00:1f.3: Firmware info: version 1:4:2-66a5a
[    2.554394] sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:11:0 Kernel ABI 3:16:0
[    2.557125] sof-audio-pci 0000:00:1f.3: Topology: ABI 3:11:0 Kernel ABI 3:16:0
[    2.557127] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 Tx not handled
[    2.558092] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec0_in not handled
[    2.558093] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 Tx not handled
[    2.558996] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec1_in not handled
[    2.558997] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 Tx not handled
[    2.559892] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec0_out not handled
[    2.559893] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog CPU Playback not handled
[    2.560774] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec1_out not handled
[    2.560774] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital CPU Playback not handled
[    2.560775] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec2_in not handled
[    2.560792] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt Analog CPU Playback not handled
[    2.560793] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec2_out not handled
[    2.560793] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog CPU Capture not handled
[    2.561700] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp1_out not handled
[    2.561701] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital CPU Capture not handled
[    2.562631] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp2_out not handled
[    2.562632] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt Analog CPU Capture not handled
[    2.563553] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp3_out not handled
[    2.572765] sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
[    2.591495] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    2.591496] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.591497] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    2.591497] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    2.591498] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[    2.591499] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[    2.637523] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[    2.637525] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten

Current alsamixer view:

AlsaMixer


Get this bounty!!!

#StackBounty: #sound #pulseaudio #microphone #headphones Elgato Wave 3 only as input or output but not both

Bounty: 50

I was not able to find anything similar to this, so I hope this is not a duplicated cuestion…

I have the following issue with my Elgato Wave 3 microphone: when I want to use it as an input (microphone), it works like a charm, but when I connect the headphones at the back of it, using it also as an output (selecting it on settings panel or PulseAudio control), the microphone stops registering as an input, so I cannot use it anymore as a microphone, but headphones works…

I saw that it could have missing the output + input or duplex profile or something related to the profile, but I have no idea if I can add it or what can I do to solve this. I tried researching about pactl but I do not understand it fully.

The profiles I see are:

  1. Analog Stereo Output
  2. Digital Stereo (IEC958) Output
  3. Analog Mono Input
  4. Off

Thank you !


Get this bounty!!!

#StackBounty: #sound #bluetooth #pulseaudio #alsa #headphones Ubuntu 20.04 bluetooth headphones play through internal speakers

Bounty: 50

I’m trying to pair my Skullcandy Crusher Wireless headphones to my computer. I’m able to get them paired, and selected in the sound menu successfully, but for some reason audio still plays through the internal speakers?

I tried the fixes described in 477933, and https://www.nielsvandermolen.com/bluetooth-headphones-ubuntu/ to no avail

This is what my settings menu looks like:
settings img
Which is wierd because it looks like both the output and the input are hooked together, but I never set them that way?

Does anybody know how to fix this?

Edit

Here are the printouts from the dmesg commands in the tutorial from above

(base) aaron@aaron-Lenovo-IdeaPad-S340-15IILTouch:~$ dmesg | grep -i bluetooth # Shows all Bluetooth driver info
[    3.163206] Bluetooth: Core ver 2.22
[    3.163223] Bluetooth: HCI device and connection manager initialized
[    3.163231] Bluetooth: HCI socket layer initialized
[    3.163233] Bluetooth: L2CAP socket layer initialized
[    3.163235] Bluetooth: SCO socket layer initialized
[    3.216419] Bluetooth: hci0: Bootloader revision 0.1 build 0 week 11 2017
[    3.217429] Bluetooth: hci0: Device revision is 2
[    3.217430] Bluetooth: hci0: Secure boot is enabled
[    3.217430] Bluetooth: hci0: OTP lock is enabled
[    3.217431] Bluetooth: hci0: API lock is enabled
[    3.217431] Bluetooth: hci0: Debug lock is disabled
[    3.217432] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    3.218922] Bluetooth: hci0: Found device firmware: intel/ibt-19-32-1.sfi
[    4.876884] Bluetooth: hci0: Waiting for firmware download to complete
[    4.877409] Bluetooth: hci0: Firmware loaded in 1623682 usecs
[    4.877453] Bluetooth: hci0: Waiting for device to boot
[    4.891412] Bluetooth: hci0: Device booted in 13645 usecs
[    4.891818] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-19-32-1.ddc
[    4.892417] Bluetooth: hci0: Failed to send Intel_Write_DDC (-22)
[    5.114099] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.114101] Bluetooth: BNEP filters: protocol multicast
[    5.114104] Bluetooth: BNEP socket layer initialized
[   13.193395] Bluetooth: RFCOMM TTY layer initialized
[   13.193409] Bluetooth: RFCOMM socket layer initialized
[   13.193416] Bluetooth: RFCOMM ver 1.11
(base) aaron@aaron-Lenovo-IdeaPad-S340-15IILTouch:~$ dmesg | grep -i bluetooth | grep -i firmware # Shows Bluetooth firmware issues
[    3.217432] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    3.218922] Bluetooth: hci0: Found device firmware: intel/ibt-19-32-1.sfi
[    4.876884] Bluetooth: hci0: Waiting for firmware download to complete
[    4.877409] Bluetooth: hci0: Firmware loaded in 1623682 usecs
(base) aaron@aaron-Lenovo-IdeaPad-S340-15IILTouch:~$ lsusb # Displays hardware connected to the USB ports
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 13d3:56b2 IMC Networks Integrated Camera
Bus 001 Device 003: ID 04f3:245a Elan Microelectronics Corp. Touchscreen
Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 8087:0aaa Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(base) aaron@aaron-Lenovo-IdeaPad-S340-15IILTouch:~$ 

When I went into the alsamixer it showed my headphones were, muted, so I unmuted them, as the SO question above indicated, but that didn’t help things either.


Get this bounty!!!

#StackBounty: #sound #pulseaudio #alsa How can I record sound in background

Bounty: 500

I would like to run a command to be executed in background monitoring the output to the speaker and record what’s played.

I used the following command:

parec -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | sox -t raw -b 16 -e signed -c 2 -r 44100 - test.ogg silence 1 0.1 3% 1 3.0 3%

It works, but it is running in forground listening to the device… I tried use tmux but it didn’t record the sound…. any solution?

I prefer a command line as a startup service to listen to the speaker output as long as it’s not stopped, however later I found pulseaudio as a required service isn’t run as a wide-system service and making it wide-system causes some problems in sound system….

Now this question isn’t my priority but if one knows a solution can offer.


Get this bounty!!!

#StackBounty: #sound #20.04 #pulseaudio #alsa #microphone No speakers, no microphone, but headphones @Dell Lattitude E6530 (20.04)

Bounty: 50

This used to work @18.04 LTS but stopped working at some point, so I decided to head for the newer 20.04 LTS, but the problem persists.

What I tried:

  1. reinstall alsa-base and pulseaudio https://superuser.com/questions/1451847/sound-stopped-working-ubuntu-18-04
  2. rename alsa-base config https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1770429
  3. remove pulse config No sound in Ubuntu 18.04 LTS after upgrade from 16.04 LTS

None of these solutions work.

Interestingly if I run pavucontrol, while yt is playing a video, I can see an amplitude, but I can’t hear a thing. If I connect headphones it works as expected.


Get this bounty!!!

#StackBounty: #drivers #sound #kernel #20.04 #alsa Only "Dummy output" (sound) in Ubuntu 20.04 after reboot

Bounty: 100

I am using Ubuntu 20.04 for over a month now.
After a reboot, I have no more sound and WiFi. Note that this is different from many other posts, which seem to have had no sound at all, after an upgrade. In this case, sound stopped working only after a reboot.

As for the sound, I seem to not have the appropriate kernel modules for sound, so I guess the most likely solution would come from making the modules available (it seems I have two sound cards).
I will try to include as much info as possible related to the copious posts with similar problems.

This is what I see.

  1. $ lsmod | grep snd outputs nothing.

    Here it is quoted (only for intel)
    $ lsmod | grep snd_hda_intel
    snd_hda_intel          53248  3
    snd_intel_dspcfg       24576  1 snd_hda_intel
    snd_hda_codec         131072  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
    snd_hda_core           90112  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
    snd_pcm               106496  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
    snd                    90112  17 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,thinkpad_acpi,snd_pcm,snd_rawmidi
  1. Kernel modules
    $ dpkg -L linux-modules-5.4.0-40-generic | grep snd
    /lib/modules/5.4.0-40-generic/kernel/sound/core/seq/snd-seq-dummy.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/seq/snd-seq-midi-emul.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/seq/snd-seq-midi-event.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/seq/snd-seq-midi.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/seq/snd-seq-virmidi.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/seq/snd-seq.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-compress.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-hrtimer.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-hwdep.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-pcm-dmaengine.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-pcm.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-rawmidi.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-seq-device.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd-timer.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/core/snd.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/drivers/pcsp/snd-pcsp.ko
    /lib/modules/5.4.0-40-generic/kernel/sound/pci/snd-ens1370.ko

How can I check if any of this is what I need?

How can I check if any of this corresponds to those from Intel listed in item 1?

How can I load these modules?

  1. inxi
    $ inxi -SA
    System:    Host: Hydrus1 Kernel: 5.4.0-40-generic x86_64 bits: 64 Desktop: Gnome 3.36.1 Distro: Ubuntu 20.04 LTS (Focal Fossa) 
    Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio driver: N/A 
               Device-2: NVIDIA GF104 High Definition Audio driver: N/A 

Here it is quoted (note the driver)

    $ inxi -SMA
    System:    Host: Wizard Kernel: 5.4.0-26-generic x86_64 bits: 64 Desktop: Gnome 3.36.1 Distro: Ubuntu 20.04 LTS (Focal Fossa) 
    Machine:   Type: Portable System: Dell product: Vostro 2520 v: N/A serial: <superuser/root required> 
               Mobo: Dell model: 0V1NDP v: A11 serial: <superuser/root required> BIOS: Dell v: A11 date: 02/24/2014 
    Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio driver: snd_hda_intel 
               Sound Server: ALSA v: k5.4.0-26-generic
  1. I don’t know if this is meaningful…
    $ dmesg | grep -i snd
    [    0.009698] ACPI: MCFG 0x00000000CF7D5C98 00003C (v01 DELL   SNDYBRDG 06222004 MSFT 00000097)
    
  2. lspci
    $ lspci -nnk | grep -A1 Audio
    00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
        DeviceName:  Onboard Audio
        Subsystem: Dell 6 Series/C200 Series Chipset Family High Definition Audio Controller [1028:04a4]
    00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
    --
    01:00.1 Audio device [0403]: NVIDIA Corporation GF104 High Definition Audio Controller [10de:0beb] (rev a1)
        Subsystem: Dell GF104 High Definition Audio Controller [1028:04a4]
    03:00.0 Network controller [0280]: Intel Corporation Centrino Ultimate-N 6300 [8086:422b] (rev 35)
    
  3. System
    $ uname -a
    Linux Hydrus1 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
    
  4. Test sound
    $ aplay -l
    aplay: device_list:274: no soundcards found...
    
  5. lshw
        $ lshw -C multimedia
        WARNING: you should run this program as super-user.
          *-multimedia UNCLAIMED    
               description: Audio device
               product: GF104 High Definition Audio Controller
               vendor: NVIDIA Corporation
               physical id: 0.1
               bus info: pci@0000:01:00.1
               version: a1
               width: 32 bits
               clock: 33MHz
               capabilities: bus_master cap_list
               configuration: latency=0
               resources: memory:e0080000-e0083fff
          *-multimedia UNCLAIMED
               description: Audio device
               product: 6 Series/C200 Series Chipset Family High Definition Audio Controller
               vendor: Intel Corporation
               physical id: 1b
               bus info: pci@0000:00:1b.0
               version: 04
               width: 64 bits
               clock: 33MHz
               capabilities: bus_master cap_list
               configuration: latency=0
               resources: memory:e1e50000-e1e53fff
        WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

Here it is quoted (note the driver)

    $ sudo lshw -C multimedia
      *-multimedia              
           description: Audio device
           product: GP104 High Definition Audio Controller
           vendor: NVIDIA Corporation
           physical id: 0.1
           bus info: pci@0000:01:00.1
           version: a1
           width: 32 bits
           clock: 33MHz
           capabilities: pm msi pciexpress bus_master cap_list
           configuration: driver=snd_hda_intel latency=0
           resources: irq:17 memory:f7080000-f7083fff
  1. alsa packages
    $ dpkg -l | grep alsa
    ii  alsa-base                                     1.0.25+dfsg-0ubuntu5                all          ALSA driver configuration files
    ii  alsa-tools-gui                                1.1.7-1ubuntu1                      amd64        GUI based ALSA utilities for specific hardware
    ii  alsa-topology-conf                            1.2.2-1                             all          ALSA topology configuration files
    ii  alsa-ucm-conf                                 1.2.2-1ubuntu0.1                    all          ALSA Use Case Manager configuration files
    ii  alsa-utils                                    1.2.2-1ubuntu1                      amd64        Utilities for configuring and using ALSA
    ii  gstreamer1.0-alsa:amd64                       1.16.2-4                            amd64        GStreamer plugin for ALSA
    ii  libsox-fmt-alsa:amd64                         14.4.2+git20190427-2                amd64        SoX alsa format I/O library
    
  2. No sound either if I plug earphones.
  3. I have no timidity-daemon to remove.
  4. Attempt reload
    $ sudo alsa force-reload
    [sudo] password for user1: 
    Unloading ALSA sound driver modules: (none loaded).
    Loading ALSA sound driver modules: (none to reload).
    
  5. modprobe
    $ grep intel /etc/modprobe.d/alsa-base.conf 
    options snd-intel8x0m index=-2
    

Some of the many related posts

https://askubuntu.com/a/1244118/226614 . Recent post, accepted answer. Suggests using a ppa for fixing. I am not sure this can get things worse…

https://askubuntu.com/a/1249071/226614 . Recent post. Suggests using
sudo setfacl -m u:user1:rw /dev/snd/*
Tried this, didn’t help.

https://askubuntu.com/a/847954/226614 . Old post, accepted answer. Suggests installing alsa-firmware-loaders and alsa-base. I am not sure this still applies…

How to install missing firmware for an Creative Labs Audigy2 soundcard? . Also old post. Also suggests UNCLAIMED device is due to firmware issues.
Why would the problem appear after a reboot?

No sound on upgrade (18.04 -> 20.04) only have "dummy output"

Dummy output after standby since upgrading to Ubuntu 20.04

20.04: internal speaker (Audio) is not working in Ubuntu 20.04 LTS after upgrading from Ubuntu 18.04 LTS

Ubuntu 20.04 – No sound

Soundcard not detected by pulseaudio (but by alsa)

How to install missing firmware for an Creative Labs Audigy2 soundcard?

https://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/


Get this bounty!!!

#StackBounty: #drivers #sound #kernel #20.04 #alsa Only Dummy output in Ubuntu 20.04 after reboot

Bounty: 100

I am using Ubuntu 20.04 for over a month now.
After a reboot, I have no more sound and WiFi. Note that this is different from many other posts, which seem to have had no sound at all, after an upgrade. In this case, sound stopped working only after a reboot.

As for the sound, I seem to have no kernel modules for sound, so I guess the most likely solution would come from making the modules available (it seems I have two sound cards).
I will try to include as much info as possible related to the copious posts with similar problems.

This is what I see.

  1. $ lsmod | grep snd outputs nothing.
  2. I don’t know if this is meaningful…
     $ dmesg | grep -i snd
     [    0.009698] ACPI: MCFG 0x00000000CF7D5C98 00003C (v01 DELL   SNDYBRDG 06222004 MSFT 00000097)
    
  3. lspci
     $ lspci -nnk | grep -A1 Audio
     00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
         DeviceName:  Onboard Audio
         Subsystem: Dell 6 Series/C200 Series Chipset Family High Definition Audio Controller [1028:04a4]
     00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
     --
     01:00.1 Audio device [0403]: NVIDIA Corporation GF104 High Definition Audio Controller [10de:0beb] (rev a1)
         Subsystem: Dell GF104 High Definition Audio Controller [1028:04a4]
     03:00.0 Network controller [0280]: Intel Corporation Centrino Ultimate-N 6300 [8086:422b] (rev 35)
    
  4. System
     $ uname -a
     Linux Hydrus1 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
    
  5. Test sound
     $ aplay -l
     aplay: device_list:274: no soundcards found...
    
  6. lshw
     $ lshw -C multimedia
     WARNING: you should run this program as super-user.
       *-multimedia UNCLAIMED    
            description: Audio device
            product: GF104 High Definition Audio Controller
            vendor: NVIDIA Corporation
            physical id: 0.1
            bus info: pci@0000:01:00.1
            version: a1
            width: 32 bits
            clock: 33MHz
            capabilities: bus_master cap_list
            configuration: latency=0
            resources: memory:e0080000-e0083fff
       *-multimedia UNCLAIMED
            description: Audio device
            product: 6 Series/C200 Series Chipset Family High Definition Audio Controller
            vendor: Intel Corporation
            physical id: 1b
            bus info: pci@0000:00:1b.0
            version: 04
            width: 64 bits
            clock: 33MHz
            capabilities: bus_master cap_list
            configuration: latency=0
            resources: memory:e1e50000-e1e53fff
     WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
    
  7. alsa packages
     $ dpkg -l | grep alsa
     ii  alsa-base                                     1.0.25+dfsg-0ubuntu5                all          ALSA driver configuration files
     ii  alsa-tools-gui                                1.1.7-1ubuntu1                      amd64        GUI based ALSA utilities for specific hardware
     ii  alsa-topology-conf                            1.2.2-1                             all          ALSA topology configuration files
     ii  alsa-ucm-conf                                 1.2.2-1ubuntu0.1                    all          ALSA Use Case Manager configuration files
     ii  alsa-utils                                    1.2.2-1ubuntu1                      amd64        Utilities for configuring and using ALSA
     ii  gstreamer1.0-alsa:amd64                       1.16.2-4                            amd64        GStreamer plugin for ALSA
     ii  libsox-fmt-alsa:amd64                         14.4.2+git20190427-2                amd64        SoX alsa format I/O library
    
  8. No sound either if I plug earphones.
  9. I have no timidity-daemon to remove.
  10. Attempt reload
    $ sudo alsa force-reload
    [sudo] password for user1: 
    Unloading ALSA sound driver modules: (none loaded).
    Loading ALSA sound driver modules: (none to reload).
    
  11. modprobe
    $ grep intel /etc/modprobe.d/alsa-base.conf 
    options snd-intel8x0m index=-2
    

Some of the many related posts

https://askubuntu.com/a/1244118/226614 . Recent post, accepted answer. Suggests using a ppa for fixing. I am not sure this can get things worse…

https://askubuntu.com/a/1249071/226614 . Recent post. Suggests using
sudo setfacl -m u:user1:rw /dev/snd/*
Tried this, didn’t help.

https://askubuntu.com/a/847954/226614 . Old post, accepted answer. Suggests installing alsa-firmware-loaders and alsa-base. I am not sure this still applies…

How to install missing firmware for an Creative Labs Audigy2 soundcard? . Also old post. Also suggests UNCLAIMED device is due to firmware issues.
Why would the problem appear after a reboot?

Dummy output after standby since upgrading to Ubuntu 20.04

20.04: internal speaker (Audio) is not working in Ubuntu 20.04 LTS after upgrading from Ubuntu 18.04 LTS


Get this bounty!!!

#StackBounty: #sound #20.04 Ubuntu 20.04 System doesn't recognize external microphone

Bounty: 50

My ubuntu 20.04 doesn’t recognizes external mic with combo jack entry microphone, i nearly tried everything. Here are some information and things i did.

My codec for sound cat /proc/asound/card1/codec* | grep Codec

Codec: Realtek ALC269VC

sudo lshw -c sound shows this;

*-multimedia:0            
   description: Audio device
   product: Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
   vendor: Intel Corporation
   physical id: 3
   bus info: pci@0000:00:03.0
   version: 06
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list
   configuration: driver=snd_hda_intel latency=0
   resources: irq:33 memory:f7a14000-f7a17fff
*-multimedia:1
       description: Audio device
       product: 8 Series/C220 Series Chipset High Definition Audio Controller
       vendor: Intel Corporation
       physical id: 1b
       bus info: pci@0000:00:1b.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:34 memory:f7a10000-f7a13fff

Cards that i have with pacmd list-cards

index: 0
    name: <alsa_card.pci-0000_00_03.0>
    driver: <module-alsa-card.c>
    owner module: 7
    properties:
            alsa.card = "0"
            alsa.card_name = "HDA Intel HDMI"
            alsa.long_card_name = "HDA Intel HDMI at 0xf7a14000 irq 33"
            alsa.driver_name = "snd_hda_intel"
            device.bus_path = "pci-0000:00:03.0"
            sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
            device.bus = "pci"
            device.vendor.id = "8086"
            device.vendor.name = "Intel Corporation"
            device.product.id = "0c0c"
            device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
            device.form_factor = "internal"
            device.string = "0"
            device.description = "Built-in Audio"
            module-udev-detect.discovered = "1"
            device.icon_name = "audio-card-pci"

Things i added to the /etc/modprobe.d/alsa-base.conf

options snd-hda-intel model=basic 
options snd-hda-intel position_fix=1

Model is basic but i tried a lot of things then i found my codecs model in the official documentation of Ubuntu

I tried overriding jack from hdajackretask but when i change something from there i always get the tee: /sys/class/sound/hwC1D0/reconfig: Device or resource is busy even when im not running anything on my system(videos, sound etc.)

Is there any other way to solve this or should i buy a jack to usb transformer?


Get this bounty!!!

#StackBounty: #sound #20.04 Ubuntu 20.04 System doesn't recognize external microphone

Bounty: 50

My ubuntu 20.04 doesn’t recognizes external mic with combo jack entry microphone, i nearly tried everything. Here are some information and things i did.

My codec for sound cat /proc/asound/card1/codec* | grep Codec

Codec: Realtek ALC269VC

sudo lshw -c sound shows this;

*-multimedia:0            
   description: Audio device
   product: Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
   vendor: Intel Corporation
   physical id: 3
   bus info: pci@0000:00:03.0
   version: 06
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list
   configuration: driver=snd_hda_intel latency=0
   resources: irq:33 memory:f7a14000-f7a17fff
*-multimedia:1
       description: Audio device
       product: 8 Series/C220 Series Chipset High Definition Audio Controller
       vendor: Intel Corporation
       physical id: 1b
       bus info: pci@0000:00:1b.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:34 memory:f7a10000-f7a13fff

Cards that i have with pacmd list-cards

index: 0
    name: <alsa_card.pci-0000_00_03.0>
    driver: <module-alsa-card.c>
    owner module: 7
    properties:
            alsa.card = "0"
            alsa.card_name = "HDA Intel HDMI"
            alsa.long_card_name = "HDA Intel HDMI at 0xf7a14000 irq 33"
            alsa.driver_name = "snd_hda_intel"
            device.bus_path = "pci-0000:00:03.0"
            sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
            device.bus = "pci"
            device.vendor.id = "8086"
            device.vendor.name = "Intel Corporation"
            device.product.id = "0c0c"
            device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
            device.form_factor = "internal"
            device.string = "0"
            device.description = "Built-in Audio"
            module-udev-detect.discovered = "1"
            device.icon_name = "audio-card-pci"

Things i added to the /etc/modprobe.d/alsa-base.conf

options snd-hda-intel model=basic 
options snd-hda-intel position_fix=1

Model is basic but i tried a lot of things then i found my codecs model in the official documentation of Ubuntu

I tried overriding jack from hdajackretask but when i change something from there i always get the tee: /sys/class/sound/hwC1D0/reconfig: Device or resource is busy even when im not running anything on my system(videos, sound etc.)

Is there any other way to solve this or should i buy a jack to usb transformer?


Get this bounty!!!