Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Mar 2009 17:21:15 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Boris Kotzev <boris.kotzev@gmail.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: usb touchpad not working properly on CURRENT with usb2
Message-ID:  <200903061721.15975.hselasky@c2i.net>
In-Reply-To: <200903052109.00282.boris.kotzev@gmail.com>
References:  <200903041946.15105.boris.kotzev@gmail.com> <200903051431.22066.hselasky@c2i.net> <200903052109.00282.boris.kotzev@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903061721.15975.hselasky>