From owner-freebsd-usb@freebsd.org Wed Aug 12 07:56:33 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 546A399F957 for ; Wed, 12 Aug 2015 07:56:33 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D5FF6EB7 for ; Wed, 12 Aug 2015 07:56:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D3E4E1FE023; Wed, 12 Aug 2015 09:56:28 +0200 (CEST) Subject: Re: Touchpad/trackpad not working To: Anders Bolt-Evensen , freebsd-usb@freebsd.org References: <2e74f58a-8e60-423a-b029-82bd6210dad7@me.com> From: Hans Petter Selasky Message-ID: <55CAFC85.2030806@selasky.org> Date: Wed, 12 Aug 2015 09:57:57 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <2e74f58a-8e60-423a-b029-82bd6210dad7@me.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Aug 2015 07:56:33 -0000 On 08/12/15 09:28, Anders Bolt-Evensen wrote: > > > On Aug 11, 2015, at 05:03 PM, Hans Petter Selasky wrote: > >> On 08/11/15 16:40, Anthony Jenkins via freebsd-usb wrote: >>> >>> hid_is_mouse() is failing to tell that your Synaptics USB HID device is >>> a mouse, but /only/ when there's no other USB (HID) device on that USB >>> bus (usbus0). I suspect it has to do with the hid_get_item() warnings >>> about chopping stuff off. I can't tell from the source code for >>> hid_get_item() (a 313-line function) why it's behaving that way, or why >>> a totally different HID device (Logitech mouse) causes it to behave >>> differently for this HID device (Synaptics touchpad). I've added >>> freebsd-usb@ to see if they know what's going on. >>> >>> ajenkins@kubuntu-ajenkins:~/Downloads$ grep usbus0 >>> dmesg_with_external_usb.txt >>> usbus0: waiting for BIOS to give up control >>> usbus0 on xhci0 >>> random: harvesting attach, 8 bytes (4 bits) from usbus0 >>> usbus0: 5.0Gbps Super Speed USB v3.0 >>> ugen0.1: <0x8086> at usbus0 >>> uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on >>> usbus0 >>> Root mount waiting for: usbus2 usbus1 usbus0 >>> ugen0.2: at usbus0 >>> ukbd0: on >>> usbus0 >>> Root mount waiting for: usbus0 >>> ugen0.3: at usbus0 >>> Root mount waiting for: usbus0 >>> ugen0.4: at usbus0 >>> ugen0.5: at usbus0 >>> Root mount waiting for: usbus0 >>> Root mount waiting for: usbus0 >>> [snip] >>> Root mount waiting for: usbus0 >>> Root mount waiting for: usbus0 >>> ugen0.6: at usbus0 (disconnected) >>> ums0: on >>> usbus0 >>> ums1: >> 3> on usbus0 >>> uhid0: on >>> usbus0 >>> >>> What possessed the laptop manufacturer to hang the Synaptics touchpad >>> device off a USB 3.0 controller is beyond me... I have problems booting >>> FreeBSD off USB 3.0 mass storage devices. >>> >> >> Hi, >> >> Does your mouse only fail to work in X-org, or also the console? >> >> Run "usbdump -i usbusX -f Y -s 65536 -vvv" to catch USB events for >> ugenX.Y. That might give some further clues. >> >> If using X.org, do you use hald or devd backend? >> >> --HPS >  > It fails in both X-org and console. > In X, recently I've only been using devd. > When trying to use the command usbdump -i usbus0 -f 3 -s 65536 -vvv on > my touchpad (without any external usb receiver connected), nothing > happens at all. No left-click, no right-click, nothing. > However, if I insert an external USB receiver and then reboot the > computer, the touchpad works just fine in both console and in X-org. > If I now do the command above, since I've connected the receiver and > done the reboot, I get the following output (just note that during the > reboot, the address of the touchpad was changed from ugen0.3 to ugen0.4): > https://www.dropbox.com/s/ktj757okcq61ljc/usbdump_i_usbusX_f_Y_s_65536_vvv.txt?dl=0 > > > On Aug 11, 2015, at 05:46 PM, Zoran Kolic wrote: > >> What do you have in device.hints? >> >> Zoran >> When you don't see any activity, can you issue a reset of the touchpad: usbconfig -d X.Y reset while "usbdump" is running on the same device? --HPS