Public bug reported:

to reproduce this bug: as root run
udevmonitor --kernel --environment
and then plugin some usb device.

with kernels before 2.6.22 you see some event that has both DEVICE and MODALIAS 
set.
with kernel 2.6.22 there is no such event anymore, only one with DEVICE but 
without MODALIAS
and one with MODALIAS but without DEVICE. This breaks user space applications 
such as openct,
that depend on the uevent mechanism for hotplug support.

I believe the kernel change causing this is here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=9f8b17e643fe6aa505629658445849397bda4e4f

I reported the bug here: http://lkml.org/lkml/2007/8/17/140
and got feedback with a patch here: http://lkml.org/lkml/2007/8/17/193

the patch fixes the problem mostly. I would also need PRODUCT support so that 
openct would
continue to work unchanged, but I can extract the same information from 
MODALIAS.
So with an updated openct package I could deal with this.

Note: without above patch openct has no way to deal with the new situation (or 
only quite complex solutions like remembering old
events and correlating them, or easier but sad: write a daemon that monitors 
usb all the time ourself). But with this patch
we can rely on kernel watching usb for us, keeping us informed on new devices, 
and with both MODALIAS and DEVICE we can both
match the devices openct supports and know which device file to open and use.

Would be great to fix this before gutsy is released. thanks!

** Affects: Ubuntu
     Importance: Undecided
         Status: New

-- 
kernel 2.6.22 broke uevent with MODALIAS
https://bugs.launchpad.net/bugs/133794
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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

Reply via email to