Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1833289ybh; Sun, 8 Mar 2020 14:27:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv8YL/jCW8Y+Dc4HK8u5oWPAc+rkinKlnxKRX4is75t2Ewxl3ADOkCGvWA32y6pr9JhJJmT X-Received: by 2002:a9d:6452:: with SMTP id m18mr10587792otl.366.1583702842914; Sun, 08 Mar 2020 14:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583702842; cv=none; d=google.com; s=arc-20160816; b=zpxy2BEthGGri7c0dROLrmDFd3AG3RSFhVI3l8px5yFEITv2Pg/0yNYWvv8TSnmD4S Kwx7Zfa96/5GcgEfRouqXWSS1BQZy8f/kqtrd2eq9ecbCfKlq3HCegln9xBHPB7rBJQq g/L0K6tGDEh+WhjRaNb62BzX5x8ju/Z50leRw2WXGWpcGMtK65ILNE5ul6QkC8qWfwHh OT3uOsbZfn6k2IxlHdHkjxxlz7xDuCwLrwlHTRsizXmeBa486zAN8FSpy3LpVofNVCgs 2/grl++tuwYeIq/fWZBwCElpjnlgggoEOgXX7pgKbqCVBokvHITyiHOqck80HqWL/3gY dT8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2JL35FNQB5kJr7TAMFhTk/qb1NbNj+FPmweLs4Ntayc=; b=dzK62QZK5+ri0rAswvNrKzv6mDLEdWhnZ2mR+iLkZls/tNDpbVhXfG7q8aDZww+bJK 4tmyLXTSORujIpgx02HhKyBONZaXISGbUlQOR+rrBm+HAEcaI+cBASEAy0A75uaHujj0 FD5O2Ohgkp9piy00hy+maCQkCObUOgsx3CXTQet2D5gt5MEPeX80Q1Zdtwqf+mfUWEyF mIb+bmRmPhEHbhR3dNqKJlweUhDBRqu0HgXsT8laTXZ5XEgxk3IFT9TL0zLe5+epuVjY hnHqa98nUISTsmJgsiyKnQdvpxtPSEfopDPdLwYAjqtryTqDw0EZxU4wRY+lQEXBihGF itSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i19si3240115oie.131.2020.03.08.14.27.11; Sun, 08 Mar 2020 14:27:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726397AbgCHV0w (ORCPT + 99 others); Sun, 8 Mar 2020 17:26:52 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:45244 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgCHV0w (ORCPT ); Sun, 8 Mar 2020 17:26:52 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 59F571C0317; Sun, 8 Mar 2020 22:26:50 +0100 (CET) Date: Sun, 8 Mar 2020 22:26:49 +0100 From: Pavel Machek To: Tobias Schramm Cc: Jacek Anaszewski , Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/1] Add generic inverted led triggers Message-ID: <20200308212649.GA31247@amd> References: <20200308142722.1199260-1-t.schramm@manjaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <20200308142722.1199260-1-t.schramm@manjaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > This patch adds generic inverted LED triggers. With this patch applied > any trigger can be used with inverted brightness levels by appending > "-inverted" to the name of a trigger. Not a big fan (sorry). We have already _way_ too many triggers, we don't want to have twice that much. > This is can be useful for devices that do not have dedicated LEDs for e.g. > disk activity indication. With this patch applied the power led can be set > to default-state =3D on and trigger =3D disk-activity-inverted. Then the= led > will be on by default, indicating the power state of the device but it > will turn off briefly whenever there is disk activity. Better implementation might be to have a trigger attribute doing the inverting. > I think dual-use of LEDs might come in handy for quite a few devices since > a lot of embedded boards and upcoming ARM based notebooks do only have one > or two LEDs. Inverting really does not work with all the triggers; numlock-inverted will not get too many users. always-on-inverted... blink-inverted.... I guess it does make sense for disk activity (but be warned disk can be continuously active for quite a while). What triggers do you think make sense inverted? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl5lYxkACgkQMOfwapXb+vLCcQCdFXTGZclHREpMmf1wjB+Wzmt/ 4ecAoLyzF2muOElkuYhK0/xFDh6/XBA2 =abBt -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--