From owner-freebsd-usb@FreeBSD.ORG Fri Mar 6 16:18:48 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3413610656D8 for ; Fri, 6 Mar 2009 16:18:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id BD0D78FC17 for ; Fri, 6 Mar 2009 16:18:47 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=p0lbXY6ahC0A:10 a=83Y5weSI77cA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=Fl9UuHX8txO8Mq8DlYcA:9 a=osNXrJndHqIWH7ZmOmriaGoWUnEA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1205754581; Fri, 06 Mar 2009 17:18:45 +0100 From: Hans Petter Selasky To: Boris Kotzev Date: Fri, 6 Mar 2009 17:21:15 +0100 User-Agent: KMail/1.9.7 References: <200903041946.15105.boris.kotzev@gmail.com> <200903051431.22066.hselasky@c2i.net> <200903052109.00282.boris.kotzev@gmail.com> In-Reply-To: <200903052109.00282.boris.kotzev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903061721.15975.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: usb touchpad not working properly on CURRENT with usb2 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2009 16:18:48 -0000 On Thursday 05 March 2009, Boris Kotzev wrote: > > On Wednesday 04 March 2009, Boris Kotzev wrote: > > > > On Wednesday 04 March 2009, Boris Kotzev wrote: > > > Thanks! > > Boris Kotzev Try editing /sys/dev/usb/input/ums.c . Change "bufsize": static const struct usb2_config ums_config[UMS_N_TRANSFER] = { [UMS_INTR_DT] = { .type = UE_INTERRUPT, .endpoint = UE_ADDR_ANY, .direction = UE_DIR_IN, .mh.flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, .mh.bufsize = 0, /* use wMaxPacketSize */ .mh.callback = &ums_intr_callback, }, }; into: static const struct usb2_config ums_config[UMS_N_TRANSFER] = { [UMS_INTR_DT] = { .type = UE_INTERRUPT, .endpoint = UE_ADDR_ANY, .direction = UE_DIR_IN, .mh.flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, .mh.bufsize = 128, /* use wMaxPacketSize XXX */ .mh.callback = &ums_intr_callback, }, }; This patch might make other USB mouse devices not work. It's just supposed to make the Touchpad work. Let me know the result and I will make the final patch. --HPS