Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old November 21st, 2007   #1
jeremija
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 12
alsa set-default-card not working???

i have two sound cards on my laptop, internal (HDA Intel) and a Sound Blaster MP3+.
i recenty upgraded from to gutsy and i am finally able to play multiple sounds at one time on my MP3 card.
however, when i disconnect the usb card, i have to manually edit the ~/.asoundrc.asoundconf file and change two lines from:
Code:
!defaults.pcm.card MP3
defaults.ctl.card MP3
to
Code:
!defaults.pcm.card Intel
defaults.ctl.card Intel
and it works!
But I used to use a command "asoundconf set-default-card Intel" to set the Intel card as the default one back in Fiesty, but when i use it in Gutsy, nothing changes...
Does anybody know why?

p.s. back in fiesty, when i disconnected the usb card, HDA Intel automatically became the default one, but now alsa gives an error: could not open resource for writing, and when i run gstreamer-properties and try to test the sound, it gives the error in command line: "playback error on device 'default': No such device" (this is when the usb card is disconnected, which is the default one). If I manually edit the file mentioned above, everything is fine...

Is there any way to make linux automatically set the Intel card as the default one if MP3 card is not connected?
Thanks...


EDIT:
i realized that i need to use the command sudo before asoundconf and then setting the default card works (i don't remember that i needed to do this in Fiesty), but then it gives a warning:
Code:
Please note that you are attempting to run asoundconf as a privileged superuser, which may have unintended consequences.
:/
so, i'm asking again, is there any way to do this automatically (if there is no usb card connected, make hda intel default one)?

Last edited by jeremija; November 21st, 2007 at 06:30 PM..
jeremija is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:52 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry