You are not logged in.

#1 2021-03-19 12:01:03

kev717
Member
Registered: 2011-06-08
Posts: 67
Website

Cannot capture audio output (pavucontrol vu-meter stuck at 0) [SOLVED]

This started yesterday and I have confirmed that no updates have been installed since Saturday. For the first half of this week, my audio has been working fine and I can capture desktop audio as needed, but yesterday I was no longer able to capture desktop audio. The vu-meter in pavucontrol remains at 0 for all outputs despite the fact that I can clearly hear desktop audio.

What I've tried:
1) restart (full power off + unplug and turn back on in case it's a hardware issue)
2) plugging in a USB audio interface (vu-meter still stays at 0 and cannot capture output)
3) using JACK (this works)
4) trying to capture from ALSA instead of pulseaudio (hw:1,0 device or resource busy)

I'm not sure what to make of this. It's working, but it's not "working" in the sense that I can capture desktop audio through OBS, audacity, ffmpeg, or any other capture script that I could use 2 days ago (and I can confirm that this started 2 days ago because I recorded a screen capture which worked fine).

Output from `pactl list sinks` (with media playing):

Sink #0
	State: RUNNING
	Name: alsa_output.pci-0000_0a_00.3.analog-stereo
	Description: Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 7
	Mute: no
	Volume: front-left: 40720 /  62% / -12.40 dB,   front-right: 40720 /  62% / -12.40 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_0a_00.3.analog-stereo.monitor
	Latency: 100089 usec, configured 100136 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC887-VD Analog"
		alsa.id = "ALC887-VD Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xf7700000 irq 52"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:0a:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0a:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "front:1"
		device.buffering.buffer_size = "17664"
		device.buffering.fragment_size = "2944"
		device.access_mode = "mmap"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		analog-output-lineout: Line Out (type: Line, priority: 9000, available)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, not available)
	Active Port: analog-output-lineout
	Formats:
		pcm

If I had to guess, I would think that applications are somehow bypassing pulse and writing straight to hw:1,0 via ALSA, but why it started doing that now is confusing.

Any idea how I fix this?

Last edited by kev717 (2021-03-19 17:34:03)


If I code something, it's probably at https://github.com/kellcodes

Do **NOT** expect a response from me.

Offline

#2 2021-03-19 13:17:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,013

Re: Cannot capture audio output (pavucontrol vu-meter stuck at 0) [SOLVED]

What's

