Received: by 10.213.65.68 with SMTP id h4csp307198imn; Tue, 20 Mar 2018 04:11:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELs1Pnzdf2h/0SM6llPaSxco6pemyXHB3KDBEs8BHNRq+1OTmV9lA55ZofhysNsNan5z2+4b X-Received: by 2002:a17:902:b704:: with SMTP id d4-v6mr16348246pls.406.1521544285248; Tue, 20 Mar 2018 04:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521544285; cv=none; d=google.com; s=arc-20160816; b=LXQGwJ8GDs3isCNbtyh4n1R0xoZmnGzuDFEn9jK33nRcqqpO7BJ4yoz6FJQcNODcTx Nal9woidorOZo4KcWfFnZHLp782PDRgKv61V6QDirhJS4dZCCmJcW6caL99/Gi55gF+C kgGQgF79Yz8i3+/ks2PniZsSxNnWNOem04wrCLG8Fl8T8Edevd1shlpGbnEWyjskJR/a Ok/27h0PBy2fTr3Zx/e/WXBQk7pG7GNLvpz0fO6XZRtBXZ5PYOMHMZT8JI2tQRZQJ6Ss my3pBSiJz4mzpb+NXBlk7mbalWtK6xETByZOju6QgBxyxkK4eoX5yeEHVGGPNcJUDI6/ 5HBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=GY0BDgJYhNW9RERjaIVeBLmr1dW3OjqKrpfrvphJRzY=; b=A0sZmhxGAz4/Nf2EjSvR3gYkZ634v5zm1Plbi+hTRIjsNTvrIs8ht96fXKLvgP3YSq BI1MxsrOzqf592Db9bdis4Dyd9cB4KD4xgIZdkbrlKmkWywTl28w/4G9mW17qc3zWVG7 2yDaF56mASgOu1iS67Ubki9CprDC/ffj6t4JMU2ZKyaIHlm3+qZtqyazcSAk24g9KR/H MfvBNV7fYw5y8V1sjKAZ01yVnG8Vy5eKLTFShO/o0g6WEKc7Ti2r5rfnps0UHxl7l7Dl aOVFzrrLrPEP2RkHxwCSKVnC86NGUxSAnE0Wa75q/qL/e4GTnG4cACO2mE7j1p6s0fO9 IGLA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si1393470pls.58.2018.03.20.04.11.11; Tue, 20 Mar 2018 04:11:25 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780AbeCTLFF (ORCPT + 99 others); Tue, 20 Mar 2018 07:05:05 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54780 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752753AbeCTLFB (ORCPT ); Tue, 20 Mar 2018 07:05:01 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8BB817B4C8; Tue, 20 Mar 2018 11:05:00 +0000 (UTC) Received: from plouf.banquise.eu.com (ovpn-116-181.ams2.redhat.com [10.36.116.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id 92CF210B0F3D; Tue, 20 Mar 2018 11:04:59 +0000 (UTC) From: Benjamin Tissoires To: Jiri Kosina Cc: Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires Subject: [PATCH 2/7] HID: multitouch: remove dead zones of Razer Blade Stealth Date: Tue, 20 Mar 2018 12:04:46 +0100 Message-Id: <20180320110451.16582-3-benjamin.tissoires@redhat.com> In-Reply-To: <20180320110451.16582-1-benjamin.tissoires@redhat.com> References: <20180320110451.16582-1-benjamin.tissoires@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 20 Mar 2018 11:05:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 20 Mar 2018 11:05:00 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'benjamin.tissoires@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Razer Blade Stealth detects palms too aggressively and this creates a dead zone around the touchpad. Users like being able to use their entire touchpad, so we should probably not filter out the "palm" events from the device and report them as regular touches, leaving the palm detection up to the upper stack Link: https://bugs.freedesktop.org/show_bug.cgi?id=105409 Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index fc80a9bf3e39..520cb5e2c5c3 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -184,6 +184,7 @@ static void mt_post_parse(struct mt_device *td); #define MT_CLS_ASUS 0x010b #define MT_CLS_VTL 0x0110 #define MT_CLS_GOOGLE 0x0111 +#define MT_CLS_RAZER_BLADE_STEALTH 0x0112 #define MT_DEFAULT_MAXCONTACT 10 #define MT_MAX_MAXCONTACT 250 @@ -326,6 +327,13 @@ static struct mt_class mt_classes[] = { MT_QUIRK_SLOT_IS_CONTACTID | MT_QUIRK_HOVERING }, + { .name = MT_CLS_RAZER_BLADE_STEALTH, + .quirks = MT_QUIRK_ALWAYS_VALID | + MT_QUIRK_IGNORE_DUPLICATES | + MT_QUIRK_HOVERING | + MT_QUIRK_CONTACT_CNT_ACCURATE | + MT_QUIRK_WIN8_PTP_BUTTONS, + }, { } }; @@ -1792,6 +1800,11 @@ static const struct hid_device_id mt_devices[] = { MT_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001) }, + /* Razer touchpads */ + { .driver_data = MT_CLS_RAZER_BLADE_STEALTH, + HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8, + USB_VENDOR_ID_SYNAPTICS, 0x8323) }, + /* Stantum panels */ { .driver_data = MT_CLS_CONFIDENCE, MT_USB_DEVICE(USB_VENDOR_ID_STANTUM_STM, -- 2.14.3