From owner-freebsd-usb@freebsd.org Wed Aug 12 09:31:18 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 6899499E768 for ; Wed, 12 Aug 2015 09:31:18 +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 30209EF for ; Wed, 12 Aug 2015 09:31:18 +0000 (UTC) (envelope-from andersbo87@icloud.com) Received: from st13p21im-spool001.me.com ([17.164.152.254]) by st13p21im-asmtp001.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTP id <0NSY004PDQG3G910@st13p21im-asmtp001.me.com> for freebsd-usb@freebsd.org; Wed, 12 Aug 2015 09:31:17 +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_05:2015-08-11,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-1508120140 MIME-version: 1.0 Received: from localhost ([17.164.153.2]) by st13p21im-spool001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTP id <0NSY0060OQG3PJ10@st13p21im-spool001.mac.com> for freebsd-usb@freebsd.org; Wed, 12 Aug 2015 09:31:15 +0000 (GMT) To: freebsd-usb@freebsd.org From: Anders Bolt-Evensen Subject: Re: Touchpad/trackpad not working Date: Wed, 12 Aug 2015 09:31:14 +0000 (GMT) X-Mailer: iCloud MailClient15D.7d472b3 MailServer15E43.20056 X-Originating-IP: [85.164.50.179] Message-id: <08090d18-0301-4f60-b898-647e3d09bd46@me.com> In-reply-to: <55CAFC85.2030806@selasky.org> 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 09:31:18 -0000 =0A=0AOn Aug 12, 2015, at 09:56 AM, Hans Petter Selasky = wrote:=0A=0A> On 08/12/15 09:28, Anders Bolt-Evensen wrote:=0A>>=0A>>=0A>>= On Aug 11, 2015, at 05:03 PM, Hans Petter Selasky wrote= :=0A>>=0A>>> On 08/11/15 16:40, Anthony Jenkins via freebsd-usb wrote:=0A>= >>>=0A>>>> hid_is_mouse() is failing to tell that your Synaptics USB HID d= evice is=0A>>>> a mouse, but /only/ when there's no other USB (HID) device= on that USB=0A>>>> bus (usbus0). I suspect it has to do with the hid_get_= item() warnings=0A>>>> about chopping stuff off. I can't tell from the sou= rce code for=0A>>>> hid_get_item() (a 313-line function) why it's behaving= that way, or why=0A>>>> a totally different HID device (Logitech mouse) c= auses it to behave=0A>>>> differently for this HID device (Synaptics touch= pad). I've added=0A>>>> freebsd-usb@ to see if they know what's going on.=0A= >>>>=0A>>>> ajenkins@kubuntu-ajenkins:~/Downloads$ grep usbus0=0A>>>> dmes= g_with_external_usb.txt=0A>>>> usbus0: waiting for BIOS to give up control= =0A>>>> usbus0 on xhci0=0A>>>> random: harvesting attach, 8 bytes (4 bits)= from usbus0=0A>>>> usbus0: 5.0Gbps Super Speed USB v3.0=0A>>>> ugen0.1: <= 0x8086> at usbus0=0A>>>> uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00= /1.00, addr 1> on=0A>>>> usbus0=0A>>>> Root mount waiting for: usbus2 usbu= s1 usbus0=0A>>>> ugen0.2: at usbus0=0A>>>> ukbd0: on=0A>>>> usbus0=0A>>>> Root= mount waiting for: usbus0=0A>>>> ugen0.3: at usbus0=0A>>>> Root= mount waiting for: usbus0=0A>>>> ugen0.4: at usbus0=0A>>>= > ugen0.5: at usbus0=0A>>>> Root mount wait= ing for: usbus0=0A>>>> Root mount waiting for: usbus0=0A>>>> [snip]=0A>>>>= Root mount waiting for: usbus0=0A>>>> Root mount waiting for: usbus0=0A>>= >> ugen0.6: at usbus0 (disconnected)=0A>>>> ums0: on=0A>>>> usbus0=0A>>>> ums1:= >>> 3> o= n usbus0=0A>>>> uhid0: on=0A>>>> usbus0=0A>>>>=0A>>>> What possessed the laptop manufactu= rer to hang the Synaptics touchpad=0A>>>> device off a USB 3.0 controller = is beyond me... I have problems booting=0A>>>> FreeBSD off USB 3.0 mass st= orage devices.=0A>>>>=0A>>>=0A>>> Hi,=0A>>>=0A>>> Does your mouse only fai= l to work in X-org, or also the console?=0A>>>=0A>>> Run "usbdump -i usbus= X -f Y -s 65536 -vvv" to catch USB events for=0A>>> ugenX.Y. That might gi= ve some further clues.=0A>>>=0A>>> If using X.org, do you use hald or devd= backend?=0A>>>=0A>>> --HPS=0A>> =EF=BB=BF=0A>> It fails in both X-org and= console.=0A>> In X, recently I've only been using devd.=0A>> When trying = to use the command usbdump -i usbus0 -f 3 -s 65536 -vvv on=0A>> my touchpa= d (without any external usb receiver connected), nothing=0A>> happens at a= ll. No left-click, no right-click, nothing.=0A>> However, if I insert an e= xternal USB receiver and then reboot the=0A>> computer, the touchpad works= just fine in both console and in X-org.=0A>> If I now do the command abov= e, since I've connected the receiver and=0A>> done the reboot, I get the f= ollowing output (just note that during the=0A>> reboot, the address of the= touchpad was changed from ugen0.3 to ugen0.4):=0A>> https://www.dropbox.c= om/s/ktj757okcq61ljc/usbdump_i_usbusX_f_Y_s_65536_vvv.txt?dl=3D0=0A>> =0A= >>=0A>>=0A>> On Aug 11, 2015, at 05:46 PM, Zoran Kolic wro= te:=0A>>=0A>>> What do you have in device.hints?=0A>>>=0A>>> Zoran=0A>>>=0A= >=0A> When you don't see any activity, can you issue a reset of the touchp= ad:=0A>=0A> usbconfig -d X.Y reset=0A>=0A> while "usbdump" is running on t= he same device?=0A>=0A> --HPS=0A =0ASure. =EF=BB=BF=0Ausbconfig -d 0.3 res= et results in the following output from the usbdump command:=0A11:24:32.12= 1246 usbus0.3 SUBM-CTRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D8,IVAL=3D0= =0A frame[0] WRITE 8 bytes=0A 0000 00 09 00 00 00 00 00 00 -- -- -- -- -= - -- -- -- |........ |=0A flags 0x10 =0A status 0x= ca1a3 =0A11:24:32.121619 usbus0.3 DONE-C= TRL-EP=3D00000000,SPD=3DFULL,NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3D0=0A frame[0]= WRITE 8 bytes=0A flags 0x10 =0A status 0xca1a1 =0A11:24:32.499707 usbus0.3 SUBM-CTRL-EP=3D00000080,SPD=3DFULL,= NFR=3D2,SLEN=3D8,IVAL=3D0=0A frame[0] WRITE 8 bytes=0A 0000 80 06 00 01 0= 0 00 08 00 -- -- -- -- -- -- -- -- |........ |=0A frame[1] READ 8= bytes=0A flags 0x10 =0A status 0xea1a3 =0A11:24:32.501363 usbus0.3 DONE-CTRL-EP=3D00= 000080,SPD=3DFULL,NFR=3D2,SLEN=3D8,IVAL=3D0,ERR=3D0=0A frame[0] WRITE 8 by= tes=0A frame[1] READ 8 bytes=0A 0000 12 01 00 02 00 00 00 08 -- -- -- --= -- -- -- -- |........ |=0A flags 0x10 =0A status = 0xea1a1 =0A11:24:32.501467 usbus0.3 SUBM= -CTRL-EP=3D00000080,SPD=3DFULL,NFR=3D2,SLEN=3D8,IVAL=3D0=0A frame[0] WRITE= 8 bytes=0A 0000 80 06 00 01 00 00 12 00 -- -- -- -- -- -- -- -- |.....= ... |=0A frame[1] READ 18 bytes=0A flags 0x10 =0A s= tatus 0xca1a3 =0A11:24:32.502123 usbus0.= 3 DONE-CTRL-EP=3D00000080,SPD=3DFULL,NFR=3D2,SLEN=3D20,IVAL=3D0,ERR=3D0=0A= frame[0] WRITE 8 bytes=0A frame[1] READ 18 bytes=0A 0000 12 01 00 02 00 = 00 00 08 CB 06 70 29 08 00 01 02 |..........p)....|=0A 0010 00 01 -- --= -- -- -- -- -- -- -- -- -- -- -- -- |.. |=0A flags 0x10 =0A status 0xca1a1 =0A11:24:32.502231 u= sbus0.3 SUBM-CTRL-EP=3D00000080,SPD=3DFULL,NFR=3D2,SLEN=3D8,IVAL=3D0=0A fr= ame[0] WRITE 8 bytes=0A 0000 80 06 00 02 00 00 09 00 -- -- -- -- -- -- -= - -- |........ |=0A frame[1] READ 9 bytes=0A flags 0x10 =0A status 0xea1a3 =0A= 11:24:32.502630 usbus0.3 DONE-CTRL-EP=3D00000080,SPD=3DFULL,NFR=3D2,SLEN=3D= 12,IVAL=3D0,ERR=3D0=0A frame[0] WRITE 8 bytes=0A frame[1] READ 9 bytes=0A = 0000 09 02 29 00 01 01 00 A0 32 -- -- -- -- -- -- -- |..).....2 |= =0A flags 0x10 =0A status 0xea1a1 =0A11:24:32.502735 usbus0.3 SUBM-CTRL-EP=3D00000080,SPD=3DFULL,N= FR=3D2,SLEN=3D8,IVAL=3D0=0A frame[0] WRITE 8 bytes=0A 0000 80 06 00 02 00= 00 29 00 -- -- -- -- -- -- -- -- |......). |=0A frame[1] READ 41= bytes=0A flags 0x10 =0A status 0xca1a3 =0A11:24:32.503373 usbus0.3 DONE-CTRL-EP=3D00000080,SPD=3D= FULL,NFR=3D2,SLEN=3D44,IVAL=3D0,ERR=3D0=0A frame[0] WRITE 8 bytes=0A frame= [1] READ 41 bytes=0A 0000 09 02 29 00 01 01 00 A0 32 09 04 00 00 02 03 0= 0 |..).....2.......|=0A 0010 00 00 09 21 11 01 00 01 22 A1 01 07 05 81 = 03 40 |...!...."......@|=0A 0020 00 01 07 05 02 03 40 00 0A -- -- -- --= -- -- -- |......@.. |=0A flags 0x10 =0A status 0xc= a1a1 =0A11:24:32.503618 usbus0.3 SUBM-CTRL-EP=3D00000= 000,SPD=3DFULL,NFR=3D1,SLEN=3D8,IVAL=3D0=0A frame[0] WRITE 8 bytes=0A 0000= 00 09 01 00 00 00 00 00 -- -- -- -- -- -- -- -- |........ |=0A = flags 0x10 =0A status 0xea1a3 =0A11:24:32.604460 usbus0.3 DONE-CTRL-EP=3D00000000,SPD= =3DFULL,NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3D0=0A frame[0] WRITE 8 bytes=0A fla= gs 0x10 =0A status 0xea1a1 =0A11:24:32.604968 usbus0.3 SUBM-CTRL-EP=3D00000080,SPD=3DFULL,NFR=3D2,= SLEN=3D8,IVAL=3D0=0A frame[0] WRITE 8 bytes=0A 0000 81 06 00 22 00 00 A1 = 01 -- -- -- -- -- -- -- -- |...".... |=0A frame[1] READ 417 bytes= =0A flags 0x10 =0A status 0xca1a3 =0A11:24:32.627494 usbus0.3 DONE-CTRL-EP=3D00000080,SPD=3DFULL,N= FR=3D2,SLEN=3D420,IVAL=3D0,ERR=3D0=0A frame[0] WRITE 8 bytes=0A frame[1] R= EAD 417 bytes=0A 0000 05 01 09 02 A1 01 85 02 09 01 A1 00 05 09 19 01 |= ................|=0A 0010 29 02 15 00 25 01 75 01 95 02 81 02 95 06 81 0= 1 |)...%.u.........|=0A 0020 05 01 09 30 09 31 15 81 25 7F 75 08 95 02 = 81 06 |...0.1..%.u.....|=0A 0030 C0 C0 05 0D 09 05 A1 01 85 03 09 22 A1= 02 15 00 |..........."....|=0A 0040 25 01 09 47 09 42 95 02 75 01 81 0= 2 95 01 75 03 |%..G.B..u.....u.|=0A 0050 25 05 09 51 81 02 75 01 95 03 = 81 03 05 01 15 00 |%..Q..u.........|=0A 0060 26 D4 04 75 10 55 0E 65 11= 09 30 35 00 46 06 04 |&..u.U.e..05.F..|=0A 0070 95 01 81 02 46 EC 02 26= 82 03 09 31 81 02 05 0D |....F..&...1....|=0A 0080 C0 55 0C 66 01 10 4= 7 FF FF 00 00 27 FF FF 00 00 |.U.f..G....'....|=0A 0090 75 10 95 01 09 = 56 81 02 09 54 25 7F 95 01 75 08 |u....V...T%...u.|=0A 00A0 81 02 05 09= 09 01 25 01 75 01 95 01 81 02 95 07 |......%.u.......|=0A 00B0 81 03 0= 5 0D 85 08 09 55 09 59 75 04 95 02 25 0F |.......U.Yu...%.|=0A 00C0 B1 = 02 85 0D 09 60 75 01 95 01 15 00 25 01 B1 02 |.....`u.....%...|=0A 00D0 = 95 07 B1 03 85 07 06 00 FF 09 C5 15 00 26 FF 00 |.............&..|=0A 0= 0E0 75 08 96 00 01 B1 02 C0 05 0D 09 0E A1 01 85 04 |u...............|=0A= 00F0 09 22 A1 02 09 52 15 00 25 0A 75 08 95 01 B1 02 |."...R..%.u.....= |=0A 0100 C0 09 22 A1 00 85 06 09 57 09 58 75 01 95 02 25 |..".....W.Xu= ...%|=0A 0110 01 B1 02 95 06 B1 03 C0 C0 06 00 FF 09 01 A1 01 |........= ........|=0A 0120 85 09 09 02 15 00 26 FF 00 75 08 95 14 91 02 85 |....= ..&..u......|=0A 0130 0A 09 03 15 00 26 FF 00 75 08 95 14 91 02 85 0B |= .....&..u.......|=0A 0140 09 04 15 00 26 FF 00 75 08 95 23 81 02 85 0C 0= 9 |....&..u..#.....|=0A 0150 05 15 00 26 FF 00 75 08 95 23 81 02 85 0F = 09 06 |...&..u..#......|=0A 0160 15 00 26 FF 00 75 08 95 01 B1 02 85 0E= 09 07 15 |..&..u..........|=0A 0170 00 26 FF 00 75 08 95 01 B1 02 C0 0= 6 EE FF 09 01 |.&..u...........|=0A 0180 A1 01 85 EE 09 02 15 00 26 FF = 00 75 08 95 04 91 |........&..u....|=0A 0190 02 85 EF 09 02 15 00 26 FF= 00 75 08 95 10 B1 02 |.......&..u.....|=0A 01A0 C0 -- -- -- -- -- -- --= -- -- -- -- -- -- -- -- |. |=0A flags 0x10 =0A status 0xca1a1 =0A11:24:32.627762 usbus0.3 SUBM= -CTRL-EP=3D00000080,SPD=3DFULL,NFR=3D2,SLEN=3D8,IVAL=3D0=0A frame[0] WRITE= 8 bytes=0A 0000 81 06 00 22 00 00 A1 01 -- -- -- -- -- -- -- -- |...".= ... |=0A frame[1] READ 417 bytes=0A flags 0x10 =0A = status 0xea1a3 =0A11:24:32.= 650229 usbus0.3 DONE-CTRL-EP=3D00000080,SPD=3DFULL,NFR=3D2,SLEN=3D420,IVAL= =3D0,ERR=3D0=0A frame[0] WRITE 8 bytes=0A frame[1] READ 417 bytes=0A 0000 = 05 01 09 02 A1 01 85 02 09 01 A1 00 05 09 19 01 |................|=0A 0= 010 29 02 15 00 25 01 75 01 95 02 81 02 95 06 81 01 |)...%.u.........|=0A= 0020 05 01 09 30 09 31 15 81 25 7F 75 08 95 02 81 06 |...0.1..%.u.....= |=0A 0030 C0 C0 05 0D 09 05 A1 01 85 03 09 22 A1 02 15 00 |..........."= ....|=0A 0040 25 01 09 47 09 42 95 02 75 01 81 02 95 01 75 03 |%..G.B..= u.....u.|=0A 0050 25 05 09 51 81 02 75 01 95 03 81 03 05 01 15 00 |%..Q= ..u.........|=0A 0060 26 D4 04 75 10 55 0E 65 11 09 30 35 00 46 06 04 |= &..u.U.e..05.F..|=0A 0070 95 01 81 02 46 EC 02 26 82 03 09 31 81 02 05 0= D |....F..&...1....|=0A 0080 C0 55 0C 66 01 10 47 FF FF 00 00 27 FF FF = 00 00 |.U.f..G....'....|=0A 0090 75 10 95 01 09 56 81 02 09 54 25 7F 95= 01 75 08 |u....V...T%...u.|=0A 00A0 81 02 05 09 09 01 25 01 75 01 95 0= 1 81 02 95 07 |......%.u.......|=0A 00B0 81 03 05 0D 85 08 09 55 09 59 = 75 04 95 02 25 0F |.......U.Yu...%.|=0A 00C0 B1 02 85 0D 09 60 75 01 95= 01 15 00 25 01 B1 02 |.....`u.....%...|=0A 00D0 95 07 B1 03 85 07 06 00= FF 09 C5 15 00 26 FF 00 |.............&..|=0A 00E0 75 08 96 00 01 B1 0= 2 C0 05 0D 09 0E A1 01 85 04 |u...............|=0A 00F0 09 22 A1 02 09 = 52 15 00 25 0A 75 08 95 01 B1 02 |."...R..%.u.....|=0A 0100 C0 09 22 A1= 00 85 06 09 57 09 58 75 01 95 02 25 |..".....W.Xu...%|=0A 0110 01 B1 0= 2 95 06 B1 03 C0 C0 06 00 FF 09 01 A1 01 |................|=0A 0120 85 = 09 09 02 15 00 26 FF 00 75 08 95 14 91 02 85 |......&..u......|=0A 0130 = 0A 09 03 15 00 26 FF 00 75 08 95 14 91 02 85 0B |.....&..u.......|=0A 0= 140 09 04 15 00 26 FF 00 75 08 95 23 81 02 85 0C 09 |....&..u..#.....|=0A= 0150 05 15 00 26 FF 00 75 08 95 23 81 02 85 0F 09 06 |...&..u..#......= |=0A 0160 15 00 26 FF 00 75 08 95 01 B1 02 85 0E 09 07 15 |..&..u......= ....|=0A 0170 00 26 FF 00 75 08 95 01 B1 02 C0 06 EE FF 09 01 |.&..u...= ........|=0A 0180 A1 01 85 EE 09 02 15 00 26 FF 00 75 08 95 04 91 |....= ....&..u....|=0A 0190 02 85 EF 09 02 15 00 26 FF 00 75 08 95 10 B1 02 |= .......&..u.....|=0A 01A0 C0 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= - |. |=0A flags 0x10 =0A status 0xea1a1 =0A11:24:32.650336 usbus0.3 SUBM-CTRL-EP=3D= 00000000,SPD=3DFULL,NFR=3D1,SLEN=3D8,IVAL=3D0=0A frame[0] WRITE 8 bytes=0A= 0000 21 0A 00 00 00 00 00 00 -- -- -- -- -- -- -- -- |!....... = |=0A flags 0x10 =0A status 0xca1a3 =0A11:24:32.652030 usbus0.3 DONE-CTRL-EP=3D00000000,SPD=3DFULL,= NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3DSTALLED=0A frame[0] WRITE 8 bytes=0A flags= 0x10 =0A status 0x8a1a5 =0A=