Received: by 10.223.185.116 with SMTP id b49csp3171007wrg; Mon, 5 Mar 2018 15:42:02 -0800 (PST) X-Google-Smtp-Source: AG47ELvaWEytcYw1H4+PmxP8A+DlbPcDahukV6zok3CY/1x/TEWDNGuFVSYfUYGNTT1lg4Y/2D/6 X-Received: by 10.98.200.131 with SMTP id i3mr17057077pfk.40.1520293322732; Mon, 05 Mar 2018 15:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520293322; cv=none; d=google.com; s=arc-20160816; b=eACfrmTANlYZJInri0O8BPLvuH3VvEYDYPob+jeDHNfZKMzDUtLcqvdZDIQh9Obwrv Xg3bijs1bt5m3456Ar0A/oV0nYwyVpBB4qhPowX410WfVl+QEexhdB+zLjrmtaztpHVB ck8k/cVXt5+aFiE5eFvKfJiEfHTn+44pVVnd+Aw+PZw7GDB0FjwvG7iyi/5jWtFitEhk LEYeNi8/yreAdaLHUQJeHLC7psNSOy7nEZK6jt1pwA6H7M4j1ovh+0w341oy6aSP/52h DtFfqrA/k3s4iywgGiHaMoEJ4/vFsEKHGV7aRYN24+Ua7PYhynEtqlIDTUpG/0fpjHoR HlYA== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=1EpfydkcruR3bY/O+XXxulg6EuXH9TVtpA0jeA0wNd4=; b=uM2Z7AqxsBZxq1x8m/6eWhu3UVy/pbE6eJy+MmHVEeYT0h9ul59gRRilQBAeNvMIHA Ea+rfW+bc8wUOJe23VOEl/vkIMxsqIvISqvEfhI/NUO7CLIRJ64AfrXwonXLxU/QD3Eu gFT5c96HPkHB/twRHTd7vy2Vj1KMd4CoUINrXQ7/8HZANA6obY34tuua7kbgesc9WmQz 5g/JiPpquLs/oW2xZDs9ekUR1YE84sxmWO/+VsLVJUbs9vR8WjHxDbq4CNumGNZjG6Vg wdrjJOG7kOQ8VFbzE/ah8SJceW1AnazOvYxZx9G58CDVk95eqofCybOm0RK58T/qoPMn ZF4g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si10982452pfl.205.2018.03.05.15.41.48; Mon, 05 Mar 2018 15:42:02 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932759AbeCEXk5 (ORCPT + 99 others); Mon, 5 Mar 2018 18:40:57 -0500 Received: from 5.mo1.mail-out.ovh.net ([178.33.45.107]:57871 "EHLO 5.mo1.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932581AbeCEXk4 (ORCPT ); Mon, 5 Mar 2018 18:40:56 -0500 X-Greylist: delayed 601 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Mar 2018 18:40:56 EST Received: from player789.ha.ovh.net (unknown [10.109.120.14]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id 270E2DBFED for ; Tue, 6 Mar 2018 00:25:13 +0100 (CET) Received: from amn (206.81.15.93.rev.sfr.net [93.15.81.206]) (Authenticated sender: contact@florentflament.com) by player789.ha.ovh.net (Postfix) with ESMTPSA id 6EE0926008E; Tue, 6 Mar 2018 00:25:06 +0100 (CET) Message-ID: <1520292305.14077.11.camel@florentflament.com> Subject: Re: [PATCH v2 1/1] HID: Logitech K290: Add driver for the Logitech K290 USB keyboard From: Florent Flament To: Nestor Lopez Casado Cc: andy.shevchenko@gmail.com, jikos@kernel.org, Benjamin Tissoires , linux-kernel@vger.kernel.org, "open list:HID CORE LAYER" Date: Tue, 06 Mar 2018 00:25:05 +0100 In-Reply-To: References: <20180304170004.26553-1-contact@florentflament.com> <20180304221425.28611-1-contact@florentflament.com> <20180304221425.28611-2-contact@florentflament.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.5 (3.26.5-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 15120835749780486896 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtfedrjeekgdduudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-03-05 at 10:31 +0100, Nestor Lopez Casado wrote: > Hello Florent, Hi Nestor, > In my view, this driver may not be a good idea. The default behaviour > of K290 is 'send multimedia keycodes' with the user given the choice > to change that behaviour via vendor commands. Putting a driver that > will unconditionally change that behaviour without the user's consent > might bother other users that prefer the multimedia keycodes by > default. Actually, the default behavior of the proposed driver is currently to let the K290 send multimedia keycodes by default (as if using the generic HID driver). And this behavior can be changed by using the fn_mode parameter. We may also add a third behavior consisting in not doing anything, and letting a user space application managing the keyboard, which could possibly be the default behavior. > Besides, I'd argue that instead of a kernel module this would be best > achieved from a user space application. Something in the lines of > Solaar (github pwr/solaar) or libratbag (there's an issue open to > support keyboards) or even a specific application built for the > purpose. Anyways, please collect the input from Benjamin and Jiri as > they as they best placed to advise than myself. Indeed, this driver is based on a working user space application available there https://github.com/milgner/k290-fnkeyctl . However, I feel a bit awkward to have to install a dedicated package, or compile & install an application to have proper support of a keyboard. I feel like it would be more beautiful to have it supported directly by a module, like most devices. Regards, Florent