From owner-freebsd-usb@freebsd.org Wed Aug 12 20:49:44 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 CCE719ABDCD for ; Wed, 12 Aug 2015 20:49:44 +0000 (UTC) (envelope-from andersbo87@icloud.com) Received: from st13p21im-asmtp001.me.com (st13p21im-asmtp001.me.com [17.164.152.160]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F1AEAD9 for ; Wed, 12 Aug 2015 20:49:44 +0000 (UTC) (envelope-from andersbo87@icloud.com) Received: from st13p21im-spool002.me.com ([17.164.152.255]) by st13p21im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTP id <0NSZ002ZSLUUBT30@st13p21im-asmtp001.me.com> for freebsd-usb@freebsd.org; Wed, 12 Aug 2015 20:49:43 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-08-12_11:2015-08-12,2015-08-12,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1508120295 MIME-version: 1.0 Received: from localhost ([17.164.153.2]) by st13p21im-spool002.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTP id <0NSZ003MYLUUEG70@st13p21im-spool002.mac.com> for freebsd-usb@freebsd.org; Wed, 12 Aug 2015 20:49:42 +0000 (GMT) To: freebsd-usb@freebsd.org From: Anders Bolt-Evensen Subject: Touchpad/trackpad not working Date: Wed, 12 Aug 2015 20:49:41 +0000 (GMT) X-Mailer: iCloud MailClient15D.7d472b3 MailServer15E43.20056 X-Originating-IP: [85.164.50.179] Message-id: <7f4f987c-716f-4350-adbf-a9e85823da28@me.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 20:49:45 -0000 =0A=0AOn Aug 12, 2015, at 01:08 PM, Hans Petter Selasky = wrote:=0A=0A> On 08/12/15 12:32, Hans Petter Selasky wrote:=0A>> On 08/12/= 15 11:31, Anders Bolt-Evensen wrote:=0A>>>>=0A>>>> When you don't see any = activity, can you issue a reset of the touchpad:=0A>>>>=0A>>>> usbconfig -= d X.Y reset=0A>>>>=0A>>>> while "usbdump" is running on the same device?=0A= >>>>=0A>>>> --HPS=0A>>>=0A>>> Sure. =EF=BB=BF=0A>>> usbconfig -d 0.3 reset= results in the following output from the usbdump=0A>>> command:=0A>>=0A>>= Can you run:=0A>>=0A>> sysctl hw.usb.ums.debug=3D15=0A>>=0A>> Then re-run= the "usbconfig -d X.Y reset" and send resulting dmesg?=0A>>=0A>> --HPS=0A= >=0A> Hi,=0A>=0A> The issue might be that the BIOS is re-programming the U= SB device=0A> somehow. I see the HID descriptor has support for different = modes, and=0A> possible the device is not re-setting its internal state up= on=0A> re-enumeration. You can try:=0A>=0A> usbconfig -d X.Y power_off=0A>= usbconfig -d X.Y reset=0A>=0A> Maybe if you disable USB legacy support in= the BIOS it will work.=0ASadly, there is no such thing in the BIOS of thi= s computer (an Acer Aspire VN7-791G).=0AThe only legacy thing in this BIOS= is to choose between UEFI (which I'm using) and the older CSM.=0AI cannot= see anything related to USB in this BIOS other than in the boot order and= in that case I can only choose the boot order of USB storage devices.=0A=0A= >=0A>=0A> BTW: The log you sent appears to be from a USB keyboard only dev= ice and=0A> not a USB mouse!=0A>=0A> Also try:=0A>=0A> kldload ums=0A>=0A>= Can you send output from:=0A>=0A> usbconfig show_ifdrv=0A Here is the out= put of usbconfig show_ifdrv:=0Augen0.1: at usbus0, = cfg=3D0 md=3DHOST spd=3DSUPER (5.0Gbps) pwr=3DSAVE (0mA)=0Augen0.1.0: uhub= 0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1>=0Augen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3D= SAVE (0mA)=0Augen1.1.0: uhub1: =0Augen2.1: at usbus2, cfg=3D0 md=3DHOST= spd=3DHIGH (480Mbps) pwr=3DSAVE (0mA)=0Augen2.1.0: uhub2: =0Augen0.2: a= t usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON (500mA)=0Augen1.= 2: at usbus1, cfg=3D0 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DSAVE (0mA)=0Augen1.2.0: uhub3: =0Augen2.2: at usbus2, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DSAVE (0mA)=0A= ugen2.2.0: uhub4: =0Augen0.3: at usbus0, cfg=3D0 md=3D= HOST spd=3DFULL (12Mbps) pwr=3DON (100mA)=0Augen0.3.0: uhid0: =0Augen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (48= 0Mbps) pwr=3DON (500mA)=0A=0A>=0A>=0A> usbconfig dump_device_desc dump_cur= r_config_desc=0A=0A>=0A>=0A> When it works and when it doesn't work?=0A =0A= When the touchpad is not working, here is the output of usbconfig dump_dev= ice_desc dump_curr_config_desc:=0Ahttps://www.dropbox.com/s/utllovfkamnqi9= p/usbconfig_dump_device_desc_curr_config_desc_not_working.txt?dl=3D0=0A=0A= Now, I connected the external USB receiver and rebooted the system. Now, b= ecause the external device is connected, the touchpad works just fine. Her= e is the output of usbconfig dump_device_desc dump_curr_config_desc:=0Ahtt= ps://www.dropbox.com/s/r3pnqsk9aul1z8e/usbconfig_dump_device_desc_curr_con= fig_desc_working.txt?dl=3D0=0A>=0A>=0A> Output from dmesg is also apprecia= ted.=0AOutput of the verbose boot messages without the external mouse:=0Ah= ttps://www.dropbox.com/s/ukpoyg6rsl3jjgd/dmesg_without_external_usb.txt?dl= =3D0=0A=0AOutput of the verbose boot messages with the external mouse:=0Ah= ttps://www.dropbox.com/s/uga7p5zlxh7knsj/dmesg_with_external_usb.txt?dl=3D= 0=0A=0A> Can you run:=0A>=0A> sysctl hw.usb.ums.debug=3D15=0A>=0A> Then re= -run the "usbconfig -d X.Y reset" and send resulting dmesg?=0AIf I run sys= ctl.hw.usb.ums.debug=3D15 without the external USB device, sysctl returns:= =0Asysctl: unknown oid 'hw.usb.ums.debug': No such file or directory. I de= cided to go ahead and run the other commands (usbconfig -d 0.3 reset) and = post the resulting messages from dmesg:=0Auhid0: at uhub0, port 7, addr 2 = (disconnected)=0Ahid_get_item: Number of items truncated to 255=0Auhid0: <= vendor 0x06cb product 0x2970, class 0/0, rev 2.00/0.08, addr 2> on usbus0=0A= hid_get_item: Number of items truncated to 255=0Ahid_get_item: Number of i= tems truncated to 255=0Ahid_get_item: Number of items truncated to 255=0Ar= andom: harvesting attach, 8 bytes (4 bits) from uhid0=0A=0AFull output fro= m lsusb without the external usb receiver:=0ABus /dev/usb Device /dev/ugen= 0.4: ID 04f2:b474 Chicony Electronics Co., Ltd=0ABus /dev/usb Device /dev/= ugen0.3: ID 06cb:2970 Synaptics, Inc.=0ABus /dev/usb Device /dev/ugen2.2: = ID 8087:8000 =0ABus /dev/usb Device /dev/ugen1.2: ID 8087:8008 =0ABus /dev= /usb Device /dev/ugen0.2: ID 0bda:0129 Realtek Semiconductor Corp.=0ABus /= dev/usb Device /dev/ugen2.1: ID 0000:0000 =0ABus /dev/usb Device /dev/ugen= 1.1: ID 0000:0000 =0ABus /dev/usb Device /dev/ugen0.1: ID 0000:0000 =0A=0A= With the receiver plugged in, running sysctl hw.usb.ums.debug=3D15 and the= n usbconfig -d 0.4 reset, results in the following dmesg (when I reboot wi= th the external usb receiver plugged in, according to lsusb, the device no= de for the Synaptics (touchpad)=EF=BB=BF device changes from /dev/ugen0.3 = to /dev/ugen0.4):=0Aums1: at uhub0, port 7, addr 3 (disconnected)=0Aums_de= tach: sc=3D0xfffff80027409800=0Aums_close:=0Aums_close:=0Ahid_get_item: Nu= mber of items truncated to 255=0Aums_probe:=0Ahid_get_item: Number of item= s truncated to 255=0Aums_probe:=0Ahid_get_item: Number of items truncated = to 255=0Aums_attach: sc=3D0xfffff80027409800=0Aums1: on usbus0=0Ahid_get_item: Numb= er of items truncated to 255=0Ahid_get_item: Number of items truncated to = 255=0Ahid_get_item: Number of items truncated to 255=0Ahid_get_item: Numbe= r of items truncated to 255=0Ahid_get_item: Number of items truncated to 2= 55=0Ahid_get_item: Number of items truncated to 255=0Ahid_get_item: Number= of items truncated to 255=0Ahid_get_item: Number of items truncated to 25= 5=0Aums1: 2 buttons and [XY] coordinates ID=3D2=0Ahid_get_item: Number of = items truncated to 255=0Ahid_get_item: Number of items truncated to 255=0A= hid_get_item: Number of items truncated to 255=0Ahid_get_item: Number of i= tems truncated to 255=0Ahid_get_item: Number of items truncated to 255=0Ah= id_get_item: Number of items truncated to 255=0Ahid_get_item: Number of it= ems truncated to 255=0Aums_attach: sc=3D0xfffff80027409800, index=3D0=0Aum= s_attach: X 8/8 id=3D2=0Aums_attach: Y 16/8 id=3D2=0Aums_attach: Z = 0/0 id=3D0=0Aums_attach: T 0/0 id=3D0=0Aums_attach: W 0/0 id=3D0=0A= ums_attach: B1 0/1 id=3D2=0Aums_attach: B2 1/1 id=3D2=0Aums_attach: = sc=3D0xfffff80027409800, index=3D1=0Aums_attach: X 8/16 id=3D3=0Aums_at= tach: Y 24/16 id=3D3=0Aums_attach: Z 0/0 id=3D0=0Aums_attach: T 0= /0 id=3D0=0Aums_attach: W 0/0 id=3D0=0Aums_attach: B1 64/1 id=3D3=0A= ums_attach: size=3D36, id=3D2=0Arandom: harvesting attach, 8 bytes (4 bits= ) from ums1=0Aums_open:=0Aums_open:=0Aums_ioctl:=0Aums_ioctl:=0Aums_ioctl:= =0Aums_ioctl:=0Aums_ioctl:=0A=0AFull output from lsusb when the device is = plugged in during boot:=0ABus /dev/usb Device /dev/ugen0.5: ID 04f2:b474 C= hicony Electronics Co., Ltd=0ABus /dev/usb Device /dev/ugen0.4: ID 06cb:29= 70 Synaptics, Inc.=0ABus /dev/usb Device /dev/ugen0.3: ID 0bda:0129 Realte= k Semiconductor Corp.=0ABus /dev/usb Device /dev/ugen2.2: ID 8087:8000 =0A= Bus /dev/usb Device /dev/ugen1.2: ID 8087:8008 =0ABus /dev/usb Device /dev= /ugen0.2: ID 046d:c52b Logitech, Inc.=0ABus /dev/usb Device /dev/ugen2.1: = ID 0000:0000 =0ABus /dev/usb Device /dev/ugen1.1: ID 0000:0000 =0ABus /dev= /usb Device /dev/ugen0.1: ID 0000:0000=0A=