Code:
bash-4.3$ amixer get Master Playback
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 30 [97] [-1.50dB] [on]
bash-4.3$ amixer set Master Playback 10
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 10 [32] [-31.50dB] [on]
[/quote]
or, if you want to suppress the helpful output...
[quote]
bash-4.3$ amixer set Master Playback 20 1>> /dev/null
bash-4.3$ amixer get Master Playback
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 20 [65] [-16.50dB] [on]
Quote:
Sometimes there is mostly silence, at others it is quite loud.
|
Probably the most effective automation implementation I can think of is just have it cycle up and down between your minimum (+10, maybe) and max until it gets a keystroke and then exit the volume manipulation function.
Hope that's what you're looking for.