Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1158826rda; Mon, 23 Oct 2023 04:40:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEffZFXaXdZFKQTtMjurhrG2nMhglX1exI4PBusAJPTQgchOIC8HPhzLPCjFcvwEaEJDAb3 X-Received: by 2002:a05:6a21:7903:b0:16b:8488:babf with SMTP id bg3-20020a056a21790300b0016b8488babfmr6127205pzc.35.1698061250935; Mon, 23 Oct 2023 04:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698061250; cv=none; d=google.com; s=arc-20160816; b=O2YKRejLa13YpqDJS90REKKpCs0hUlsKq1IF0ciGr9rwsjo/DZdUSCs3WxPnXcc82+ eaWOqQ6JOYS1RoeLyN1MIEwlFy3ZjaxgbFG9qqnNlvDV6xBLzn0A5HUS48lDmHYIcbul dqk+eRKsjT0b9KcOgXUoWM7KgwQR720Q25VMwCgfdiuTZ8bNjXix0SCW53eTb6SAnFGK oizLwi3PW5Jv6Xjhx+HIffl55pS3sORx5E3le7OeyeY1pWK1D1MPLeN2joQ6R7tdEA6+ BzepVVBZZqILrkCphAd3YsJMOrZ2R9/8IZCaXu2CDwSQdvAf+K/sLqrgr9BOu307kJNa Sf8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=iXJBC1Wjmu0IdEY4IOWBnhoMmiEBZwTrT4Q3ArWCwe8=; fh=H6hQo/Ch0Ou9ILDxkvxKN0QGqO2rwD/XpPCxk8Ot4w8=; b=mT42J5pv1B2+K/wCL1inCaSwkXBjwkHJVKHcyL5DIC2Zha1fxf3kMkcvrOlIDF7XKe SZvt2jrK1bkt2IDVRJn/axFPvBW72YYC8w/W6p0kHOevoBxNzFfoQDnlfxnvyXCbCeSE hXujpmq8jt2eo5SSyQJpR0cvzyF480ZAUlGKxMJ1k3m8+VMZSgfoQAmbApxm2/xbDFmF FJ75vJDT4p9Dw9gpCbiyUHHzWMEiYumv5asBjtiaz+hf12NH8k1xYZXz7K8d/svwgZqG 1COod/MTq2Kwb9LwnIF3CxDIfIz/yDHn3vvmJG0Qy78g/kmPhc9CpVyjKy3iE195JbiM fmgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G9YOu8BP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b6-20020a056a000cc600b00690d8405fe2si6612158pfv.60.2023.10.23.04.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G9YOu8BP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4BFA680B182F; Mon, 23 Oct 2023 04:40:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234263AbjJWLkd (ORCPT + 99 others); Mon, 23 Oct 2023 07:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234259AbjJWLka (ORCPT ); Mon, 23 Oct 2023 07:40:30 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D48DB; Mon, 23 Oct 2023 04:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698061226; x=1729597226; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=iXJBC1Wjmu0IdEY4IOWBnhoMmiEBZwTrT4Q3ArWCwe8=; b=G9YOu8BPaOvSFI/pf+3Eunm2QnaSt7rFDU/IM+Fb4gmTsdvSoxYNopgo TXbJpYgD9crUSLiJ7OfQ1kDR6ehnbKZ9fSU9gBYd5/HjKzVJvj8PlQF+y nD9u6Eez9OPl+3AoJ94sdhrY3qEszC6YdazV0o39jHdDsSUcM9oe3GLR9 vfloDQW946of6KIARLPCJDKGZYu57uLpx1d3besi4fZ224S1PPh4f4Dp1 uwHTCYEVYdsxciUe8vyZg7StT4TOE2WgHbL3dkr2HTc9aZLEylIqqCSEY xSZW94U1qdnkCzMyMGq04APTD7qyGVGThsCKYjFuNO9Gzc/9ymBpZ8CUA A==; X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="473034126" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="473034126" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 04:40:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="734639430" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="734639430" Received: from evlad-mobl.ger.corp.intel.com (HELO localhost) ([10.252.47.180]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 04:40:22 -0700 From: Jani Nikula To: Miguel Ojeda , Pavel Machek Cc: 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? In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20231011190017.1230898-1-wse@tuxedocomputers.com> <0440ed38-c53b-4aa1-8899-969e5193cfef@tuxedocomputers.com> Date: Mon, 23 Oct 2023 14:40:18 +0300 Message-ID: <87sf61bm8t.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 04:40:48 -0700 (PDT) On Mon, 16 Oct 2023, Miguel Ojeda wrote: > On Fri, Oct 13, 2023 at 9:56=E2=80=AFPM Pavel Machek wrote: >> >> 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). 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.) There's force feedback, there could be light feedback? There's also drivers/input/input-leds.c for the keycaps that have leds, like caps lock, num lock, etc. Anyway, just throwing ideas around, no strong opinions, really. BR, Jani. --=20 Jani Nikula, Intel