Date: Fri, 18 Mar 2011 08:16:45 -0400 From: Barry Kominik <barry@kominik.net> To: freebsd-usb@freebsd.org Subject: Re: USB Mouse - only works after being replugged in Message-ID: <60BF8D78-783F-4A63-92DA-899BE2E62CF7@kominik.net> In-Reply-To: <201103180854.03062.hselasky@c2i.net> References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171844.49751.hselasky@c2i.net> <4D82B2E6.3050808@kominik.net> <201103180854.03062.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 18, 2011, at 3:54 AM, Hans Petter Selasky wrote: >> Hi, >> the usbconfig reset fixes the issue. Is there a way I can make this >> happen on boot? >>=20 >> #ps auxw|grep -i moused >> root 2743 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 = grep >> -i moused >> #usbconfig -d 4.2 reset >> #ps auxw|grep -i moused >> root 2843 0.6 0.0 8072 1076 ?? Ss 9:10PM 0:00.13 >> /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pi >> root 2895 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 = grep >> -i moused >=20 > Do you have moused_enable=3D"YES" in your /etc/rc.conf >=20 Yes..=20 > The moused should be started by devd. Could you dump the descriptors = using=20 > commands "dump_curr_config_desc dump_device_desc" before the device is = reset? >=20 > Try to run: >=20 > /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid >=20 > Before device reset. Maybe there is an error code. >=20 > --HPS At one point I did get an error, I'm not sure at what step, as the kids = were bouncing all over me ;) Mar 18 07:39:01 durga moused: unable to get status of mouse fd: = Inappropriate ioctl for device So I rebooted and started over and there were no errors, here's the = output:=20 [root@durga ~]# usbconfig dump_curr_config_desc dump_device_desc ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <UHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <UHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <UHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen3.1: <EHCI root HUB Intel> at usbus3, cfg=3D0 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0001=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <EHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen4.1: <UHCI root HUB Intel> at usbus4, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <UHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen5.1: <UHCI root HUB Intel> at usbus5, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <UHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen6.1: <UHCI root HUB Intel> at usbus6, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0100=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <UHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen7.1: <EHCI root HUB Intel> at usbus7, cfg=3D0 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DSAVE bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0009=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0001=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x0000=20 idProduct =3D 0x0000=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 <Intel> iProduct =3D 0x0002 <EHCI root HUB> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0019=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x0040=20 bMaxPower =3D 0x0000=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0009=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 <no string> Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x00ff=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ugen4.2: <USB Trackball Logitech> at usbus4, cfg=3D0 md=3DHOST spd=3DLOW = (1.5Mbps) pwr=3DON bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0110=20 bDeviceClass =3D 0x0000=20 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0008=20 idVendor =3D 0x046d=20 idProduct =3D 0xc408=20 bcdDevice =3D 0x1400=20 iManufacturer =3D 0x0001 <Logitech> iProduct =3D 0x0002 <USB Trackball> iSerialNumber =3D 0x0000 <no string> bNumConfigurations =3D 0x0001=20 Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0022=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 <no string> bmAttributes =3D 0x00a0=20 bMaxPower =3D 0x0019=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0003=20 bInterfaceSubClass =3D 0x0001=20 bInterfaceProtocol =3D 0x0002=20 iInterface =3D 0x0000 <no string> Additional Descriptor bLength =3D 0x09 bDescriptorType =3D 0x21 bDescriptorSubType =3D 0x10 RAW dump:=20 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x42,=20 0x08 | 0x00 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 <IN> bmAttributes =3D 0x0003 <INTERRUPT> wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x000a=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 [root@durga ~]# /usr/sbin/moused -p /dev/ums0 -t auto -I = /var/run/moused.ums0.pi d [root@durga ~]# exit
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60BF8D78-783F-4A63-92DA-899BE2E62CF7>