Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp503783rdb; Thu, 22 Feb 2024 10:06:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXinSMXttfLDPtgqiMBzeG5iDEgTJtYzRH1EqNKvV92qXycmwQRMOUFAfJUGnSKVkMjsEH7QW6EkyxcQKKbY3hJ+iw8dLI1uCorAVbUMQ== X-Google-Smtp-Source: AGHT+IFpcZIpbtkddVqvaIIr3Mni7k5N9Mw1D0z1vlpK0VnHUxkSElgP48xDMpvYbxx2exlZoFuJ X-Received: by 2002:a05:6358:710:b0:17b:5dd1:a38d with SMTP id e16-20020a056358071000b0017b5dd1a38dmr5058271rwj.1.1708625168134; Thu, 22 Feb 2024 10:06:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708625168; cv=pass; d=google.com; s=arc-20160816; b=r+lfULJW7nLBqDqwVBNijEvr1vdl2qdWo56KzTpzM0fbqvWOqNtsCL54Jh+yXVkcMY qic+9r04JnfJ0ss9t5w0E141IHFcjwJL892J14XbVGECqMr1CYBqvUu87CQ9rMHTulIl IVQ77cJAHFcKErPvtO/4eDOCh/dKvdE2nsC5crjtEkbNbQ52o+sJgswLargcEEHZl2xB K5MlvtgGqcxjDF7d25NSGmsiKvRO39jsdiATdqIpIT5a2+LkwQQYYpojBbzenhDSJdmk kFii4cHbEKJrm67tL32SVRI7mgmPWbQJWFXsFMdf4ipg2NrrEo9jvXQ6/kERMD305cNV x/kQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rgaZB3SZMoEm9PLi7mMzZRU1B6wqFrPod6EkwKRjRo4=; fh=qjP7WYjee6xYhK20mttdnZ2hhd6eE3+VHozegEigsTs=; b=SYrbbU1AGbZdNPHwhZu3ZGiUWMqelAc4qlKpMovG2Rev7ya1rZP+htq8u9nPavq5qv Fx1+5QBnqaXI5f3xXXIkN5bGExy8G18C8jtVJD8kClNCcRdKUx4nxU9mEjeXmv4hUyK/ Wx/5+31DC0G2rNPeE4h1FVEAREnKK/5G7gb9in7HgRyVLuq++EoK6gQSaMrHIvVIUp5A kUEPTk6/R3B+PJibxNlgr1G9zBY00jq4SdoUJsnjPM6uvPx8xPEbt9mQBDeQxpUvG5ZU 9pGouEVGuNY/g2oiAgklYpOD8R9dr1J/QcmcvlC8mADalOATWjf1x0VXee4EHtByOjuE MNUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=ZzVGYOK7; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-77017-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e36-20020a631e24000000b005e270acf8f3si8062919pge.748.2024.02.22.10.06.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:06:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77017-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=ZzVGYOK7; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-77017-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DC83EB22DE7 for ; Thu, 22 Feb 2024 17:52:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8850A156985; Thu, 22 Feb 2024 17:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="ZzVGYOK7" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07B30154BE3; Thu, 22 Feb 2024 17:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708624365; cv=none; b=eIBUQEdbWxs7dOpR/pjMxc2r7Wx6j4sbiPDnCioybjB9u+DuTbKiteKi1RiQgYQs79LeBpT8nkjrzVsLsdb1kPu8jdT5iX+1wO3uWTtsUmLuJrkXx9lUv3RFHqUkkJ5ZF2u8d5yRIgCMs1Ie0eFVPer9Faac25KCGLdMei0f3/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708624365; c=relaxed/simple; bh=NaTf6aZ2x1S1ath2Dexnlx72zrc073aoKOZ2c8EsLK0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OM0sTT/xU99ahJjerlcyJTjzjCklEANK6QsspCEw0a6i9euuvRzH7WG9MQDfBcIN1+/F+fETI6ypTYSTT/bMApQgET/gNmYgdzweMorzZKTARYO+49IDaLrwKHHL7yvKZ67m9myCX295YAcSaRLJZU+RT5Eg3ZkZcCIbfPXP5D8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=ZzVGYOK7; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4D55D1C0080; Thu, 22 Feb 2024 18:52:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1708624361; 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=rgaZB3SZMoEm9PLi7mMzZRU1B6wqFrPod6EkwKRjRo4=; b=ZzVGYOK7E/NNZ7Y0k17U6riqoM67HDxzV6hUt95CBUqilcDuL8/LIdy0M3gvhhO2kGe8Bl YT/zJJ0l9B2K87MNHPT2zkbavTw5pVb71w4Ri5CX3CUYflVZZzDgXIrNfoe6zFeqCLVqNo w7wZNZ9nYdDmnQmv3llexMrpOtxwMSw= Date: Thu, 22 Feb 2024 18:52:40 +0100 From: Pavel Machek To: Hans de Goede Cc: Gregor Riepl , Werner Sembach , Lee Jones , jikos@kernel.org, linux-kernel@vger.kernel.org, Jelle van der Waa , Miguel Ojeda , "dri-devel@lists.freedesktop.org" , linux-input@vger.kernel.org, ojeda@kernel.org, linux-leds@vger.kernel.org Subject: Re: Future handling of complex RGB devices on Linux v2 Message-ID: References: <9851a06d-956e-4b57-be63-e10ff1fce8b4@tuxedocomputers.com> <1bc6d6f0-a13d-4148-80cb-9c13dec7ed32@redhat.com> <477d30ee-247e-47e6-bc74-515fd87fdc13@redhat.com> <247b5dcd-fda8-45a7-9896-eabc46568281@tuxedocomputers.com> <825129ea-d389-4c6c-8a23-39f05572e4b4@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cyyKuWjF0GZgvTwP" Content-Disposition: inline In-Reply-To: <825129ea-d389-4c6c-8a23-39f05572e4b4@redhat.com> --cyyKuWjF0GZgvTwP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > For all these reasons the display analogy really is a bit fit for these k= eyboards > we tried to come up with a universal coordinate system for these at the b= eginning > of the thread and we failed ... I quite liked the coordinate system proposal. I can propose this: Vendor maps the keyboard lights to a grid. That would be something 16x8 for thinkpad X220. Then we provide functionality to query "is a working pixel there" and "what kind of key is at this pixel" -- I guess we can use input keycodes for that. Multiple pixels can map to one keycode. (And then we make best effort to map normal keyboards into similar grids). Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --cyyKuWjF0GZgvTwP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZdeJ6AAKCRAw5/Bqldv6 8swPAJ0eTXg7THv3YqztC+ECLpHU9tSEOQCghojVjFEBaej133t9yKUV1+jTrdE= =g5GA -----END PGP SIGNATURE----- --cyyKuWjF0GZgvTwP--