Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Ubuntu 9.10 with an internal sound card and a (usb-connected) Microsoft Livechat LX-3000 Headphone/microphone set.

Currently when I want to skype for example, I plug in my headset and have to put the settings right in (Ubuntu) sound preferences to get the set working. Unplugging the headset will give me the internal sound card back.

Is there a possibility to make some sound-profiles? Ideally I would never unplug the headset, but just click something in my taskbar or desktop to switch the device I use. Are there maybe command-line commands to do this, so I can make a shell script?

share|improve this question
up vote 1 down vote accepted

You probably want to take a look at the command 'alsactl'

Change the current settings as desired, then run alsactl -f yourprofilefilenamehere store

Then, to restore settings, run alsactl -f yourprofilefilenamehere restore which will load the settings stored in "yourprofilefilenamehere".

You should be able to make shortcuts to several restore commands and add them to a panel to easily be able to switch between profiles.

share|improve this answer
Isn't the current audio system of Ubuntu pulse? Alsa was the old system isn't it? I don't want the mess back that it was earlier times – Peter Smit Jan 3 '10 at 14:02
You are correct, however this does not matter. Changing your audio settings through this command will also affect Pulse. – Niek Bergman Jan 3 '10 at 14:12
Please also refer to… which explains that PulseAudio communicates with hardware ALSA/OSS drivers. Technically, you are changing the volume settings at an earlier layer through this command. – Niek Bergman Jan 3 '10 at 14:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .