Public bug reported:

Changing the card in System -> Settings -> Sound (gnome-sound-
properties) rewrites ~/.asoundrc.asoundconf fine. amixer and others
treat the card as if it were changed.

However, the sound will play through the old card at least until reboot
which isn't convenient if you want to change the sound card just for
using headphones for a little while. gnome-sound-properties doesn't
alert the user about the need for reboot. It also always shows that it's
always using the same card (the module with the first index, it would
appear). Multimedia volume keys do not adhere to the sound card chosen
even after reboot - again, it would appear they use the module with the
first index.

Steps to repeat:
1. Install Ubuntu Dapper or Edgy to a system with two sound cards.

2. Open gnome-sound-properties and change the sound card.

3. Play sound: "aplay /usr/share/sounds/startup.wav" or use totem or
rhythmbox. It will use the old card.

4. Open gnome-sound-properties. You will see the old card.

5. Reboot

7. Try multimedia keys - they will change the volume only for the driver
module having the first index (cat /proc/asound/modules too see the
indices)

AFAIK this happens with all hardware.

See also for confirmation:
https://launchpad.net/distros/ubuntu/+bug/45786

Workaround to change the module indices to get multimedia keys working:
sudo gedit /etc/modprobe.d/alsa-base

Add the following lines:
options snd-whatever-module-you-want-first index=0
options snd-whatever-module-you-want-second index=1

(See "cat /proc/asound/modules" for the modules, and replace '_'
characters with '-'.)

If you know a way to make applications use the selected sound card
without reboot, please share it with us.

** Affects: control-center (Ubuntu)
     Importance: Low
     Assignee: Ubuntu Desktop Bugs
         Status: Fix Released

-- 
Default sound card selection doesn't work properly or without reboot
https://launchpad.net/bugs/71994

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to