[SOLVED] Input includes System sounds?

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
Thatwierdo
Level 1
Level 1
Posts: 7
Joined: Fri Sep 13, 2019 11:37 pm

[SOLVED] Input includes System sounds?

Post by Thatwierdo » Fri Sep 13, 2019 11:51 pm

Hi, I'm new to linux mint and linux in general. Recently when on a call with friends on discord, I found that they could hear the music I was listening to, even when my mic was up and off. Since then I have discovered that my microphone is lumped into an input called "microphone built in audio", and that this input also picks up my system sounds. The system sounds continue to broadcast even when the mic is physically muted. I am almost certain this was not an issue previously, as I've been on linux mint for several weeks now and my friends have not heard my system sounds this clearly before. I have found no option to divide inputs or stop my system sounds from being broadcast to whoever I'm talking to. This is concerning for me not only as an annoyance to others but a potential privacy issue.

Is there a way to stop this from happening? I'm surprised linux mint seems to lump these together and disappointed to find I seem to have so little control over my input settings.
Last edited by Thatwierdo on Sat Sep 14, 2019 9:35 pm, edited 1 time in total.

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 12:07 am

Hi Thatwierdo, and welcome to the forum.

I'm going to start with a guess. In the terminal enter alsamixer. When it opens, you may need to press F6 to select the appropriate sound card. If there's a column named Loopback Mixing, arrow over to it then press the down arrow so it says Disabled. Press the Esc key to close alsamixer and let us know if that worked.

If it doesn't help, let's see the output of inxi -Fxz and aplay -l. After seeing those outputs, I'll probably ask for more.

Good luck.

Thatwierdo
Level 1
Level 1
Posts: 7
Joined: Fri Sep 13, 2019 11:37 pm

Re: Input includes System sounds?

Post by Thatwierdo » Sat Sep 14, 2019 12:44 am

Hi MrEen.
Loopback mixing was already disabled when I checked it.


inxi -Fxz

System:
Host: JR Kernel: 4.15.0-58-generic x86_64 bits: 64 compiler: gcc v: 7.4.0
Desktop: Cinnamon 4.2.3 Distro: Linux Mint 19.2 Tina
base: Ubuntu 18.04 bionic
Machine:
Type: Laptop System: LENOVO product: 80NV v: LENOVO Y700-15ISK
serial: <filter>
Mobo: LENOVO model: VIUU4 v: SDK0K17763 WIN serial: <filter> UEFI: LENOVO
v: CDCN54WW date: 06/13/2017
Battery:
ID-1: BAT0 charge: 52.6 Wh condition: 52.6/60.0 Wh (88%)
model: SMP L14M4P23 status: Full
CPU:
Topology: Quad Core model: Intel Core i7-6700HQ bits: 64 type: MT MCP
arch: Skylake-S rev: 3 L2 cache: 6144 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 41472
Speed: 800 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 800 2: 800
3: 800 4: 800 5: 800 6: 800 7: 800 8: 800
Graphics:
Device-1: Intel HD Graphics 530 vendor: Lenovo driver: i915 v: kernel
bus ID: 00:02.0
Device-2: NVIDIA GM107M [GeForce GTX 960M] vendor: Lenovo driver: nvidia
v: 430.26 bus ID: 01:00.0
Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia
unloaded: fbdev,nouveau,vesa tty: N/A
OpenGL: renderer: GeForce GTX 960M/PCIe/SSE2 v: 4.6.0 NVIDIA 430.26
direct render: Yes
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio
vendor: Lenovo Sunrise Point-H driver: snd_hda_intel v: kernel
bus ID: 00:1f.3
Sound Server: ALSA v: k4.15.0-58-generic
Network:
Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel port: 4000
bus ID: 08:00.0
IF: wlp8s0 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: 2.3LK-NAPI port: 3000 bus ID: 09:00.0
IF: enp9s0 state: down mac: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 231.37 GiB (24.8%)
ID-1: /dev/sda vendor: Western Digital model: WD10SPCX-24HWST1
size: 931.51 GiB
Partition:
ID-1: / size: 915.40 GiB used: 231.37 GiB (25.3%) fs: ext4 dev: /dev/sda2
Sensors:
System Temperatures: cpu: 39.0 C mobo: N/A gpu: nvidia temp: 50 C
Fan Speeds (RPM): N/A
Info:
Processes: 246 Uptime: 1h 13m Memory: 7.62 GiB used: 2.31 GiB (30.2%)
Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20
inxi: 3.0.32


aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC233 Analog [ALC233 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0

Thank you for the help.

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 12:25 pm

I'm struggling a bit to figure out what might have changed. I don't use any apps like Discord/Skype/etc. Let's see the output of amixer

Also, install and run PulseAudio Volume Control (pavucontrol) and look at both the Recording tab and the Playback tab on there. Discord should be the only thing active on the Recording tab and should co-exist with what your using to play sound on the Playback tab. Maybe one of those will give a clue. It's probable your issue is output and not input, as your sound is outputting through both your headphones/speakers and Discord if that makes sense. If the Playback tab shows your output going through a combined sink, that might be the answer.

The only other outputs that might come in handy that I can think of would be to run these while system sound and Discord are both active: pacmd list-sinks and pacmd list-sources

Thatwierdo
Level 1
Level 1
Posts: 7
Joined: Fri Sep 13, 2019 11:37 pm

Re: Input includes System sounds?

Post by Thatwierdo » Sat Sep 14, 2019 3:16 pm

amixer

Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 0 [0%] [-65.25dB] [off]
Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',4
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 63 [100%] [30.00dB] [on]
Front Right: Capture 63 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Internal Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 2 [67%] [20.00dB]
Front Right: 2 [67%] [20.00dB]
Simple mixer control 'Loopback Mixing',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'


After installing pavucontrol, recording is blank until discord starts recording, then "WEBRTC VoiceEngine: recStream _from_ " appears, with "Built-in Audio Analog Stereo" selected. The other option available is "Monitor of Built-in Audio Analog Stereo".
Output shows "Built-in Audio Analog Stereo", with the port set to "Headphones (plugged in)" the other option being "speakers (unavailable)".
Input shows the same "Built-in Audio Analog Stereo" except with the port set to "microphone (unplugged)". Not sure if the input and output being the same is relevant.

List sinks

1 sink(s) available.
* index: 2
name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 9039
volume: front-left: 49805 / 76% / -7.15 dB, front-right: 49805 / 76% / -7.15 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 25.34 ms
max request: 4 KiB
max rewind: 64 KiB
monitor source: 3
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 3
configured latency: 25.00 ms; range is 4.00 .. 371.52 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC233 Analog"
alsa.id = "ALC233 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 132"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "a170"
device.product.name = "Sunrise Point-H HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Realtek ALC233"
alsa.components = "HDA:10ec0235,17aa3826,00100002 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-headphones>


List Sources

2 source(s) available.
* index: 1
name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9039
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 6554 / 10% / -60.00 dB
volume steps: 65537
muted: no
current latency: 0.17 ms
max rewind: 0 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 2
linked by: 2
configured latency: 40.00 ms; range is 0.50 .. 371.52 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC233 Analog"
alsa.id = "ALC233 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 132"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "a170"
device.product.name = "Sunrise Point-H HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Realtek ALC233"
alsa.components = "HDA:10ec0235,17aa3826,00100002 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-input-microphone"
active port: <analog-input-mic>
index: 3
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause:
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: 64 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 2
linked by: 2
configured latency: 40.00 ms; range is 4.00 .. 371.52 ms
monitor_of: 2
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 7
properties:
device.description = "Monitor of Built-in Audio Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 132"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "a170"
device.product.name = "Sunrise Point-H HD Audio"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 3:33 pm

The only one you didn't mention is the Playback tab. I'm hoping that's where we might find something relevant.

Thatwierdo
Level 1
Level 1
Posts: 7
Joined: Fri Sep 13, 2019 11:37 pm

Re: Input includes System sounds?

Post by Thatwierdo » Sat Sep 14, 2019 6:37 pm

Apologies, I got it confused with output.

In playback there is "System Sounds", which says silent and doesn't appear to register anything, "AudioIPC Server : AudioStream", and when in a discord call, "WEBRTC VoiceEngine: playStream"

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 7:22 pm

I was hoping something would pop out at me, but it's not happening. System Sounds are the beeps and chimes and Startup Sounds, etc. I'm sort of wondering if "AudioStream" and "playStream" are the difference causing the issue.

Maybe there's a setting in Discord where it's grabbing all sounds instead of just the mic. From a quick search, it appears there's a Reset Voice Settings under User Settings > Voice & Video at the bottom. Or try changing the Input device that I believe is on the same page.

Sorry I'm not more familiar with the software, but I think what you want is doable, just need the correct settings somewhere. Hopefully a Discord user might chime in.

Thatwierdo
Level 1
Level 1
Posts: 7
Joined: Fri Sep 13, 2019 11:37 pm

Re: Input includes System sounds?

Post by Thatwierdo » Sat Sep 14, 2019 7:35 pm

In discord, the only input I'm seeing is "Built-in Analog Stereo", for both input and output. However even outside of discord, looking in "Sound Settings" in linux, it shows the mic is picking up my system sounds.

In Pavu I also see a "configuration" tab, with only "Built-in Audio" under it. It has a lot of options though, and is set to "Analog Stereo Duplex." Not sure if that's relevant.

Regardless I'm fairly certain it's an issue within linux itself, due to the issue appearing on the OS' own sound settings.

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 8:25 pm

I'm thinking on this:
looking in "Sound Settings" in linux, it shows the mic is picking up my system sounds.
Will try to figure out what I'm missing. I feel it's something easy I'm just not thinking of at the moment.

Just one question; Have you edited any sound related files since installing Linux? Examples are things in /etc/pulse, /etc/modprobe.d/alsa-base.conf, ~/.config/pulse, ~/.asoundrc, or a file named asound.state?

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 8:38 pm

Here's something that may help. Run alsamixer again. Probably the last thing before Loopback is Internal Mic Boost. Arrow over to it and lower it all the way. It's a little strange that you have Internal Mic Boost, but no Internal Mic selection. I'm guessing Capture might take care of that.

Thatwierdo
Level 1
Level 1
Posts: 7
Joined: Fri Sep 13, 2019 11:37 pm

Re: Input includes System sounds?

Post by Thatwierdo » Sat Sep 14, 2019 9:04 pm

I have not edited any sound files no.

In Alsamixer internal mic boost was already at 0, but there was another micboost option that when turned down significantly reduced ambient static when listening to my input feed via discords mic test. doesn't seem to have changed the problem but it seems slightly quieter without the static.

On pavucontrol there is an option for "Internal microphone (unplugged)" for the "built-in audio analog stereo" input. Unplugging my headphones causes this to turn to "Internal microphone" and become active. However this mic seems to constantly be picking up a repeating sound. Almost like static, it just keeps going.

Not sure what you mean by capture.

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 9:17 pm

Capture is probably only revealed in alsamixer when you press F4. Maybe try playing with settings there to see if you can fix this. For example, if Internal Mic exists, drop it to zero.

Thatwierdo
Level 1
Level 1
Posts: 7
Joined: Fri Sep 13, 2019 11:37 pm

Re: Input includes System sounds?

Post by Thatwierdo » Sat Sep 14, 2019 9:32 pm

Thank you very much sir!
On hitting f4 I found capture was at 100%. Reducing it to zero removed the system sounds from my input!

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 9:34 pm

Fantastic! So glad that worked. :D

User avatar
catweazel
Level 19
Level 19
Posts: 9749
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Input includes System sounds?

Post by catweazel » Sat Sep 14, 2019 9:36 pm

MrEen wrote:
Sat Sep 14, 2019 9:34 pm
Fantastic! So glad that worked. :D
Nice work on your part.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.

User avatar
MrEen
Level 15
Level 15
Posts: 5535
Joined: Mon Jun 12, 2017 8:39 pm

Re: Input includes System sounds?

Post by MrEen » Sat Sep 14, 2019 9:44 pm

catweazel wrote:
Sat Sep 14, 2019 9:36 pm
Nice work on your part.
Thank you kind sir!









Now, what have you done with the real catweazel?!? :wink:

Post Reply

Return to “Sound, Multimedia, & Codecs”