[gnome-settings-daemon] power: Don't turn DPMS off when closing the lid
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Don't turn DPMS off when closing the lid
- Date: Mon, 14 Jan 2013 12:04:18 +0000 (UTC)
commit df29c45965f4313bbed5294aeacaedcfa401e5ba
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 14 12:11:42 2013 +0100
power: Don't turn DPMS off when closing the lid
That doesn't take external monitors into account, and would just switch
them off[1]:. Furthermore, the xrandr plugin already takes care of switching
off the laptop output when the lid closes.
https://bugzilla.gnome.org/show_bug.cgi?id=691702
[1]: Though the effect isn't too critical as we can move the mouse to revive
the main monitor.
plugins/power/gsd-power-manager.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index f45cfb8..5637cdc 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2317,9 +2317,6 @@ do_lid_open_action (GsdPowerManager *manager)
static void
do_lid_closed_action (GsdPowerManager *manager)
{
- gboolean ret;
- GError *error = NULL;
-
/* play a sound, using sounds from the naming spec */
ca_context_play (manager->priv->canberra_context, 0,
CA_PROP_EVENT_ID, "lid-close",
@@ -2327,16 +2324,6 @@ do_lid_closed_action (GsdPowerManager *manager)
CA_PROP_EVENT_DESCRIPTION, _("Lid has been closed"),
NULL);
- /* turn the panel off if the lid is closed (mainly for Dells...) */
- ret = gnome_rr_screen_set_dpms_mode (manager->priv->x11_screen,
- GNOME_RR_DPMS_OFF,
- &error);
- if (!ret) {
- g_warning ("failed to turn the panel off after lid close: %s",
- error->message);
- g_error_free (error);
- }
-
/* refresh RANDR so we get an accurate view of what monitors are plugged in when the lid is closed */
gnome_rr_screen_refresh (manager->priv->x11_screen, NULL); /* NULL-GError */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]