• English
  • Japanese

How to configure audio volume on command line interface

[Q.]

I cannot hear audio voice from Linux PC. Please let me know how to configure audio volume settings from command line interface.

[A.]

It seems you cannot get audio output because of configuration of audio volume. I will explain how to confirm and configure settings regarding audio volume as follows.

How to confirm audio volume settings?
You can confirm audio volume settings by amixer command as below. The following example shows volume level of Front Left and Front Right speakers are 0%, and they are set to mute.
% amixer sget Master
socket(): Address family not supported by protocol
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [0%] [off]
Front Right: Playback 65536 [0%] [off]
How to change volume level?
You can also change volume level as follows. Type below command to unmute;
% amixer sset Master on
Type below command to mute;
% amixer sset Master off
Type below command to 10% volume up;
% amixer sset Master 10%+
Type below command to 10% volume down;
% amixer sset Master 10%-
Type below command to set volume level to 50%;
% amixer sset Master 50%

Last-Modified: July 29, 2016

The content ends at this position.