From 9bc187bd45548d1fd1bb0ee7582a0417a5c4373c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 13 Oct 2010 08:38:43 +0300 Subject: [PATCH] ifx: Disable modem UART for power saving Send AT+XPOW=0,0,0 command when enabling modem to disable UART. This is done for power saving. --- plugins/ifx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/ifx.c b/plugins/ifx.c index f48faa5a..313aa41c 100644 --- a/plugins/ifx.c +++ b/plugins/ifx.c @@ -264,6 +264,10 @@ static void xgendata_query(gboolean ok, GAtResult *result, gpointer user_data) data->audio_context = 0; } + /* disable UART for power saving */ + g_at_chat_send(data->dlcs[AUX_DLC], "AT+XPOW=0,0,0", none_prefix, + NULL, NULL, NULL); + if (data->audio_setting && data->audio_source && data->audio_dest) { char buf[64];