From owner-freebsd-usb@freebsd.org Wed Aug 12 07:28:50 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 B0D7C99F0B2 for ; Wed, 12 Aug 2015 07:28:50 +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 8256DFC for ; Wed, 12 Aug 2015 07:28:50 +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 <0NSY00H37KS1JP20@st13p21im-asmtp001.me.com> for freebsd-usb@freebsd.org; Wed, 12 Aug 2015 07:28:49 +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-1508120121 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 <0NSY00AIEKS1GN60@st13p21im-spool002.mac.com> for freebsd-usb@freebsd.org; Wed, 12 Aug 2015 07:28:49 +0000 (GMT) To: freebsd-usb@freebsd.org From: Anders Bolt-Evensen Subject: Re: Touchpad/trackpad not working Date: Wed, 12 Aug 2015 07:28:48 +0000 (GMT) X-Mailer: iCloud MailClient15D.7d472b3 MailServer15E43.20056 X-Originating-IP: [85.164.50.179] Message-id: <2e74f58a-8e60-423a-b029-82bd6210dad7@me.com> In-reply-to: <55CA0F1C.6080205@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 07:28:50 -0000 =0A=0AOn 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 devi= ce is=0A>> a mouse, but /only/ when there's no other USB (HID) device on t= hat 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 source 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) causes it to b= ehave=0A>> differently for this HID device (Synaptics touchpad). I've adde= d=0A>> freebsd-usb@ to see if they know what's going on.=0A>>=0A>> ajenkin= s@kubuntu-ajenkins:~/Downloads$ grep usbus0=0A>> dmesg_with_external_usb.t= xt=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: <0= x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on=0A>> usbus0=0A>>= Root mount waiting for: usbus2 usbus1 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 waiting for: usbus0=0A>> Root mount waiting for: usbus0=0A>>= [snip]=0A>> Root mount waiting for: usbus0=0A>> Root mount waiting for: u= sbus0=0A>> ugen0.6: at usbus0 (disconnected)=0A>> ums0: on=0A>> usbus0=0A>> ums= 1: > 3> o= n usbus0=0A>> uhid0: on=0A>> usbus0=0A>>=0A>> What possessed the laptop manufacturer to h= ang 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 storage device= s.=0A>>=0A>=0A> Hi,=0A>=0A> Does your mouse only fail to work in X-org, or= also the console?=0A>=0A> Run "usbdump -i usbusX -f Y -s 65536 -vvv" to c= atch USB events for=0A> ugenX.Y. That might give some further clues.=0A>=0A= > If using X.org, do you use hald or devd backend?=0A>=0A> --HPS=0A =EF=BB= =BF=0AIt fails in both X-org and console.=0AIn X, recently I've only been = using devd.=0AWhen trying to use the command usbdump -i usbus0 -f 3 -s 655= 36 -vvv on my touchpad (without any external usb receiver connected), noth= ing happens at all. No left-click, no right-click, nothing. =0A=0AHowever,= if I insert an external USB receiver and then reboot the computer, the to= uchpad works just fine in both console and in X-org.=0AIf I now do the com= mand above, since I've connected the receiver and done the reboot, I get t= he following output (just note that during the reboot, the address of the = touchpad was changed from ugen0.3 to ugen0.4):=0Ahttps://www.dropbox.com/s= /ktj757okcq61ljc/usbdump_i_usbusX_f_Y_s_65536_vvv.txt?dl=3D0=0A=0AOn Aug 1= 1, 2015, at 05:46 PM, Zoran Kolic wrote:=0A=0A> What do yo= u have in device.hints?=0A>=0A> Zoran=0A>=0A =0A/boot/device.hints has the= following contents:=0Ahint.fdc.0.at=3D"isa"=0Ahint.fdc.0.port=3D"0x3F0"=0A= hint.fdc.0.irq=3D"6"=0Ahint.fdc.0.drq=3D"2"=0Ahint.fd.0.at=3D"fdc0"=0Ahint= .fd.0.drive=3D"0"=0Ahint.fd.1.at=3D"fdc0"=0Ahint.fd.1.drive=3D"1"=0Ahint.a= tkbdc.0.at=3D"isa"=0Ahint.atkbdc.0.port=3D"0x060"=0Ahint.atkbd.0.at=3D"atk= bdc"=0Ahint.atkbd.0.irq=3D"1"=0Ahint.psm.0.at=3D"atkbdc"=0Ahint.psm.0.irq=3D= "12"=0Ahint.sc.0.at=3D"isa"=0Ahint.sc.0.flags=3D"0x100"=0Ahint.uart.0.at=3D= "isa"=0Ahint.uart.0.port=3D"0x3F8"=0Ahint.uart.0.flags=3D"0x10"=0Ahint.uar= t.0.irq=3D"4"=0Ahint.uart.1.at=3D"isa"=0Ahint.uart.1.port=3D"0x2F8"=0Ahint= .uart.1.irq=3D"3"=0Ahint.ppc.0.at=3D"isa"=0Ahint.ppc.0.irq=3D"7"=0Ahint.at= rtc.0.at=3D"isa"=0Ahint.atrtc.0.port=3D"0x70"=0Ahint.atrtc.0.irq=3D"8"=0Ah= int.attimer.0.at=3D"isa"=0Ahint.attimer.0.port=3D"0x40"=0Ahint.attimer.0.i= rq=3D"0"=0Ahint.wbwd.0.at=3D"isa"=0Ahint.acpi_throttle.0.disabled=3D"1"=0A= hint.p4tcc.0.disabled=3D"1"=