Linux command
amixer 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Example
amixer -D pulse sset Master 10%+
Example
amixer -D pulse sset Master 10%-
Mute
amixer -D pulse sset Master mute
Unmute
amixer -D pulse sset Master unmute
Example
amixer scontrols
说明
amixer is a command-line mixer control for the ALSA soundcard driver. It can adjust volume levels, toggle mute states, and query mixer control settings for any available soundcard. Running it without arguments displays current mixer settings for the default soundcard. The tool provides both simple and full mixer interfaces. The simple interface (commands prefixed with s) uses human-readable control names like "Master" or "PCM", while the full interface operates on numeric control identifiers. Volume can be specified as absolute values, percentages, or decibels.
参数
- -c card
- Select card number (e.g., 0, 1, 2)
- -D device
- Select device name (default: 'default')
- -s, --stdin
- Read and execute commands from stdin sequentially
- -q
- Quiet mode; suppress output
- -R
- Raw value for percentage evaluation (default)
- -M
- Mapped volume for percentage evaluation
FAQ
What is the amixer command used for?
amixer is a command-line mixer control for the ALSA soundcard driver. It can adjust volume levels, toggle mute states, and query mixer control settings for any available soundcard. Running it without arguments displays current mixer settings for the default soundcard. The tool provides both simple and full mixer interfaces. The simple interface (commands prefixed with s) uses human-readable control names like "Master" or "PCM", while the full interface operates on numeric control identifiers. Volume can be specified as absolute values, percentages, or decibels.
How do I run a basic amixer example?
Run `amixer -D pulse sset Master 10%+` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c card do in amixer?
Select card number (e.g., 0, 1, 2)