Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2508455rdb; Mon, 20 Nov 2023 12:53:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpGumg0TP0QbZwKL+L3pp6nWV3fvSOBrIbEXRHxjvE0HaBwKBhyi/6N5lnGZmU3LOgiWIv X-Received: by 2002:a05:6a20:549e:b0:187:b735:81a9 with SMTP id i30-20020a056a20549e00b00187b73581a9mr8142714pzk.60.1700513583158; Mon, 20 Nov 2023 12:53:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700513583; cv=none; d=google.com; s=arc-20160816; b=TxaQHEVpzaBMojSSa0M9dVqndZ0uQvZd4WUBcHvFDV2W2bDl938bvxN3xyonv8Jtsq VHkLCDUqTXMAv7iJWRApa79GusGTDooz2LMo3zyIxNW1CVlJtEHGu6nhWGm4d4OOBoNh /ReWRJpf0hetyTbCor/SxZfviDR1tVU789RmnW7bffs7rznYsOs7IML5FDPWfuwGBkPa qzAfi5IamaV7Lm6W2VIKFrvPDxyA6E9PBJycPYxaCrV8nPHoGdKS7pgCiqbp1cg4VRyf A1xB6hnUERnkkY/gD8VzPfH8dkZQTmML0RH6OiqglNcuKyDkB6rWtim35wa9TreKABAR X69Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XmYv3UZocdypqxuydUEGfEMndPZRJHoMutba992HhG4=; fh=/asyr1orU6GsRgyl3fGBLVqMvYht7onBhk9l7mcblzM=; b=JZH003jCMof1rb9PJmzqoykQpiRxvirdHi79gUPAFcKrzH0JPX7UwJPm90Xo1niw5U 1G3v2bSojWm4lP5GmVQYpUDJJu9sNDcqy9TFIo1P25ppuzSwbGmYKd9qpAmEWoAkz/E0 14aT/A/PYd0Ci7LaErjSk6zv6LevNEIoTISqSlUeb5ZL5VRraxMBC0Sq4dSy8ENHSVf0 O5ETAfuS+uaPSYEkmiyUUcQtT7C74NIyoqs7pHhZjE94wkxfz7eK5vxVgbbF2CmXb/5s P7O0V+YQkuj+yj1ip6Vor3kfohPuFn1OHDg57xwOza4YpIwQZx2R/++J5BJB0QJMVWhy 039A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b="LC/ryqAw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w6-20020a63fb46000000b005b8ccf97dcesi8465376pgj.297.2023.11.20.12.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 12:53:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b="LC/ryqAw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 992E5806895C; Mon, 20 Nov 2023 12:53:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229759AbjKTUwv (ORCPT + 99 others); Mon, 20 Nov 2023 15:52:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjKTUwu (ORCPT ); Mon, 20 Nov 2023 15:52:50 -0500 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CB47CC; Mon, 20 Nov 2023 12:52:46 -0800 (PST) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 3238D1C0050; Mon, 20 Nov 2023 21:52:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1700513564; 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: in-reply-to:in-reply-to:references:references; bh=XmYv3UZocdypqxuydUEGfEMndPZRJHoMutba992HhG4=; b=LC/ryqAwHZMovN00YnWHQnp6TzEJCoa/1N8SH+6PrNzOIChJA8sbYrJ4hLlp/BDrG0q7Mm lHy/fJ4jdc0pQ0VhuxmAKsc1YGGbCUUrNuo6Atj1H1D/qKz1xkum6UnNDsLzYQs019SBjY iSDcC+FWipuxZ7+GT08fRqJ0tKEB4AY= Date: Mon, 20 Nov 2023 21:52:43 +0100 From: Pavel Machek To: Jani Nikula , hdegoede@redhat.com, jikos@kernel.org Cc: Miguel Ojeda , Lee Jones , linux-kernel@vger.kernel.org, Werner Sembach , "dri-devel@lists.freedesktop.org" , linux-input@vger.kernel.org, ojeda@kernel.org, linux-leds@vger.kernel.org Subject: Re: Implement per-key keyboard backlight as auxdisplay? Message-ID: References: <20231011190017.1230898-1-wse@tuxedocomputers.com> <0440ed38-c53b-4aa1-8899-969e5193cfef@tuxedocomputers.com> <87sf61bm8t.fsf@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iuztSBtSd0N/7Hw5" Content-Disposition: inline In-Reply-To: <87sf61bm8t.fsf@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 12:53:00 -0800 (PST) --iuztSBtSd0N/7Hw5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >> So... a bit of rationale. The keyboard does not really fit into the > >> LED subsystem; LEDs are expected to be independent ("hdd led") and not > >> a matrix of them. > > > > Makes sense. > > > >> We do see various strange displays these days -- they commonly have > >> rounded corners and holes in them. I'm not sure how that's currently > >> supported, but I believe it is reasonable to view keyboard as a > >> display with slightly weird placing of pixels. > >> > >> Plus, I'd really like to play tetris on one of those :-). > >> > >> So, would presenting them as auxdisplay be acceptable? Or are there > >> better options? > > > > It sounds like a fair use case -- auxdisplay are typically simple > > character-based or small graphical displays, e.g. 128x64, that may not > > be a "main" / usual screen as typically understood, but the concept is > > a bit fuzzy and we are a bit of a catch-all. > > > > And "keyboard backlight display with a pixel/color per-key" does not > > sound like a "main" screen, and having some cute effects displayed > > there are the kind of thing that one could do in the usual small > > graphical ones too. :) > > > > But if somebody prefers to create new categories (or subcategories > > within auxdisplay) to hold these, that could be nice too (in the > > latter case, I would perhaps suggest reorganizing all of the existing > > ones while at it). >=20 > One could also reasonably make the argument that controlling the > individual keyboard key backlights should be part of the input > subsystem. It's not a display per se. (Unless you actually have small > displays on the keycaps, and I think that's a thing too.) While it would not be completely crazy to do that... I believe the backlight is more of a display and less of a keyboard. Plus input subystem is very far away from supporting this, and we had no input =66rom input people here. I don't think LED subsystem is right place for this, and I believe auxdisplay makes slightly more sense than input. Unless someone steps up, I'd suggest Werner tries to implement this as an auxdisplay. [And yes, this will not be simple task. RGB on LED is different from RGB on display. But there are other LED displays, so auxdisplay should handle this. Plus pixels are really funnily shaped. But displays with missing pixels -- aka holes for camera -- are common in phones, and I believe we'll get variable pixel densities -- less dense over camera -- too. So displays will have to deal with these in the end.] Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --iuztSBtSd0N/7Hw5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZVvHGwAKCRAw5/Bqldv6 8nzcAKCH+YE+d5eAe0VW6rfZmAJwikFR7gCfVhTufr+Do9q4oVaeBHZ3Xm/o9xY= =kzI/ -----END PGP SIGNATURE----- --iuztSBtSd0N/7Hw5--