From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BAA23CA491 for ; Thu, 10 Sep 2026 08:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789029533; cv=none; b=cVH55mRx/PxZkZofFsFcE4nYeyF0XW88h+dkB62qIvjtNmiTlSd7HYBOSf7aEZ6MSY0Gku3vtaZ+fnsybpC823h7YACzM7p/m6Wcb1xhEQBt9kLIui32jAYbC3zn85P0nVcA2P1DZ1FuXZOuW6Bn9+9wHnbCdEUO57aYHx9IHdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789029533; c=relaxed/simple; bh=Iv/FuHLzpjRfX/Hu97z4K4S4AtbS4uRUVjP2BEKtEN0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gltoZuVqDPjI18btTrA59L1a1amO0Fo6Nsbm1BGwSlORP6yzOOurvqitzkGwHWm1Jhw1rqyHrv+aMe3Vp+h52mREwJozwFa3KDlQWLvCMn1JDZYzPSmuPLcM9i/D8L14kETn1CGwQtN3AFZJyIp3cVcmv0JleLPEFN+6uNAEgCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PNr+DALi; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PNr+DALi" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49b912e2406so13330635e9.1 for ; Thu, 10 Sep 2026 01:38:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789029529; x=1789634329; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=krWlsGzKhYn79KLVkVDG+CVwssGuEXbVIFgPkModltY=; b=PNr+DALiX77pVm3xrCt3IDwjU6z1l1QfxmxYeXwqBBcnn/8/9OXnr7bAYuK6jYLkAJ sslbhYMAEmEY35sU6/hpAwNsIFG13Ch8SiNXcc57jEnKrBjdMxsOuRvAilN6iqlH1bZ3 2HdURyW5Rk2LAt/r5VPYtPZ9YoKqhtWPbrID1PTGAYhv1spnOdyOaX1/UhphxiylbNVL rfe4RfHTstNZBfxbBZQtV+DesJtr3tVjFBk5OC+dThvBemHHVZFDgTB2umWciz0EFDrz 7b57/23fFTkfuLWA+i0fnZZy7NubgpqoQBTWKd34DWKNcaKwo7nHolqp+AB23Qqe0aIb 9E8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789029529; x=1789634329; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=krWlsGzKhYn79KLVkVDG+CVwssGuEXbVIFgPkModltY=; b=Gkl7U/ZTYe8flO4dG5w764NKwyVt3GuaG1XR/Iy1lHTuq6jeN6iMNPDayYh6u50XEL hdI10atVWEfFzRy2WUdQb7NUAbuT0frSvApfo7xAX7Z9hXtJa4MwSC3ZqZevdcVvNCHs Z3sE6qKajmijwZAOLpIwIQlpV3/YgYmc8Hec55Z5XzuKnZEem6Fd9Iu1N4vsO+T1L2aY kniMEqhcRwM/BaWqDkXeLB5PHzs8P+3oaVRzyZXCJfJLrFKX/9ZmYF2ExbCAYNlGHOH+ zx2Ujl7FSJxm9hr8UWhC4cu7tapml2ey2np8qp14NyTTVG6guPq15Q7E8dUFcaOhMujv +AUQ== X-Gm-Message-State: AFuF++lsC2jKH6CGyDyaCHW1KLRzU/m46eoiWGqW0q05uVbqVOZeL76o ZdlBDUMRM9Qdo6Q3W+MqbFk7RTtQRWL3czt2AaOcOxJ/bc5wUSP25dkloGl8vw== X-Gm-Gg: AYBFou1WcN2qzUA10h0pH0S5sV5PH+qZsfSdowtcvwsjsGVaMcgkhPi4eWYHoubkh1m U2wqOfA1w7zzE9ba6iHCJN/7z+RxZ3jraTM5aVtD35UpVLihqaOp2kKAFs8K7/nFIkrIf91pnjP g/+VlwWirg6nEf+Wjt5Y+efz2peOYiR+O/ni6+C/Z0K1MzYlrKoe6kRnsuJugMfm1EWELJ0Cadu WbkqgII8z9VC9SWVqxrSebMJactEwVDl0Z+ySnGVMMxUt2BgL9fxkgijwZZY3a3wswixP1dwKPn 8xREK5KuzdOFlmUs/B70YckyNL4NxTrL8hY/txK+BzLYMvH53QxXBtING3falQwRMOt09pNU75D yi2iy812vOTIT/QHeYuknNumTt7ZxCqhaeKN0Qir/DCXU41VNhA2AGoyFRaWmCkVCSy1Xhjv4HT LD7pmnsD6tVcDhYzKFWu9tODsnX/bzyme6R5UvvFq28EMKza9Yc2UOggtF2ShVtX2ppEmZwFyTM GpXoOdhIQ== X-Received: by 2002:a05:600c:8b10:b0:49d:1e79:35d6 with SMTP id 5b1f17b1804b1-49d26dcaa22mr38489625e9.14.1789029528985; Thu, 10 Sep 2026 01:38:48 -0700 (PDT) Received: from foxbook (bfg95.neoplus.adsl.tpnet.pl. [83.28.44.95]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49d1fb058c8sm57245275e9.0.2026.09.10.01.38.48 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 10 Sep 2026 01:38:48 -0700 (PDT) Date: Thu, 10 Sep 2026 10:38:45 +0200 From: Michal Pecio To: Quinn Schive Cc: linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] HID: logitech-hidpp: G502 LIGHTSPEED loses hi-res scroll state after S3 resume Message-ID: <20260910103845.71b194f4.michal.pecio@gmail.com> In-Reply-To: References: <20260909222724.30fc8f52.michal.pecio@gmail.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 9 Sep 2026 18:13:17 -0600, Quinn Schive wrote: > I tested the patch you suggested, and so far it appears to have fixed > the problem on my system. Thanks for testing, looks like that issue may be somewhat widespread. BTW, you may respond to the patch (in its original thread) with: Tested-by: Your Name and a brief note that it's confirmed to work for you as well. As for the Logitech driver, I'd guess it needs something like this. Of course, the xHCI patch must be removed to reproduce this again. diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index 1504de32b1c8..0107ffc9efb3 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -4711,6 +4711,21 @@ static bool hidpp_application_equals(struct hid_device *hdev, return report && report->application == application; } +static int hidpp_reset_resume(struct hid_device *hdev) +{ + struct hidpp_device *hidpp = hid_get_drvdata(hdev); + int ret = 1234; + + /* reset disables hi-res scroll, restore if it was used */ + if (hidpp && hidpp->vertical_wheel_counter.wheel_multiplier > 1) + ret = hi_res_scroll_enable(hidpp); + + dev_info(&hdev->dev, "hidpp_reset_resume mult %d ret %d\n", + hidpp ? hidpp->vertical_wheel_counter.wheel_multiplier : 4321, + ret); + return 0; +} + static int hidpp_probe(struct hid_device *hdev, const struct hid_device_id *id) { struct hidpp_device *hidpp; @@ -5059,6 +5074,7 @@ static struct hid_driver hidpp_driver = { .input_configured = hidpp_input_configured, .input_mapping = hidpp_input_mapping, .input_mapped = hidpp_input_mapped, + .reset_resume = pm_ptr(hidpp_reset_resume), }; module_hid_driver(hidpp_driver);