Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-25-2005, 06:37 AM   #1
Registered: May 2004
Location: Ireland
Distribution: Debian
Posts: 56

Rep: Reputation: 15
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.
Old 10-25-2005, 02:25 PM   #2
Registered: Apr 2004
Posts: 120

Rep: Reputation: 15

Install amixer and here yo go:
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.
Old 11-02-2005, 08:45 AM   #3
Registered: May 2004
Location: Ireland
Distribution: Debian
Posts: 56

Original Poster
Rep: Reputation: 15
Thanks for that in the end this command did the job perfectly for me
amixer sset 'VIA DXS',0 80% 80%
when call directly from the command line but when i put it into a crontab

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?
Old 09-29-2008, 02:06 PM   #4
Registered: May 2008
Location: deep dark north wales
Distribution: Zenwalk
Posts: 162

Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing command line arguments from a library function? tojo2 Programming 3 05-25-2005 03:56 PM
Awk command-line arguments lowpro2k3 Programming 1 03-28-2005 09:09 PM
number of command line arguments to shell u4u Linux - General 1 03-04-2005 06:09 PM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 02:25 AM
Command line arguments to java program Majjj Programming 3 10-23-2003 05:48 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration