From patchwork Sun Jan 8 15:05:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 45929 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DF13427BBED; Sun, 8 Jan 2023 15:06:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9625327BBE9 for ; Sun, 8 Jan 2023 15:06:26 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEXFN-0004Ze-Na; Sun, 08 Jan 2023 10:06:05 -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 1pEXFK-0004Yq-Q8 for guix-patches@gnu.org; Sun, 08 Jan 2023 10:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEXFK-0004Bo-GZ for guix-patches@gnu.org; Sun, 08 Jan 2023 10:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEXFK-00081H-1P for guix-patches@gnu.org; Sun, 08 Jan 2023 10:06:02 -0500 Subject: bug#59949: [PATCH] gnu: Add power-profiles-daemon Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 08 Jan 2023 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 59949 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: florhizome@posteo.net Cc: 59949-done@debbugs.gnu.org Mail-Followup-To: 59949@debbugs.gnu.org, ludo@gnu.org, florhizome@posteo.net Received: via spool by 59949-done@debbugs.gnu.org id=D59949.167319031830759 (code D ref 59949); Sun, 08 Jan 2023 15:06:01 +0000 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: Ludovic =?utf-8?q?Court=C3=A8s?= 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 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, florhizome@posteo.net skribis: > From: florhizome > > * gnu/packages/freedesktop.scm (power-profiles-daemon): New variable. Applied with the changes below to address ‘guix lint’ warnings. Thanks, Ludo’. 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)))