LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   alsamixer command line arguments (https://www.linuxquestions.org/questions/debian-26/alsamixer-command-line-arguments-376678/)

dereko 10-25-2005 06:37 AM

alsamixer command line arguments
 
I've a slighly unusual problem, I'm trying to update the volume on a remote pc (Debian sarge) to differnent levels at different times of the day.

So is there a way for me to change the volume from say 90% to 80% with a command line call using alsamixer?

The idea is then if i can i'd put that in a crontab.

lixy 10-25-2005 02:25 PM

Sure!
Install amixer and here yo go:
Code:

amixer set Master 10%+ > /dev/null
That one's to increase the volume by 10%. Just replace the + by a minus for decreasing it.
Check out the rich features on the man page.

dereko 11-02-2005 08:45 AM

Thanks for that in the end this command did the job perfectly for me
Code:

amixer sset 'VIA DXS',0 80% 80%
when call directly from the command line but when i put it into a crontab

Code:

0 9 * * * root amixer sset 'VIA DXS',0 80% 80%
i.e. set the volume to 80% at 9 in the morning every day
but for some reason amixer
sets the volume to 100% but when i make the exact same call from the
command line it does as expected.

I have confirmed the crontab does execute the script as the volume was
set at 90% before the scheduled crontab but 100 afterwards.

Any ideas?

deathalele 09-29-2008 02:06 PM

this might be useful to someone
 
in xfce to get
Fn + downarrow to change the volume just add a new shortcut theme in settings > settings manager > Keyboard preferences > shortcuts, and edit the xf86audiolower commands.:)
thanks a lot.
i now love xfce even more.


All times are GMT -5. The time now is 12:19 PM.