From bf8e1ff879008f366cefa8604fe8e2299f7e05fc Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 21 Oct 2024 10:12:14 +0800 Subject: [PATCH] Disable sleep for idle --- 1000-disable-sleep-for-idle.patch | 12 ++++++++++++ gnome-settings-daemon.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 1000-disable-sleep-for-idle.patch diff --git a/1000-disable-sleep-for-idle.patch b/1000-disable-sleep-for-idle.patch new file mode 100644 index 0000000..11b9664 --- /dev/null +++ b/1000-disable-sleep-for-idle.patch @@ -0,0 +1,12 @@ +--- gnome-settings-daemon-44.0/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in 2023-03-20 08:04:36.000000000 +0800 ++++ gnome-settings-daemon-44.0.new/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in 2023-11-04 17:07:12.488000000 +0800 +@@ -17,7 +17,7 @@ + The amount of time in seconds the computer on AC power needs to be inactive before it goes to sleep. A value of 0 means never. + + +- 'suspend' ++ 'nothing' + Whether to hibernate, suspend or do nothing when inactive + The type of sleeping that should be performed when the computer is inactive. + + diff --git a/gnome-settings-daemon.spec b/gnome-settings-daemon.spec index f7fbac2..0927f17 100644 --- a/gnome-settings-daemon.spec +++ b/gnome-settings-daemon.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %global glib2_version 2.72 %global colord_version 1.4.6 @@ -21,6 +21,8 @@ License: GPLv2+ URL: https://gitlab.gnome.org/GNOME/gnome-settings-daemon Source0: https://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{version}.tar.xz +Patch1000: 1000-disable-sleep-for-idle.patch + BuildRequires: meson >= 0.49.0 gcc cups-devel gettext pkgconfig(glib-2.0) >= %{glib2_version} BuildRequires: perl-interpreter pkgconfig(gcr-4) pkgconfig(libwacom) >= 0.7 pkgconfig(xorg-wacom) BuildRequires: pkgconfig(alsa) pkgconfig(fontconfig) pkgconfig(colord) >= %{colord_version} @@ -168,6 +170,9 @@ The %{name}-doc package contains documentation files for %{name}. %doc README AUTHORS NEWS %changelog +* Mon Oct 21 2024 mgb01105731 - 44.1-3 +- Disable sleep for idle + * Sun Aug 6 2023 Funda Wang - 44.1-2 - Fix systemd units name in scriptlets -- Gitee