Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3889734imm; Mon, 4 Jun 2018 10:56:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLvmkY6920jlARNHVe9hs7CNzeowqdN5gqOv8Qatrben+0lMZ8ILqd8J35oX5aQcYkwPiHq X-Received: by 2002:a65:43cb:: with SMTP id n11-v6mr17764339pgp.234.1528135002284; Mon, 04 Jun 2018 10:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528135002; cv=none; d=google.com; s=arc-20160816; b=vodqDqYCemCcnnV0VAwH+9ALG2PnvqkI+tOY509raso3Jz5WF0AIbcrc1AqvizPAbU lN9Aqdi2C8lrvXHQp2DIG74O/MOnehXTK+mgd0y2pzt8PXRzFW2Z3nQ4q77L9xtfx6tp nCFMlqwWbFMY75AWONumQjksbGMwd4YtWMLgMIR/mAYyZiHpKzch38cuuGJEsTk4ST0/ sBbCaz2ewIk9cUaGsgB0JsVpFBu6YBb7CoVDDUjpTgvEBjLtl4qdewJQriK/VG/f+1W5 msDDpqU01ODuoNyMEDCM8COCRMe3hsphWnys6bimmlnbHTdMkESOG5I8He1Kdk+h1Raz GVTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=tW3RbFL6udGxH1eBz5gojjpimGtGqSBKb50RYevTl1o=; b=R9BMuFe03r65XGoILB+8ek9YXXbF3d9NSHyUFYYP+lC7NK5dT6zpZiCpUev4LI3suc bymHTfOiqpxLEBBpkxJcFbPeZwK42Uu3MfR/fIJkV/q9SNQwrRhKk2MdG/ZUi1QsCcCL 5exwqQIN9ReQFAsVjIKn4c5Nj/u7VIAkhtbpZPQTaHrh3JLBP4UmPzAawPE20But3PpH wtbI7434J7j5xLUBAqrsMHnJrT/C1KjilcMG3jMeItr3Lwf1iUl+Gu84At8MwnTAedGD AnrchtDnweswQkjwXyUn3feNHmP3XojTrmavz6/BT82F2u1dSyCeq8yxKqosiZIYsgrR 0ZTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bitmath.org header.s=20140924 header.b=LhmK4lZa; 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 i186-v6si171475pfb.90.2018.06.04.10.56.27; Mon, 04 Jun 2018 10:56:42 -0700 (PDT) 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; dkim=pass header.i=@bitmath.org header.s=20140924 header.b=LhmK4lZa; 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 S1751508AbeFDRzy (ORCPT + 99 others); Mon, 4 Jun 2018 13:55:54 -0400 Received: from mailrelay3-1.pub.mailoutpod1-cph3.one.com ([46.30.210.184]:39323 "EHLO mailrelay3-1.pub.mailoutpod1-cph3.one.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091AbeFDRzu (ORCPT ); Mon, 4 Jun 2018 13:55:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitmath.org; s=20140924; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=tW3RbFL6udGxH1eBz5gojjpimGtGqSBKb50RYevTl1o=; b=LhmK4lZaxJl+9lZU3vFtjesTgSyOr1Y37f/KYym/O8CE2Vrpotl6BUhAnfIjrxP6IVJn8RS7EuTiR piNu0pNATqmNRm6x5I2yLU0dYXQE+lpoP5UlRjXBgXFfnBM8f/tT0UBoUFhTZkswB9SLSRKWGt5lVs e4g6zmlnw7nSqcfw= X-HalOne-Cookie: b578111c61a2e079d396f7ccdfaa3e9243168854 X-HalOne-ID: 82d2e7d3-6820-11e8-80aa-d0431ea8bb03 Received: from [192.168.19.13] (unknown [79.136.64.225]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 82d2e7d3-6820-11e8-80aa-d0431ea8bb03; Mon, 04 Jun 2018 17:55:48 +0000 (UTC) Subject: Re: [PATCH 1/2] HID: multitouch: report MT_TOOL_PALM for non-confident touches To: Dmitry Torokhov , Benjamin Tissoires Cc: Jiri Kosina , Jason Gerecke , Dennis Kempin , Andrew de los Reyes , "open list:HID CORE LAYER" , lkml References: <20170811004500.13740-1-dmitry.torokhov@gmail.com> <20180601184330.GD222005@dtor-ws> <72b7120a-d304-0b2f-d04a-473631623f72@bitmath.org> <20180604172759.GA164893@dtor-ws> From: Henrik Rydberg Message-ID: <994e5698-fbdf-05c8-b0b6-3df6af1b3dbc@bitmath.org> Date: Mon, 4 Jun 2018 19:55:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180604172759.GA164893@dtor-ws> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, >>> Logically, the confidence state is a property of a contact, not a new type >>> of contact. Trying to use it in any other way is bound to lead to confusion. >>> >>> Problem is that MT_TOOL_PALM has been introduced in the kernel since >>> v4.0 (late 2015 by a736775db683 "Input: add MT_TOOL_PALM"). >>> It's been used in the Synaptics RMI4 driver since and by hid-asus in late 2016. >>> I can't find any other users in the current upstream tree, but those >>> two are already making a precedent and changing the semantic is a >>> little bit late :/ > I am sorry I did not respond and lost track of this issue back then, but > I disagree with Henrik here. While confidence is a property of contact, > so is the type of contact and it can and will change throughout life of > a contact, especially if we will continue adding new types, such as, for > example, thumb. In this case the firmware can transition through > finger->thumb or finger->thumb->palm or finger->palm as the nature of > contact becomes better understood. Still it is the same contact and we > should not attempt to signal userspace differently. We agree that the contact should stay the same, but the fear, and I think somewhere along the blurry history of this thread, the problem was that userspace interpreted the property change as a new contact (lift up/double click/etc). Finger/thumb/palm is one set of hand properties, but what about Pen? It would be hard for an application to consider a switch from finger to pen as the same contact, which is where the natural implementation starts to diverge from the intention. > We could introduce the ABS_MT_CONFIDENCE (0/1 or even 0..n range), to > complement ABS_MT_TOOL, but that would not really solve the issue with > Wacom firmware (declaring contact non-confident and releasing it right > away) and given MS explanation of the confidence as "contact is too big" > MT_TOOL_PALM fits it perfectly. Indeed, the Wacom firmware seems to need some special handling, which should be fine by everyone. I do think it would make sense to add ABS_MT_TOOL_TOO_BIG, or something, and use it if it exists. This would apply also to a pen lying down on a touchpad, for instance. Henrik