Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-26 Thread Hans Petter Selasky

Committed into USB P4 with some minor modifications:

http://perforce.freebsd.org/chv.cgi?CH=166576

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-26 Thread Alastair Hogge
On Sun July 26 2009 17:24:06 Hans Petter Selasky wrote:
 Committed into USB P4 with some minor modifications:

 http://perforce.freebsd.org/chv.cgi?CH=166576
Great!
Thanks a lot.

 --HPS
-al
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-26 Thread Hans Petter Selasky
Hi, again.

I think I have found a more general solution. Can you remove the quirk and try 
the following patch instead to ukbd_probe():

 //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#22 - 
src/sys/dev/usb/input/ukbd.c 
@@ -711,7 +711,15 @@
if (error)
return (ENXIO);
 
+   /* 
+* NOTE: we currently don't support USB mouse and USB keyboard
+* on the same USB endpoint.
+*/
if (hid_is_collection(d_ptr, d_len,
+   HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) {
+   /* most likely a mouse */
+   error = ENXIO;
+   } else if (hid_is_collection(d_ptr, d_len,
HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_KEYBOARD))) {
if (usb_test_quirk(uaa, UQ_KBD_IGNORE))
error = ENXIO;

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-26 Thread Alastair Hogge
On Sun July 26 2009 22:46:16 Hans Petter Selasky wrote:
 Hi, again.
Hey,

 I think I have found a more general solution. Can you remove the quirk and
 try the following patch instead to ukbd_probe():
Yep.

  //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#22 -
 src/sys/dev/usb/input/ukbd.c 
 @@ -711,7 +711,15 @@
 if (error)
 return (ENXIO);

 +   /*
 +* NOTE: we currently don't support USB mouse and USB keyboard
 +* on the same USB endpoint.
 +*/
 if (hid_is_collection(d_ptr, d_len,
 +   HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) {
 +   /* most likely a mouse */
 +   error = ENXIO;
 +   } else if (hid_is_collection(d_ptr, d_len,
 HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_KEYBOARD))) {
 if (usb_test_quirk(uaa, UQ_KBD_IGNORE))
 error = ENXIO;
OK, that works.

 --HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-25 Thread Hans Petter Selasky
On Saturday 25 July 2009 16:22:41 Alastair Hogge wrote:
 Number: 137129
 Category:   usb
 Synopsis:   SteelSeries Ikari USB laser mouse not attaching
 Confidential:   no
 Severity:   non-critical
 Priority:   low
 Responsible:freebsd-usb
 State:  open
 Quarter:
 Keywords:
 Date-Required:
 Class:  sw-bug
 Submitter-Id:   current-users
 Arrival-Date:   Sat Jul 25 14:30:01 UTC 2009
 Closed-Date:
 Last-Modified:
 Originator: Alastair Hogge
 Release:head-r195867M
 Organization:
 Environment:

 FreeBSD madcat 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r195867M: Sat Jul 25 21:38:19
 WST 2009 a...@madcat:/usr/obj/usr/src/sys/MADCAT  i386

 Description:

 Mouse fails to attach/load. No screen pointer.

 How-To-Repeat:

 Plug in Ikari laser mouse.

 Fix:

 The following diffs add a product code  a quirk.

 *** usbdevs-originalSat Jul 25 21:12:16 2009
 --- /sys/dev/usb/usbdevsSat Jul 25 21:14:11 2009
 ***
 *** 1115,1120 
 --- 1115,1121 
   product CYPRESS WISPY1A   0x0bad  MetaGeek Wi-Spy
   product CYPRESS KBDHUB0x0101  Keyboard/Hub
   product CYPRESS FMRADIO   0x1002  FM Radio
 + product CYPRESS IKARILASER0x121f  Ikari laser mouse by SteelSeries
   product CYPRESS USBRS232  0x5500  USB-RS232 Interface
   product CYPRESS SLIM_HUB  0x6560  Slim Hub
   product CYPRESS XX6830XX  0x6830  PATA Storage Device

 *** usb_quirk.c-originalSat Jul 25 21:11:55 2009
 --- /sys/dev/usb/quirk/usb_quirk.c  Sat Jul 25 21:35:13 2009
 ***
 *** 106,111 
 --- 106,113 
 {USB_QUIRK_ENTRY(USB_VENDOR_HP, USB_PRODUCT_HP_830C, 0x,
 0x, UQ_BROKEN_BIDIR, UQ_NONE)}, {USB_QUIRK_ENTRY(USB_VENDOR_HP,
 USB_PRODUCT_HP_1220C, 0x, 0x, UQ_BROKEN_BIDIR, UQ_NONE)},
 {USB_QUIRK_ENTRY(USB_VENDOR_XEROX, USB_PRODUCT_XEROX_WCM15, 0x, 0x,
 UQ_BROKEN_BIDIR, UQ_NONE)}, +   /* Devices which should be ignored by
 ukbd */
 +   {USB_QUIRK_ENTRY(USB_VENDOR_CYPRESS,
 USB_PRODUCT_CYPRESS_IKARILASER, 0x, 0x, UQ_KBD_IGNORE)}, /* Devices
 which should be ignored by uhid */
 {USB_QUIRK_ENTRY(USB_VENDOR_APC, USB_PRODUCT_APC_UPS, 0x,
 0x, UQ_HID_IGNORE, UQ_NONE)}, {USB_QUIRK_ENTRY(USB_VENDOR_BELKIN,
 USB_PRODUCT_BELKIN_F6C550AVR, 0x, 0x, UQ_HID_IGNORE, UQ_NONE)},


Hi,

Your patch looks good.

Is this device being driven by libusb?

Can you send output from:

usbconfig -u XXX -a YYY dump_device_desc dump_curr_config_desc

For your device, and I'll get your patch in.

Thanks for your patch.

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-25 Thread Hans Petter Selasky
The following reply was made to PR usb/137129; it has been noted by GNATS.

From: Hans Petter Selasky hsela...@c2i.net
To: freebsd-usb@freebsd.org
Cc: Alastair Hogge a...@devacid.com,
 freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching
Date: Sat, 25 Jul 2009 17:00:43 +0200

 On Saturday 25 July 2009 16:22:41 Alastair Hogge wrote:
  Number: 137129
  Category:   usb
  Synopsis:   SteelSeries Ikari USB laser mouse not attaching
  Confidential:   no
  Severity:   non-critical
  Priority:   low
  Responsible:freebsd-usb
  State:  open
  Quarter:
  Keywords:
  Date-Required:
  Class:  sw-bug
  Submitter-Id:   current-users
  Arrival-Date:   Sat Jul 25 14:30:01 UTC 2009
  Closed-Date:
  Last-Modified:
  Originator: Alastair Hogge
  Release:head-r195867M
  Organization:
  Environment:
 
  FreeBSD madcat 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r195867M: Sat Jul 25 21:38:19
  WST 2009 a...@madcat:/usr/obj/usr/src/sys/MADCAT  i386
 
  Description:
 
  Mouse fails to attach/load. No screen pointer.
 
  How-To-Repeat:
 
  Plug in Ikari laser mouse.
 
  Fix:
 
  The following diffs add a product code  a quirk.
 
  *** usbdevs-originalSat Jul 25 21:12:16 2009
  --- /sys/dev/usb/usbdevsSat Jul 25 21:14:11 2009
  ***
  *** 1115,1120 
  --- 1115,1121 
product CYPRESS WISPY1A   0x0bad  MetaGeek Wi-Spy
product CYPRESS KBDHUB0x0101  Keyboard/Hub
product CYPRESS FMRADIO   0x1002  FM Radio
  + product CYPRESS IKARILASER0x121f  Ikari laser mouse by SteelSeries
product CYPRESS USBRS232  0x5500  USB-RS232 Interface
product CYPRESS SLIM_HUB  0x6560  Slim Hub
product CYPRESS XX6830XX  0x6830  PATA Storage Device
 
  *** usb_quirk.c-originalSat Jul 25 21:11:55 2009
  --- /sys/dev/usb/quirk/usb_quirk.c  Sat Jul 25 21:35:13 2009
  ***
  *** 106,111 
  --- 106,113 
  {USB_QUIRK_ENTRY(USB_VENDOR_HP, USB_PRODUCT_HP_830C, 0x,
  0x, UQ_BROKEN_BIDIR, UQ_NONE)}, {USB_QUIRK_ENTRY(USB_VENDOR_HP,
  USB_PRODUCT_HP_1220C, 0x, 0x, UQ_BROKEN_BIDIR, UQ_NONE)},
  {USB_QUIRK_ENTRY(USB_VENDOR_XEROX, USB_PRODUCT_XEROX_WCM15, 0x, 0x,
  UQ_BROKEN_BIDIR, UQ_NONE)}, +   /* Devices which should be ignored by
  ukbd */
  +   {USB_QUIRK_ENTRY(USB_VENDOR_CYPRESS,
  USB_PRODUCT_CYPRESS_IKARILASER, 0x, 0x, UQ_KBD_IGNORE)}, /* Devices
  which should be ignored by uhid */
  {USB_QUIRK_ENTRY(USB_VENDOR_APC, USB_PRODUCT_APC_UPS, 0x,
  0x, UQ_HID_IGNORE, UQ_NONE)}, {USB_QUIRK_ENTRY(USB_VENDOR_BELKIN,
  USB_PRODUCT_BELKIN_F6C550AVR, 0x, 0x, UQ_HID_IGNORE, UQ_NONE)},
 
 
 Hi,
 
 Your patch looks good.
 
 Is this device being driven by libusb?
 
 Can you send output from:
 
 usbconfig -u XXX -a YYY dump_device_desc dump_curr_config_desc
 
 For your device, and I'll get your patch in.
 
 Thanks for your patch.
 
 --HPS
 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-25 Thread Alastair Hogge
The following reply was made to PR usb/137129; it has been noted by GNATS.

From: Alastair Hogge a...@coolrhaug.com
To: bug-follo...@freebsd.org,
 a...@devacid.com
Cc: hsela...@c2i.net
Subject: Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching
Date: Sat, 25 Jul 2009 23:58:14 +0800

 How can I find out if the mouse is being driven by libusb?
 
 # usbconfig -u 0 -a 3 dump_device_desc dump_curr_config_desc
 ugen0.3: Ikari Laser SteelSeries ApS at usbus0, cfg=0 md=HOST spd=FULL 
 (12Mbps) pwr=ON
 
   bLength = 0x0012 
   bDescriptorType = 0x0001 
   bcdUSB = 0x0200  
   bDeviceClass = 0x
   bDeviceSubClass = 0x 
   bDeviceProtocol = 0x 
   bMaxPacketSize0 = 0x0008 
   idVendor = 0x04b4
   idProduct = 0x121f   
   bcdDevice = 0x0100   
   iManufacturer = 0x0001  SteelSeries ApS
   iProduct = 0x0002  Ikari Laser 
   iSerialNumber = 0x  no string  
   bNumConfigurations = 0x0001  
 
 
  Configuration index 0
 
 bLength = 0x0009 
 bDescriptorType = 0x0002 
 wTotalLength = 0x0022
 bNumInterfaces = 0x0001  
 bConfigurationValue = 0x0001 
 iConfiguration = 0x  no string
 bmAttributes = 0x00a0   
 bMaxPower = 0x0019  
 
 Interface 0
   bLength = 0x0009 
   bDescriptorType = 0x0004 
   bInterfaceNumber = 0x 
   bAlternateSetting = 0x 
   bNumEndpoints = 0x0001 
   bInterfaceClass = 0x0003   
   bInterfaceSubClass = 0x0001 
   bInterfaceProtocol = 0x0002 
   iInterface = 0x  no string
 
   Additional Descriptor
 
   bLength = 0x09
   bDescriptorType = 0x21
   bDescriptorSubType = 0x11
RAW dump:
0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0xe8,
0x08 | 0x00
 
  Endpoint 0
 bLength = 0x0007
 bDescriptorType = 0x0005
 bEndpointAddress = 0x0081
 bmAttributes = 0x0003
 wMaxPacketSize = 0x0008
 bInterval = 0x0001
 bRefresh = 0x
 bSynchAddress = 0x
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-25 Thread Hans Petter Selasky
The following reply was made to PR usb/137129; it has been noted by GNATS.

From: Hans Petter Selasky hsela...@c2i.net
To: Alastair Hogge a...@coolrhaug.com
Cc: bug-follo...@freebsd.org,
 a...@devacid.com
Subject: Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching
Date: Sat, 25 Jul 2009 18:09:02 +0200

 On Saturday 25 July 2009 17:58:14 Alastair Hogge wrote:
  How can I find out if the mouse is being driven by libusb?
 
 What application are you using your mouse with? X11 or some Game?
 
 --HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching

2009-07-25 Thread Alastair Hogge
The following reply was made to PR usb/137129; it has been noted by GNATS.

From: Alastair Hogge a...@coolrhaug.com
To: Hans Petter Selasky hsela...@c2i.net
Cc: bug-follo...@freebsd.org,
 a...@devacid.com
Subject: Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching
Date: Sun, 26 Jul 2009 08:08:14 +0800

 On Sun July 26 2009 00:09:02 Hans Petter Selasky wrote:
  On Saturday 25 July 2009 17:58:14 Alastair Hogge wrote:
   How can I find out if the mouse is being driven by libusb?
 
  What application are you using your mouse with? X11 or some Game?
 OK. Mouse works in console, X11,  tested with some games I have installed.
 
  --HPS
 -al
 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org