Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1214665rdb; Tue, 30 Jan 2024 11:10:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiZEtJzTpBWrImJ3hUJKXqn4zXWKGPsjiBAl+dB8b38dZxEnP8bDcUrDPC7udziIjJ69SR X-Received: by 2002:a17:903:2452:b0:1d5:907a:41aa with SMTP id l18-20020a170903245200b001d5907a41aamr382380pls.21.1706641830081; Tue, 30 Jan 2024 11:10:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706641830; cv=pass; d=google.com; s=arc-20160816; b=uBBeHPbWd5k/Fvfa7oWeNSsFMhb6GtMT8rT7K4nl6q0JlUxKKC7W+qzQkPzd/spnJD 8hPfn0mQqtprDZzbgOPyL8ZCKOpxEr7B1WkzsKWVrk1d4GdmGhTcVhcwj1ZJU8tJ9l9I zaUTlFVf02mgftIbjBKUM2lbUtCVRR6yWl1CaheddDRL5MNpfxCuJ7jMco2982luc/Hx 5PSWi/9uWZRVuodDD4QAU7TTxq5Y/8bvyd3IMHm+/+cJ5LX/1HOPxdy+VsgDTf9TRz8H XfFqEQHec0shbR+xPS9cZp0725ibRmV9y7x8Bq/EOIonrnMlCzfhB+OS+NXJ1Dm04ODH S+cQ== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LbhUeHVixZ6fHRGYU1VVwvcn9Vo4T6Wzvv+6eidxVh0=; fh=vH0Ey53KVCBCSskvvWEX078N98YTWh03xgtsBXgXJZ4=; b=rjzpEb45DGVYFonWByUDZ0aES2dtR40Jf09n9/mc9vYuN5yGPcMbB5Ky18fFmqbveK 4d73bkL2FRLlplxJaZ2gsvfgdDeVerhdeQUupjxEx5XSQNXKuD9EvvLk0g3MqKP6ZV6S YrUlh2/cEzfTBu9TNVvmdV1up+n8lcXBDtGj27MkVxeuJNfSq0YNfzzkp7QuCAfDLv8z +Vcyq9Bl8xB0erEbnTwmVzTc74rWY1wVfxGLtOjZ4iqWQKP/sMtO8Vhv1iMJiuC6Plpt FlDmz2UG5SnTVOVfBwAtNE7e3evgkXCC10XUwDIguOVUitCjvI7aWv8CBPQ/xprwTF5I Mvlg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=eblZUCnp; 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-45167-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l3-20020a170902f68300b001d717e60007si8170273plg.397.2024.01.30.11.10.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 11:10:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45167-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=eblZUCnp; 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-45167-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45167-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CCE56B226AD for ; Tue, 30 Jan 2024 19:08:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFA397AE4D; Tue, 30 Jan 2024 19:08:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b="eblZUCnp" 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 CAE5B7AE44; Tue, 30 Jan 2024 19:08:44 +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=1706641727; cv=none; b=QIzmUzAGiM5GOKXI/R1zj8RfXASfsWzAAKoFKPVMyfgqgKDaPeae8o4EjXiBpAEGlFNNQdynC1mQ0NwRGKG7BQyfkIyUe1dTolb/P7TAne9KQqoTZjbKREBK3cVKJIYavokMnXPvZ9qKb37GPoIN0AlV7sqpk5PIN9EAuhO9SaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706641727; c=relaxed/simple; bh=oUIdLXEYaWSKNLi2jOEFBtoL4WM7Kh/0wZWmDFhoNLM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CiPVS9bXCqI5zyBGuIO9S7MPToHuko/r84+T/ztRLQutBopSD+3cQqdcaKY36yx3bwhD1UM5GX+fjLt/9CYLDTfqKBkP9CpaDeiVZODzg0UW9BbKila5oGD9H0wgqQbbyxU5v3VxMghvAZYfV5rfkJb1HatEwUmfmOBFV95g94s= 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=eblZUCnp; 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 23BFC2FC004A; Tue, 30 Jan 2024 20:08:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1706641722; 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=LbhUeHVixZ6fHRGYU1VVwvcn9Vo4T6Wzvv+6eidxVh0=; b=eblZUCnpERjN7epF9d579T4ea980hdkcfbiNS7lWSKcEn66+MJOtJ9uQNaJZvn5qfRt4X9 1Z6fJamdKuUtzJ7grIAplzCNz/t9/k6nP5gEunaN544POJRg62gA93IRcMfyAWqWRrCyKx H+dD1Gh4Ul1iX0LWZj4tlRq4K2g+z9Y= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=wse@tuxedocomputers.com smtp.mailfrom=wse@tuxedocomputers.com Message-ID: Date: Tue, 30 Jan 2024 20:08:41 +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? Content-Language: en-US To: Hans de Goede , Pavel Machek Cc: 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> <6bbfdd62-e663-4a45-82f4-445069a8d690@redhat.com> <0cdb78b1-7763-4bb6-9582-d70577781e61@tuxedocomputers.com> <7228f2c6-fbdd-4e19-b703-103b8535d77d@redhat.com> <730bead8-6e1d-4d21-90d2-4ee73155887a@tuxedocomputers.com> <952409e1-2f0e-4d7a-a7a9-3b78f2eafec7@redhat.com> <9851a06d-956e-4b57-be63-e10ff1fce8b4@tuxedocomputers.com> <1bc6d6f0-a13d-4148-80cb-9c13dec7ed32@redhat.com> From: Werner Sembach In-Reply-To: <1bc6d6f0-a13d-4148-80cb-9c13dec7ed32@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Am 30.01.24 um 19:35 schrieb Hans de Goede: > Hi, > > On 1/30/24 19:09, Werner Sembach wrote: >> Hi Hans, >> >> resend because Thunderbird htmlified the mail :/ > I use thunderbird too. If you right click on the server name > and then go to "Settings" -> "Composition & Addressing" > and then uncheck "Compose messages in HTML format" > I think that should do the trick. Can't set this globally or other people will complain that my replies delete company logos in signatures xD. But usually the auto detection of Thunderbird works. > >> Am 30.01.24 um 18:10 schrieb Hans de Goede: >>> Hi Werner, >>> >>> On 1/30/24 12:12, Werner Sembach wrote: >>>> Hi Hans, >>>> >>>> Am 29.01.24 um 14:24 schrieb Hans de Goede: >> >>>> I think that are mostly external keyboards, so in theory a possible cut could also between built-in and external devices. >>> IMHO it would be better to limit /dev/rgbledstring use to only >>> cases where direct userspace control is not possible and thus >>> have the cut be based on whether direct userspace control >>> (e.g. /dev/hidraw access) is possible or not. >> Ack >> >> >> >>>> So also no basic driver? Or still the concept from before with a basic 1 zone only driver via leds subsystem to have something working, but it is unregistered by userspace, if open rgb wants to take over for fine granular support? >>> Ah good point, no I think that a basic driver just for kbd backlight >>> brightness support which works with the standard desktop environment >>> controls for this makes sense. >>> >>> Combined with some mechanism for e.g. openrgb to fully take over >>> control as discussed. It is probably a good idea to file a separate >>> issue with the openrgb project to discuss the takeover API. >> I think the OpenRGB maintainers are pretty flexible at that point, after all it's similar to enable commands a lot of rgb devices need anyway. I would include it in a full api proposal. > Ack. > >> On this note: Any particular reason you suggested an ioctl interface instead of a sysfs one? (Open question as, for example, I have no idea what performance implications both have) > sysfs APIs typically have a one file per setting approach, > so for effects with speed and multiple-color settings you > would need a whole bunch of different files and then you > would either need to immediately apply every setting, > needing multiple writes to the hw for a single effect > update, or have some sort of "commit" sysfs attribute. > > With ioctls you can simply provide all the settings > in one call, which is why I suggested using ioctls. Ack If the static mode update is fast enough to have userspace controlled animations, OpenRGB is calling that direct mode. Is it feasible to send 30 or more ioctls per second for such an direct mode? Or should this spawn a special purpose sysfs file that is kept open by userspace to continuously update the keyboard? > > Regards, > > Hans > > > Regards, Werner