Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp645199rdb; Thu, 18 Jan 2024 14:33:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFq474qGGhP7CJUYlnLWlS+PvdUrOfLPeOsgKA8bXKUuVFU9/4it0kJB+EAL4ijUEfb9ITK X-Received: by 2002:a05:620a:a41:b0:783:1a7a:bdb5 with SMTP id j1-20020a05620a0a4100b007831a7abdb5mr337235qka.118.1705617186965; Thu, 18 Jan 2024 14:33:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705617186; cv=pass; d=google.com; s=arc-20160816; b=J2pC6861QO2JdFxvQMrTY3vU/34FADDQLAFN+2ldQHd8Nsf1vS2ns/O2VMhrC7Mz+D GOuB+4szrOZu2qHPVJqqPxyUubb8n4XcW3fCr8ZZrtsha/LVfe8fU/Eq1iBxxRv7URw+ DQZDYdUxpCPwFtb778Qtxn/IKvfJL2g1ui0xufKgOU5I7LKPmwAbA3CmZW35tOHCNBAR JeZO0Lee671cymxokIxrA7V3jNtD4eM4yJhTJDVIjoEc8uOdaiN65Qjfp+e/72bmruwm zc4lU8A23v/N1XXVmtEh00iHj39SQLrWJYtGPEsKZnKkQAUJQUkox0Pjc0r/ekrtMCmd r1TQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=TcAihJqhysfhWWUhnS+B4zIl0C6+wxno+qUkxODtDPs=; fh=UNJ4Wo5RYwZ4wVY1w1l1GQ/JVP4wK11J3khUdNllJ8c=; b=Swy5ScY5OtliVabZJmICwYQgGcqfpHOmrVQKLpJIIttsQSwlnAkUgOUfCCUbY3dCkZ 8RA+u5faYlk5k5WdvB2zGCsqvrOKaGHmmhIs38G3VNdNygakrTNeIPZk2IRragzMm+jN 7ptOMMk/gMyLivNFQAYBZZUTjxyqR3bq177Ue6RGtP2iqSOlcGDllQQPzQlHEkU56vpd GybEW3lQT7POYx+lbssNVVlgTNlJsnU4W4mz3EdbWI1UzCYXpRJqWtOaTceCYp15nKOH 76h2b8HVecerKGZ7TiRLUVA/try3cmqK++FZE29TfeG26uBWe76FoHTQHyuAf65tkcWk 73FA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=skrnqaFi; arc=pass (i=1 spf=pass spfdomain=tuxedocomputers.com dkim=pass dkdomain=tuxedocomputers.com dmarc=pass fromdomain=tuxedocomputers.com); spf=pass (google.com: domain of linux-kernel+bounces-30602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c9-20020a37e109000000b0078326700274si14746468qkm.482.2024.01.18.14.33.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 14:33:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=skrnqaFi; arc=pass (i=1 spf=pass spfdomain=tuxedocomputers.com dkim=pass dkdomain=tuxedocomputers.com dmarc=pass fromdomain=tuxedocomputers.com); spf=pass (google.com: domain of linux-kernel+bounces-30602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A6E4F1C230EF for ; Thu, 18 Jan 2024 22:33:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A56DE1EA78; Thu, 18 Jan 2024 22:32:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b="skrnqaFi" Received: from mail.tuxedocomputers.com (mail.tuxedocomputers.com [157.90.84.7]) (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 3AA791DFC1; Thu, 18 Jan 2024 22:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=157.90.84.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705617173; cv=none; b=tG79gLIxzMEDuCgxfQgUDP9ckw7gW891QHi9cI5ZPVFu7DLyxCEUNLjakZqc0QfjA66e/Aq/7WqePVL3COumbNwE72T4EPxD2beKmxgUuWUL5Eb4e3A9C6MGrdaA1Amv8jrEwJgrPU8ROvoTfHL25I4p7iayiYtUTg3mBtCWGg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705617173; c=relaxed/simple; bh=vlRhOFuJHHUE/Y2iOF6G7uGmlqOi2NbuVZwVBWP4ZIU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=vATPdIzTHHnIPRnxBinsmPcC7BFL3rLRHtUqyCje/eLy6gjl8lGJMW4hLL0jTtOyuKEQMzLYiUBvXhzF8sNQ25q3bxp7XgOhOi6z01HEufeuBF0mFPcuBjpTJ9ITOUD/MTkRVD9sazODkiUFuGAVkPYzLJqhLhlX8jHoZUahhQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com; spf=pass smtp.mailfrom=tuxedocomputers.com; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b=skrnqaFi; arc=none smtp.client-ip=157.90.84.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxedocomputers.com Received: from [192.168.42.20] (p5de453e7.dip0.t-ipconnect.de [93.228.83.231]) (Authenticated sender: wse@tuxedocomputers.com) by mail.tuxedocomputers.com (Postfix) with ESMTPSA id AC7DC2FC0077; Thu, 18 Jan 2024 23:32:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1705617166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TcAihJqhysfhWWUhnS+B4zIl0C6+wxno+qUkxODtDPs=; b=skrnqaFiJ30IpZ0KeddjZA0Z9cIyIwoe8HLgXuaXz4KKqIqEgsudvsukql3T+IOW2uDbHP jbaMWKK87uEsRCg4DQDKW+Bhy5QKSKPozbH+Z1GqYBHr+Ux753Hg5FX87UfK6mrFBDVuPi v6Aw2KkthLlUGXtzlf1gUT2gzI0QhP4= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=wse@tuxedocomputers.com smtp.mailfrom=wse@tuxedocomputers.com Message-ID: <5f144fb7-647e-4488-af20-211e95679d1c@tuxedocomputers.com> Date: Thu, 18 Jan 2024 23:32:45 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Implement per-key keyboard backlight as auxdisplay? To: Pavel Machek Cc: Hans de Goede , Jani Nikula , jikos@kernel.org, Jelle van der Waa , Miguel Ojeda , Lee Jones , linux-kernel@vger.kernel.org, "dri-devel@lists.freedesktop.org" , linux-input@vger.kernel.org, ojeda@kernel.org, linux-leds@vger.kernel.org References: <87sf61bm8t.fsf@intel.com> <8096a042-83bd-4b9f-b633-79e86995c9b8@redhat.com> <4222268b-ff44-4b7d-bf11-e350594bbe24@redhat.com> Content-Language: en-US From: Werner Sembach In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Am 18.01.24 um 18:45 schrieb Pavel Machek: > Hi! > >> We have an upcoming device that has a per-key keyboard backlight, but does >> the control completely via a wmi/acpi interface. So no usable hidraw here >> for a potential userspace driver implementation ... >> >> So a quick summary for the ideas floating in this thread so far: >> >> 1. Expand leds interface allowing arbitrary modes with semi arbitrary >> optional attributes: >>     - Con: >> >>         - Violates the simplicity paradigm of the leds interface (e.g. with >> this one leds entry controls possible multiple leds) > Let's not do this. > >> 2. Implement per-key keyboards as auxdisplay >> >>     - Pro: >> >>         - Already has a concept for led positions >> >>         - Is conceptually closer to "multiple leds forming a singular entity" >> >>     - Con: >> >>         - No preexisting UPower support >> >>         - No concept for special hardware lightning modes >> >>         - No support for arbitrary led outlines yet (e.g. ISO style enter-key) > Please do this one. 2 more maybe cons to add to this that popped into my mind just now: - How would lightbars, or mice fit into this? - How do 3-zone, 4-zone, n-zone keyboards fit into this? aka how many zones to be considered an aux display? > >> 3. Implement in input subsystem >> >>     - Pro: >> >>         - Preexisting concept for keys and key purpose >> >>     - Con: >> >>         - Not in scope for subsystem >> >>         - No other preexisting light infrastructure > Or negotiate with input people to do this. > >> 4. Implement a simple leds driver only supporting a small subset of the >> capabilities and make it disable-able for a userspace driver to take over > No. Kernel should abstract this away. > > Best regards, > Pavel Kind regards, Werner