audio devices lottery on each boot

Bug #130004 reported by Christoph Langner
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

I'm running here an up to date Ubuntu Gutsy installation

# uname -a
Linux isleofskye 2.6.22-9-generic #1 SMP Wed Aug 1 17:31:10 GMT 2007 i686 GNU/Linux
# dpkg -l alsa-base
ii alsa-base 1.0.14-1ubuntu1 ALSA driver configuration files

 I own a couple of audio devices. Onboard sound, tv-card and three usb audio devices.

# cat /proc/asound/cards
 0 [U0xd8c0x0c ]: USB-Audio - USB Device 0xd8c:0x0c
                      USB Device 0xd8c:0x0c at usb-0000:01:07.1-1, full speed
 1 [U0x4710x311 ]: USB-Audio - USB Device 0x471:0x311
                      USB Device 0x471:0x311 at usb-0000:00:02.0-2, full speed
 2 [NVidia ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfe024000 irq 18
 3 [Bt878 ]: Bt87x - Brooktree Bt878
                      Brooktree Bt878 at 0xfddfe000, irq 21
 4 [Headset ]: Bluetooth SCO - BT Headset
                      BT Headset 1

The problem is that my audio devices are renumbered every time i boot gutsy. I logged the output of 'cat /proc/asound/cards' to a file over the last couple of days. So take a look:

http://www.ubuntuusers.de/paste/13370/?format=txt

It's like a lottery, which audio device gets which number. The problem is that because of this lottery i often hear my music over the usb-phone, sometimes over my speakers, etc... On Feisty the situation was way better, only the usb devices changed each boot, which could be solved via a couple of settings inside /etc/modprobe.d/snd-usb-audio.

Revision history for this message
Christoph Langner (chrissss) wrote :

I want to update this bug. Gutsy turned stable and the problem is still there, I even reinstalled the system to be sure, that there are no wrong settings. So right now i'm using

---
$ uname -r
2.6.22-14-generic

$ dpkg -l alsa-base
ii alsa-base 1.0.14-1ubuntu2 ALSA driver configuration files
---

The audio devices still change their order every time i boot my computer. This is pretty annoying. Ususally i'v got no sound over my speakers. I've got to reset the gnome settings. VOIP applications have to be reconfigured every time, etc.

I use the follwoing sound modules

---
$ cat /proc/asound/modules
 0 snd_usb_audio
 1 snd_usb_audio
 2 snd_bt87x
 3 snd_hda_intel
---

When i add something like

---
options snd-hda-intel index=0
---

to my /etc/modprobe.d/alsa-base things turn even worse. Propably every second reboot the Nvidia (snd_hda_intel) device is missing...

Revision history for this message
Christoph Langner (chrissss) wrote :

Well, hardy is on it's way and despite PulseAudio this problem is still relevant. I can fix this by blacklisting my audio devices inside /etc/modprobe.d/blacklist

blacklist snd_usb_audio
blacklist snd_bt87x
blacklist snd_hda_intel

and loading my devices via /etc/modules

snd-hda-intel
snd-bt87x
snd-usb-audio

and adding

options snd-hda-intel index=0

to my /etc/modprobe.d/alsa-base. But this is quite inconvenient and hard to do for a linux newbie...

Revision history for this message
Andreas Moog (ampelbein) wrote : Old standing Report

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for taking the time to report this bug and helping to make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering is this still an issue
for you? Can you try with latest Ubuntu release? Thanks in advance.

 status incomplete
 subscribe

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkit6uMACgkQ06FgkPZwicSsAgCgkI25q3SE59BKf3jQf1mDwFDf
HHcAnA7QXkyZKXWPZM2JNL7bu9Zrincb
=LMeY
-----END PGP SIGNATURE-----

Changed in alsa-driver:
status: New → Incomplete
Revision history for this message
Christoph Langner (chrissss) wrote :

Yes, this is still an issue. My workaround fixes the problem, but without it, the problem is still there. Didn't test intrepid yet.

Changed in alsa-driver:
status: Incomplete → New
Daniel T Chen (crimsun)
Changed in alsa-driver:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Shinji (thorsten-reichelt) wrote :

Hi!

I have exactly the same problem with my newly attached USB keyboard (Enermax Aurora) with integrated audio device.
I use Kubuntu 8.04

Revision history for this message
tkoorn (tinus-tenhole) wrote :

Hi is there any progress on this? I have the same problem on 8.10 (and had it on 8.04 too) and have been hoping that someone would find a solution to this.

Revision history for this message
Brett Williams (vor-lord) wrote :

Still present in Jaunty.

Revision history for this message
Christoph Langner (chrissss) wrote :

I must admit that this problem is gone since intrepid. I mark this bug as fixed.

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
tkoorn (tinus-tenhole) wrote :

It happened today on a clean install of Karmic so fixed might be a bit of an overstatement.
My USB audio started as hw:0 instead of its usual hw:1

Changed in linux (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Christoph Langner (chrissss) wrote :

Use names instead of the number... Look into /proc/asound/

$ ls -al /proc/asound/
[...]
lrwxrwxrwx 1 root root 5 2009-11-23 21:16 Audigy2 -> card0
lrwxrwxrwx 1 root root 5 2009-11-23 21:16 Bt878 -> card2
[...]
lrwxrwxrwx 1 root root 5 2009-11-23 21:16 CinemaTM -> card1
[...]

and use "hw:CinemaTM,0" if you like "hw:1,0". The names stay static.

Revision history for this message
tkoorn (tinus-tenhole) wrote :

QJackCtl does't give me the option to use names. But if I could use the name that would be great.
If I can start Jack from the cmdline using the names then all will be well. I'll give it a try.

Revision history for this message
tkoorn (tinus-tenhole) wrote :

Yes that works, thank you very much. I can start jackd from the commandline using names.
That fixed it for me, would be nice if qjackctl would also do this.

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 130004] Re: audio devices lottery on each boot

PCI audio device enumeration by the kernel has never been deterministic.
Please don't mark this bug fixed (despite it unlikely to be resolved for
10.04 or even in a reasonable timeframe).

On Nov 24, 2009 8:26 AM, "tkoorn" <email address hidden> wrote:

Yes that works, thank you very much. I can start jackd from the commandline
using names.
That fixed it for me, would be nice if qjackctl would also do this.

** Changed in: linux (Ubuntu)
      Status: Confirmed => Fix Released

-- audio devices lottery on each boot
https://bugs.launchpad.net/bugs/130004You received this bug...

Changed in linux (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.