How to set audio volume from commandline.

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

Question by:sciuriware
    LVL 8

    Expert Comment

    have you tried, alsamixer?
    LVL 24

    Author Comment

    How's that?

    LVL 8

    Accepted Solution

    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
    LVL 24

    Author Comment

    Ahhhh! now I see.

    In my case

    amixer -q cset numid=2 50%

    sets the master volume to half!



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    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.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now