我有3个播放设备:电视,耳机,扬声器
电视通过HDMI使用GPU声卡,耳机和扬声器使用集成主板声音。
在下面的alsamixer截图中,您可以看到我的扬声器是“耳机”,而我的实际耳机就在它旁边。

我希望能够单独切换音量(可能通过命令行),这样,我可以只使用扬声器或耳机时,我想。
我似乎找不到它们映射到的相应条目。一个混频器也没有帮助,这是如何工作的整体?
顺便说一下,当我静音“耳机”,它也自动静音的主人,但我不知道如何排除这一点。
谢谢一吨。
amixer scontrols Simple mixer control 'PCM',0 Simple mixer control 'IEC958',0 Simple mixer control 'IEC958',1 Simple mixer control 'IEC958',2 Simple mixer control 'IEC958',3 Simple mixer control 'IEC958',4 Simple mixer control 'IEC958',5
amixer -c 1 scontrols
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'Headphone',1
Simple mixer control 'PCM',0
Simple mixer control 'Line',0
Simple mixer control 'Line Boost',0
Simple mixer control 'Mic',0
Simple mixer control 'Mic Boost',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Dock Mic',0
Simple mixer control 'Dock Mic Boost',0
Simple mixer control 'Input Source',0
Simple mixer control 'Input Source',1
Simple mixer control 'Loopback Mixing',0我现在可以通过以下方式改变音量
amixer -c 1 controls
numid=27,iface=CARD,name='Dock Headphone Surround Jack'
numid=23,iface=CARD,name='Dock Mic Jack'
numid=26,iface=CARD,name='Headphone Front Jack'
numid=25,iface=CARD,name='Line Jack'
numid=24,iface=CARD,name='Mic Jack'
numid=22,iface=MIXER,name='Master Playback Switch'
numid=21,iface=MIXER,name='Master Playback Volume'
numid=2,iface=MIXER,name='Headphone Playback Switch'
numid=4,iface=MIXER,name='Headphone Playback Switch',index=1
numid=1,iface=MIXER,name='Headphone Playback Volume'
numid=3,iface=MIXER,name='Headphone Playback Volume',index=1
numid=31,iface=MIXER,name='PCM Playback Volume'
numid=20,iface=MIXER,name='Line Boost Volume'
numid=11,iface=MIXER,name='Line Playback Switch'
numid=10,iface=MIXER,name='Line Playback Volume'
numid=19,iface=MIXER,name='Mic Boost Volume'
numid=9,iface=MIXER,name='Mic Playback Switch'
numid=8,iface=MIXER,name='Mic Playback Volume'
numid=15,iface=MIXER,name='Capture Switch'
numid=17,iface=MIXER,name='Capture Switch',index=1
numid=14,iface=MIXER,name='Capture Volume'
numid=16,iface=MIXER,name='Capture Volume',index=1
numid=5,iface=MIXER,name='Loopback Mixing'
numid=18,iface=MIXER,name='Dock Mic Boost Volume'
numid=7,iface=MIXER,name='Dock Mic Playback Switch'
numid=6,iface=MIXER,name='Dock Mic Playback Volume'
numid=12,iface=MIXER,name='Input Source'
numid=13,iface=MIXER,name='Input Source',index=1
numid=29,iface=PCM,name='Capture Channel Map'
numid=28,iface=PCM,name='Playback Channel Map'
numid=30,iface=PCM,name='Capture Channel Map',device=2找到我的设备的numid=3。这里的实际id实际上是numid=3,因此要更改我使用的卷:
amixer -c 1 cset 'numid=3' 20若要将卷“值”更改为20,在我的示例中,db为64,因此它将其设置为64中的20 (不确定百分比)。Alsamixer显示了一些不同的(缩放?)值。现在我只需要弄清楚如何使用+和-命令,因为它们似乎不适合我。到目前为止谢谢你!
发布于 2019-07-21 18:42:11
如何更改混频器控件将在amixer手册页中描述。
可以将简单的混合器控件更改为百分比值或dB值:
amixer -c1 set 'Headphone',1 50%
amixer -c1 set 'Headphone',1 -20dB您可以附加+或-以进行相对更改:
amixer -c1 set 'Headphone',1 10%+
amixer -c1 set 'Headphone',1 10dB-对于下面的开关,您可以使用mute/unmute/toggle.
https://askubuntu.com/questions/1159063
复制相似问题