Linux-Mint
使用混音器更改藍牙揚聲器的音量
我目前使用自定義創建的鍵盤快捷鍵來更改電腦的音量。我使用的終端命令是:
amixer sset Master 3%+ amixer sset Master 3%-
這會改變下圖中“內置音頻模擬立體聲”級別的音量。但是,這並不能控制我使用 blueman 應用程序連接的藍牙設備的音量。在 pavucontrol > Output Devices 我看到藍牙設備使用揚聲器埠,但這不起作用:
amixer sset Speaker 3%+ amixer: Invalid command!
如何讓主音量成為能夠更改藍牙設備音量的“全域”音量?
來自 alsamixer 的更多資訊:
Simple mixer control 'Master',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 87 Mono: Playback 69 [79%] [-13.50dB] [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: pswitch Playback channels: Front Left - Front Right Mono: Front Left: Playback [on] Front Right: Playback [on] Simple mixer control 'PCM',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 '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 51 [81%] [21.00dB] [off] Front Right: Capture 51 [81%] [21.00dB] [off] Simple mixer control 'Auto-Mute Mode',0 Capabilities: enum Items: 'Disabled' 'Speaker Only' 'Line Out+Speaker' Item0: 'Line Out+Speaker' Simple mixer control 'Digital',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 120 Front Left: Capture 81 [68%] [10.50dB] Front Right: Capture 81 [68%] [10.50dB] Simple mixer control 'Dock Mic',0 Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Mono Limits: Playback 0 - 31 Mono: Capture [off] Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off] Simple mixer control 'Dock 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 'Headset Mic',0 Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Mono Limits: Playback 0 - 31 Mono: Capture [off] Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off] Simple mixer control 'Headset Mic Boost',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 3 Front Left: 3 [100%] [30.00dB] Front Right: 3 [100%] [30.00dB] Simple mixer control 'Internal Mic',0 Capabilities: cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Capture channels: Mono Mono: Capture [on] 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: 3 [100%] [36.00dB] Front Right: 3 [100%] [36.00dB]
您正在執行 Pulseaudio,它使用 ALSA 驅動音效卡,但它連接到藍牙揚聲器而不涉及 ALSA。當您使用 設置 ALSA 音量時
amixer
,Pulseaudio 會注意到並更正源/接收器音量(實際上使用了一種有點複雜的算法,因為 ALSA 音量可以連接),但無論您嘗試什麼,您都無法控制藍牙揚聲器方式。所以只需直接設置 Pulseaudio 音量即可。執行此操作的命令是
pactl set-sink-volume name_of_bluetooth_speaker +3%
等你可以看到你所有的水槽的名稱
pacmd list-sinks | grep name:
使用不帶尖括號的名稱。沒有“主”卷。
您還可以使用像這樣的腳本來檢測活動接收器並更改它們的音量。