Hi!

Sorry for x-posting, but it's not entirely sure to me where to fix it.

I came across #574180 and started looking for the culprit. It's clearly
caused by #540757. To sum things up again: fxload reads DEVICE from the
environment, but DEVICE is set to /proc/bus/usb instead of /dev/bus/usb.

As stated in

   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/311481

the DEVICE variable is set by the kernel if CONFIG_USB_DEVICEFS is
enabled, which is currently the case in Debian.

I finally added

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface",  ENV{DEVICE}="/dev/%P"

to /lib/udev/rules.d/50-udev-default.rules. This line overwrites the
errorneous DEVICE variable. Luckily, %P (parent, see udev(7)) contains
the right value, so all we need to do is to prefix this with /dev/.

Since I'm not common with udev, I didn't want to file a wishlist bug
against udev, but discuss the approach, first.

The line could either be added to midisport-firmware's rules file. Or to
udev (upstream?) in general.

Where's the right place for this? Is it the right approach at all?


HTH

-- 
mail: a...@thur.de      http://adi.thur.de      PGP/GPG: key via keyserver



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to