--- gnome-phone-manager-0.8.orig/libgsm/phonemgr-utils.c	2007-07-22 07:36:48.000000000 +0930
+++ gnome-phone-manager-0.8/libgsm/phonemgr-utils.c	2007-08-10 10:43:39.000000000 +0930
@@ -192,26 +192,38 @@
 char *
 phonemgr_utils_write_config (const char *driver, const char *addr, int channel)
 {
+        const char *debug = "off"; /* could be on.  FIXME set this elsewhere */
+
 	if (phonemgr_utils_is_bluetooth (addr) == FALSE) {
 		return g_strdup_printf ("[global]\n"
 			"port = %s\n"
 			"model = %s\n"
-			"connection = serial\n", addr, driver);
+			"connection = serial\n"
+                        "[logging]\n"
+			"debug = %s\n", addr, driver, debug);
 	} else {
 		if (channel > 0) {
 			return g_strdup_printf ("[global]\n"
 						"port = %s\n"
 						"model = %s\n"
 						"connection = bluetooth\n"
-						"channel = %d\n",
+						"rfcomm_channel = %d\n"
+                                                "[logging]\n"
+                                                "debug = %s\n",
 						addr,
 						driver,
-						channel);
+						channel,
+                                                debug);
 		} else {
 			return g_strdup_printf ("[global]\n"
 						"port = %s\n"
 						"model = %s\n"
-						"connection = bluetooth\n", addr, driver);
+						"connection = bluetooth\n"
+                                                "[logging]\n"
+                                                "debug = %s\n",
+						addr,
+						driver,
+						debug);
 		}
 	}
 }
@@ -404,6 +416,7 @@
 
 	config = phonemgr_utils_write_config (driver ? driver : PHONEMGR_DEFAULT_DRIVER, device, channel);
 	lines = g_strsplit (config, "\n", -1);
+        g_message (config);
 	g_free (config);
 
 	if (gn_cfg_memory_read ((const char **)lines) < 0) {
