usbd and mouse hotplugging problem

From: Peter Weiss, Sun Microsystems, Germany <Peter.Weiss_at_Sun.com>
Date: Fri, 16 Apr 2004 17:30:02 +0200
Hello,

On my notebook running freebsd current it's not possible to hotplug the mouse
on the usb port (sometimes I miss to plug it in before booting).

When the mouse is connected at boot time the usbdevs looks like:

~:1> usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 addr 2: low speed, power 100 mA, config 1, Optical USB Mouse(0xc016), Logitech(0x046d), rev 3.40
 port 2 powered

Running usbd -d -vvv reports:

~:2# usbd -vvv -d
usbd: opened /dev/usb0
usbd: opened /dev/usb1
usbd: opened /dev/usb2
usbd: reading configuration file /etc/usbd.conf
usbd: action 1: ActiveWire board, firmware download
  vndr=0x0854 prdct=0x0100 rlse=0x0000
  attach='/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex ${DEVNAME}'
usbd: action 2: Entrega Serial with UART
  vndr=0x1645 prdct=0x8001 rlse=0x0101
  attach='/usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}'
usbd: action 3: USB ethernet
  devname: [ackr]ue[0-9]+
  attach='/etc/pccard_ether ${DEVNAME} start'
  detach='/etc/pccard_ether ${DEVNAME} stop'
usbd: action 4: Handspring Visor
  vndr=0x082d prdct=0x0100 rlse=0x0100
  devname: ugen[0-9]+
  attach='/usr/local/bin/coldsync -md -p /dev/${DEVNAME} -t usb'
usbd: action 5: Mouse
  devname: ums[0-9]+
  attach='/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid ; /usr/sbin/vidcontrol -m on'
usbd: action 6: USB device
usbd: 6 actions
usbd: opened /dev/usb
usbd: processing event queue on /dev/usb
usbd: device-detach event at 1082128583.961499000, product 0xc016, Logitech:
  vndr=0x046d prdct=0xc016 rlse=0x0340 clss=0x0000 subclss=0x0000 prtcl=0x0000

usbd: Found action 'USB device' for product 0xc016, Logitech
usbd: action 0: USB device
usbd: doing timeout discovery on /dev/usb0
usbd: doing timeout discovery on /dev/usb1
usbd: doing timeout discovery on /dev/usb2
usbd: processing event queue due to timeout on /dev/usb
usbd: doing timeout discovery on /dev/usb0
usbd: doing timeout discovery on /dev/usb1
usbd: doing timeout discovery on /dev/usb2
usbd: processing event queue due to timeout on /dev/usb
usbd: doing timeout discovery on /dev/usb0
usbd: doing timeout discovery on /dev/usb1
usbd: doing timeout discovery on /dev/usb2
usbd: processing event queue due to timeout on /dev/usb
^C

The detach event is seen only once. No attach event or somethis like that
usbdevs reports no devices.

Any hints?

TIA -- Peter

-- 
Peter Weiss               / Peter.Weiss_at_germany.sun.com
Sun Microsystems GmbH     / Sonnenallee 1, D-85551 Kirchheim-Heimstetten
(+49 89) 46008 2947       / mobil 0177/ 60 40 121
Received on Fri Apr 16 2004 - 06:30:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:51 UTC