Microphone disapearing randomly from input devices

…since a recent update, i don’t know exactly which update causes this.

when i join a discord call my mic can randomly disapears from the list, meaning that people stop hearing me suddently, i haven’t found any way to reproduce the issue, i don’t know what triggers it.

the mic is working perfectly fine in itself, it’s a USB standard microphone,
the only « fix » is to unplug and re-plug the mic hoping it shows up, because sometimes it doesn’t show up in the list after reconnecting so i have to do it multiple times. OR reboot the PC

is anyone having the same issue ?

No, not aware I have this problem but I am using the microphone only now and then.

For your problem, before starting the call, execute on the console “dmesg --follow”, give some enters to create some blank lines and check what is happening.

Share here everything that is printed out after to empty lines.

It’s difficult to make a conclusive diagnosis with the limited information provided, but it might be due to USB power management settings that can be adjusted via the motherboards UEFI BIOS. I’d start with checking that out first.

FWIW, I’ve seen a coupe of threads where users reported that the ErP (energy related products) setting in the BIOS needed to be turned on. YMMV.

https://www.reddit.com/r/archlinux/comments/s76b32/issues_with_usb_mic_sometimes_not_working_at_boot/

https://www.reddit.com/r/HPReverb/comments/kthl5a/anyone_else_having_to_unplugreplug_their_usb_to/

i haven’t changed any setting in my BIOS in months, this issue appeared last week after an update so i doubt that the BIOS settings could be the cause, however i did check the setting and besides ERP being disabled as usual (default setting), there is no power saving setting or anything that could cause the device to turn off for any reason
screenshot_20241109_161159
the issue didn’t appear yesterday, and today as soon as i wanted to use my mic i’ve checked the list, and boom, the mic isn’t there,
image
however it does appear in lsusb and dmesg

well dmesg doesn’t tell me anything interesting, i’ve disconnected and reconnected the device multiple times in a row

running usbreset temporarily fixed the problem

usbreset no longer fixes the issue… wtf is happening

updated to the latest release, nothing changed

You mentioned that lsusb still shows the device present when inactive and unavailable. Let’s see if it is still present as far as ALSA is concerned. Run amixer, press F6 and choose the appropriate device to view the relevant mic control(s).

Alternatively, view using amixer -cX where X is the card number associated with the USB mic. You can determine that using arecord -l.

Next check if PulseAudio (or its wrapper) reports the device using

