Date: Mon, 23 Dec 2002 12:41:29 +0300 From: "Vladimir B.Grebenschikov" <vova@sw.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/46488: usb driver do not send detach events on SOVY VAIO Z505S Message-ID: <E18QP5V-0000GD-00@vbook.express.ru>
next in thread | raw e-mail | index | archive | help
>Number: 46488 >Category: kern >Synopsis: usb driver do not send detach events on SOVY VAIO Z505S >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 23 01:50:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Vladimir B. Grebenschikov >Release: FreeBSD 5.0-CURRENT i386 >Organization: SWsoft >Environment: System: FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #13: Mon Dec 23 11:06:09 MSK 2002 root@vbook.express.ru:/usr/obj/usr/local/src/sys/VBOOK i386 Kernel just from CVS (after 5.0-RC2) usbd.conf: ----------------------------------------------------------------- # Configuration file the USB daemon. # device "Sony DSC-P50 Dicatal Photo Camera" vendor 0x054c product 0x0010 attach "/sbin/camcontrol rescan bus 0; /sbin/mount /m/cam" detach "/sbin/umount -f /m/cam" device "UMass storage (floppy)" devname "umass0" attach "/sbin/camcontrol rescan bus 0; /sbin/mount /m/A" detach "/sbin/umount -f /m/A" # device "Keyboard with Mouse" vendor 0x046e product 0x6782 release 0x0100 attach "/usr/sbin/kbdcontrol -k /dev/kbd1 -r fast < /dev/ttyv0" detach "/usr/sbin/kbdcontrol -k /dev/kbd0 -r fast < /dev/ttyv0" # device "Mouse" devname "ums[0-9]+" attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid -m 6=4 -m 7=5" detach "kill /var/run/moused.${DEVNAME}.pid" # device "Keyboard" devname "ukbd[0-9]+" attach "/usr/sbin/kbdcontrol -k /dev/kbd1" detach "/usr/sbin/kbdcontrol -k /dev/kbd0" # device "USB device" ----------------------------------------------------------------- >Description: Events executed during USB device attach and do not executed during device detach. See log: attach: # usbd -dv usbd: opened /dev/usb0 usbd: reading configuration file /etc/usbd.conf usbd: opened /dev/usb >How-To-Repeat: # usbd -dv and unplug usb device I have already seen such effect about year ago), but then it was cured (I do not know how). >Fix: Do not know >Release-Note: >Audit-Trail: >Unformatted: >.... (I've plugged USB hub with mice & kbd) usbd: driver-attach event cookie=3217028524 devname=uhub1 USB_EVENT_DRIVER_DETACH usbd: device-attach event at 1040635809.160556000, UT-USB41 hub, Texas Instruments: vndr=0x0451 prdct=0x1446 rlse=0x0110 clss=0x0009 subclss=0x0000 prtcl=0x0000 device names: uhub1 usbd: Found action 'USB device' for UT-USB41 hub, Texas Instruments at uhub1 usbd: device-attach event at 1040635809.938419000, Microsoft IntelliMouse® Explorer, Microsoft: vndr=0x045e prdct=0x001e rlse=0x0114 clss=0x0000 subclss=0x0000 prtcl=0x0000 device names: ums0 usbd: Found action 'Mouse' for Microsoft IntelliMouse® Explorer, Microsoft at ums0 usbd: Executing '/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid -m 6=4 -m 7=5' usbd: device-attach event at 1040635810.752549000, Keyboard with mouse port, Behavior Tech. Computer: vndr=0x046e prdct=0x6782 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000 device names: ukbd0,ums1 usbd: Found action 'Keyboard with Mouse' for Keyboard with mouse port, Behavior Tech. Computer usbd: Executing '/usr/sbin/kbdcontrol -k /dev/kbd1 -r fast < /dev/ttyv0' kbd1 ukbd0, type:generic (0) >.... all seems well there, all actions executed >.... now I am unplugging USB hub usbd: driver-detach event cookie=3217028524 devname=uhub1 USB_EVENT_DRIVER_DETACH >.... No more messages, actions do not executed, I have loose keyboard >.... (no "/usr/sbin/kbdcontrol -k /dev/kbd0 < /dev/ttyv0") dmesg messages plugging: --------------------- uhub1: Texas Instruments UT-USB41 hub, class 9/0, rev 1.10/1.10, addr 2 uhub1: 4 ports with 4 removable, self powered ums0: Microsoft Microsoft IntelliMouse® Explorer, rev 1.10/1.14, addr 3, iclass 3/1 ums0: 5 buttons and Z dir. ukbd0: Behavior Tech. Computer Keyboard with mouse port, rev 1.00/1.00, addr 4, iclass 3/1 kbd1 at ukbd0 ums1: Behavior Tech. Computer Keyboard with mouse port, rev 1.00/1.00, addr 4, iclass 3/1 ums1: 3 buttons --------------------- unplugging: uhub1: at uhub0 port 1 (addr 2) disconnected ums0: detached ukbd0: detached ums1: detached uhub1: detached --------------------- Problem 100% repeatable, it is applied to all my USB devices (mouse, keyboard, floppy, camera). I have ACPI turned on now. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E18QP5V-0000GD-00>