From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:48291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8E11-0004xM-Ky for guix-patches@gnu.org; Sun, 24 Mar 2019 21:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8E10-0001d0-FL for guix-patches@gnu.org; Sun, 24 Mar 2019 21:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8E10-0001cw-Bp for guix-patches@gnu.org; Sun, 24 Mar 2019 21:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h8E10-00017p-6v for guix-patches@gnu.org; Sun, 24 Mar 2019 21:03:02 -0400 Subject: [bug#34985] [PATCH] gnu: Add brightnessctl. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:48178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8E0T-0004wR-3a for guix-patches@gnu.org; Sun, 24 Mar 2019 21:02:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8E0R-0001Rw-R3 for guix-patches@gnu.org; Sun, 24 Mar 2019 21:02:29 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:39750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8E0R-0001OW-HL for guix-patches@gnu.org; Sun, 24 Mar 2019 21:02:27 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 270DC1AA27 for ; Sun, 24 Mar 2019 18:02:23 -0700 (PDT) From: Vagrant Cascadian Date: Sun, 24 Mar 2019 18:01:51 -0700 Message-ID: <87ef6vhim8.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34985@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable * gnu/packages/linux.scm (brightnessctl): New variable. =2D-- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d52e12f9cd..8e07d6a67e 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4304,6 +4304,43 @@ set the screen to be pitch black at a va=C4=BAue of = 0 (or higher). Light is the successor of lightscript.") (license license:gpl3+))) =20 +(define-public brightnessctl + (let ((commit "6a791e7694aeeb5d027f71c6098e5182cf03371c")) + (package + (name "brightnessctl") + (version (git-version "0.4" "0" commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Hummer12007/brightnessctl/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1n1gb8ldgqv3vs565yhk1w4jfvrviczp94r8wqlkv5q6ab43c8w9"))= )) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; no tests + #:make-flags (list "CC=3Dgcc" + (string-append "PREFIX=3D" %output) + (string-append "UDEVDIR=3D" %output "/lib/udev= /rules.d/")) + #:phases (modify-phases %standard-phases (delete 'configure) + (add-after 'unpack 'adjust-udev-rules + (lambda _ + (substitute* "90-brightnessctl.rules" + (("/bin/") "/run/current-system/pro= file/bin/")) + #t))))) + (home-page "https://github.com/Hummer12007/brightnessctl") + (synopsis "Backlight and LED brightness control") + (description + "This program allows you read and control device brightness. Devic= es +include backlight and LEDs. It can also preserve current brightness before +applying the operation, such as on lid close. + +The appropriate permissions must be set on the backlight or LED control +interface in sysfs, which can be accomplished with the included udev rules= .") + (license license:expat)))) + (define-public tlp (package (name "tlp") =2D-=20 2.20.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXJgogAAKCRDcUY/If5cW qi0ZAQC5aRzOAGTBnVDuaz/CZ8Yp59UC1HxQmtrPbdrmvfJLVQD8CrLMX725k2Ym yxhu5kZv3NplAOe5PFyxsOY4BiyqWgY= =7A6E -----END PGP SIGNATURE----- --=-=-=--