When I run alsactl monitor
, I see output as such when I adjust the volume:
card 0, #24 (2,0,0,PCM Playback Volume,0) VALUE
card 0, #24 (2,0,0,PCM Playback Volume,0) VALUE
However, when I try to redirect this to a file or a process with >
, >>
, or |
, I see no output, and the output is not redirected.
What causes this behavior, and how can I fix it?
FYI, this is for a hack to force a broken left speaker to stay at 0:
alsactl monitor | \
while read; do
amixer -D pulse sset Master 0,-
done
If someone knows a better way of doing this (e.g. how to lock a control so it can't be changed), that would be great!
alsactl monitor |& less
..replace less with any other command you want..|&
supposed to do?