From unknown Fri Aug 15 21:25:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#70267 <70267@debbugs.gnu.org> To: bug#70267 <70267@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add brillo. Reply-To: bug#70267 <70267@debbugs.gnu.org> Date: Sat, 16 Aug 2025 04:25:36 +0000 retitle 70267 [PATCH] gnu: Add brillo. reassign 70267 guix-patches submitter 70267 Giacomo Leidi severity 70267 normal tag 70267 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 07 17:34:16 2024 Received: (at submit) by debbugs.gnu.org; 7 Apr 2024 21:34:16 +0000 Received: from localhost ([127.0.0.1]:44904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rta9V-0008Jh-3s for submit@debbugs.gnu.org; Sun, 07 Apr 2024 17:34:15 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rta9S-0008JI-I9 for submit@debbugs.gnu.org; Sun, 07 Apr 2024 17:34:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rta9G-0001Cv-4N for guix-patches@gnu.org; Sun, 07 Apr 2024 17:33:58 -0400 Received: from confino.investici.org ([93.190.126.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rta9D-00063d-Q5 for guix-patches@gnu.org; Sun, 07 Apr 2024 17:33:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1712525629; bh=mq6FkyiqglNVbhIxz3uudTIE/RWAgzTPqlNn9EJwvyE=; h=From:To:Cc:Subject:Date:From; b=HX//RbiCnwK/uqShrYQa/+804cUBFaLvrdumWfKt1xIBW1sx0I++SWNnmcROKMo2D 0G+2EpT24kt4d2pKQbxMw4x35yWYEl/pjarm8uetICvMpbbhNCjx29jXu1GdHzWo2Y POzuz+FvdBUm7v2l48qPjzXKNt8IRkbBSVQ3XZSU= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4VCQT91yBNz11Pv; Sun, 7 Apr 2024 21:33:49 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4VCQT91BGRz11P9; Sun, 7 Apr 2024 21:33:49 +0000 (UTC) From: Giacomo Leidi To: guix-patches@gnu.org Subject: [PATCH] gnu: Add brillo. Date: Sun, 7 Apr 2024 23:33:39 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=93.190.126.19; envelope-from=goodoldpaul@autistici.org; helo=confino.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Giacomo Leidi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * gnu/packages/hardware.scm (brillo): New variable. Change-Id: Ic66118b9b792b0bc81bbeffb72236953da0f0772 --- gnu/packages/hardware.scm | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 72b6decd81..0d559ca714 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2022 Efraim Flashner ;;; Copyright © 2023 Spencer Skylar Chan ;;; Copyright © 2023 Foundation Devices, Inc. +;;; Copyright © 2024 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -60,6 +61,7 @@ (define-module (gnu packages hardware) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages golang) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) #:use-module (gnu packages haskell-xyz) @@ -141,6 +143,65 @@ (define-public envytools sets, and tools to deal with register databases.") (license license:expat)))) +(define-public brillo + (package + (name "brillo") + (version "1.4.12") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cameronnemo/brillo") + (commit (string-append "v" version)))) + (sha256 + (base32 + "16n4j45mfhd1zxwbpl8342vyqf8rj3plhcl90xp02m46hn58v8bl")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + (list + #:make-flags #~(list (string-append "CC=" + #$(cc-for-target)) + (string-append "AADIR=" #$output "/etc/apparmor.d") + (string-append "PREFIX=" #$output)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-udev-rules + (lambda _ + (substitute* "contrib/udev.in" + (("/bin/chgrp") + (string-append #$coreutils + "/bin/chgrp")) + (("/bin/chmod") + (string-append #$coreutils + "/bin/chmod"))))) + (delete 'configure) + ;; Tests must be run on real hardware. + (delete 'check) + (add-after 'install 'install-udev-polkit + (lambda* (#:key make-flags #:allow-other-keys) + (map (lambda (target) + (apply invoke "make" target make-flags)) + '("install.udev" "install.polkit"))))))) + (native-inputs (list go-github-com-go-md2man)) + (home-page "https://gitlab.com/cameronnemo/brillo") + (synopsis "Controls the brightness of backlight and LED devices on Linux") + (description + "Brillo can control the brightness of backlight and LED devices on Linux. + +Notable features include: + +@itemize + +@item Automatic best controller detection +@item Smooth transitions and natural brightness adjustments +@item Ability to save and restore brightness across boots +@item Directly using sysfs to set brightness without relying on X +@item Unprivileged access with no new setuid binaries +@item Containment with AppArmor + +@end itemize") + (license (list license:bsd-0 license:gpl3+)))) + (define-public hw-probe (package (name "hw-probe") base-commit: 69951a61a1d8f1f2135ea2dc836738be282b97bc -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 18:16:08 2024 Received: (at 70267) by debbugs.gnu.org; 15 Apr 2024 22:16:09 +0000 Received: from localhost ([127.0.0.1]:39925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwUcR-00080x-34 for submit@debbugs.gnu.org; Mon, 15 Apr 2024 18:16:08 -0400 Received: from 195-15-241-199.dc3-a.pub1.etik-cloud.com ([195.15.241.199]:36078 helo=lyrion.ch) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwUcM-0007v1-Cf; Mon, 15 Apr 2024 18:16:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyrion.ch; s=20230702; t=1713219348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=83yII0UTpF0EXSjvA9MNWohMvxgtc/GpB6HGOywU6Go=; b=0H43zlqKnSWSqjskJrzIMAgUKPPjwP13AGqd4uaHVGc6WszYzjz6FM2jR2EY0c/sFYjzr0 4DblcoZ2DuKrclt/GIh0GP2zp+p03577Hel6VGyhclp676h8XS1J/tw4VkVJOR6RH3BgTH Z/IyFhNWn9RXIrqBRf0NqB6xtDU5r7kSKF6qw1SLV27aUP/k05N5Mj7dAV0yuxb+kg5NH7 jWKTJKzGKdAxsHno5Iy1BDJcHumlwI9oBToy6KFc0vYuiELtKlYcjrjMGJ1wcr3F6ty0hY 5VXyfNduc8srJCyKaqd0ISzINUlenwfhN6SyjyohvHKc31zPPJc3Zx7eLzI2ig== Received: from [IPV6:2a06:6880:42c:1600:23cf:27ad:e59d:8816] ( [2a06:6880:42c:1600:23cf:27ad:e59d:8816]) by lyrion.ch (OpenSMTPD) with ESMTPSA id d4489baa (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 15 Apr 2024 22:15:48 +0000 (UTC) Message-ID: Date: Tue, 16 Apr 2024 00:15:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 To: control@debbugs.gnu.org, 70267@debbugs.gnu.org Subject: QA review for 70267 Content-Language: en-US From: Daniel Ziltener Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 70267 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) user guix usertag 70267 + reviewed-looks-good thanks Guix QA review form submission: Items marked as checked: Lint warnings, Package builds, Commit messages, New package licenses, New package tests, New package synopsis and descriptions From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 18:15:25 2024 Received: (at submit) by debbugs.gnu.org; 16 Apr 2024 22:15:26 +0000 Received: from localhost ([127.0.0.1]:45318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwr5I-0007wr-NL for submit@debbugs.gnu.org; Tue, 16 Apr 2024 18:15:25 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwr58-0007uX-RY for submit@debbugs.gnu.org; Tue, 16 Apr 2024 18:15:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwr4q-0002Ht-MG for guix-patches@gnu.org; Tue, 16 Apr 2024 18:14:57 -0400 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwr4p-00072I-0M for guix-patches@gnu.org; Tue, 16 Apr 2024 18:14:56 -0400 Received: from localhost (unknown [212.132.255.10]) by mira.cbaines.net (Postfix) with ESMTPSA id 08F2927BBE9; Tue, 16 Apr 2024 23:14:53 +0100 (BST) Received: from felis (localhost.lan [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id d948f683; Tue, 16 Apr 2024 22:14:52 +0000 (UTC) From: Christopher Baines To: Giacomo Leidi via Guix-patches via , Giacomo Leidi Subject: Re: [bug#70267] [PATCH] gnu: Add brillo. In-Reply-To: (Giacomo Leidi via Guix-patches via's message of "Sun, 7 Apr 2024 23:33:39 +0200") References: User-Agent: mu4e 1.12.2; emacs 29.3 Date: Tue, 16 Apr 2024 23:14:52 +0100 Message-ID: <87y19dt0o3.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Giacomo Leidi , 70267-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --=-=-= Content-Type: text/plain Giacomo Leidi via Guix-patches via writes: > * gnu/packages/hardware.scm (brillo): New variable. > > Change-Id: Ic66118b9b792b0bc81bbeffb72236953da0f0772 > --- > gnu/packages/hardware.scm | 61 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 61 insertions(+) Thanks both, I tweaked the description to add more details and make it not just a direct copy of the upstream README. I also specified the supported systems since I guess there's no point building this for the hurd. I've pushed it to master as e5e8b4e52d2402225c89421d12bbaf96e3c5c8fd. Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmYe+FxfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xej1w/+KSceeNOuxfjgTT82izWNX2+6TJwcma4Q nCHj5qUwr6cGG9eVfgF8V2LC9DCyQA5zDyaJ64BMF3oV127F2LXqcAm6T1esFzIm tqvqyDkGTlKjG68IBSfTCyhKEh4eypbwQP5E+tp+TrEOfTIOSMML6CcgPw1hcDJP Zml8l0g7N6Oja2et7gLqXdYVDeiY4048lwToJQ1azNcJco+pyrMhAixR9HwhoLHc wpkuUUKdaUriTSFa9wxSR5GgdPLXMvfsWcTDJ79qbjAnoV5198/vs/ppkowKPnRh +nwd/+UocVETGoMtI1Q3CQLTZd/hXrYcjeMNRHqEVvNF/PvNIEiQZ1q7BC3ELPob /mXn0RsR33P2EnZoAMm1Yag9LyPdTYH/X1FM6r7h0C9CMnV8TjXn5HQikdy/NfXT EetsdMCMcNPFbiJF6bMb4ZIL85q8m94W+Mk2g1a9zG1aGwsTldXN5eItcbueadzz GOXHXamh6q58ERwxYTVFbzMpUXs2U9NPUHgKn2HT8ziZnx/OWMpAxq5gFT46Lj8M T88Lf3QEuk9vkMZ1IZ4qp8XYzvbR+h/tTBw1XYkbsqVLFHXOByuOGrS1H5FfH5YU AhEJGFYdH/Ak1VLi1BiaKbnwdQP+gzzdgP0rcxRyzoR1v4L+sRaYjpOsJdRL6rj+ 7DFQFILOIsU= =8+r6 -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Aug 15 21:25:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 May 2024 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator