Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse
The following reply was made to PR usb/180657; it has been noted by GNATS. From: Yamagi Burmeister yam...@yamagi.org To: h...@bitfrost.no Cc: freebsd-gnats-sub...@freebsd.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 17:03:16 +0200 I would expect two interfaces here. Only one driver can attach to a single interface. Is your keyboard and mouse two separate devices through an external USB HUB? The keyboard is attached directly to the computer without any hub between it. While the keyboard is just a keyboard (without any additional features like usb ports) there is of course the possibility that an user-invisible hub is build into it. Is the ums and ukbd in the kernel? No, they're loaded as modules via /boot/loader.conf Could you run one more with your quirk disabled and dual mouse/keyboard plugged in: usbconfig -d X.Y show_ifdrv Of course: % usbconfig -d 3.3 show_ifdrv ugen3.3: USB Keyboard vendor 0x04d9 at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) ugen3.3.0: ukbd0: vendor 0x04d9 USB Keyboard, class 0/0, rev 1.10/1.01, addr 3 ugen3.3.1: ums1: vendor 0x04d9 USB Keyboard, class 0/0, rev 1.10/1.01, addr 3 If more information is required feel free to ask. You could contact me by ICQ, I should still be in your contact list. :) Ciao, Yamagi -- Homepage: www.yamagi.org XMPP: yam...@yamagi.org GnuPG/GPG: 0xEFBCCBCB ___ 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/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse
The following reply was made to PR usb/180657; it has been noted by GNATS. From: Hans Petter Selasky h...@bitfrost.no To: Yamagi Burmeister yam...@yamagi.org Cc: freebsd-gnats-sub...@freebsd.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 17:23:50 +0200 On 07/23/13 17:03, Yamagi Burmeister wrote: I would expect two interfaces here. Only one driver can attach to a single interface. Is your keyboard and mouse two separate devices through an external USB HUB? The keyboard is attached directly to the computer without any hub between it. While the keyboard is just a keyboard (without any additional features like usb ports) there is of course the possibility that an user-invisible hub is build into it. Is the ums and ukbd in the kernel? No, they're loaded as modules via /boot/loader.conf Could you run one more with your quirk disabled and dual mouse/keyboard plugged in: usbconfig -d X.Y show_ifdrv Of course: % usbconfig -d 3.3 show_ifdrv ugen3.3: USB Keyboard vendor 0x04d9 at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) ugen3.3.0: ukbd0: vendor 0x04d9 USB Keyboard, class 0/0, rev 1.10/1.01, addr 3 ugen3.3.1: ums1: vendor 0x04d9 USB Keyboard, class 0/0, rev 1.10/1.01, addr 3 If more information is required feel free to ask. You could contact me by ICQ, I should still be in your contact list. :) Ciao, Yamagi Hi, This is not the same device that you dumped the configuration descriptor for. VID and PID values changed. Could you try: usbconfig -d 3.3 dump_curr_config_desc Thank you! --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/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse
The following reply was made to PR usb/180657; it has been noted by GNATS. From: Yamagi Burmeister yam...@yamagi.org To: h...@bitfrost.no Cc: freebsd-gnats-sub...@freebsd.org Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 17:27:29 +0200 On Tue, 23 Jul 2013 17:23:50 +0200 Hans Petter Selasky h...@bitfrost.no wrote: This is not the same device that you dumped the configuration descriptor for. VID and PID values changed. Could you try: usbconfig -d 3.3 dump_curr_config_desc Thank you! --HPS Here you are: ugen3.3: USB Keyboard vendor 0x04d9 at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x003b bNumInterfaces = 0x0002 bConfigurationValue = 0x0001 iConfiguration = 0x no string bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x bAlternateSetting = 0x bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x no string Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x3e, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 IN bmAttributes = 0x0003 INTERRUPT wMaxPacketSize = 0x0008 bInterval = 0x0001 bRefresh = 0x bSynchAddress = 0x Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x no string Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0xa6, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 IN bmAttributes = 0x0003 INTERRUPT wMaxPacketSize = 0x0008 bInterval = 0x0001 bRefresh = 0x bSynchAddress = 0x -- Homepage: www.yamagi.org XMPP: yam...@yamagi.org GnuPG/GPG: 0xEFBCCBCB ___ 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/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse
The following reply was made to PR usb/180657; it has been noted by GNATS. From: Yamagi Burmeister yam...@yamagi.org To: freebsd-gnats-sub...@freebsd.org Cc: Subject: Re: usb/180657: [PATCH] Filco Majestouch 2 keyboard recognized as keyboard and mouse Date: Tue, 23 Jul 2013 19:57:38 +0200 An IRC diskussion shed some more light on this: The problems (can be seen in STALLs in usbdump output, see below) only arise when the keyboard is connected at boottime. When it's hotplugged at runtime everything is working fine. A misbehaving keyboard works fine when reset with usbbconfig reset. The problems arise on the console and in X11. Some usbdumps: - broken behavior and moused(1) attached to the mouse endpoint: http://deponie.yamagi.org/freebsd/misc/filco_majestouch.txt - broken behavior with moused(1) not attached: http://deponie.yamagi.org/freebsd/misc/filco_majestouch2.txt - with the quirk applied everything is fine: http://deponie.yamagi.org/freebsd/misc/filco_majestouch3.txt I'll send the keyboard back and order a new one from a different retailer to rule out a hardware issue. Until then no more action should be taken. I'll report back in a few days. -- Homepage: www.yamagi.org XMPP: yam...@yamagi.org GnuPG/GPG: 0xEFBCCBCB ___ 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
LibFTDI/LibUSB 1.0 and Asyncrhonous I/O on FreeBSD
Hello :-) LibUSB 1.0 introduced Asyncrhonous I/O [1] which in conjuction with LibFTDI 1.0 [2] gives significant performance improvement on FT2232* based chips used in various UART/JTAG/SWD interfaces. I am working on LibSWD [3] and would like to use this Asyncrhonous I/O on my FreeBSD box. I know there is an internal BSD implementation of LibUSB, so my question is it possible to use this Asynchronous I/O with FreeBSD implementation of LibUSB, or more specifically is it possible to use LibFTDI 1.0 to improve speed of my driver for FT2232 chip? :-) Any hints appreciated! :-) Tomek [1] http://www.libusb.org/wiki/libusb-1.0 [2] http://www.intra2net.com/en/developer/libftdi/ [3] http://libswd.sf.net -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ 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: LibFTDI/LibUSB 1.0 and Asyncrhonous I/O on FreeBSD
On 07/23/13 20:10, CeDeROM wrote: Hello :-) LibUSB 1.0 introduced Asyncrhonous I/O [1] which in conjuction with LibFTDI 1.0 [2] gives significant performance improvement on FT2232* based chips used in various UART/JTAG/SWD interfaces. I am working on LibSWD [3] and would like to use this Asyncrhonous I/O on my FreeBSD box. I know there is an internal BSD implementation of LibUSB, so my question is it possible to use this Asynchronous I/O with FreeBSD implementation of LibUSB, or more specifically is it possible to use LibFTDI 1.0 to improve speed of my driver for FT2232 chip? :-) Any hints appreciated! :-) Tomek [1] http://www.libusb.org/wiki/libusb-1.0 [2] http://www.intra2net.com/en/developer/libftdi/ [3] http://libswd.sf.net Hi, It is implemented and should work! Please note that you should not mix synchronous and asynchronous requests, with exception of control transfers. If you are programming a bulk endpoint, use either all synchronous or all asynchronous. --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: LibFTDI/LibUSB 1.0 and Asyncrhonous I/O on FreeBSD
On Tue, Jul 23, 2013 at 9:03 PM, Hans Petter Selasky h...@bitfrost.no wrote: On 07/23/13 20:10, CeDeROM wrote: question is it possible to use this Asynchronous I/O with FreeBSD implementation of LibUSB, or more specifically is it possible to use LibFTDI 1.0 to improve speed of my driver for FT2232 chip? :-) Hi, It is implemented and should work! Please note that you should not mix synchronous and asynchronous requests, with exception of control transfers. If you are programming a bulk endpoint, use either all synchronous or all asynchronous. --HPS Wow! Good news! Thank you Hans!! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ 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