~ubuntu-branches/ubuntu/lucid/gnome-power-manager/lucid-updates

« back to all changes in this revision

Viewing changes to debian/patches/11-add-error-logging.patch

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2010-02-04 10:16:01 UTC
  • Revision ID: james.westby@ubuntu.com-20100204101601-wtpcdmxgpj33agkj
Tags: 2.29.1-0ubuntu3
* 10-proxy-by-name.patch: create a new proxy by name, and not by name
  owner. Also, don't try to reconnect in the callback. This prevents
  screen locking failure when gnome-screensaver now gets respawned by
  D-Bus.
* 11-add-error-logging.patch: add an error message to help debugging
  when we hit the timeout while waiting for gnome-screensaver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: add an error message to help debugging
 
2
 when we hit the timeout while waiting for gnome-screensaver.
 
3
Author: Marc Deslauriers <marc.deslauriers@ubuntu.com>
 
4
 
 
5
diff -Nur gnome-power-manager-2.29.1/src/gpm-screensaver.c gnome-power-manager-2.29.1.new/src/gpm-screensaver.c
 
6
--- gnome-power-manager-2.29.1/src/gpm-screensaver.c    2009-10-15 02:45:06.000000000 -0700
 
7
+++ gnome-power-manager-2.29.1.new/src/gpm-screensaver.c        2010-02-04 08:27:01.000000000 -0800
 
8
@@ -177,6 +177,7 @@
 
9
                /* Sleep for 1/10s */
 
10
                g_usleep (1000 * 100);
 
11
                if (sleepcount++ > 50) {
 
12
+                       egg_debug ("timeout waiting for gnome-screensaver");
 
13
                        break;
 
14
                }
 
15
        }