From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 521BFC4338F for ; Fri, 23 Jul 2021 07:47:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34FDC60EE6 for ; Fri, 23 Jul 2021 07:47:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233298AbhGWHGc (ORCPT ); Fri, 23 Jul 2021 03:06:32 -0400 Received: from outgoing-yousee-3.gl-mut-gbl.as8677.net ([193.201.76.63]:9806 "EHLO outgoing-yousee-3.gl-mut-gbl.as8677.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233291AbhGWHGb (ORCPT ); Fri, 23 Jul 2021 03:06:31 -0400 Received: from filter.yousee.as8677.net (localhost [127.0.0.1]) by mwumf0305.yousee.as8677.net (SMTP Server) with ESMTP id 4GWLxh1cfBzMpB for ; Fri, 23 Jul 2021 09:47:04 +0200 (CEST) X-mail-filterd: {"version":"1.2.1","queueID":"4GWLxh1GM2zMp8","contextId":"acc1f6d1-a1e7-47d1-87f2-ecbd8f00f5a5"} DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=webspeed.dk; s=sela; t=1627026424; h=Subject:From:To:Cc:Date:In-Reply-To:References; bh=QTzDe3Amfx QV4VexWECwpDRMrZ6BhQnfnG6wkG7fVHY=; b=uN4+8NlDtgNadAL2yWvQgZfDUa8na93pXjR3GG hEz6eR0spKg9rNJCCyHMtsZ8+q7eWtcQRKmmPd4EcMMT5F+kL7eGBFO23p5OzNHStOWKleyCO0LI 49IfqA2dmfI2kgufkxNLj75QrP0se+DbcEmKDFe09jX9h+rQkRRqtlJNB1vqt+tFk4Cqjs6GWpYR gnkqlmtZV9bMVr7YpRWbx+uDFoTsp3mu3FgE+x1PXBB8QwOYBgcvlUaEpNUvScDxth8dFwNuCDhE kDVDFEsNrg96lHuJzvf95v1BT/AwyAvpy00brvx5re73GEXRly81Dz+KRGSWTwQHbLtu9Ju7hp8g == Received: from outgoing-yousee-3.gl-mut-gbl.as8677.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mwumf0305.yousee.as8677.net (SMTP Server) with ESMTPS id 4GWLxh1GM2zMp8 for ; Fri, 23 Jul 2021 09:47:04 +0200 (CEST) X-mail-filterd: {"version":"1.2.1","queueID":"4GWLxg63rkzMp5","contextId":"9f6c8b0a-420e-4425-bffa-9e33e48a83de"} X-yse-mailing: LEGIT X-yse-spamrating: 36 X-yse-spam: not-spam X-yse-spamcause: OK, (-100)(0000)gggruggvucftvghtrhhoucdtuddrgedvtddrfeejgdduudelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvfffvedpggftfgfpufgfuefuveftkfeugfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkffuhffvffgjfhgtfggggfesthekredttderjeenucfhrhhomhepjfgrnhhsucfutghhuhhlthiiuceohhgrnhhsrdhstghhuhhlthiiseifvggsshhpvggvugdrughkqeenucggtffrrghtthgvrhhnpeeludeiiedtjeegffefvdeftdefieevjeegvdeifeetkeekueffgeetteduffetheenucffohhmrghinhepkhgvrhhnvghlrdhorhhgpdhfrhgvvgguvghskhhtohhprdhorhhgnecukfhppedvrddutdegrdduudeirddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddvfeegngdpihhnvghtpedvrddutdegrdduudeirddukeegpdhmrghilhhfrhhomhephhgrnhhsrdhstghhuhhlthiiseifvggsshhpvggvugdrughkpdhrtghpthhtohepughmihhtrhihrdhtohhrohhkhhhovhesghhmrghilhdrtghomhdprhgtphhtthhopehlihhnuhigqdhinhhpuhhtsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepsggvnhhjrghmihhnrdhtihhsshhoihhrvghssehrvgguhhgrthdrtghomh Received: from [192.168.1.234] (2-104-116-184-cable.dk.customer.tdc.net [2.104.116.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: hans.schultz@webspeed.dk) by mwumf0305.yousee.as8677.net (SMTP Server) with ESMTPSA id 4GWLxg63rkzMp5; Fri, 23 Jul 2021 09:47:03 +0200 (CEST) Authentication-Results: yousee.as8677.net; auth=pass (PLAIN) smtp.auth=hans.schultz@webspeed.dk Message-ID: <2a49d7204a4b3a9f9f0f9bc060af70d8555dc004.camel@webspeed.dk> Subject: Re: Elantech touchpad not working on mainline kernels From: Hans Schultz To: Dmitry Torokhov Cc: "linux-input@vger.kernel.org" , Benjamin Tissoires Date: Fri, 23 Jul 2021 09:45:14 +0200 In-Reply-To: References: <578761643e8a040fc1952ed1701371be15cb267a.camel@webspeed.dk> <8ea9fed2bbe1c1e23afa3103177511c9501ee580.camel@webspeed.dk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Wed, 2021-07-21 at 13:16 -0700, Dmitry Torokhov wrote: > On Wed, Jul 21, 2021 at 12:53 PM Hans Schultz < > hans.schultz@webspeed.dk> wrote: > > > > On Wed, 2021-07-21 at 21:31 +0200, Hans Schultz wrote: > > > Hi Dmitry, > > > > > > On Wed, 2021-07-21 at 12:14 -0700, Dmitry Torokhov wrote: > > > > On Wed, Jul 21, 2021 at 11:09 AM Hans Schultz < > > > > hans.schultz@webspeed.dk> wrote: > > > > > > > > > > On Wed, 2021-07-21 at 10:48 -0700, Dmitry Torokhov wrote: > > > > > > Hi Hans, > > > > > > > > > > > > On Sun, May 30, 2021 at 2:12 AM Hans Schultz < > > > > > > hans.schultz@webspeed.dk> wrote: > > > > > > > > > > > > > > Hello, > > > > > > > I have a problem getting my Elantech touchpad to work > > > > > > > with > > > > > > > the > > > > > > > mainline > > > > > > > kernels, and I need some assistance with the code to > > > > > > > resolve > > > > > > > the > > > > > > > problem. > > > > > > > The kernels that have tried are 5.9.11 and 5.11.11. > > > > > > > > > > > > > > With boot parameters i8042.notimeout i8042.nomux, the > > > > > > > touchpad is > > > > > > > detected but does not work. There is absolutely no > > > > > > > response > > > > > > > from > > > > > > > it > > > > > > > with any hid modules loaded. > > > > > > > > > > > > > > It is reported and seen working on a Lubuntu distro > > > > > > > (bionic > > > > > > > kernel) > > > > > > > when inserting the i2c_hid module. The insertion of the > > > > > > > i2c_hid > > > > > > > module > > > > > > > pulls in the hid_multitouch module when it works, no boot > > > > > > > parameters > > > > > > > necessary. > > > > > > > In the case where it does not work, insering the i2c_hid > > > > > > > module > > > > > > > does > > > > > > > not pull in the hid_multitouch module. > > > > > > > > > > > > > > I have the bionic kernel code, but I have not as of yet > > > > > > > been > > > > > > > able > > > > > > > to > > > > > > > detect what makes it work in contrast to the kernel.org > > > > > > > kernels. > > > > > > > > > > > > > > This I think should lead to a kernel patch. > > > > > > > > > > > > There is not much to go on with. What is the hardware, your > > > > > > kernel > > > > > > .config, dmesg from unsuccessful boot? If you have logs > > > > > > from > > > > > > the > > > > > > working kernel that would help too. > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > The best info I have on the hardware is from Xorg log with > > > > > the > > > > > working > > > > > Lubuntu kernel: > > > > > [ 130.980] (II) Loading > > > > > /usr/lib/xorg/modules/input/synaptics_drv.so > > > > > [ 130.982] (II) Module synaptics: vendor="X.Org Foundation" > > > > > [ 130.982] (II) Using input driver 'synaptics' for '0X45 0X4C > > > > > 0X41 > > > > > 0:00 > > > > > 04F3:308C Touchpad' > > > > > > > > > > I might be able to get the kernel messages when inserting the > > > > > working > > > > > module, but I think it will not tell much more. > > > > > > > > OK, if you say so. Then the only suggestion I have is to verify > > > > that > > > > your kernel config enables all necessary options for your > > > > hardware. > > > > I'd double check if you have Designware I2C controller enabled, > > > > ACPI > > > > LPSS, etc. > > > > > > > > > To me it is clearly a code issue as the working kernel pulls > > > > > in > > > > > hid_multitouch when inserting i2c_hid, while the non-working > > > > > does > > > > > not. > > > > > > > > > > All kernels I have tried up to now from kernel.org do not > > > > > work. > > > > > The > > > > > latest being 5.13.4. > > > > > > > > Thanks. > > > > > > > > > > I have a thread with all the dmesg info for both the working and > > > non- > > > working cases here : > > > https://gitlab.freedesktop.org/libinput/libinput/-/issues/544 > > > > > > Benjamin has also asked for the acpidump info, which is there. > > > (funny > > > as the responses to my problem come at the same time after a long > > > time. > > > :-) ) > > > > > > I will check my .config... > > > > > > Thanks, > > > Hans > > > > Here are my I2C kernel settings. I only added what I could see as > > with > > Intel hw, so no Designware! > > However if you consult the dmesg from the working kernel you will > observe: > > [   79.964148] input: 0X45 0X4C 0X41 0:00 04F3:308C Mouse as > /devices/pci0000:00/0000:00:15.3/i2c_designware.1/i2c-8/i2c-0X45 0X4C > 0X41 0:00/0018:04F3:308C.0002/input/input24 > [   79.964222] input: 0X45 0X4C 0X41 0:00 04F3:308C Touchpad as > /devices/pci0000:00/0000:00:15.3/i2c_designware.1/i2c-8/i2c-0X45 0X4C > 0X41 0:00/0018:04F3:308C.0002/input/input26 > > so it clearly uses designware-compatible IP block even though it is > an > Intel system. > > Can you try grabbing config from the working kernel and use it if you > want to compile your own? There are a lot of hardware dependencies in > modern systems that may not be immediately obvious. > > Thanks. > I found some more designware under PWM (pulse width modulation), when checking for LPSS. I also see some hotplug ACPI that I have not enabled, is there other configurations that must be considered?