Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109738 - gentoo-sources-2.6.13-r3 breaks usb mouse on remove/reconnect
Summary: gentoo-sources-2.6.13-r3 breaks usb mouse on remove/reconnect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard: linux-2.6.14
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 14:17 UTC by Tobias Sager
Modified: 2005-10-28 10:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
usb-mouse-2.6.12-dmesg (usb-mouse-2.6.12-dmesg,15.08 KB, text/plain)
2005-10-18 14:17 UTC, Tobias Sager
Details
usb-mouse-2.6.13-dmesg (usb-mouse-2.6.13-dmesg,15.07 KB, text/plain)
2005-10-18 14:17 UTC, Tobias Sager
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Sager 2005-10-18 14:17:06 UTC
Wwitched to gentoo-sources-2.6.13-r3 from gentoo-sources-2.6.12-r10.
When I now boot up with my usb mouse connected, all works ok.
Removing and reconnecting the mouse breaks it then. The device /dev/input/mouse2
(and my symlink /dev/input/usbmouse) that existed after boot is not created.
I use coldplug and hotplug, but the needed module for the usbmouse is compiled in.

It seems as if the input HID driver is not notified of the connected device as
it does not output notifying messages.
Will attach dmesg of both kernels.

I have a udev rule for the mouse like this:
BUS=="usb", DRIVER=="usb", SYSFS{product}=="USB-PS/2 Optical Mouse*",
SYMLINK="input/usbmouse"

This is the log of a mouse remove and reconnect:
<snip>
saidar ~ # uname -a
Linux saidar.tsa 2.6.13-gentoo-r3 #5 Mon Oct 17 17:28:45 CEST 2005 i686 Intel(R)
Pentium(R) 4 Mobile CPU 1.80GHz Genuine
Intel GNU/Linux
saidar ~ # l /dev/input/
total 0
drwxr-xr-x   2 root root    140 Okt 18  2005 .
drwxr-xr-x  19 root root  14260 Okt 18 21:37 ..
crw-r--r--   1 root root 13, 63 Okt 18  2005 mice
crw-r--r--   1 root root 13, 32 Okt 18  2005 mouse0
crw-r--r--   1 root root 13, 33 Okt 18  2005 mouse1
crw-r--r--   1 root root 13, 34 Okt 18  2005 mouse2
lrwxrwxrwx   1 root root      6 Okt 18  2005 usbmouse -> mouse2
saidar ~ # udevmonitor
udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]

UEVENT[1129664280] remove@/class/input/mouse2
UEVENT[1129664280] remove@/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0
UEVENT[1129664280] remove@/devices/pci0000:00/0000:00:1d.0/usb1/1-1
UDEV  [1129664280] remove@/class/input/mouse2
UDEV  [1129664280] remove@/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0
UDEV  [1129664280] remove@/devices/pci0000:00/0000:00:1d.0/usb1/1-1
--- removed mouse
saidar ~ # l /dev/input/
total 0
drwxr-xr-x   2 root root    100 Okt 18 21:38 .
drwxr-xr-x  19 root root  14260 Okt 18 21:37 ..
crw-r--r--   1 root root 13, 63 Okt 18  2005 mice
crw-r--r--   1 root root 13, 32 Okt 18  2005 mouse0
crw-r--r--   1 root root 13, 33 Okt 18  2005 mouse1
saidar ~ # udevmonitor
udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]

UEVENT[1129664285] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1
UEVENT[1129664286] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0
UDEV  [1129664286] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1
UDEV  [1129664286] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0
--- reconnected mouse
saidar ~ # l /dev/input/
total 0
drwxr-xr-x   2 root root    100 Okt 18 21:38 .
drwxr-xr-x  19 root root  14260 Okt 18 21:37 ..
crw-r--r--   1 root root 13, 63 Okt 18  2005 mice
crw-r--r--   1 root root 13, 32 Okt 18  2005 mouse0
crw-r--r--   1 root root 13, 33 Okt 18  2005 mouse1
</snip>

With kernel 2.6.12 the udev reconnect events looked like this:
<snip>
UEVENT[1129663918] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1
UEVENT[1129663918] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0
UEVENT[1129663918] add@/class/input/mouse2
UDEV  [1129663918] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1
UDEV  [1129663918] add@/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0
UDEV  [1129663918] add@/class/input/mouse2
</snip>

Of course this is minor, but still annoying.. any help appreciated.
Comment 1 Tobias Sager 2005-10-18 14:17:30 UTC
Created attachment 70971 [details]
usb-mouse-2.6.12-dmesg
Comment 2 Tobias Sager 2005-10-18 14:17:48 UTC
Created attachment 70972 [details]
usb-mouse-2.6.13-dmesg
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-10-25 12:48:01 UTC
Please try and reproduce this on the latest development kernel (currently
vanilla-sources-2.6.14_rc5)
Comment 4 Tobias Sager 2005-10-25 14:24:31 UTC
Works correctly with 2.6.14_rc5. This is upstream then? Or gentoo-sources?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-10-28 10:00:40 UTC
gentoo-sources-2.6.14 now available in portage