From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Vadim Klishko" Subject: Re: ALPS v7 trackpad passthrough to Thinkpad trackpoint Date: Thu, 13 Aug 2015 18:25:16 -0600 Message-ID: <7A4B7432A86148988B9878D8EB50F969@cirque.local> References: <20150807132639.GB21627@pali> <20150807141214.GD21627@pali> <20150813110317.GC20040@pali> <20150813224839.GC15693@dtor-ws> <17D6F4B6F11B44BBB1A2C8EB95A9CF84@cirque.local> <20150814001833.GD15693@dtor-ws> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from p01c11o149.mxlogic.net ([208.65.144.72]:50962 "EHLO p01c11o149.mxlogic.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930AbbHNAZU convert rfc822-to-8bit (ORCPT ); Thu, 13 Aug 2015 20:25:20 -0400 Received: by igfj19 with SMTP id j19so2451135igf.0 for ; Thu, 13 Aug 2015 17:25:18 -0700 (PDT) Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: =?UTF-8?Q?Pali_Roh=EF=BF=BDr?= , Ari Entlich , linux-input@vger.kernel.org, Masaki Ota <012nexus@gmail.com>, Tommy Will , Yunkang Tang , Qiting Chen , Qiting Chen > On Thu, Aug 13, 2015 at 06:11:22PM -0600, Vadim Klishko wrote: >> I am not sure I understand what details you are looking for, but as >> far as I know, the only way a command sent to an Alps device from th= e >> host could reach the trackstick is when the touchpad chip is in >> pass-thru mode. >=20 > We are looking for information on how to detect whether a device > supports pass-through mode and how to activate it. IOW we are looking > for the protocol specs for the PS/2 flavor used by ALPS devices. So f= ar > we had to deduce many of the details itself and it would be great if > manufacturer would share the information with us sol that we could > improve support for the devices in Linux kernel. >=20 OK, got it. It may take some time. >>=20 >>=20 >> ----- Original Message -----=20 >> From: "Dmitry Torokhov" >> To: "Pali Roh=C3=A1r" >> Cc: "Ari Entlich" ; ; "Masaki Ota" <012nexus@gmail.com>; "Tommy Will" ; "Yunkang Tang" ; "Qiting Chen" ; "Qiting Chen" ; >> Sent: Thursday, August 13, 2015 4:48 PM >> Subject: Re: ALPS v7 trackpad passthrough to Thinkpad trackpoint >>=20 >>=20 >> > On Thu, Aug 13, 2015 at 01:03:17PM +0200, Pali Roh=C3=A1r wrote: >> >> On Friday 07 August 2015 12:35:33 Ari Entlich wrote: >> >> > On Fri, Aug 7, 2015 at 10:12 AM, Pali Roh=C3=A1r wrote: >> >> > > For some old ALPS devices which use V1 and V2 protocols (with= flag >> >> > > ALPS_PASS) there is something like that. On that devices touc= hpad is >> >> > > behind trackpoint HW. But you cannot wait for data or poll fo= r both >> >> > > devices at same time -- you need to choose if tou want to tal= k directly >> >> > > to touchpad (via passthrough mode) or just to trackpoint. I t= hink >> >> > > because of this limitation ALPS driver implement all logic in= one >> >> > > driver... >> >> > > >> >> > > Above was for old ALPS devices. New ALPS devices with V3 or V= 5 protocols >> >> > > have trackpoint behind touchpad, so normally OS communicate w= ith >> >> > > touchpad (and not with trackstick like before). But here touc= hpad sends >> >> > > data for both touchpad and trackstick events and so OS does n= ot have >> >> > > normal access to "hidden" trackstick. >> >> > > >> >> > > There is a way "jump" into passthrough mode and talk directly= to >> >> > > trackpoint. But it is used only for configuring trackstick an= d currently >> >> > > it is used to configure trackstick so it send data (via touch= pad) in >> >> > > format which is supported by our ALPS driver. >> >> > > >> >> > > On the other hand, synaptics driver and devices support full >> >> > > "encapsulation" or how can I call it of serio PS/2 device and= in this >> >> > > case you can use full set of PS/2 commands directly with trac= kstick >> >> > > (behind synaptics touchpad). ALPS devices do not support some= thing like >> >> > > that. >> >> >=20 >> >> > It looks to me like the Synaptics passthrough is implemented pr= imarily >> >> > via the ability to write directly to the trackpoint. Events com= ing >> >> > from the trackpoint are implemented similarly to the ALPS drive= r - by >> >> > redirecting trackpoint events to the second device which the dr= iver >> >> > creates for the trackpoint. >> >> >=20 >> >>=20 >> >> No, passthrough for ALPS and Synaptics differ. Synaptics driver e= xports >> >> full serio PS/2 bus on which can be attached psmouse.ko driver wi= th full >> >> mouse detection (or any other serio driver) and so there can be f= ull >> >> TPPS/2 trackpoint.c protocol driver. >> >>=20 >> >> ALPS allows us for *some* protocol version passthrough data direc= tly to >> >> touchpad (or trackpoint) device. There is no support to exporting= full >> >> serio bus with PS/2 access to it (like for Synaptics hardware). >> >=20 >> > At least we do not know how to detect and activate it even if it e= xists. >> >=20 >> > Let's add some ALPS people to the thread: maybe they could share s= ome >> > details on accessing trackpoints behind the touchpads with us. >> >=20 >> > Thanks. >> >=20 >> > --=20 >> > Dmitry >>=20 >> --=20 >> This message and any attachment are confidential. It may also be pri= vileged=20 >> or otherwise protected by work product immunity or other legal rules= =2E If=20 >> you have received it by mistake, please let us know by e-mail reply = and=20 >> delete it from your system, you may not copy this message or disclos= e its=20 >> contents to anyone. >> Cirque Corporation >=20 > --=20 > Dmitry --=20 This message and any attachment are confidential. It may also be privil= eged=20 or otherwise protected by work product immunity or other legal rules. I= f=20 you have received it by mistake, please let us know by e-mail reply and= =20 delete it from your system, you may not copy this message or disclose i= ts=20 contents to anyone. Cirque Corporation -- To unsubscribe from this list: send the line "unsubscribe linux-input" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html