如何配置Pulseaudio使笔记本电脑扬声器和耳机同时工作?

如何配置Pulseaudio使笔记本电脑扬声器和耳机同时工作?

我有一台装有 Ubuntu Eoan 的笔记本电脑。单声卡、单耳机插孔。

我想同时使用笔记本电脑扬声器和耳机(没有特别的原因,只是因为),但是一旦我插入耳机,扬声器就变得不可用。

我尝试启用同时输出,删除 -switch-on-connect 和 -switch-on-port-available 模块并创建虚拟接收器,但没有任何效果。谷歌搜索只返回相反的问题,即人的问题不是想要扬声器和耳机同时播放。

有人有解决办法吗?

输出amixer -c0

 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 87 [100%] [0.00dB] [on]
 Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',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 '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 'Capture',0
 Capabilities: cvolume cswitch
 Capture channels: Front Left - Front Right
 Limits: Capture 0 - 63
 Front Left: Capture 47 [75%] [18.00dB] [on]
 Front Right: Capture 47 [75%] [18.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
 Capabilities: enum
 Items: 'Disabled' 'Enabled'
 Item0: 'Enabled'
Simple mixer control 'Internal 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 'Internal 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 'Loopback Mixing',0
 Capabilities: enum
 Items: 'Disabled' 'Enabled'
 Item0: 'Disabled'

答案1

通过 ALSA 中的此设置插入耳机时,扬声器将静音

Simple mixer control 'Auto-Mute Mode',0
 Capabilities: enum
 Items: 'Disabled' 'Enabled'
 Item0: 'Enabled'

将此更改为残疾人

amixer -c0 sset 'Auto-Mute Mode' Disabled

并保存ALSA设置,以便ALSA在系统恢复时保留设置

sudo alsactl store

答案2

连接耳机后,alsamixer在终端中运行,F6按 选择您的声卡,然后:

  1. 禁用Auto-Mute Mode:移至Auto-Mute Mode,然后向下键禁用。 (nik gnomic 的答案也适用于此)
  2. 取消静音Speaker并将音量增大至 100%:移至Speaker,按M取消静音,然后按 UP 或 PgUP 增大音量。

阿尔萨混合器

这些是对我有用的步骤。

相关内容