Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1781588yba; Thu, 25 Apr 2019 05:44:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqy33pn5vXN/fxreIgkTKiwDAOH3ootMecm1PVKsn7PaGXZiWdMqNPrwrAkEvm33Z67Z5Vzm X-Received: by 2002:aa7:8458:: with SMTP id r24mr21085710pfn.231.1556196293980; Thu, 25 Apr 2019 05:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556196293; cv=none; d=google.com; s=arc-20160816; b=A6Aiwrv141j77232FCVnCDZqGlH1+Zd9gYuqZbrMJ1WSS9rhZWLM8ZDg2PePYWWqwP JhQpsfrDkAuhtrV3hItuxzvk7N38++zH4ydfTLbULqosV55yDZUUUL4cWe4rVtgIWe7u lvV/VEdlCiXY5xx9xjgBhCx2VQfcCHBesjkPg3n9PA1l6RbqkNTGwYiQa2ZEN1NIAERd BAxLIH6GhY1369ULKlzWueuHmTWGrG0BMgel1+LStf6LBAGRYOETg8wAbL50BLT4fZRP VjW6skgalM9mIYHw5CmOTfuCmEHkqsWQsKZrhPgfbj3q3qNwY+V2KVQXFf1qXxyDupk9 zejQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=kUvrLb9CsyA4jnUglgCBFWIcv+IepELrbxuoW1X4BgU=; b=C08WR//hEz4bRKZLfMTZn7TLAy25AQBrEyhouMtCvQys/2xaP9B2dTIqPWy5HDbx6T cNr7c/DxiLakZbpzXqkN14kWGYtUmGDjcBM5TZFjY3CrKhkS2dM5zACNuKWtZerZvLpU ZhsLi4/nSFL6VtBEYJ2m5EcFx1pAsCVa6JEdk+xNucf4kWmoVLM224Y3logYnhGZoOSG orlcJv4s3Bu3A51AASRArthhfxrejVPEp8gUSE68l25DPAqhfC37vurOo+Rmg0EIz+t3 MpIqhocjw0ZItpgzEs/jiR0h2EwlvnnTmot2Ka4sci4lp4H619hMtbruCmbpeq+Hl43Q 2IKQ== 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 i9si8568640pgl.571.2019.04.25.05.44.38; Thu, 25 Apr 2019 05:44:53 -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 S1727422AbfDYHka convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Apr 2019 03:40:30 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:37892 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbfDYHka (ORCPT ); Thu, 25 Apr 2019 03:40:30 -0400 Received: by mail-qt1-f195.google.com with SMTP id d13so23356963qth.5 for ; Thu, 25 Apr 2019 00:40:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1yolvFw/SUs+tH7rUzcdF9KefyG3PS9LXfWTPlo2Nik=; b=mubzm+WF4QecRvMyaItsUbdJG+rj8LjMfragoUFhqc9XGnWqrrxHxmNZYODG56zCU+ P2wviPimzPq3OeLXGRndCwfeWYeh3xC0fZ8bFrxhuLUvYjDaFysgBm9P3YrkAWdddV7B qQCFI1YLLQ1Rk4o8AxyJ98dWWS6HyY3ggSAX8uPYHQIPcOPXeng87AWJSzzF2ZLG319/ 9oriU9AR1FANu60/bz+qQmEcrgv+cxMIZ9L/3bNZFvKHyuzKXqwuKF8aMgAganL2w+oC N1/S8oLcaqv9e9aRMGRH3kuRrKrcbu164jv/w8fPGFwaI8myc2rlTqisou4Lrmie33SF 76UA== X-Gm-Message-State: APjAAAVb7zdX+D+kTCtZMFEtCHIQt4EGIEPtadGN1bMfP/U1HNZHAOdf iimyN5vXUdoMlgAUkqVW+OCJLAj4Pegp2n5NfIaDKQ== X-Received: by 2002:a0c:9810:: with SMTP id c16mr29956112qvd.192.1556178029302; Thu, 25 Apr 2019 00:40:29 -0700 (PDT) MIME-Version: 1.0 References: <20181205004228.10714-1-peter.hutterer@who-t.net> <20181205004228.10714-8-peter.hutterer@who-t.net> In-Reply-To: From: Benjamin Tissoires Date: Thu, 25 Apr 2019 09:40:17 +0200 Message-ID: Subject: Re: [PATCH v3 7/8] HID: logitech: Enable high-resolution scrolling on Logitech mice To: =?UTF-8?Q?Cl=C3=A9ment_VUCHENER?= Cc: Harry Cutts , Peter Hutterer , "open list:HID CORE LAYER" , Dmitry Torokhov , Jiri Kosina , Linus Torvalds , Nestor Lopez Casado , lkml Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Clément, On Wed, Apr 24, 2019 at 5:34 PM Clément VUCHENER wrote: > > Hi Benjamin, > > I tried again to add hi-res wheel support for the G500 with Hans de > Goede's latest patch series you've just merged in for-5.2/logitech, it > is much better but there is still some issues. > > The first one is the device index, I need to use device index 0 > instead 0xff. I added a quick and dirty quirk (stealing in the > QUIRK_CLASS range since the normal quirk range looks full) to change > the device index assigned in __hidpp_send_report. After that the > device is correctly initialized and the wheel multiplier is set. Hmm, maybe we should restrain a little bit the reserved quirks... But actually, .driver_data and .quirks are both unsigned long, so you should be able to use the 64 bits. > > The second issue is that wheel values are not actually scaled > according to the multiplier. I get 7/8 full scroll event for each > wheel step. I think it happens because the mouse is split in two > devices. The first device has the wheel events, and the second device > has the HID++ reports. The wheel multiplier is only set on the second > device (where the hi-res mode is enabled) and does not affect the > wheel events from the first one. I would think this have to do with the device not accepting the command instead. Can you share some raw logs of the events (ideally with hid-recorder from https://gitlab.freedesktop.org/libevdev/hid-tools)? Cheers, Benjamin > > Le mer. 19 déc. 2018 à 21:35, Benjamin Tissoires > a écrit : > > > > On Wed, Dec 19, 2018 at 11:57 AM Clément VUCHENER > > wrote: > > > > > > Le sam. 15 déc. 2018 à 15:45, Clément VUCHENER > > > a écrit : > > > > > > > > Le ven. 14 déc. 2018 à 19:37, Harry Cutts a écrit : > > > > > > > > > > Hi Clement, > > > > > > > > > > On Fri, 14 Dec 2018 at 05:47, Clément VUCHENER > > > > > wrote: > > > > > > Hi, The G500s (and the G500 too, I think) does support the "scrolling > > > > > > acceleration" bit. If I set it, I get around 8 events for each wheel > > > > > > "click", this is what this driver expects, right? If I understood > > > > > > correctly, I should try this patch with the > > > > > > HIDPP_QUIRK_HI_RES_SCROLL_1P0 quirk set for my mouse. > > > > > > > > > > Thanks for the info! Yes, that should work. > > > > > > > > Well, it is not that simple. I get "Device not connected" errors for > > > > both interfaces of the mouse. > > > > > > I suspect the device is not responding because the hid device is not > > > started. When is hid_hw_start supposed to be called? It is called > > > early for HID_QUIRK_CLASS_G920 but later for other device. So the > > > device is not started when hidpp_is_connected is called. Is this > > > because most of the device in this driver are not real HID devices but > > > DJ devices? How should non-DJ devices be treated? > > > > Hi Clement, > > > > I have a series I sent last September that allows to support non DJ > > devices on logitech-hidpp > > (https://patchwork.kernel.org/project/linux-input/list/?series=16359). > > > > In its current form, with the latest upstream kernel, the series will > > oops during the .event() callback, which is easy enough to fix. > > However, I am currently trying to make it better as a second or third > > reading made me realized that there was a bunch of non-sense in it and > > a proper support would require slightly more work for the non unifying > > receiver case. > > > > I hope I'll be able to send out something by the end of the week. > > > > Cheers, > > Benjamin