I would like to be able to control the sound volume and to mute/un-mute sound from a small program or script, but it is a little more complicated and strange than I thought.
When I first enter the LXDE session, the volume control applet in the panel shows sound as muted, and volume = 0. I would guess that the commands below would change this:
Code: Select all
$ amixer cset iface=MIXER,name='Speaker Playback Switch' on
$ amixer cset iface=MIXER,name='Speaker Playback Volume' 50
Code: Select all
$ amixer cset iface=MIXER,name='Speaker Playback Switch' off
Code: Select all
$ amixer cset iface=MIXER,name='Speaker Playback Switch' on
Code: Select all
$ amixer cset iface=MIXER,name='Speaker Playback Volume' 50
Code: Select all
$ amixer cset iface=MIXER,name='Speaker Playback Volume' 50
Strange, isn't it? Any help appreciated
Jesper, Denmark