出力デバイスを管理するためにamixerコマンドを使用する方法は?

出力デバイスを管理するためにamixerコマンドを使用する方法は?

2つの出力デバイスがあります:headphoneそして line out私のコンピュータにあります。そのうちの1つを出力デバイスとして選択できますPulseAudio Volume Controlamixerたとえば、同じことを実行できますかpulseaudio

speakerオーディオ再生を選択したいと思いますcard 1

amixer -c 1 set "speaker" On 
amixer: Unable to find simple control 'speaker',0    
amixer -c 1 set "speaker" 10db
amixer: Unable to find simple control 'speaker',0

どちらも機能しません。

@MC68020、無効なコマンド:

debian@debian:~$   amixer -c 1 scontrols
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'Headphone+LO',0
Simple mixer control 'PCM',0
Simple mixer control 'Front',0
Simple mixer control 'Front Mic',0
Simple mixer control 'Front Mic Boost',0
Simple mixer control 'Surround',0
Simple mixer control 'Center',0
Simple mixer control 'LFE',0
Simple mixer control 'Line',0
Simple mixer control 'Line Boost',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Auto-Mute Mode',0
Simple mixer control 'Channel Mode',0
Simple mixer control 'Input Source',0
Simple mixer control 'Input Source',1
Simple mixer control 'Loopback Mixing',0
Simple mixer control 'Rear Mic',0
Simple mixer control 'Rear Mic Boost',0
debian@debian:~$   amixer -c 1 sset Headphone  80%
amixer: Invalid command!
debian@debian:~$  amixer -c 1 set Headphone  80%
amixer: Invalid command!
debian@debian:~$  amixer -c 1 set "Headphone"  80%
amixer: Invalid command!
debian@debian:~$  amixer -c 1 sset "Headphone"  80%
amixer: Invalid command!

私のミキサーに関する追加情報:

debian@debian:~$  amixer -v 
amixer version 1.2.4
debian@debian:~$  amixer -c 1 sget Headphone
Simple mixer control 'Headphone',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]

ベストアンサー1

ㅏ/半グラフィックncursesを使用することを好むかもしれません。アルサミキサー便利。次に、右上隅のF6の指示に従ってサウンドカードを選択し、カーソルキーを押して目的のコントロールのゲインを設定します。

B/ベアメタルミキサーを使用、選択したコントロールがシステムに認識されていないようです。

$ amixer -c 1 scontrols

次に、次のコマンドを使用して特定のコントロールに希望のゲインを設定します。

$ amixer -c 1 sset controllabel 80%

この特定のコントロールのゲインを設定します。

ところで:添付しないでください。制御タグ二重引用符の間に。


注:すべてのコントロールにはさまざまな機能があります。これらの機能は可能な設定によって異なります。一部の制御機能に関する情報を取得するには、以下をトリガーします。

$ amixer -c 1 sget some_control # adapt some_control

コントロールは、次の値を取得した場合にのみゲインの変更を許可します。容量能力。 OPで詳しく説明されているようにpswitch機能がある場合に提供される唯一の可能性は、その機能をオンまたはオフにすることです。

おすすめ記事