pactl list sources
02:31:49 (kyral@kdes)-[~]  
(0)-$ amixer 
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 44564 [68%] [on]
  Front Right: Playback 44564 [68%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 65536
  Mono: Capture 65536 [100%] [on]
02:31:53 (kyral@kdes)-[~]  
(0)-$ sudo usbreset 0c76:161e
[sudo] password for root:     
Resetting USB PnP Audio Device ... ok
02:32:06 (kyral@kdes)-[~]  
(0)-$ amixer 
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 44564 [68%] [on]
  Front Right: Playback 44564 [68%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 65536
  Mono: Capture 65536 [100%] [on]

well it looks like the device still shows up before i had to reset the usb device again,

…and what about the pactl command output I requested?

ah yeah sorry i forgot to include it
here it is :

Source #67
        State: RUNNING
        Name: alsa_output.usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00.analog-stereo.monitor
        Description: Monitor of PRO X 2 LIGHTSPEED Analog Stereo
        Driver: PipeWire
        Sample Specification: s16le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor of Sink: alsa_output.usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00.analog-stereo
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "4"
                alsa.card_name = "PRO X 2 LIGHTSPEED"
                alsa.class = "generic"
                alsa.components = "USB046d:0af7"
                alsa.device = "0"
                alsa.driver_name = "snd_usb_audio"
                alsa.id = "USB Audio"
                alsa.long_card_name = "Logitech PRO X 2 LIGHTSPEED at usb-0000:07:00.3-6.4.1, full speed"
                alsa.mixer_name = "USB Mixer"
                alsa.name = "USB Audio"
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.sync.id = "00000000:00000000:00000000:00000000"
                api.alsa.card.longname = "Logitech PRO X 2 LIGHTSPEED at usb-0000:07:00.3-6.4.1, full speed"
                api.alsa.card.name = "PRO X 2 LIGHTSPEED"
                api.alsa.path = "front:4"
                api.alsa.pcm.card = "4"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "3"
                device.api = "alsa"
                device.class = "monitor"
                device.id = "44"
                device.profile.description = "Analog Stereo"
                device.profile.name = "analog-stereo"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "PRO X 2 LIGHTSPEED"
                node.name = "alsa_output.usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00.analog-stereo"
                node.nick = "PRO X 2 LIGHTSPEED"
                node.pause-on-idle = "false"
                object.path = "alsa:acp:LIGHTSPEED:3:playback"
                port.group = "playback"
                priority.driver = "1009"
                priority.session = "1009"
                factory.id = "19"
                clock.quantum-limit = "8192"
                client.id = "41"
                node.driver = "true"
                node.loop.name = "data-loop.0"
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "53"
                object.serial = "67"
                node.max-latency = "16384/48000"
                api.alsa.period-size = "512"
                api.alsa.period-num = "64"
                api.alsa.headroom = "512"
                api.acp.auto-port = "false"
                api.alsa.card = "4"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio4"
                api.dbus.ReserveDevice1.Priority = "-20"
                device.bus = "usb"
                device.bus-id = "usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00"
                device.bus_path = "pci-0000:07:00.3-usb-0:6.4.1:1.0"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-usb"
                device.name = "alsa_card.usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00"
                device.nick = "PRO X 2 LIGHTSPEED"
                device.plugged.usec = "9559526"
                device.product.id = "0x0af7"
                device.product.name = "PRO X 2 LIGHTSPEED"
                device.serial = "Logitech_PRO_X_2_LIGHTSPEED_0000000000000000"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:07:00.3/usb5/5-6/5-6.4/5-6.4.1/5-6.4.1:1.0/sound/card4"
                device.vendor.id = "0x046d"
                device.vendor.name = "Logitech, Inc."
                device.string = "4"
        Ports:
                analog-output: Analog Output (type: Analog, priority: 9900, availability unknown)
        Active Port: analog-output
        Formats:
                pcm

Source #68
        State: RUNNING
        Name: alsa_input.usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00.mono-fallback
        Description: PRO X 2 LIGHTSPEED Mono
        Driver: PipeWire
        Sample Specification: s16le 1ch 48000Hz
        Channel Map: mono
        Owner Module: 4294967295
        Mute: no
        Volume: mono: 65536 / 100% / 0,00 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor of Sink: n/a
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "4"
                alsa.card_name = "PRO X 2 LIGHTSPEED"
                alsa.class = "generic"
                alsa.components = "USB046d:0af7"
                alsa.device = "0"
                alsa.driver_name = "snd_usb_audio"
                alsa.id = "USB Audio"
                alsa.long_card_name = "Logitech PRO X 2 LIGHTSPEED at usb-0000:07:00.3-6.4.1, full speed"
                alsa.mixer_name = "USB Mixer"
                alsa.name = "USB Audio"
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.sync.id = "00000000:00000000:00000000:00000000"
                api.alsa.card.longname = "Logitech PRO X 2 LIGHTSPEED at usb-0000:07:00.3-6.4.1, full speed"
                api.alsa.card.name = "PRO X 2 LIGHTSPEED"
                api.alsa.path = "hw:4"
                api.alsa.pcm.card = "4"
                api.alsa.pcm.stream = "capture"
                audio.channels = "1"
                audio.position = "MONO"
                card.profile.device = "2"
                device.api = "alsa"
                device.class = "sound"
                device.id = "44"
                device.profile.description = "Mono"
                device.profile.name = "mono-fallback"
                device.routes = "1"
                factory.name = "api.alsa.pcm.source"
                media.class = "Audio/Source"
                device.description = "PRO X 2 LIGHTSPEED"
                node.name = "alsa_input.usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00.mono-fallback"
                node.nick = "PRO X 2 LIGHTSPEED"
                node.pause-on-idle = "false"
                object.path = "alsa:acp:LIGHTSPEED:2:capture"
                port.group = "capture"
                priority.driver = "2000"
                priority.session = "2000"
                factory.id = "19"
                clock.quantum-limit = "8192"
                client.id = "41"
                node.driver = "true"
                node.loop.name = "data-loop.0"
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "52"
                object.serial = "68"
                node.max-latency = "16384/48000"
                api.alsa.period-size = "512"
                api.alsa.period-num = "64"
                api.alsa.headroom = "512"
                api.acp.auto-port = "false"
                api.alsa.card = "4"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio4"
                api.dbus.ReserveDevice1.Priority = "-20"
                device.bus = "usb"
                device.bus-id = "usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00"
                device.bus_path = "pci-0000:07:00.3-usb-0:6.4.1:1.0"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-usb"
                device.name = "alsa_card.usb-Logitech_PRO_X_2_LIGHTSPEED_0000000000000000-00"
                device.nick = "PRO X 2 LIGHTSPEED"
                device.plugged.usec = "9559526"
                device.product.id = "0x0af7"
                device.product.name = "PRO X 2 LIGHTSPEED"
                device.serial = "Logitech_PRO_X_2_LIGHTSPEED_0000000000000000"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:07:00.3/usb5/5-6/5-6.4/5-6.4.1/5-6.4.1:1.0/sound/card4"
                device.vendor.id = "0x046d"
                device.vendor.name = "Logitech, Inc."
                device.string = "4"
        Ports:
                analog-input-mic: Microphone (type: Mic, priority: 8700, availability unknown)
        Active Port: analog-input-mic
        Formats:
                pcm

Source #69
        State: IDLE
        Name: alsa_output.pci-0000_0f_00.4.analog-stereo.monitor
        Description: Monitor of Starship/Matisse HD Audio Controller Analog Stereo
        Driver: PipeWire
        Sample Specification: s32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor of Sink: alsa_output.pci-0000_0f_00.4.analog-stereo
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "2"
                alsa.card_name = "HD-Audio Generic"
                alsa.class = "generic"
                alsa.components = "HDA:10ec1220,1458a0d2,00100101"
                alsa.device = "0"
                alsa.driver_name = "snd_hda_intel"
                alsa.id = "ALC1220 Analog"
                alsa.long_card_name = "HD-Audio Generic at 0xfcb00000 irq 134"
                alsa.mixer_name = "Realtek ALC1220"
                alsa.name = "ALC1220 Analog"
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.sync.id = "00000000:00000000:00000000:00000000"
                api.alsa.card.longname = "HD-Audio Generic at 0xfcb00000 irq 134"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.path = "front:2"
                api.alsa.pcm.card = "2"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "5"
                device.api = "alsa"
                device.class = "monitor"
                device.id = "46"
                device.profile.description = "Analog Stereo"
                device.profile.name = "analog-stereo"
                device.routes = "2"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Starship/Matisse HD Audio Controller"
                node.name = "alsa_output.pci-0000_0f_00.4.analog-stereo"
                node.nick = "ALC1220 Analog"
                node.pause-on-idle = "false"
                object.path = "alsa:acp:Generic:5:playback"
                port.group = "playback"
                priority.driver = "1009"
                priority.session = "1009"
                factory.id = "19"
                clock.quantum-limit = "8192"
                client.id = "41"
                node.driver = "true"
                node.loop.name = "data-loop.0"
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "55"
                object.serial = "69"
                node.max-latency = "16384/48000"
                api.alsa.period-size = "1024"
                api.alsa.period-num = "32"
                api.alsa.headroom = "0"
                api.acp.auto-port = "false"
                api.alsa.card = "2"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio2"
                api.dbus.ReserveDevice1.Priority = "-20"
                device.bus = "pci"
                device.bus_path = "pci-0000:0f:00.4"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_0f_00.4"
                device.nick = "HD-Audio Generic"
                device.plugged.usec = "9186656"
                device.product.id = "0x1487"
                device.product.name = "Starship/Matisse HD Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0f:00.4/sound/card2"
                device.vendor.id = "0x1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.string = "2"
        Ports:
                analog-output-lineout: Line Out (type: Line, priority: 9000, availability group: Legacy 4, available)
                analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 5, not available)
        Active Port: analog-output-lineout
        Formats:
                pcm

Source #87
        State: RUNNING
        Name: easyeffects_sink.monitor
        Description: Monitor of Easy Effects Sink
        Driver: PipeWire
        Sample Specification: float32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor of Sink: easyeffects_sink
        Latency: 0 usec, configured 0 usec
        Flags: DECIBEL_VOLUME LATENCY 
        Properties:
                application.id = "com.github.wwmm.easyeffects"
                node.name = "easyeffects_sink"
                device.description = "Easy Effects Sink"
                node.virtual = "true"
                node.passive = "out"
                factory.name = "support.null-audio-sink"
                media.class = "Audio/Sink"
                audio.position = "FL,FR"
                monitor.channel-volumes = "false"
                monitor.passthrough = "true"
                priority.session = "0"
                factory.id = "19"
                clock.quantum-limit = "8192"
                client.id = "79"
                node.driver = "true"
                port.group = "stream.0"
                node.loop.name = "data-loop.0"
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "80"
                object.serial = "87"
                node.driver-id = "53"
                device.class = "monitor"
        Formats:
                pcm

Source #88
        State: RUNNING
        Name: easyeffects_source
        Description: Easy Effects Source
        Driver: PipeWire
        Sample Specification: float32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor of Sink: n/a
        Latency: 0 usec, configured 0 usec
        Flags: DECIBEL_VOLUME LATENCY 
        Properties:
                application.id = "com.github.wwmm.easyeffects"
                node.name = "easyeffects_source"
                device.description = "Easy Effects Source"
                node.virtual = "true"
                factory.name = "support.null-audio-sink"
                media.class = "Audio/Source/Virtual"
                audio.position = "FL,FR"
                monitor.channel-volumes = "false"
                monitor.passthrough = "true"
                priority.session = "0"
                factory.id = "19"
                clock.quantum-limit = "8192"
                client.id = "79"
                node.driver = "true"
                port.group = "stream.0"
                node.loop.name = "data-loop.0"
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "81"
                object.serial = "88"
                node.driver-id = "52"
        Formats:
                pcm

after starting blender, the same thing happened with my headset, i had to run usbreset again otherwise it wouldn’t show up as well

At the time that you ran pactl list sources it was active?

Ports:
                analog-input-mic: Microphone (type: Mic, priority: 8700, availability unknown)
        Active Port: analog-input-mic

If you run pavucontrol are you able to select the appropriate ‘configuration’ profile first, and then select the mic as an input source?

At the time that you ran pactl list sources it was active?

no it wasn’t, the issue was present so the device was missing from the input device list in plasma

i’ll see about pavucontrol, i have to wait for the problem to show up every time


when the problems happens, the device won’t show up in pavucontrol either

after running usbreset it shows up immediately here and also in plasma

running blender triggers this issue immediately, discord can also trigger it but it seems more random and takes a longer time

It does also not say me much but that is because it show what happens when you disconnected and reconnected the device multiple times in a row which does not capture the problem.

Please leave it running long and capture and or more of the events where the device disappears. Share the log not via a screenshot but just as text, use Ctrl-E /preformatted text to format it.

Screenshot_20241111_133250

ok i’ll send preformmated text instead of screenshots

tho, every time i reproduce the issue (works every time with blender), literally nothing happens in dmesg, not a single line changes, yet the device disapears from the list as soon as i launch blender.

i’ve made a short clip that shows the problem hopefully more in detail

Tanks for the video, agreed that dmesg does not show anything useful but journalctl does.

:05 veskop[3054]: [arRPC > ipc] new connection!
:07 veskop[3054]: [arRPC > ipc] socket closed false
:16 easyeffects[3028]:        pipemanager.cpp:1481        Remote error res: No such file or directory
:16 easyeffects[3028]:        pipemanager.cpp:1481        Remote error message: unknown resopurce 673 op:2
:16 easyeffects[3028]:        pipemanager.cpp:1481        Remote error res: No such file or directory
:16 easyeffects[3028]:        pipemanager.cpp:1481        Remote error message: unknown resopurce 673 op:2

I think the problem is the :07 line.

I can not find Vesktop using zypper so I guess you installed it as Appimage.

As an experiment I would uninstall it and see if you can reproduce the problem.

vesktop is installed as RPM from here GitHub - Vencord/Vesktop: Vesktop is a custom Discord App aiming to give you better performance and improve linux support ,it’s just a discord client

it’s just the RPC plugin detecting blender cause i’ve installed an RPC plugin for it, yet even if in kill all instances of vesktop and start blender the exact same issue happens, i don’t believe it has anything to do with vesktop, i might be wrong but i don’t see the connection here

journalctl simply shows vesktop RPC detecting blender

From [Solved] Pipewire cuts out frequently but randomly and needs a restart:

Maybe Discord is the problem?

Always.

That page lists more debug options.