From patchwork Wed Dec 5 00:42:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Hutterer X-Patchwork-Id: 10712839 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BCEB213BF for ; Wed, 5 Dec 2018 00:42:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC7D22CA7E for ; Wed, 5 Dec 2018 00:42:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A049C2CA83; Wed, 5 Dec 2018 00:42:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 359132CA7F for ; Wed, 5 Dec 2018 00:42:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725979AbeLEAmv (ORCPT ); Tue, 4 Dec 2018 19:42:51 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:45811 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbeLEAmv (ORCPT ); Tue, 4 Dec 2018 19:42:51 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id CB3ABF4A; Tue, 4 Dec 2018 19:42:49 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 04 Dec 2018 19:42:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=1RXcH6ByEYfFL4kF8B/+GNvkRh 57vvCTmwp2KMsJ8NM=; b=a/NEwgXqSa1zx6Y1sW+FNnLko3TvNxCa/VJ1QivWEA 33qu2OJ7rs/wzPszt8/lIiQfTMmeKgKocvHGxk4ihnMJP6fV6bIDFnleAHn1VXIS Y32FjsCcsHLJtSPsJlv+bnDOe0tscsMCVBuYHwL986Yqd0WxGFtRHjdEXvBs7ilm ND2oxLets94yUF/qoozQEt/8BSiGWh6rOB3xj/Hzn9FE71Bci32GgpraA40OkOla ZNgRxnUiGHJynLcfA2lrAJ43UON+6MNw2mCZolPtgiSKRH4Ad1EbJsJInsVCkuql io8837zLnhqbgbwXxA2BislHkCNlEpqbjkX3ezYYq60A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=1RXcH6ByEYfFL4kF8 B/+GNvkRh57vvCTmwp2KMsJ8NM=; b=Dl0HUHNh5f7n24UglS9MrMzTyR0UPUUnU U6MKG9FSmjqOe5ISkhKQO9MJMQa66Ir4JtFCwL/RJh5eIHwMCe+J1A+5xY/ru2Rq yDDp9HOnf94envVA7yc96K3qQdBuVE3pq1j/XtUk9GgmQd3yEYyRAdXehM4uxCkD BB7KK1uidIMxzclNdu1iWdxP1eMkOnf+AKOaGO4la73iYMdNTIqG8GfS3lINo5kj +YNYHrd//op3Dv892Q/lBECzfh8SvwxPp7YifQxrjxqaGFdTqTO3F1e6lIe/bmDP yzQrR+DlJ0fycO7lPqV2fdWnysgzvKQhceWJEPfDTuutptkYQkDUA== X-ME-Sender: X-ME-Proxy: Received: from jelly.home.gateway (167-179-166-29.a7b3a6.bne.nbn.aussiebb.net [167.179.166.29]) by mail.messagingengine.com (Postfix) with ESMTPA id 106D8E450E; Tue, 4 Dec 2018 19:42:45 -0500 (EST) From: Peter Hutterer To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Jiri Kosina , Harry Cutts , torvalds@linux-foundation.org, Nestor Lopez Casado , linux-kernel@vger.kernel.org, Benjamin Tissoires Subject: [PATCH v3 0/8] HID: MS and Logitech high-resolution scroll wheel support Date: Wed, 5 Dec 2018 10:42:20 +1000 Message-Id: <20181205004228.10714-1-peter.hutterer@who-t.net> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A full explanation of why and what is in the v1, v2 patch thread here: https://lkml.org/lkml/2018/11/22/625 v3 adds a better commit messages, m560 REL_HWHEEL_HI_RES support and a patch moved in the ordering. This is a full patch sequence because Benjamin's magic scripts struggle with singular updates ;) hid-tools patches to add the tests: https://gitlab.freedesktop.org/libevdev/hid-tools/merge_requests/12 libinput support (unmerged): https://gitlab.freedesktop.org/whot/libinput/tree/wip/hi-res-scrolling If you want to 'feel' how it works, run sudo ./builddir/libinput-debug-gui and watch the green/red scroll bars. On a device with hi-res scrolling the green bar (scroll fractions) will move smoother than the red bar (wheel clicks). Tested with: - Microsoft Comfort Optical Mouse 3000 - Microsoft Sculpt Ergonomic Mouse - Microsoft Wireless Mobile Mouse 4000 - Logitech MX Anywhere 2S And a few other mice that don't have that feature, so the testing was of limited excitement. Cheers, Peter Harry Cutts (3): HID: logitech: Add function to enable HID++ 1.0 "scrolling acceleration" HID: logitech: Enable high-resolution scrolling on Logitech mice HID: logitech: Use LDJ_DEVICE macro for existing Logitech mice Peter Hutterer (5): Input: add `REL_WHEEL_HI_RES` and `REL_HWHEEL_HI_RES` HID: core: store the collections as a basic tree HID: core: process the Resolution Multiplier HID: input: use the Resolution Multiplier for high-resolution scrolling HID: logitech-hidpp: fix typo, hiddpp to hidpp Documentation/input/event-codes.rst | 21 +++- drivers/hid/hid-core.c | 174 +++++++++++++++++++++++++++++++++ drivers/hid/hid-input.c | 108 +++++++++++++++++++- drivers/hid/hid-logitech-hidpp.c | 375 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------- include/linux/hid.h | 10 ++ include/uapi/linux/input-event-codes.h | 2 + 6 files changed, 651 insertions(+), 39 deletions(-)