[gnome-settings-daemon] power: close idleness notifications before suspending



commit c0b10fd4493b69951154c2cccbc9adafb13a1633
Author: Dylan Van Assche <me dylanvanassche be>
Date:   Mon Feb 8 16:18:11 2021 +0100

    power: close idleness notifications before suspending
    
    Power-manager's idle notifications trigger the notification LED
    on the PinePhone which causes additional power consumption.

 plugins/power/gsd-power-manager.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index c93c620f..95cec9c3 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2493,6 +2493,8 @@ on_randr_event (GnomeRRScreen *screen, gpointer user_data)
 static void
 handle_suspend_actions (GsdPowerManager *manager)
 {
+        /* close any existing notification about idleness */
+        notify_close_if_showing (&manager->notification_sleep_warning);
         backlight_disable (manager);
         uninhibit_suspend (manager);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]