Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-26-2008, 01:10 PM   #1
LQ Newbie
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Script or Terminal command to switch audio output?

I can switch the audio output by going to System -> Preferences -> Sound and changing the "Sound playback" device from 'Autodetect' to 'USB Audio'.

I want to be able to do this via terminal (and script).

asoundconf (whether run from the GTK GUI or terminal) doesn't seem to do anything. I suspect it changes the *default* sound output, but not the *active* one?

For instance if I switch from 'Headset' to 'ICH7' via asoundconf-gtk (the only two choices I have, except for 'PulseAudio') but then go to System->Preferences->Sound, the 'Sound Playback' still reads 'USB Audio', and if I press 'Test' the sound comes out over my headset, not my speakers.


asoundconf, audio, sound

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
How can I pipe output of a command into arguments of a script HGeneAnthony Linux - General 3 12-26-2007 06:24 AM
Script: put the output of a command into a variable. poincare999 Programming 4 11-04-2007 11:53 AM
How to see all output of command in terminal pilotgi SUSE / openSUSE 2 06-27-2007 09:03 PM
A command or script to rm files based on df output? Anithen Slackware 7 06-21-2007 10:18 PM
is there a script that controls what happens when you switch a terminal? Fascistchicken Linux - General 2 09-29-2004 10:11 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:05 AM.

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