Accepting request 941913 from GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/941913 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-settings-daemon?expand=0&rev=176
This commit is contained in:
commit
a610800f00
@ -1,8 +1,8 @@
|
|||||||
Index: gnome-settings-daemon-40.0.1/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
Index: gnome-settings-daemon-41.0/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-40.0.1.orig/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
--- gnome-settings-daemon-41.0.orig/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
||||||
+++ gnome-settings-daemon-40.0.1/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
+++ gnome-settings-daemon-41.0/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
||||||
@@ -41,5 +41,10 @@
|
@@ -41,6 +41,11 @@
|
||||||
<summary>Power button action</summary>
|
<summary>Power button action</summary>
|
||||||
<description>The action to take when the system power button is pressed. This action is hard-coded (and the setting ignored) on virtual machines (power off) and tablets (suspend).</description>
|
<description>The action to take when the system power button is pressed. This action is hard-coded (and the setting ignored) on virtual machines (power off) and tablets (suspend).</description>
|
||||||
</key>
|
</key>
|
||||||
@ -11,21 +11,22 @@ Index: gnome-settings-daemon-40.0.1/data/org.gnome.settings-daemon.plugins.power
|
|||||||
+ <summary>If an information message should be displayed when returning from idle sleep.</summary>
|
+ <summary>If an information message should be displayed when returning from idle sleep.</summary>
|
||||||
+ <description>If an information message should be displayed when returning from idle sleep.</description>
|
+ <description>If an information message should be displayed when returning from idle sleep.</description>
|
||||||
+ </key>
|
+ </key>
|
||||||
</schema>
|
<key name="power-saver-profile-on-low-battery" type="b">
|
||||||
</schemalist>
|
<default>true</default>
|
||||||
Index: gnome-settings-daemon-40.0.1/plugins/power/gsd-power-manager.c
|
<summary>Enable power-saver profile when battery is low</summary>
|
||||||
|
Index: gnome-settings-daemon-41.0/plugins/power/gsd-power-manager.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-40.0.1.orig/plugins/power/gsd-power-manager.c
|
--- gnome-settings-daemon-41.0.orig/plugins/power/gsd-power-manager.c
|
||||||
+++ gnome-settings-daemon-40.0.1/plugins/power/gsd-power-manager.c
|
+++ gnome-settings-daemon-41.0/plugins/power/gsd-power-manager.c
|
||||||
@@ -160,6 +160,7 @@ struct _GsdPowerManager
|
@@ -164,6 +164,7 @@ struct _GsdPowerManager
|
||||||
NotifyNotification *notification_ups_discharging;
|
NotifyNotification *notification_ups_discharging;
|
||||||
NotifyNotification *notification_low;
|
NotifyNotification *notification_low;
|
||||||
NotifyNotification *notification_sleep_warning;
|
NotifyNotification *notification_sleep_warning;
|
||||||
+ NotifyNotification *notification_resumed;
|
+ NotifyNotification *notification_resumed;
|
||||||
GsdPowerActionType sleep_action_type;
|
GsdPowerActionType sleep_action_type;
|
||||||
GHashTable *devices_notified_ht; /* key = serial str, value = UpDeviceLevel */
|
GHashTable *devices_notified_ht; /* key = serial str, value = UpDeviceLevel */
|
||||||
gboolean battery_is_low; /* laptop battery low, or UPS discharging */
|
gboolean battery_is_low; /* battery low, or UPS discharging */
|
||||||
@@ -196,6 +197,7 @@ struct _GsdPowerManager
|
@@ -205,6 +206,7 @@ struct _GsdPowerManager
|
||||||
gboolean inhibit_suspend_taken;
|
gboolean inhibit_suspend_taken;
|
||||||
guint inhibit_lid_switch_timer_id;
|
guint inhibit_lid_switch_timer_id;
|
||||||
gboolean is_virtual_machine;
|
gboolean is_virtual_machine;
|
||||||
@ -33,7 +34,7 @@ Index: gnome-settings-daemon-40.0.1/plugins/power/gsd-power-manager.c
|
|||||||
|
|
||||||
/* Idles */
|
/* Idles */
|
||||||
GnomeIdleMonitor *idle_monitor;
|
GnomeIdleMonitor *idle_monitor;
|
||||||
@@ -1614,6 +1616,49 @@ is_session_active (GsdPowerManager *mana
|
@@ -1744,6 +1746,49 @@ is_session_active (GsdPowerManager *mana
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -83,7 +84,7 @@ Index: gnome-settings-daemon-40.0.1/plugins/power/gsd-power-manager.c
|
|||||||
idle_set_mode (GsdPowerManager *manager, GsdPowerIdleMode mode)
|
idle_set_mode (GsdPowerManager *manager, GsdPowerIdleMode mode)
|
||||||
{
|
{
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
@@ -1694,6 +1739,7 @@ idle_set_mode (GsdPowerManager *manager,
|
@@ -1824,6 +1869,7 @@ idle_set_mode (GsdPowerManager *manager,
|
||||||
action_type = g_settings_get_enum (manager->settings,
|
action_type = g_settings_get_enum (manager->settings,
|
||||||
"sleep-inactive-ac-type");
|
"sleep-inactive-ac-type");
|
||||||
}
|
}
|
||||||
@ -91,7 +92,7 @@ Index: gnome-settings-daemon-40.0.1/plugins/power/gsd-power-manager.c
|
|||||||
do_power_action_type (manager, action_type);
|
do_power_action_type (manager, action_type);
|
||||||
|
|
||||||
/* turn on screen and restore user-selected brightness level */
|
/* turn on screen and restore user-selected brightness level */
|
||||||
@@ -2502,6 +2548,12 @@ handle_suspend_actions (GsdPowerManager
|
@@ -2777,6 +2823,12 @@ handle_suspend_actions (GsdPowerManager
|
||||||
static void
|
static void
|
||||||
handle_resume_actions (GsdPowerManager *manager)
|
handle_resume_actions (GsdPowerManager *manager)
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 21 01:48:48 UTC 2021 - Yifan Jiang <yfjiang@suse.com>
|
||||||
|
|
||||||
|
- Rebase patches:
|
||||||
|
+ gnome-settings-daemon-notify-idle-resumed.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 19 19:21:06 UTC 2021 - Michael Gorse <mgorse@suse.com>
|
Sun Sep 19 19:21:06 UTC 2021 - Michael Gorse <mgorse@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user