Received: by 10.223.164.202 with SMTP id h10csp949932wrb; Thu, 9 Nov 2017 17:59:40 -0800 (PST) X-Google-Smtp-Source: ABhQp+RRrcDUe2xQGo6M43ZBtMCfIUulGerw9gZvJjty350JOPekOzYM/7Wj4Vtd+0Wi7YfGXgCe X-Received: by 10.101.64.140 with SMTP id t12mr2446439pgp.305.1510279180448; Thu, 09 Nov 2017 17:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510279180; cv=none; d=google.com; s=arc-20160816; b=TYxFEUXWyZkvmknQOJ9tqzfKS3BgcYwN1kbkVXcaVmZSkYTgU3wcOJz8CN9OjJFdHm A2qU/F5BGs2YY0NXuDCIFUQu0tKe1vAFNvAssbBoelvbIgMqN8rvhPXhHEySPCApQ9EN 5py0GGYKUtjho3sQfg9Zn+ebrgtAG3ahvZeSAuMzXRi+yHwLd+1uoGEYUvdyJr41loFO Q0FEC3AmI1Pa/Kv6tx/H0orsy4GsfL7ypSFBF74LNbxUhUzueu0KwCNPVqc+Y9mX8GaH pH06/8ZJYeSfuZKuC7juu3ViOI+9e7R2fCuOC77lFckLvMXOmoJJhusBEp09bz0dZCad A1ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=V/QRhacoKj3cJyMEz/NHXgTI+AlGv2wVjKeWcl1Ipao=; b=Rs35gsfwtWcPLASf7J5VwDhtEt7jfvLBC3vYWzzrw+ljAlPcogEgnwNx4x0IYUBCaV eK2Gx8Bq23J8euAcR+9MoIhhnKZHG6yjLfJpd6+Rl9S0mT0F5f0Vl6xmCr2Fz8/QuBkj bCpuGfws5B/bX+wb8/aJHv0TPd/voqnABNp2tM0KzDxmfO1pkAQd094ZZzSdW4CugW/a xwyH/lvcxZHJaFGH4JsTz5OnI7uM1qDU8qshLDDEH0OKYSni8iOhn1mqseChZ93W7/DJ c8BDOH+D37NJOnQbCaAHhPYHGecIRSTGpWetGkr80uF6FXnLhUZBVxbLmjJ23kasDHhi MHAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si7043048pgq.427.2017.11.09.17.59.28; Thu, 09 Nov 2017 17:59:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755608AbdKJB6s (ORCPT + 83 others); Thu, 9 Nov 2017 20:58:48 -0500 Received: from mail-out-2.itc.rwth-aachen.de ([134.130.5.47]:17935 "EHLO mail-out-2.itc.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755440AbdKJB6r (ORCPT ); Thu, 9 Nov 2017 20:58:47 -0500 X-IronPort-AV: E=Sophos;i="5.44,371,1505772000"; d="asc'?scan'208";a="22996315" Received: from rwthex-w2-a.rwth-ad.de ([134.130.26.158]) by mail-in-2.itc.rwth-aachen.de with ESMTP; 10 Nov 2017 02:58:45 +0100 Received: from pebbles.localnet (78.49.52.200) by rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.26; Fri, 10 Nov 2017 02:58:44 +0100 From: Stefan =?ISO-8859-1?Q?Br=FCns?= To: Darren Hart CC: , , AceLan Kao , Andy Shevchenko , Subject: Re: [PATCH v2 2/5] platform/x86: intel-vbtn: Support separate press/release events Date: Fri, 10 Nov 2017 02:58:36 +0100 Message-ID: <1637751.MqEGyCB5Qi@pebbles> In-Reply-To: <20171110013417.GB9783@fury> References: <20171109224436.16472-1-stefan.bruens@rwth-aachen.de> <024c7574-12f2-4708-9f90-1192856df401@rwthex-w2-a.rwth-ad.de> <20171110013417.GB9783@fury> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2629176.D3vXaZ9z9b"; micalg=pgp-sha1; protocol="application/pgp-signature" X-Originating-IP: [78.49.52.200] X-ClientProxiedBy: rwthex-w3-b.rwth-ad.de (2002:8682:1aa3::8682:1aa3) To rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart2629176.D3vXaZ9z9b Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Friday, November 10, 2017 2:34:17 AM CET Darren Hart wrote: > On Thu, Nov 09, 2017 at 11:44:33PM +0100, Stefan Br=FCns wrote: > > Currently all key events use autorelease, but this forbids use as a > > modifier key. > >=20 > > As all event codes come in even/odd pairs, we can lookup the key type > > (KE_KEY/KE_IGNORE) for the key up event corresponding to the currently > > handled key down event. If the key up is ignored, we keep setting the > > autorelease flag for the key down. >=20 > What is the use-case for using these buttons as modifiers? I'm picturing = one > of these devices in tablet mode, with a physical Windows button. What oth= er > action does a user want to modify by holding the Windows button down? Or = is > there another scenario we're trying to support here? Windows/KEY_LEFTMETA can be used as a modifier key, e.g. in combination wit= h=20 the Volume Up/Down keys. On Windows, the default for Win + VolumeUp creates= a=20 screenshot. You can also use this in combination with an onscreen keyboard. Pressing th= e=20 hardware button with the hand holding the tablet and typing with the other= =20 hand on the OSK is probably easier than hitting both keys on the OSK. Additionally, the Volume Up/Down currently do not autorepeat, as the key is autoreleased on the press event. The XPS 12 does issue distinct press/relea= se=20 events, so this could be done properly. The same apparently holds for some= =20 other convertibles, see the links in Patch 1/5. Kind regards, Stefan =2D-=20 Stefan Br=FCns / Bergstra=DFe 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 --nextPart2629176.D3vXaZ9z9b Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSwWRWIpJbl0W4DemNvf0o9jP6qUwUCWgUHzAAKCRBvf0o9jP6q U/f8AJ9cavM7MbqNUsuGSK5BNh83ThmpAQCfezT+RVVwnqTHlmPobleeGTIBdZo= =g7/J -----END PGP SIGNATURE----- --nextPart2629176.D3vXaZ9z9b-- From 1583640959681661974@xxx Fri Nov 10 01:35:09 +0000 2017 X-GM-THRID: 1583630420340555824 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread