Ubuntu

如何配置 Pulseaudio 使筆記型電腦揚聲器和耳機同時工作?

  • April 16, 2022

我有一台裝有 Ubuntu Eoan 的筆記型電腦。單音效卡,單耳機孔。

我想同時使用筆記型電腦揚聲器和耳機(沒有特別的原因,只是因為)但是一旦我插入耳機,揚聲器就變得不可用。

我嘗試啟用同時輸出,刪除 -switch-on-connect 和 -switch-on-port-available 模組並製作虛擬接收器,但沒有任何效果。Google搜尋只返回相反的問題,即人們希望揚聲器和耳機同時播放。

任何人有任何解決方案?

輸出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'

通過 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

連接耳機後,alsamixer在終端中執行,按下F6以選擇您的音效卡,然後:

  1. 禁用Auto-Mute Mode:移動到Auto-Mute Mode,然後向下移動以禁用。(nik gnomic 的回答也適用於此處)
  2. 取消靜音Speaker並將其音量增加到 100%:移動到Speaker,按M取消靜音,然後按 UP 或 PgUP 增加音量。

混音器

這些是對我有用的步驟。

引用自:https://unix.stackexchange.com/questions/579275