pacmd list-sink-inputs
pacmd list-sources
pacmd list-source-outputs
sudo fuser -v /dev/snd/*

during this?

Offline

#3 2021-03-19 13:32:48

onoketa
Member
Registered: 2021-03-19
Posts: 1

Re: Cannot capture audio output (pavucontrol vu-meter stuck at 0) [SOLVED]

same problem here

Offline

#4 2021-03-19 17:10:33

kev717
Member
Registered: 2011-06-08
Posts: 67
Website

Re: Cannot capture audio output (pavucontrol vu-meter stuck at 0) [SOLVED]

`pacmd list-sink-inputs`:

0 sink input(s) available.

`pacmd list-sources`:

2 source(s) available.
  * index: 0
	name: <alsa_output.pci-0000_0a_00.3.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY 
	state: RUNNING
	suspend cause: (none)
	priority: 1030
	volume: front-left: 49053 /  75% / -7.55 dB,   front-right: 49053 /  75% / -7.55 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: yes
	current latency: 0.00 ms
	max rewind: 17 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	fixed latency: 100.14 ms
	monitor_of: 0
	card: 1 <alsa_card.pci-0000_0a_00.3>
	module: 7
	properties:
		device.description = "Monitor of Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo"
		device.class = "monitor"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xf7700000 irq 52"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:0a:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0a:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "1"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
    index: 1
	name: <alsa_output.pci-0000_08_00.1.hdmi-stereo-extra1.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 1030
	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
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 6 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 40.00 ms; range is 0.50 .. 1999.82 ms
	monitor_of: 1
	card: 0 <alsa_card.pci-0000_08_00.1>
	module: 6
	properties:
		device.description = "Monitor of GM107 High Definition Audio Controller [GeForce 940MX] Digital Stereo (HDMI 2)"
		device.class = "monitor"
		alsa.card = "0"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 50"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:08:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:08:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "0fbc"
		device.product.name = "GM107 High Definition Audio Controller [GeForce 940MX]"
		device.string = "0"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"

`pacmd list-source-outputs`:

2 source output(s) available.
    index: 0
	driver: <protocol-native.c>
	flags: DONT_MOVE 
	state: RUNNING
	source: 0 <alsa_output.pci-0000_0a_00.3.analog-stereo.monitor>
	volume: mono: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: no
	current latency: 87.30 ms
	requested latency: 100.14 ms
	sample spec: float32le 1ch 25Hz
	channel map: mono
	             Mono
	resample method: peaks
	owner module: 10
	client: 6 <PulseAudio Volume Control>
	properties:
		media.name = "Peak detect"
		application.name = "PulseAudio Volume Control"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "34"
		application.id = "org.PulseAudio.pavucontrol"
		application.icon_name = "audio-card"
		application.version = "4.0"
		application.process.id = "1572"
		application.process.user = "username"
		application.process.host = "myhost"
		application.process.binary = "pavucontrol"
		application.language = "C"
		window.x11.display = ":0.0"
		application.process.machine_id = "fb2896f80c6e410b8718276c8343a54e"
		application.process.session_id = "2"
		module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
    index: 1
	driver: <protocol-native.c>
	flags: DONT_MOVE 
	state: RUNNING
	source: 1 <alsa_output.pci-0000_08_00.1.hdmi-stereo-extra1.monitor>
	volume: mono: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: no
	current latency: 19.98 ms
	requested latency: 40.00 ms
	sample spec: float32le 1ch 25Hz
	channel map: mono
	             Mono
	resample method: peaks
	owner module: 10
	client: 6 <PulseAudio Volume Control>
	properties:
		media.name = "Peak detect"
		application.name = "PulseAudio Volume Control"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "34"
		application.id = "org.PulseAudio.pavucontrol"
		application.icon_name = "audio-card"
		application.version = "4.0"
		application.process.id = "1572"
		application.process.user = "username"
		application.process.host = "myhost"
		application.process.binary = "pavucontrol"
		application.language = "C"
		window.x11.display = ":0.0"
		application.process.machine_id = "fb2896f80c6e410b8718276c8343a54e"
		application.process.session_id = "2"
		module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"

`fuser -v /dev/snd/*`:

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  username        647 F.... pulseaudio
/dev/snd/controlC1:  username        647 F.... pulseaudio
/dev/snd/pcmC0D7p:   username        647 F...m pulseaudio
/dev/snd/pcmC1D0p:   username        647 F...m pulseaudio
/dev/snd/timer:      username        647 f.... pulseaudio

Last edited by kev717 (2021-03-19 17:13:15)


If I code something, it's probably at https://github.com/kellcodes

Do **NOT** expect a response from me.

Offline

#5 2021-03-19 17:25:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,013

Re: Cannot capture audio output (pavucontrol vu-meter stuck at 0) [SOLVED]

  * index: 0
	name: <alsa_output.pci-0000_0a_00.3.analog-stereo.monitor>
           ...
	muted: yes

Click the unmute button in pavucontrol, or

pacmd set-source-mute alsa_output.pci-0000_0a_00.3.analog-stereo.monitor off

Offline

#6 2021-03-19 17:33:28

kev717
Member
Registered: 2011-06-08
Posts: 67
Website

Re: Cannot capture audio output (pavucontrol vu-meter stuck at 0) [SOLVED]

V1del wrote:
  * index: 0
	name: <alsa_output.pci-0000_0a_00.3.analog-stereo.monitor>
           ...
	muted: yes

Click the unmute button in pavucontrol, or

pacmd set-source-mute alsa_output.pci-0000_0a_00.3.analog-stereo.monitor off

Huh, I wonder why that got muted.  Not sure why that resulted in the vu-meter being 0 for all playback streams though.  Much thanks.


If I code something, it's probably at https://github.com/kellcodes

Do **NOT** expect a response from me.

Offline

#7 2021-03-19 17:54:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,013

Re: Cannot capture audio output (pavucontrol vu-meter stuck at 0) [SOLVED]

The vu-meters in pavucontrol monitor the monitor to show output levels so if that is muted they will be "silent" too

Offline

Board footer

Powered by FluxBB