LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-25-2005, 07:37 AM   #1
dereko
Member
 
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, 03:25 PM   #2
lixy
Member
 
Registered: Apr 2004
Posts: 120

Rep: Reputation: 15
Smile

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.
 
Old 11-02-2005, 09:45 AM   #3
dereko
Member
 
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
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?
 
Old 09-29-2008, 03:06 PM   #4
deathalele
Member
 
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.
 
  


Reply


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 04:56 PM
Awk command-line arguments lowpro2k3 Programming 1 03-28-2005 10:09 PM
number of command line arguments to shell u4u Linux - General 1 03-04-2005 07:09 PM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 03:25 AM
Command line arguments to java program Majjj Programming 3 10-23-2003 06:48 AM


All times are GMT -5. The time now is 02:29 AM.

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