diff --git a/1000-disable-sleep-for-idle.patch b/1000-disable-sleep-for-idle.patch new file mode 100644 index 0000000000000000000000000000000000000000..11b9664b7c19d76c0fdd9ae79cb0978dd01f8804 --- /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 f7fbac219ca641b89b296bc132ffa906f413e37b..0927f172a56821804d065090c83a8d3136e800f8 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