Bug#927173: udev: wrong device name when booting

Jul' julienbenjamin at protonmail.com
Thu Apr 18 00:43:55 BST 2019


Sorry for the lack of details.

1) how udev assigns this name?

Since I have no custom udev rule, AFAIK, udev assigns it with the standards rules (in "/lib/udev/rules.d/60-persistent-alsa.rules" since it is a sound device).

2) Is there a udev rule doing so? In which case, which udev rules files is it?

Like said above, no custom rules, just standard ones.

3) Have you made sure to include the udev rule in the initramfs?

I did not had to, since I did not set any custom udev rule.


What I should have mentioned is:

- The reproducibility is difficult since it does not occurs when unplugging/plugging the device back once the system is booted. However it does occur at boot (but not always).

- I wanted this audio device to be the default pulseaudio sink. I use the command "pacmd set-default-sink 0" (where the index 0 was referring to this device), which I happened to found was storing the pulseaudio device name. Since the pulseaudio device name was inherited from the alsa device, itself inherited from udev, I happened to find that, when the device was not set as default, it was because udev was not giving the proper device name.

- When in "bad state", the device is recognized as "SAVITECH Bravo-X USB Audio" and when in "good state" the device is recognized as "HiFimeDIY Audio SA9023 USB Audio", as you could see in the previous output of dmesg I provided.

Here is an example:

-> Good state:
# dmesg | grep HiFimeDIY
[sudo] password for jul:
[    1.170620] usb 3-3: Manufacturer: HiFimeDIY Audio
[    1.195804] input: HiFimeDIY Audio SA9023 USB Audio as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/0003:262A:10E0.0001/input/input3
[    1.195888] hid-generic 0003:262A:10E0.0001: input,hidraw0: USB HID v1.00 Device [HiFimeDIY Audio SA9023 USB Audio] on usb-0000:00:14.0-3/input0

-> Bad state:
# dmesg | grep SAVITECH
[    1.125756] usb 3-3: Manufacturer: SAVITECH
[    1.130373] input: SAVITECH Bravo-X USB Audio as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/0003:262A:9023.0001/input/input3
[    1.187370] hid-generic 0003:262A:9023.0001: input,hidraw0: USB HID v1.00 Device [SAVITECH Bravo-X USB Audio] on usb-0000:00:14.0-3/input0

You can see that the idVendor and the idProduct are the same.

Hope I was clearer this time and if you need anything else, do not hesitate to ask.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, April 17, 2019 3:09 PM, Michael Biebl <biebl at debian.org> wrote:

> Control: tags -1 + moreinfo
>
> On 15.04.19 22:35, Julien-Benjamin wrote:
>
> > Package: udev
> > Version: 232-25+deb9u11
> > Severity: normal
> > Dear Maintainer,
> > Sometimes when I boot, udev gives alsa a wrong device name for my USB DAC (HiFimeDIY SA9023 - model:UAE23).
> > When in this state, unplugging/plugging it back, udev gives the proper name.
>
> Can you be more specific, how udev assigns this name?
> Is there a udev rule doing so? In which case, which udev rules files is it?
> Have you made sure to include the udev rule in the initramfs?
>
> Michael
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?



More information about the Pkg-systemd-maintainers mailing list