From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?B?Um9ow6Fy?= Subject: Re: Dell Latitude E7470 touchpad status Date: Wed, 25 May 2016 09:39:49 +0200 Message-ID: <20160525073949.GY29844@pali> References: <87eg9j6zf7.fsf@smart-cactus.org> <23E0F704395E694FA4710C833FA087E50D40B8BF13@TPEX7ADC101.APAC.DELL.COM> <87bn45gr0e.fsf@smart-cactus.org> <20160517082309.GZ29844@pali> <877fet10a9.fsf@smart-cactus.org> <20160517131629.GE29844@pali> <23E0F704395E694FA4710C833FA087E50D40B8C592@TPEX7ADC101.APAC.DELL.COM> <20160517152239.GF29844@pali> <23E0F704395E694FA4710C833FA087E50D40D0723A@TPEX7ADC101.APAC.DELL.COM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-wm0-f52.google.com ([74.125.82.52]:36723 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752085AbcEYHjx (ORCPT ); Wed, 25 May 2016 03:39:53 -0400 Received: by mail-wm0-f52.google.com with SMTP id n129so166465469wmn.1 for ; Wed, 25 May 2016 00:39:52 -0700 (PDT) Content-Disposition: inline In-Reply-To: <23E0F704395E694FA4710C833FA087E50D40D0723A@TPEX7ADC101.APAC.DELL.COM> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Allen_Hung@Dell.com, ben@smart-cactus.org Cc: Mario_Limonciello@Dell.com, linux-input@vger.kernel.org On Wednesday 25 May 2016 12:38:15 Allen_Hung@Dell.com wrote: > Dell - Internal Use - Confidential=20 >=20 > On 05/17/2016 11:22 PM, Pali Roh=C3=A1r wrote: > > On Tuesday 17 May 2016 22:46:31 Allen_Hung@Dell.com wrote: > >> Dell - Internal Use - Confidential=20 > >> > >> On 05/17/2016 09:16 PM, Pali Roh=C3=A1r wrote: > >>> On Tuesday 17 May 2016 11:50:06 Ben Gamari wrote: > >>>> Pali Roh=C3=A1r writes: > >>>> > >>>>> Hi Ben! > >>>>> > >>>>> Maybe it could help you, look at my email sent to linux-input M= L year > >>>>> ago: http://thread.gmane.org/gmane.linux.kernel.input/41210 > >>>> Hi Pali! > >>>> > >>>> Thanks, this looks great (assuming this is in fact the protocol = spoken > >>>> by the E7470 hardware; perhaps Allen could confirm this?). I'll = have a > >>>> go at rebasing this sometime soon, although it looks like this m= ay take > >>>> a fair bit of work as the patch is of the usual... questionable = quality > >>>> that you'd expect from a hardware vendor and on top of that the = driver > >>>> itself seems to have evolved significantly. > >>> First you need to identify if your touchpad is ALPS or not. If no= t then > >>> work on rebasing is useless. > >>> > >>> To identify your touchpad there are two ways: > >>> > >>> 1) Disassemble laptop and look what is under palmrest/keyboard. L= atitude > >>> laptops used to have good documentation how to do it (on official= dell > >>> site) and older Exx40 series is not hard to detect it... > >>> > >>> 2) Look at ALPS detection code. Basically all (known) ALPS touchp= ad > >>> response to some PS/2 sequence with specific answer. So you can c= ompile > >>> psmouse.ko/alps.c in debug mode and look if it fit detection or n= ot. > >>> > >>> I suggest you to do this first investigation step. If touchpad is= ALPS > >>> or not. I read that some Dell laptops uses synaptics touchpads, s= o there > >>> is non zero chance that touchpad could not be ALPS. > >>> > >>>>> Also try to look at dell drivers page, there could be linux pac= kage for > >>>>> your laptop with drivers. Lot of them used to be in dkms format > >>>>> (upstream source code with dell changes). > >>>>> > >>>> I've been unable to find a support package for my machine on the= web > >>>> site. However, I'm also in touch with Dell through the usual sup= port > >>>> channel so perhaps they'll be able to provide a more up-to-date = code > >>>> drop. > >>> IIRC All (new) Latitude laptops can be configured with Ubuntu and= in > >>> this case they come with preinstalled Ubuntu with that support pa= ckage. > >>> > >>> So for sure contact Dell support and ask for it! You can also see= Ubuntu > >>> as supported system in PDF material about those Latitudes... > >>> > >>>>> ALPS code from Dell were open source, it was just hard to find = it and > >>>>> compile it on other then one kernel version. And harder to gene= rate > >>>>> patch (like I did in above email)... > >>>>> > >>>> Right, as I said it looks like rebasing this code drop onto a re= cent > >>>> kernel might require quite some effort. > >>> Yes, it would not be simple. Plus for including into mainline ker= nel > >>> needs lot of cleaning (see that email thread). > >>> > >>>> I do wish that Dell would apply more pressure on their input dev= ice > >>>> vendors to take upstream support (or open protocol documentation= ) > >>>> seriously. It's very frustrating that we need to go through this= same > >>>> process with every hardware iteration. > >>> If you will be 100% sure that touchpad is ALPS, I could contact A= LPS > >>> people. They helped me a lot with fixing ALPS touchpad support fo= r my > >>> E6440... > >>> > >>>> Thanks again for the reference, Pali! > >>>> > >>>> Cheers, > >>>> > >>>> - Ben > >>>> > >> I am confirming with Alps team for what protocol version the E7470 > > Great! > > > >> device is speaking. In fact, they sent me the alps.c which support= up > >> to V8 and they said it's their latest one. > > Currently alps.c in mainline kernel supports protocol versions V1 t= o V8. > > So V9 is missing. > > > >> It seems the driver is older than the patch provided in Pali's lin= k > >> (that support up to V9) so I didn't put it here. > > That patch which I sent was generated from Ubuntu support package > > provided by Dell drivers download package. So somebody in Dell shou= ld > > know more about it... > > > >> Will get the answer back to you once they confirm with me. > >> > >> - Allen > > Ok, thanks! > > >=20 > I got responds from Alps and they confirmed that the Alps devices in = Dell systems are speaking in protocol V8. The devices that speak in pro= tocol V9 are using different ASIC hardware and they are not used in Del= l systems.. >=20 > - Allen Hi Allen, thank you for confirmation. Ben, V8 protocol is supported by linux kernel since version 4.1. Do you have needed version? If yes and your touchpad does not work, please compile psmouse.ko in debug mode and send us dmesg output. Maybe there can be something interesting... --=20 Pali Roh=C3=A1r pali.rohar@gmail.com -- 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