Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to raise/lower ALSA's volume without using a graphical tool? I am currently using MPD along with MPC mapped to hotkeys to change the volume, but I recently switched music players and I would rather not have MPD lying around just to manage the volume (in addition, mpd doesn't work well with esound which I am also using).

NOTE: I am not using a desktop environment like GNOME so DE-specific solutions are not applicable in my case.

share|improve this question

4 Answers 4

up vote 7 down vote accepted

You can use alsamixer, a soundcard mixer for ALSA soundcard driver, with an ncurses interface. There's also aumix which is a non-ASLA specific mixer.

If they aren't on your machine, install their packages of the same name.

$sudo apt-get install alsa-utils aumix

Edit: The above is assuming you're on an Ubuntu or Debian system. If you're not, you should find and install the packages using your distribution's package management system.

In the highly unlikely event that these aren't packaged for your system, download them from source here and here and compile.

share|improve this answer
    
You're assuming the OP is using Debian or some derivative distribution. –  Richard Hoskins Aug 17 '09 at 19:08
    
Yes, didn't realize that. I'll update my answer, thanks. –  nagul Aug 17 '09 at 19:11
    
Thank you, aumix was exactly what I was looking for. –  Richard Marquez Aug 17 '09 at 19:11
    
I'm using Arch actually and they were in the repos, no problem. –  Richard Marquez Aug 17 '09 at 19:23

Yes, you can turn the volume knob counter clockwise on your speaker system.

share|improve this answer

Another option for non-gui management of alsa is amixer - it provides the same controls as alsamixer, but from the command line instead of via ncurses. amixer with no arguments lists the available controls for the first card (card 0), -c selects the card number. Amixer is especially useful for dumping the state of all the cards settings, and then reloading them later. It is also the best choice for any shell script that wants to modify volume levels.

share|improve this answer

Check out System -> Preferences -> Keyboard Shortcuts.

There is a section named "Sound" which lets you set shortcuts for system volume.

share|improve this answer
    
I'm assuming that you are using GNOME or something similar but I am not using a DE only a WM (dwm). Sorry I probably should have been more specific. –  Richard Marquez Aug 17 '09 at 19:03
    
Yep: I'm using Gnome and you could have been a bit more specific ;-) –  innaM Aug 17 '09 at 19:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.