From patchwork Fri Oct 14 12:02:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 43403 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 7BC2027BBE9; Fri, 14 Oct 2022 15:56:42 +0100 (BST) 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=unavailable 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 41F4B27BBEA for ; Fri, 14 Oct 2022 15:56:40 +0100 (BST) Received: from localhost ([::1]:45540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojM75-0005JV-Es for patchwork@mira.cbaines.net; Fri, 14 Oct 2022 10:56:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojM5Y-00042S-6C for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojM5X-0004Gb-T0 for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojM5X-00063W-NG for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH 1/3] gnu: freedesktop: Add iio-sensor-proxy References: <87bkqflolh.fsf@posteo.net> In-Reply-To: <87bkqflolh.fsf@posteo.net> Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Oct 2022 14:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58501@debbugs.gnu.org Cc: florhizome Received: via spool by 58501-submit@debbugs.gnu.org id=B58501.166575925823166 (code B ref 58501); Fri, 14 Oct 2022 14:55:03 +0000 Received: (at 58501) by debbugs.gnu.org; 14 Oct 2022 14:54:18 +0000 Received: from localhost ([127.0.0.1]:38291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojM4n-00061U-Ox for submit@debbugs.gnu.org; Fri, 14 Oct 2022 10:54:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJP1-0000kG-CE for 58501@debbugs.gnu.org; Fri, 14 Oct 2022 08:03:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3A1F4240027 for <58501@debbugs.gnu.org>; Fri, 14 Oct 2022 14:02:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665748973; bh=TG+Gl0moTpOb1UAdHMjkcldrSQjA7UIDw4F++7AiAz8=; h=From:To:Cc:Subject:Date:From; b=f3XZZcbIBU4wOcH4+C9GRclGUwmS1vJeuRoQk3vB1doBcy4Vw44pUxkiJMOiz0l3N aXC5ot37xaavwpNhYZpomzoFbU3vTwPvbjqssAloLQELw96GenLW8Kac+J2+pKz3qS /LKo9QZKKRwqbjS08QFKcCQwG80XyZfBbZK1UIL1XRMZL/aylCiRJhmHVUHqZHgeFq m5P/mhPFPlCHb1RYYUpYNRuzbwwNKsmDcuz6HH6srgKa1/Cru6cabWndIbkxb7xHvf /zWO4BLtdkUWYDDSIBgij3mVh9xs6EzdDIGc21cVBlej+thOqQQRSWaMXwFNTYVFc3 VZkk4FzPei/Cg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MplQ21KKmz9rxP; Fri, 14 Oct 2022 14:02:49 +0200 (CEST) From: florhizome@posteo.net Date: Fri, 14 Oct 2022 12:02:44 +0000 Message-Id: MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 14 Oct 2022 10:54:16 -0400 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" X-getmail-retrieved-from-mailbox: Patches From: florhizome --- gnu/packages/freedesktop.scm | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) base-commit: 86ec52f66735b122b9035eba56516fd16f3be958 prerequisite-patch-id: 253e1cc8278ab9981294f4e483c7b29a466672d9 prerequisite-patch-id: fb797b9fdd73d1c18cba5dbd5804396d333f13df prerequisite-patch-id: 6f7fd28e90950c738840d3794ce7cd534f0d9180 diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index ab37f04bef..d72b18caf5 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -728,6 +728,57 @@ (define-public elogind of a the system to know what users are logged in, and where.") (license license:lgpl2.1+))) + +(define-public iio-sensor-proxy + (package + (name "iio-sensor-proxy") + (version "3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dpcc3i53aw5illfhfkwxy0hsjsnya5iw4iv4al46vgyvcnvjc8z")))) + (build-system meson-build-system) + (arguments + (list + #:configure-flags #~(list "-Dsystemdsystemunitdir=false" + (string-append "-Dudevrulesdir=" + #$output + "/lib/udev")) + #:glib-or-gtk? #t + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'fake-pkexec + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "PKEXEC_UID" "-1")))) + (add-before 'configure 'correct-polkit-dir + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* + "meson.build" + (("polkit_gobject_dep\\.get_pkgconfig_variable\\('policydir'\\)") + (string-append "'" out "/share/polkit-1/actions'"))))))))) + (native-inputs + (list `(,glib "bin") python umockdev python-dbusmock python-psutil dbus + gobject-introspection pkg-config)) + (inputs + (list glib polkit libgudev)) + (synopsis "Proxies sensor devices (accelerometers, light sensors, compass) + to applications through D-Bus ") + (description "With a GNOME 3.18 (or newer) based system, orientation changes + will automatically be applied when rotating the panel, ambient light will be + used to change the screen brightness, and GeoClue will be able to read the compass +data to show the direction in Maps. Can be used by other DEs, too though.") + (home-page "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (license license:gpl3))) + (define-public basu (package (name "basu") From patchwork Fri Oct 14 12:02:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 43405 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 8C15E27BBEA; Fri, 14 Oct 2022 15:58:54 +0100 (BST) 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=unavailable 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 2748227BBE9 for ; Fri, 14 Oct 2022 15:58:54 +0100 (BST) Received: from localhost ([::1]:50918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojM9F-0007eS-BT for patchwork@mira.cbaines.net; Fri, 14 Oct 2022 10:58:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojM5Z-00044w-7L for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojM5Y-0004KC-Ol for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojM5Y-00063e-5f for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH 2/3] gnu: freedesktop: Add power-profiles-daemon Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Oct 2022 14:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58501@debbugs.gnu.org Cc: florhizome Received: via spool by 58501-submit@debbugs.gnu.org id=B58501.166575925923172 (code B ref 58501); Fri, 14 Oct 2022 14:55:04 +0000 Received: (at 58501) by debbugs.gnu.org; 14 Oct 2022 14:54:19 +0000 Received: from localhost ([127.0.0.1]:38293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojM4o-00061b-J1 for submit@debbugs.gnu.org; Fri, 14 Oct 2022 10:54:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJP7-0000kS-Ih for 58501@debbugs.gnu.org; Fri, 14 Oct 2022 08:03:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A397C240101 for <58501@debbugs.gnu.org>; Fri, 14 Oct 2022 14:02:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665748979; bh=siNxuiaSJRN0tehRs4uCFatSXUDU/C4qDpepzo8DP6E=; h=From:To:Cc:Subject:Date:From; b=oI1tVTWGhb9bHGFULmhK+7nKbwU2YyQyxa4lEhhxHRbhMxPiUKEhUAv9XgTSsCcnZ SSy3LPzNNzKMhYi+asJft9vEeF5koOLfk5VIFEr763Y0dqKQ4ZoN3idX8gAcj96NZr +CMOwRmnkc7hCGMMFeW7K5cDXqfNzYolBIlsit2bIw+nNfH1WinU7RYdvO7I0pq5Bz FuKhtRGn75566r4VAH3UbStrIpcYeBQohqHDm0QZ9UNC++naNsDFVDYVV0Y+QQqGFW l4ZEgrsRG0b45ldyw9c59gSt/3qcBl5np4Nlt4wg+sgbUk0VAELUhj7I8o603YrFVH 6nIBB8mhGxtqQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MplQB06x3z9rxN; Fri, 14 Oct 2022 14:02:58 +0200 (CEST) From: florhizome@posteo.net Date: Fri, 14 Oct 2022 12:02:45 +0000 Message-Id: <30c42f8604b607345c233c0b60e5330243ecfdbe.1665748966.git.florhizome@posteo.net> In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 14 Oct 2022 10:54:16 -0400 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" X-getmail-retrieved-from-mailbox: Patches From: florhizome --- gnu/packages/freedesktop.scm | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index d72b18caf5..b6aaf1f1ba 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -990,6 +990,61 @@ (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 + `(#: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* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* + "meson.build" + (("polkit_gobject_dep\\.get_pkgconfig_variable\\('policydir'\\)") + (string-append "'" out "/share/polkit-1/actions'")))))) + (add-after 'install 'wrap-program + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (string-append (assoc-ref outputs "out"))) + (prog (string-append out "/bin/powerprofilesctl"))) + (wrap-program prog + `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))) + (native-inputs + (list `(,glib "bin") vala python gobject-introspection pkg-config)) + (inputs + (list upower glib polkit dbus libgudev + dbus-glib python python-pygobject)) + (synopsis "Makes power profiles handling available over D-Bus.") + (home-page "https://gitlab.freedesktop.org/hadess/power-profiles-daemon") + (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") From patchwork Fri Oct 14 12:02:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 43404 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 6B82427BBED; Fri, 14 Oct 2022 15:56:52 +0100 (BST) 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 1F5B527BBEA for ; Fri, 14 Oct 2022 15:56:52 +0100 (BST) Received: from localhost ([::1]:57882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojM7H-0005dK-8m for patchwork@mira.cbaines.net; Fri, 14 Oct 2022 10:56:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojM5Z-00044r-6z for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojM5Y-0004M6-Po for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojM5Y-00063l-K6 for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH 3/3] gnu: freedesktop: Add low-memory-monitor Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Oct 2022 14:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58501@debbugs.gnu.org Cc: florhizome Received: via spool by 58501-submit@debbugs.gnu.org id=B58501.166575925923182 (code B ref 58501); Fri, 14 Oct 2022 14:55:04 +0000 Received: (at 58501) by debbugs.gnu.org; 14 Oct 2022 14:54:19 +0000 Received: from localhost ([127.0.0.1]:38295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojM4p-00061m-87 for submit@debbugs.gnu.org; Fri, 14 Oct 2022 10:54:19 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJPA-0000l7-E0 for 58501@debbugs.gnu.org; Fri, 14 Oct 2022 08:03:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E840A240028 for <58501@debbugs.gnu.org>; Fri, 14 Oct 2022 14:03:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665748982; bh=f9o8UwWWi3EYCSkyjAjyIl81jyNJT51CNkUzw2geLro=; h=From:To:Cc:Subject:Date:From; b=LjsUeR40jqGXM3tPDwyJSYD3TQTG3twqIqwDjV6iz/0r5C2bZbrDS8/szptlfzsCC gSTT8BKAAEfeijRwp/quQux0LfeCHb+DuCuCj/d/of8I3uccYerpZ70lpOGeA3YWHf crwXk4NMLC09lypZZESi0ljy3pXhnAz6BpaXexIwhdXLg80ZZDK9lCkA5q0POIKpDl 1IQ3/uGSxipeuH8akKFYKaEuSGr+1AZmtNq68lFcbkJXqYLf3iZRAAv1TabxraDwL7 P+dLK/SzF5PBlY7PGUc+18Ms5x6QZ5JDmECKE6W1YVxT/N7O8mwhk6SukAR06S0bm4 QCCqdIpKpVOvA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MplQG3kzkz6tmV; Fri, 14 Oct 2022 14:02:59 +0200 (CEST) From: florhizome@posteo.net Date: Fri, 14 Oct 2022 12:02:46 +0000 Message-Id: <922dee2e76de618b0bfc406e749bd32e854cc3b3.1665748966.git.florhizome@posteo.net> In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 14 Oct 2022 10:54:16 -0400 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" X-getmail-retrieved-from-mailbox: Patches From: florhizome --- gnu/packages/freedesktop.scm | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index b6aaf1f1ba..5d496da71e 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1733,6 +1733,49 @@ (define-public libqmi ;; The qmicli tool is released under the GPLv2+ license. (list license:lgpl2.0+ license:gpl2+)))) +(define-public low-memory-monitor + (package + (name "low-memory-monitor") + (version "2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/hadess/low-memory-monitor") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0431wzn9q2hnx0mwai8w3bcmbln8g76r7wyyhjbkamnl2sccl8jn")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags (list "-Dsystemdsystemunitdir=false") + #:tests? #f + #:glib-or-gtk? #t)) + (native-inputs + (list `(,glib "bin") gtk-doc libxml2 + gobject-introspection pkg-config)) + (inputs + (list glib libgudev eudev)) + (synopsis "Daemon to send information about memory pressure to userspace") + (description + "The Low Memory Monitor is an early boot daemon that will monitor memory +pressure information coming from the kernel, and, when memory pressure means +that memory isn't as readily available and would cause interactivity problems, + would: + +@itemize +@item send D-Bus signals to user-space applications when memory is running low, + +@item if configured to do so and memory availability worsens, activate the kernel's +OOM killer. +@end itemize + +It is designed for use on traditional Linux systems, with interactive user interfaces +and D-Bus communication.") + (home-page "https://gitlab.freedesktop.org/hadess/low-memory-monitor") + (license license:gpl3))) + (define-public modem-manager (package (name "modem-manager")