Hi,
I have two sound cards and I use LIRC to control music, videos, ...
Since I use pulseaudio I cannot use the remote control to turn up volume to both sound cards at the same time.
I used the following command to turn up volume and have a notification of the volume
Code:
amixer -set Master 7%+; notify-send -i /usr/share/pixmaps/gnome-logo-icon.png -t 1000 "`amixer -c 1 sget Master | tail -2 | cut --delimiter=" " --fields=6 | tail -1` volumen"
Now, the only way to turn up volume to both sound card that I know is:
Code:
amixer -c 0 set Master 7%+; amixer -c 1 set Master 7%+; notify-send -i /usr/share/pixmaps/gnome-logo-icon.png -t 1000 "`amixer -c 0 sget Master | tail -2 | cut --delimiter=" " --fields=6 | tail -1` volumen card 0"; notify-send -i /usr/share/pixmaps/gnome-logo-icon.png -t 1000 "`amixer -c 1 sget Master | tail -2 | cut --delimiter=" " --fields=6 | tail -1` volumen card 1"
Is there any way to use a terminal command to turn up/down volume in Master/PCM to both sound card in one way?
I use also pavucontrol to redirect sound between programs and sound cards.
Thanks in advance.
Best regards
Bookmarks