如何配置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 增加音量。

阿薩混合器

這些都是對我有用的步驟。

相關內容