Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1058391pxu; Wed, 6 Jan 2021 11:09:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYC+jKziVEpWAQmNKNLIuYdNqGsyC4P1sQmRdudRTGxLlRkirI012Mlk56xq9T8ZrksQ0l X-Received: by 2002:a05:6402:1714:: with SMTP id y20mr4930390edu.2.1609960189740; Wed, 06 Jan 2021 11:09:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609960189; cv=none; d=google.com; s=arc-20160816; b=hOSqNmRli+aIyTGvZrJ9YEOR8nnCHtPgl/LegI2d2NMFm86MRWosAUVVZgbEFBV+eT 5Dl3yULfZFBUEuSIi7q/0z4xZXeh/p/DBLhLuv1ENmGjchXIQQs4WFjU9oB0TKxWY5k/ kiNYFw9moKFOtzjf8acHQ0hr3aCdLQmvAekHwbB96a/s5IxcO1OZtqIR80bGdcKk4I0Z YcHbsAflXHxjHvVHuryTh+HpzSP8Gxsd8h951pHdMBCiIhnFN/dQ7Aono+uMjCOHObQv PgQwl0ARLezhm+qppUzWoGV+63mVz03Q0x5JWw6f3KrBxgcrOwmEtMY6Gd2VmGhlfFg0 weeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:mime-version:date:organization:to :from:subject:message-id:dkim-signature; bh=XBal+Xukp7KCTv+7UxmSLerYgxNS5P3PSaBNU0JG2MA=; b=QMWAlFRkNpDUGjrVkPlIY+33ERo/zSOLF4Y0KLEh0FVjuYor4xzr2Y9v7MwhWmjqFR 1yWwgGJuSvdaKUNShr/CFIpWGg7OSSuYccBGsF4aDZRuoId/egNlqvEhxolEA1U0wuvb M9vLcaEoDTx6BFs86sRxcJ/uYQwA0e0/jinwpN6uHxepU2gWParmucskAh7u7XIVJAfk jZht+QTKj1GqpD1Vh2cnB/o7Z9a1Lf6V+BHgwTxan4CIAr33/t5xX6w3SkSeY3pV0CyY 1gGc3aMbx9Q2frD3IH+XiZMW4/aMzpDTif9yVQTqvH/BHgAZ0FDGEC7bBtygSbGY7An4 SgrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQx5e48v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si1247839ejr.308.2021.01.06.11.09.26; Wed, 06 Jan 2021 11:09:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQx5e48v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726671AbhAFTIH (ORCPT + 99 others); Wed, 6 Jan 2021 14:08:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbhAFTIG (ORCPT ); Wed, 6 Jan 2021 14:08:06 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78676C06134C; Wed, 6 Jan 2021 11:07:26 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id c133so3259226wme.4; Wed, 06 Jan 2021 11:07:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:organization:date:mime-version :user-agent; bh=XBal+Xukp7KCTv+7UxmSLerYgxNS5P3PSaBNU0JG2MA=; b=RQx5e48vrZKOsL8cVa8y1CEB8cjo0OyuIFNVQGmLpyPZIIAgsq3Vr67vzIKI9SXHZt vCvN7ioWT4DFsX+BzMdt8REpZVj5Uk/Edc/3ioxSr+SjHPEI6Dh8/f/z1XvSUHwT2NOu v5o75kxRl0IeSsreJ+blHIYxfbIaW6VPAz9NvwSH7ImsSzqTH7j8D+O2SxzCkCwwSm26 kYDkBZAbOPZPcTurDK4T213RFoqpBPFJToWnJhcekz7/qb4Nc+6Of3jmDvGi+bkhPQTb GPNIsmz0LTwhgHfGtpGZNmVy/01n6nZQ4FlZULUGb+2w+X3I/UsJ2jaDeZOCfjkx0iQc E2gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:organization:date :mime-version:user-agent; bh=XBal+Xukp7KCTv+7UxmSLerYgxNS5P3PSaBNU0JG2MA=; b=LOUE68qH0/d0Qn3GlLhtFJksPU8m5UpFRHRoElGO2uzURML5AW8/h7bdg8RQPwguVZ uwX5wYHFA77F45zGRA/WpkzzHvrQ+okR2GG7dnuvdf2OIQ9fJqbwdvIsz5c656P9VDhk vK9VzPHlmCGEezi9MUyogleayiko7cHS5bnEOlFPZv0OkcQ0UkjBb9IIFzdN161MZdkr WcI08vS8RocVrutZ+nKPy/IMejb2SbsYi2PinGex/TT8FQnL4DZnlvlqdLUBHBlBHGiA PnVwXtDN4XttViTJ+wHyBrVkaNxm3QIspM6gqx7GFa4V1iiXTxbq7piRRwxwi7rCuupF hcrw== X-Gm-Message-State: AOAM532RpBLUVLpYU7LjUF0ClC9ITyYBlj7vDnIxtUyx5izauJ6CiHQ3 w1xtUonUXy5ln5Mky7yZ6YA= X-Received: by 2002:a1c:a583:: with SMTP id o125mr4860966wme.91.1609960045236; Wed, 06 Jan 2021 11:07:25 -0800 (PST) Received: from ?IPv6:2001:8a0:f268:e600:5751:e3e4:7880:ec9c? ([2001:8a0:f268:e600:5751:e3e4:7880:ec9c]) by smtp.gmail.com with ESMTPSA id c6sm4459009wrh.7.2021.01.06.11.07.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 11:07:24 -0800 (PST) Message-ID: <4990836470c5fb01babcf416ca6ccf9e5e21d152.camel@gmail.com> Subject: (hid-logitech) Support for non-DJ receivers From: Filipe =?ISO-8859-1?Q?La=EDns?= To: Jiri Kosina , Benjamin Tissoires , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Hans de Goede Organization: Archlinux Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-Sb2VxpNhcE4yprkW9xz9" Date: Wed, 06 Jan 2021 19:07:22 +0000 MIME-Version: 1.0 User-Agent: Evolution 3.38.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-Sb2VxpNhcE4yprkW9xz9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey, Some of the new Logitech receivers do not have the DJ interface, this creat= es an issue userspace applications like libratbag, as seen in [1], because we can= 't identify the device based on the hidraw PID. There are two solutions for this: 1) Implement device discovery via the internal Logitech ID in libratbag and= all other userspace apps. 2) Make hid-logitech-dj export a duplicated hidraw node with internal Logit= ech ID as PID, just like it does for the DJ interface. In case you aren't aware of what the DJ interface is, it is essentially a multiplexing protocol that receivers support. 6 devices could be connected = to the same receiver, hid-logitech-dj enables the DJ mode and the receiver wil= l essentially perpend the device ID to each HID report. hid-logitech-dj then creates a HID device for each connected device and routes the HID reports t= o the correspondent HID device. Option 2) would be the easier on userspace, as it keeps the same interface = we use for DJ receivers for other Logitech HID++ receivers and avoids all user= space apps to have to reimplement the same discovery logic. Any thoughts? [1] https://github.com/libratbag/libratbag/pull/1071 Cheers, Filipe La=C3=ADns --=-Sb2VxpNhcE4yprkW9xz9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0jW0leqs33gyftiw+JPGdIFqqV0FAl/2CmMACgkQ+JPGdIFq qV0R/xAAsXGO3xETXDPavns+/fb/pxG50F/rnbxmAEmJpnaW/Qje/KXzpClOMCfT LjnG52B3jEHnCfYeydM21k6togGyScVi9SXJqYLw9S+MeUUyLQ4aiseDBpmfN6qs kr3ibrbUc+YQ4i/oCQ3k7KtPSJVN99WdTa733UDHK22F2foJAEPl9FtUiFE4LrK2 stP0Qt9nijAgz9BS+F5qd4it+sov5HvcKt3TEX3B19XlLoB+v5vskkT+jDQH/z42 e/CdOQ1cCdboS7tEg5hcDtRvCJJdxmL9EWLgBN2Svg2UKSic5q6fnUSL7oHDDFaK AuMyZ77Ht186KudQC2OOP+ZZoe1DLN2Sl5LTK5oyevppAnCOuylU2rWejUTKMlCH zwd2sy2WU51oAESKHuUp+5JD6GW87vijeXt3Ks5dp7duhHK5NFktl1zpsJ0RCRiE Uriy6sPuS+F8RGWdBRFoiJps37QL+0czzlZDpZj4kUvL2cKcuXtCUA7fkkwWm/Tw K6ZTUinZ+tsPk8t9aOBZpUIPAj/CYhlNcFeQvd3Mku9s41ZwrGyg2K/ezlPnygb1 YiQzNrPLZV3PwGLAsQmaIJ62oMJkWMW9ASUZi6GrSZcQc9eWQH5Ao2hX9hJqKwmR q8idYajivDmJuwNZtorg6N6T2qHEmTikd1FdwmohfbsK24CfnAA= =Lk20 -----END PGP SIGNATURE----- --=-Sb2VxpNhcE4yprkW9xz9--