Received: by 10.223.164.202 with SMTP id h10csp337788wrb; Mon, 6 Nov 2017 07:27:10 -0800 (PST) X-Google-Smtp-Source: ABhQp+Q+j0ASmPkkW+EtzvRm/cnMCu5mnpl8RnN6j8xuX+T3OBmkZ0m9azgcOb3jkDFQj9/LvePj X-Received: by 10.98.194.16 with SMTP id l16mr16967901pfg.139.1509982030490; Mon, 06 Nov 2017 07:27:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509982030; cv=none; d=google.com; s=arc-20160816; b=Q9BdFQcbEfoen4uO9lgSDEUy+1cmj8zMLif2hBtDmSEuD6i8FqNfOSo6LMXakSArY7 N6JJjYQWe+e0GCA5CryTDmx3tE/kLcLs6Ylhn7Tc3u7L+zgZEhj1f8FkMyKV6HfslOSz OsB5TTGCAALkLo0OydgfSVm0HzH+PdnXD41pX7ix1SUQdp2SMVTfzTJo144Opu6KgIJ6 Zu+Hl1AQoZfVhwQ55qaKRH0TgOVchSdiu1imzHFgIXSbUu+uxxv/gC+v5JfMnt+vcorX aC0OE2Iloc94GlWHipxGrj2qflTO1vBLw9yb4kvTm99UC8Qou0yB2izv4sjzZ0QkGFBq zoJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=W9PBASs2QlGQeHfX7kmTCmj4PuO4hKHbkmlEIvsVhio=; b=JQr8dU2JyVvjm4lt09ogO8m/zgpCDPlviQkVtld1PnCq0DxVTZzFkQ0ZtnKFTEVEpx 9Vn9PG4+CSw7xlPZSQYssvoMg3wpSINNRp9OT4uJrz/XDsFqiDiwcy6vTThYEXbfqSlT I1DDyvPCN28YBEw9i8rRbUwzR2y7O1ndVCR7zoEuPLhlJQ9S+jzh9BM9FY0k6yzrbMkV DlovQSN8brT/dg39gMAWRTyxpZ3S3zIEn12M1NdklOka/HNEYsuYD8a01anKFQsjmFb2 uJMm1qS2igaa6AzJpvhuNvL3lcAVhORIhzmaIaGAb8hUJWvLFxe1R9i9yg1IJkl1ldTi MslQ== 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 be3si9793150plb.408.2017.11.06.07.26.57; Mon, 06 Nov 2017 07:27:10 -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 S1753935AbdKFPZo convert rfc822-to-8bit (ORCPT + 97 others); Mon, 6 Nov 2017 10:25:44 -0500 Received: from mail-out-2.itc.rwth-aachen.de ([134.130.5.47]:28349 "EHLO mail-out-2.itc.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753921AbdKFPZm (ORCPT ); Mon, 6 Nov 2017 10:25:42 -0500 X-IronPort-AV: E=Sophos;i="5.44,353,1505772000"; d="scan'208";a="22288083" Received: from rwthex-w1-b.rwth-ad.de ([134.130.26.157]) by mail-in-2.itc.rwth-aachen.de with ESMTP; 06 Nov 2017 16:25:40 +0100 Received: from rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) by rwthex-w1-b.rwth-ad.de (2002:8682:1a9d::8682:1a9d) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.26; Mon, 6 Nov 2017 16:25:40 +0100 Received: from rwthex-w2-a.rwth-ad.de ([fe80::18f3:313d:3e:42ff]) by rwthex-w2-a.rwth-ad.de ([fe80::18f3:313d:3e:42ff%21]) with mapi id 15.01.1034.026; Mon, 6 Nov 2017 16:25:40 +0100 From: =?iso-8859-1?Q?Br=FCns=2C_Stefan?= To: Bastien Nocera CC: Andy Shevchenko , Platform Driver , Andy Shevchenko , "linux-kernel@vger.kernel.org" , AceLan Kao , Dmitry Torokhov , linux-input , Darren Hart Subject: Re: [PATCH 0/4] platform/x86: intel-vbtn: Add support for several more switches/buttons Thread-Topic: [PATCH 0/4] platform/x86: intel-vbtn: Add support for several more switches/buttons Thread-Index: AQHTVjIRGCaoY4s2pk2t7Y7aXfIq+6MHP5eAgAAqPgA= Date: Mon, 6 Nov 2017 15:25:39 +0000 Message-ID: <2254450.FtXLtYGOvl@sbruens-linux> References: <1509972865.2869.112.camel@hadess.net> In-Reply-To: <1509972865.2869.112.camel@hadess.net> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [78.35.13.203] Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Montag, 6. November 2017 13:54:25 CET Bastien Nocera wrote: > On Sun, 2017-11-05 at 14:31 +0200, Andy Shevchenko wrote: > > On Fri, Nov 3, 2017 at 9:03 PM, Stefan Br�ns > > > > wrote: > > > Currently, intel-vbtn only supports the most relevant buttons, > > > although > > > there are several more events, mostly in use by convertibles. > > > > > > This series adds support for three more events. One of these events > > > is a switch (SW_*) event, which is currently not working when using > > > sparse keymaps. The first patch fixes this combination. > > > > > > The second patch adds support for the SW_TABLET_MODE switch, which > > > is used by current convertibles. > > > > > > The third patch adds support for the KEY_ROTATE_DISPLAY. On the > > > Dell > > > XPS 12 (9Q33), rotation lock is implemented as a button to toggle > > > between locked and unlocked state. In locked state, the > > > accelerometer > > > should be ignored, while in unlocked the screen contents should > > > autorotate based on the tablet orientation. The same functionality > > > is likely implemented as a switch (SW_ROTATE_LOCK event) on > > > different > > > hardware. > > > > > > The fourth patch adds support for the "Windows logo" button/key > > > found on > > > the XPS 12 display (i.e. in tablet mode, it is the only key > > > reachable). > > > The Lenovo Helix 2 has an equivalent touch button. The event > > > currently > > > uses KEY_MENU, although a distinct key code may be a better choice. > > > > All, except first, are applied to my review and testing queue, > > thanks! > > > > > Stefan Br�ns (4): > > > Input: sparse-keymap - send sync event for KE_SW/KW_VSW > > > platform/x86: intel-vbtn: support SW_TABLET_MODE > > > platform/x86: intel-vbtn: support KEY_ROTATE_DISPLAY > > > platform/x86: intel-vbtn: support panel front button > > KEY_MENU is the key for the contextual menu. You need to use > KEY_LEFTMETA. See 791738be57473fddaf393dcedcef31b577231aaa which does > this for soc_button_array. IMHO LEFTMETA is a bad idea for several reasons: - LEFTMETA aka Windows aka RightGUI key is used as a modifier/flag (see e.g. USB HID HUT, Keyboard Page 0x07), while on a tablet, it is the only regular button (save special funtions like power, volume). - on a regular keyboard, I expect the LEFTMETA key to be handled/usable as a modifier key. I would not expect it to be used as a shortcut key. So if KEY_MENU is not acceptable, a new keycode IMHO is a much better option. Kind regards, Stefan From 1583321367019362281@xxx Mon Nov 06 12:55:22 +0000 2017 X-GM-THRID: 1583072964470809132 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread