?
Solved

How to set audio volume from commandline.

Posted on 2006-05-18
4
Medium Priority
?
735 Views
Last Modified: 2008-03-06
Hi,
is it possible on SuSE LINUX to (re)set the master audio volume
from the command line or from a C-program?

;JOOP!
0
Comment
Question by:sciuriware
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:edkim80
ID: 16708642
have you tried, alsamixer?
0
 
LVL 24

Author Comment

by:sciuriware
ID: 16708681
How's that?

;JOOP!
0
 
LVL 8

Accepted Solution

by:
edkim80 earned 1000 total points
ID: 16708729
alsamixer should allow you to control all channels of your sound card through a tui interface...
you can also use amixer to control it via arguments..
man amixer

one example is
amixer -c 1 sset Line, mute
0
 
LVL 24

Author Comment

by:sciuriware
ID: 16708830
Ahhhh! now I see.

In my case

amixer -q cset numid=2 50%

sets the master volume to half!

Great.


;JOOP!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month15 days, 7 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question