Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D9665C47DDF for ; Tue, 23 Jan 2024 16:51:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 07A6410E803; Tue, 23 Jan 2024 16:51:12 +0000 (UTC) Received: from mail.tuxedocomputers.com (mail.tuxedocomputers.com [157.90.84.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id C23D510E7FA for ; Tue, 23 Jan 2024 16:51:09 +0000 (UTC) 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 9C3C22FC0050; Tue, 23 Jan 2024 17:51:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1706028666; 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=VdkokTZGvxcJHk9IiPC4nPROKX8TmRItLHJlrEqCNJs=; b=GNMBobsM25vzbIaUJ9ZsUXY1t95zxv/x9Yb3+W+7pAvEmJYGD68iisuOJAL1aT70kBltww LgcsjCrRpRcBlhU9ICKmB6aem1k8IkLgcVm+nXcdUMoKeDKUT6g+yb7SGTE3xnplyyTFTn 3AqrmNSNTous3svtFzJSaayp9w+UIUc= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=wse@tuxedocomputers.com smtp.mailfrom=wse@tuxedocomputers.com Message-ID: <7df49b4f-5d9f-48f2-98bd-e2c3f567126c@tuxedocomputers.com> Date: Tue, 23 Jan 2024 17:51:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Implement per-key keyboard backlight as auxdisplay? Content-Language: en-US To: Pavel Machek , Dmitry Torokhov References: <8096a042-83bd-4b9f-b633-79e86995c9b8@redhat.com> <4222268b-ff44-4b7d-bf11-e350594bbe24@redhat.com> <6bbfdd62-e663-4a45-82f4-445069a8d690@redhat.com> <87bk9hppee.fsf@intel.com> From: Werner Sembach In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jikos@kernel.org, Miguel Ojeda , Lee Jones , linux-kernel@vger.kernel.org, Jelle van der Waa , Hans de Goede , Benjamin Tissoires , "dri-devel@lists.freedesktop.org" , linux-input@vger.kernel.org, ojeda@kernel.org, linux-leds@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Am 19.01.24 um 23:14 schrieb Pavel Machek: > Hi! > >>> And while I would personally hate it, you can imagine a use case where >>> you'd like a keypress to have a visual effect around the key you >>> pressed. A kind of force feedback, if you will. I don't actually know, >>> and correct me if I'm wrong, but feels like implementing that outside of >>> the input subsystem would be non-trivial. >> Actually I think it does not belong to the input subsystem as it is, >> where the goal is to deliver keystrokes and gestures to userspace. The >> "force feedback" kind of fits, but not really practical, again because >> of lack of geometry info. It is also not really essential to be fully >> and automatically handled by the kernel. So I think the best way is >>> to > So that's actually big question. > > If the common usage is "run bad apple demo on keyboard" than pretty > clearly it should be display. > > If the common usage is "computer is asking yes/no question, so > highlight yes and no buttons", then there are good arguments why input > should handle that (as it does capslock led, for example). The common usage is "make keyboard look flashy", for some a fixed color scheme is enough, other ones might probably enable one of the built in modes. Most people I think will be satisfied with these 2 options, albeit both of your suggestions sound cool. > > Actually I could imagine "real" use when shift / control /alt > backlight would indicate sticky-shift keys for handicapped. > > It seems they are making mice with backlit buttons. If the main use is > highlight this key whereever it is, then it should be input. > > But I suspect may use is just fancy colors and it should be display. > > Best regards, > Pavel