UDEV: OpenSuse 11.3 + Old kernel 2.6.29

Hello everybody

I have a OpenSuse 11.3(m7) installed into my toshiba tecra s3 laptop.

I need to run an old kernel, 2.6.29, but when I boot this kernel the xwindows are unusable because of udev not handling well my mouse(usb) and keyboard.

I’m not an expert on udev rules, so I need your help.

I’ve got “udevadm monitor” output, running 2.6.34(opensuse 11.3 default kernel) and running 2.6.29(my custom kernel), and this is the output when I unplug and then plug my usb mouse:

Kernel 2.6.34:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1275403206.347633] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input6/mouse2 (input)
UDEV [1275403206.350283] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input6/mouse2 (input)
KERNEL[1275403206.356136] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input6/event6 (input)
UDEV [1275403206.358172] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input6/event6 (input)
KERNEL[1275403206.368510] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input6 (input)
KERNEL[1275403206.368573] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0001/hidraw/hidraw0 (hidraw)
KERNEL[1275403206.368630] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0001 (hid)
KERNEL[1275403206.368667] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
KERNEL[1275403206.368726] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
UDEV [1275403206.370709] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input6 (input)
UDEV [1275403206.370748] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0001/hidraw/hidraw0 (hidraw)
UDEV [1275403206.370804] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0001 (hid)
UDEV [1275403206.372299] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
UDEV [1275403206.373135] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
KERNEL[1275403210.350783] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
KERNEL[1275403210.354199] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
KERNEL[1275403210.354257] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0002 (hid)
KERNEL[1275403210.370199] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10 (input)
KERNEL[1275403210.371575] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10/mouse2 (input)
KERNEL[1275403210.371629] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10/event6 (input)
KERNEL[1275403210.371663] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0002/hidraw/hidraw0 (hidraw)
UDEV [1275403210.381733] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
UDEV [1275403210.381793] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
UDEV [1275403210.381829] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0002 (hid)
UDEV [1275403210.381984] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0002/hidraw/hidraw0 (hidraw)
UDEV [1275403210.390668] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10 (input)
UDEV [1275403210.408653] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10/mouse2 (input)
UDEV [1275403210.410591] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input10/event6 (input)

Kernel 2.6.29:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1275402834.519451] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.9_ep81 (usb_endpoint)
UDEV [1275402834.519491] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.9_ep81 (usb_endpoint)
KERNEL[1275402834.519543] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input16/mouse2 (input)
UDEV [1275402834.519613] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input16/mouse2 (input)
KERNEL[1275402834.540905] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input16/event4 (input)
UDEV [1275402834.540993] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input16/event4 (input)
KERNEL[1275402834.572438] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input16 (input)
UDEV [1275402834.572499] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input16 (input)
KERNEL[1275402834.572565] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0008/hidraw/hidraw0 (hidraw)
UDEV [1275402834.572600] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0008/hidraw/hidraw0 (hidraw)
KERNEL[1275402834.572655] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0008 (hid)
UDEV [1275402834.572688] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0008 (hid)
KERNEL[1275402834.572724] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
UDEV [1275402834.572759] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
KERNEL[1275402834.572791] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.9_ep00 (usb_endpoint)
UDEV [1275402834.572824] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.9_ep00 (usb_endpoint)
KERNEL[1275402834.572880] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
UDEV [1275402834.572950] remove /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
KERNEL[1275402835.079187] change /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1 (power_supply)
UDEV [1275402835.079251] change /devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1 (power_supply)
KERNEL[1275402838.191819] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
UDEV [1275402838.191890] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
KERNEL[1275402838.206625] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
KERNEL[1275402838.206662] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0009 (hid)
UDEV [1275402838.207388] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
UDEV [1275402838.207997] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0009 (hid)
KERNEL[1275402838.220081] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17 (input)
UDEV [1275402838.223766] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17 (input)
KERNEL[1275402838.260365] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17/mouse2 (input)
UDEV [1275402838.267716] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17/mouse2 (input)
KERNEL[1275402838.326317] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17/event4 (input)
KERNEL[1275402838.326351] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0009/hidraw/hidraw0 (hidraw)
KERNEL[1275402838.326404] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.10_ep81 (usb_endpoint)
KERNEL[1275402838.326436] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.10_ep00 (usb_endpoint)
UDEV [1275402838.327426] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:046D:C016.0009/hidraw/hidraw0 (hidraw)
UDEV [1275402838.328256] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/usb_endpoint/usbdev5.10_ep81 (usb_endpoint)
UDEV [1275402838.329107] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/usb_endpoint/usbdev5.10_ep00 (usb_endpoint)
UDEV [1275402838.336191] add /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input17/event4 (input)

As you can see, udev recognizes the event but it handles the event in a slightly different manner.

How can I debug this udev problem? What udev rules does handle the mouse events? What program is invoced by udev when it detects a new mouse?

Thx in advance!!!

As 11.3 is still not released, do you mind when this is moved to “Pre-Release/Beta”?

I don’t mind… :slight_smile:

Done. Hope you get help.

Why is 2.6.29 needed? The udev rules are a real mess - perhaps we can
make 2.6.34 work.

jejeje…yes, I need 2.6.29 because my laptop is frozen anytime I run KVM/VirtualBox with kernels 2.6.30+…

If this is a real mess…then I will have to find another solution…

Thx anyway!!

On 06/02/2010 01:16 AM, magicboiz wrote:
>
> jejeje…yes, I need 2.6.29 because my laptop is frozen anytime I run
> KVM/VirtualBox with kernels 2.6.30+…
>
> If this is a real mess…then I will have to find another
> solution…
>
> Thx anyway!!

That is not general. I am running VirtualBox on kernel 2.6.35-rc1 and
have used it on every kernel since it came out, which I think was 2.6.23.