From unknown Wed Jun 18 23:11:46 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#59949 <59949@debbugs.gnu.org> To: bug#59949 <59949@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add power-profiles-daemon Reply-To: bug#59949 <59949@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:11:46 +0000 retitle 59949 [PATCH] gnu: Add power-profiles-daemon reassign 59949 guix-patches submitter 59949 florhizome@posteo.net severity 59949 normal tag 59949 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 10 16:31:37 2022 Received: (at submit) by debbugs.gnu.org; 10 Dec 2022 21:31:37 +0000 Received: from localhost ([127.0.0.1]:45166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p47RY-0006Me-Q0 for submit@debbugs.gnu.org; Sat, 10 Dec 2022 16:31:37 -0500 Received: from lists.gnu.org ([209.51.188.17]:43634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p47RW-0006MY-WB for submit@debbugs.gnu.org; Sat, 10 Dec 2022 16:31:35 -0500 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 1p47RW-0004xW-R3 for guix-patches@gnu.org; Sat, 10 Dec 2022 16:31:34 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p47RS-0006P4-74 for guix-patches@gnu.org; Sat, 10 Dec 2022 16:31:32 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 03B3E240027 for ; Sat, 10 Dec 2022 22:31:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670707889; bh=IcQyY0ukV7jujb8WOqmnOBjYKjp9DkTFfurTs8pWHn0=; h=From:To:Cc:Subject:Date:From; b=ChqkeqAuh++hf5VJKRxuuIrITXFWJH7oyx0BvKdhzjNXONwiUkYfZfCxgf0LJpMvt t/vy9OYWDnu4bv50lPM/7MTJfth/ukjuyExecxrF6xNObpvgQkiavPesPY/UwArwEc /1Msp7Gm8XJineL3M3FSKsnDkuQtJO2mLLO7ajpRdMs575XkVg5r2SZa9iqbAmzgzV jm9hXXN6gKTUNYH5wwBeLR735MHzbU+CdygFmNoLM9QtHNX69jUn12zVHOU8SfoFeN E1hx34EJKr81aVay3URg3v3bOTBr4lxddBIXkrjgYBVk+THDFxQwZa1jtGGJckNJwE WKDwpMKms9n4w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NV1Kr3lGWz9rxF; Sat, 10 Dec 2022 22:31:28 +0100 (CET) From: florhizome@posteo.net To: guix-patches@gnu.org Subject: [PATCH] gnu: Add power-profiles-daemon Date: Sat, 10 Dec 2022 21:31:21 +0000 Message-Id: <19738ba1fe2d9bdb3087ea62ad2b2208d8f0f0e5.1670707721.git.florhizome@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=florhizome@posteo.net; helo=mout01.posteo.de 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: florhizome 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: -2.3 (--) From: florhizome * gnu/packages/freedesktop.scm (power-profiles-daemon): New variable. --- gnu/packages/freedesktop.scm | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 0267d35c9c..d3d66d5209 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1121,6 +1121,63 @@ (define-public packagekit manager for the current system.") (license license:gpl2+))) +(define-public power-profiles-daemon + (package + (name "power-profiles-daemon") + (version "0.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/power-profiles-daemon") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wqcajbj358zpyj6y4h1v34y2yncq76wqxd0jm431habcly0bqyr")))) + (build-system meson-build-system) + (arguments + (list #:configure-flags #~(list "-Dsystemdsystemunitdir=false") + #:glib-or-gtk? #t + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'fake-pkexec + (lambda _ (setenv "PKEXEC_UID" "-1"))) + (add-before 'configure 'correct-polkit-dir + (lambda _ + (substitute* "meson.build" + (("polkit_gobject_dep\\..*") + (string-append "'" #$output "/share/polkit-1/actions'"))))) + (add-after 'install 'wrap-program + (lambda _ + (wrap-program + (string-append #$output "/bin/powerprofilesctl") + `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))) + (native-inputs + (list `(,glib "bin") gobject-introspection pkg-config python vala)) + (inputs + (list dbus + dbus-glib + libgudev + glib polkit + python + python-pygobject + upower)) + (home-page "https://gitlab.freedesktop.org/hadess/power-profiles-daemon") + (synopsis "Power profile handling over D-Bus") + (description "power-profiles-daemon offers to modify system behaviour based + upon user-selected power profiles. There are 3 different power profiles, a +\"balanced\" default mode, a \"power-saver\" mode, as well as a \"performance\" + mode. The first 2 of those are available on every system. The \"performance\" + mode is only available on select systems and is implemented by different \"drivers\" + based on the system or systems it targets. +In addition to those 2 or 3 modes (depending on the system), \"actions\" can be hooked +up to change the behaviour of a particular device. For example, this can be used +to disable the fast-charging for some USB devices when in power-saver mode.") + (license license:gpl3))) + + (define-public python-libevdev (package (name "python-libevdev") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 08 10:05:18 2023 Received: (at 59949-done) by debbugs.gnu.org; 8 Jan 2023 15:05:18 +0000 Received: from localhost ([127.0.0.1]:34316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEXEc-000802-AS for submit@debbugs.gnu.org; Sun, 08 Jan 2023 10:05:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEXEY-0007zj-UA for 59949-done@debbugs.gnu.org; Sun, 08 Jan 2023 10:05:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEXET-0002y3-Ce; Sun, 08 Jan 2023 10:05:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=EnV2HynUOUAICuXJQ08LyhvgzTyJDn/hRI1727hFQAU=; b=WDXU84ZTnQzfEER1ZkRp OZmpwiEpvG+U9piNJtx6ICwZhx7aST39uPu1e23WLdMNdUrTueJIWsLv7Fwr01vMU0MMkjXMnEaSO z5pzBlSYBJ+y/8FIGXklXPSL9Zs1xpmGxXNZFyj8LZ7mpY4MsSv1kQESDGEJUB+uyVMO8hIpnqpcs KTiT2S5dNF0Zv/TULKUUc/+10tD/XnKfJJtgYDf69DvfgBB5mgMEHVzOwoB9Qqb5Ennz7cOLE+8Tz Gu5hFZHbSZKx8BPeVSBhTAZ9oiMxQ7S0I/POi8T+AzYaQNpZZG7w9lNT1VaOieF4a/n1aLcTHawt+ jJ12MZjvh7uaaA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEXES-0004Wx-Px; Sun, 08 Jan 2023 10:05:09 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: florhizome@posteo.net Subject: Re: bug#59949: [PATCH] gnu: Add power-profiles-daemon References: <19738ba1fe2d9bdb3087ea62ad2b2208d8f0f0e5.1670707721.git.florhizome@posteo.net> Date: Sun, 08 Jan 2023 16:05:06 +0100 In-Reply-To: <19738ba1fe2d9bdb3087ea62ad2b2208d8f0f0e5.1670707721.git.florhizome@posteo.net> (florhizome@posteo.net's message of "Sat, 10 Dec 2022 21:31:21 +0000") Message-ID: <87k01xukwt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59949-done Cc: 59949-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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, florhizome@posteo.net skribis: > From: florhizome > > * gnu/packages/freedesktop.scm (power-profiles-daemon): New variable. Applied with the changes below to address =E2=80=98guix lint=E2=80=99 warni= ngs. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 3077925454..d63fe8f7ca 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1061,7 +1061,8 @@ (define-public power-profiles-daemon (native-inputs (list `(,glib "bin") gobject-introspection pkg-config python vala)) (inputs - (list dbus + (list bash-minimal ;for 'wrap-program' + dbus dbus-glib libgudev glib polkit @@ -1070,15 +1071,17 @@ (define-public power-profiles-daemon upower)) (home-page "https://gitlab.freedesktop.org/hadess/power-profiles-daemon") (synopsis "Power profile handling over D-Bus") - (description "power-profiles-daemon offers to modify system behaviour based - upon user-selected power profiles. There are 3 different power profiles, a -\"balanced\" default mode, a \"power-saver\" mode, as well as a \"performance\" - mode. The first 2 of those are available on every system. The \"performance\" - mode is only available on select systems and is implemented by different \"drivers\" - based on the system or systems it targets. -In addition to those 2 or 3 modes (depending on the system), \"actions\" can be hooked -up to change the behaviour of a particular device. For example, this can be used -to disable the fast-charging for some USB devices when in power-saver mode.") + (description + "power-profiles-daemon offers to modify system behaviour based upon +user-selected power profiles. There are 3 different power profiles, a +\"balanced\" default mode, a \"power-saver\" mode, as well as a +\"performance\" mode. The first 2 of those are available on every system. +The \"performance\" mode is only available on select systems and is +implemented by different \"drivers\" based on the system or systems it +targets. In addition to those 2 or 3 modes (depending on the system), +\"actions\" can be hooked up to change the behaviour of a particular device. +For example, this can be used to disable the fast-charging for some USB +devices when in power-saver mode.") (license license:gpl3))) --=-=-=-- From unknown Wed Jun 18 23:11:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 06 Feb 2023 12:24:10 +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