diff options
author | Alexandre Rostovtsev <tetromino@gmail.com> | 2011-10-04 01:58:02 -0400 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gmail.com> | 2011-10-04 04:02:34 -0400 |
commit | 9c13b094f3cb7caa1c393812b9ce60333a4516c9 (patch) | |
tree | f1f669fbfd113f2a203eaf6625618cd7c1a2d2da /gnome-base/gnome-settings-daemon/files | |
parent | dev-libs/gdl: 3.1.5-r1 → 3.2.0 (diff) | |
download | gnome-9c13b094f3cb7caa1c393812b9ce60333a4516c9.tar.gz gnome-9c13b094f3cb7caa1c393812b9ce60333a4516c9.tar.bz2 gnome-9c13b094f3cb7caa1c393812b9ce60333a4516c9.zip |
gnome-base/gnome-settings-daemon: do not treat DPMS failure as fatal
Do not fail to start power plugin if clearing DPMS timeouts failed
(clearing the timeouts appears to always fail under nvidia-drivers).
Upstream bug filed at https://bugzilla.gnome.org/show_bug.cgi?id=660859
Diffstat (limited to 'gnome-base/gnome-settings-daemon/files')
-rw-r--r-- | gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.0-dpms-failure.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.0-dpms-failure.patch b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.0-dpms-failure.patch new file mode 100644 index 00000000..01bd0930 --- /dev/null +++ b/gnome-base/gnome-settings-daemon/files/gnome-settings-daemon-3.2.0-dpms-failure.patch @@ -0,0 +1,30 @@ +From a8d56d910350346008aca54b98e10c318f29050f Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gmail.com> +Date: Tue, 4 Oct 2011 00:45:17 -0400 +Subject: [PATCH] Power: failing to clear DPMS timeouts should not be fatal + +https://bugzilla.gnome.org/show_bug.cgi?id=660859 +--- + plugins/power/gsd-power-manager.c | 6 ++++-- + 1 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c +index ae7cfb3..56934d5 100644 +--- a/plugins/power/gsd-power-manager.c ++++ b/plugins/power/gsd-power-manager.c +@@ -3446,8 +3446,10 @@ gsd_power_manager_start (GsdPowerManager *manager, + ret = gnome_rr_screen_set_dpms_mode (manager->priv->x11_screen, + GNOME_RR_DPMS_ON, + error); +- if (!ret) +- return FALSE; ++ if (!ret) { ++ g_warning ("Failed set DPMS mode: %s", (*error)->message); ++ g_clear_error (error); ++ } + + /* coldplug the engine */ + engine_coldplug (manager); +-- +1.7.7 + |