Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3662743pxk; Tue, 29 Sep 2020 03:02:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxipxDzyVlwPh8A7fulGPb139TvFfyO+XiKwJL6Oz3dNMmMtEVgBOp4+aNVUXMgU5AJBP5z X-Received: by 2002:a17:906:2301:: with SMTP id l1mr2931337eja.488.1601373760835; Tue, 29 Sep 2020 03:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601373760; cv=none; d=google.com; s=arc-20160816; b=nkWcPRIxoN11+zB515T5qUicrqqm3HFAkapQnSosmsqLWcEI28dU+D+WVyBFhSSBVe /BYYwK8gC+iP5P0c0q9xvXtZuacgcc47kLyjo8cnQzKU7v+lJ+VBaA+PBjCrL0ru11zz CLyn4ujo7x4hP5V9xMAgtL5u0odyCXYHKxQHaM2TC9TAdfP5he1A69glr+nx3pQAxC1f 0n/XLP/BGPZhzgGe/1fnFQroOpJbQTdgQpEo4PBXdyciuYpI2Dj86pgS2aHekeUMm9hE Szj0OCe7zeCAV4o/cviUo5s/4HllcHIWsFV7lnqgejfHcNYDzNFuwW5ULY0iTdcCYd26 +xcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=WA0yMmzyA19KdGBc4XfL7+euocv+YVM4+4ufHMI+Rww=; b=JbQp/ncAcb9x1RKDnbOICntC9TC6VJeQS9ZoDeudV4kl/zLLtWVgWhFcT/EjyGGqtp h8l3SdaE4Nr1VwUYdWuWhbkpp9S9yCqsCIkSI1KHg3hxVQwupCw7DNcbrgjby+CS0Q1F TxyVBR6k1Akr0k7tFgcGUKCnGL4MgCfbXLbM7TLpUVPP0M0XYtJ0XxurRbWtumU5IMyw UeFxOo5IIYBh2hO512n9aQ0xx30m2ZfFhjtTd4lALF5774JmuKcXZzTptsr+fqS51sz5 clX3ajFbCMJtH5PnSpOfNHhiDwhN1NbT7P97orRPHpwWKsUwnmiueWwDR2rSIDRb4AD+ emOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=KK+owFak; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si2740924edj.574.2020.09.29.03.02.17; Tue, 29 Sep 2020 03:02:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=KK+owFak; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727983AbgI2KAM (ORCPT + 99 others); Tue, 29 Sep 2020 06:00:12 -0400 Received: from mail-41103.protonmail.ch ([185.70.41.103]:26374 "EHLO mail-41103.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgI2KAJ (ORCPT ); Tue, 29 Sep 2020 06:00:09 -0400 Received: from mail-02.mail-europe.com (mail-02.mail-europe.com [51.89.119.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail-41103.protonmail.ch (Postfix) with ESMTPS id 8C92F200A0CF for ; Tue, 29 Sep 2020 10:00:07 +0000 (UTC) Authentication-Results: mail-41103.protonmail.ch; dkim=pass (1024-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="KK+owFak" Date: Tue, 29 Sep 2020 09:59:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1601373603; bh=WA0yMmzyA19KdGBc4XfL7+euocv+YVM4+4ufHMI+Rww=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=KK+owFakOjcmI2opGzX3SWkF8gsHgYUFDPVoXKphMPe5vQORUPGbYnm2On92zgxLd h5gckuGoRMB4XTuPLXcHD0IVU23xnnznnIDtjBDEVi7+ZL1k37B5C5bzjQiv3koDCb XMP7hmWy3LPCgI5vZgU8ETBN6j8FUahKwvXhf2TQ= To: Takashi Iwai From: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Cc: Hans de Goede , Andy Shevchenko , "platform-driver-x86@vger.kernel.org" , "linux-kernel@vger.kernel.org" Reply-To: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Subject: Re: Keyboard regression by intel-vbtn Message-ID: <-ICwwoAndae7T9i-Ymr7Nx9jnXVd7H54dnkMmCWUcApM1S0FUPplPWhg8DVXkphN0L4DoTy24robhTiBzMmSBKZRl-P8VEXIX5r6ttceA_8=@protonmail.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 2020. szeptember 29., kedd 11:29 keltez=C3=A9ssel, Takashi Iwai =C3=ADrta: > On Tue, 29 Sep 2020 11:21:27 +0200, > Hans de Goede wrote: > > > Hi, > > On 9/29/20 10:48 AM, Takashi Iwai wrote: > > > > > Hi Hans, > > > it seems that the recent update of intel-vtn broke the keyboard input > > > on some laptops with libinput: > > > https://bugzilla.opensuse.org/show_bug.cgi?id=3D1175599 > > > Blacklisting intel-vtn fixes the issue, so it's likely the falsely > > > reported tablet mode switch that leads libinput misbehaving. The > > > affected machines are Acer E5-511 and ASUS X756UX laptops, and they > > > shouldn't have the tablet mode at all, AFAIK. > > > Could you take a look? I guess it's the commit cfae58ed681c that > > > broke. The chassis type is Notebook on those, and this type should be > > > excluded as well as Laptop. > > > The dmidecode outputs and other info are found in the bugzilla above: > > > https://bugzilla.opensuse.org/attachment.cgi?id=3D841999 > > > https://bugzilla.opensuse.org/attachment.cgi?id=3D842039 > > > The one for ASUS is embedded in hwinfo outpt: > > > https://bugzilla.opensuse.org/attachment.cgi?id=3D841157 > > > > Ugh. What a mess, sorry about this. > > So as the commit message from commit cfae58ed681c > > ("platform/x86: intel-vbtn: Only blacklist SW_TABLET_MODE on the 9 / "L= aptop" chasis-type") > > explains the reason to NOT NOT report SW_TABLET_MODE on devices > > with a chassis type of 10 ("Notebook") is that at least > > some HP ... 360 ... models use that chassis type and do > > report a correct SW_TABLET_MODE through the intel-vbtn driver. > > The SW_TABLET_MODE on these actually got regressed by > > de9647efeaa9 ("platform/x86: intel-vbtn: Only activate tablet mode swit= ch on 2-in-1's") > > which first introduced the chassis-type check. > > And to complicate things further even though some > > HP ... 360 ... models use that chassis type and from the DSDT > > it seems that they do report a correct SW_TABLET_MODE through the > > intel-vbtn driver. In practice it is also broken on some > > HP ... 360 ... models, see: > > https://forum.manjaro.org/t/keyboard-and-touchpad-only-work-on-kernel-5= -6/22668 > > http://git.infradead.org/linux-platform-drivers-x86.git/commit/d8233468= 76a970522ff9e4d2b323c9b734dcc4de > > "platform/x86: intel-vbtn: Fix SW_TABLET_MODE always reporting 1 on the= HP Pavilion 11 x360" > > Oohoo, what a wonderful world :) > Splendid world, indeed. I'm wondering, however, why the incorrect state is reported? Is it similar to the linked issue on the Manjaro forum, where = a different bit is seemingly used to report the tablet mode state, or somethi= ng else? I'm also wondering why it was chosen that a *set* bit means that the tablet mode is *off*. All these problems could've been easily avoided... (given th= at I'm not missing anything obvious). > [...] Regards, Barnab=C3=A1s P=C5=91cze