From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 4/4] test: add scripts to enable and disable fast dormancy
Date: Wed, 20 Oct 2010 18:09:55 -0500 [thread overview]
Message-ID: <4CBF76C3.1040807@gmail.com> (raw)
In-Reply-To: <1286458653-12096-5-git-send-email-mika.liljeberg@nokia.com>
[-- Attachment #1: Type: text/plain, Size: 2374 bytes --]
Hi Mika,
On 10/07/2010 08:37 AM, Mika Liljeberg wrote:
> ---
> Makefile.am | 4 +++-
> test/disable-fast-dormancy | 20 ++++++++++++++++++++
> test/enable-fast-dormancy | 20 ++++++++++++++++++++
> 3 files changed, 43 insertions(+), 1 deletions(-)
> create mode 100755 test/disable-fast-dormancy
> create mode 100755 test/enable-fast-dormancy
>
> diff --git a/Makefile.am b/Makefile.am
> index 6c56459..7a56cb4 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -407,7 +407,9 @@ test_scripts = test/backtrace \
> test/lock-pin \
> test/unlock-pin \
> test/enable-gprs \
> - test/disable-gprs
> + test/disable-gprs \
> + test/enable-fast-dormancy \
> + test/disable-fast-dormancy
>
> if TEST
> testdir = $(pkglibdir)/test
> diff --git a/test/disable-fast-dormancy b/test/disable-fast-dormancy
> new file mode 100755
> index 0000000..ec326aa
> --- /dev/null
> +++ b/test/disable-fast-dormancy
> @@ -0,0 +1,20 @@
> +#!/usr/bin/python
> +
> +import dbus
> +import sys
> +
> +bus = dbus.SystemBus()
> +
> +if len(sys.argv) == 2:
> + path = sys.argv[1]
> +else:
> + manager = dbus.Interface(bus.get_object('org.ofono', '/'),
> + 'org.ofono.Manager')
> + modems = manager.GetModems()
> + path = modems[0][0]
> +
> +print "Disabling fast dormancy on modem %s..." % path
> +cm = dbus.Interface(bus.get_object('org.ofono', path),
> + 'org.ofono.RadioSettings')
> +
> +cm.SetProperty("FastDormancy", dbus.Boolean(0))
Just a minor nitpick, but renaming cm into rs might be a bit more
consistent ;)
> diff --git a/test/enable-fast-dormancy b/test/enable-fast-dormancy
> new file mode 100755
> index 0000000..93ec1d5
> --- /dev/null
> +++ b/test/enable-fast-dormancy
> @@ -0,0 +1,20 @@
> +#!/usr/bin/python
> +
> +import dbus
> +import sys
> +
> +bus = dbus.SystemBus()
> +
> +if len(sys.argv) == 2:
> + path = sys.argv[1]
> +else:
> + manager = dbus.Interface(bus.get_object('org.ofono', '/'),
> + 'org.ofono.Manager')
> + modems = manager.GetModems()
> + path = modems[0][0]
> +
> +print "Enabling fast dormancy on modem %s..." % path
> +cm = dbus.Interface(bus.get_object('org.ofono', path),
> + 'org.ofono.RadioSettings')
> +
> +cm.SetProperty("FastDormancy", dbus.Boolean(1))
Same comment as above.
Otherwise looks good.
Regards,
-Denis
next prev parent reply other threads:[~2010-10-20 23:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-07 13:37 [PATCH 0/4] Support for fast dormancy - take 2 Mika Liljeberg
2010-10-07 13:37 ` [PATCH 1/4] radio settings: allow for more than one property Mika Liljeberg
2010-10-20 22:57 ` Denis Kenzior
2010-10-21 8:55 ` Mika.Liljeberg
2010-10-21 14:03 ` Denis Kenzior
2010-10-22 7:08 ` Mika.Liljeberg
2010-10-22 13:49 ` Denis Kenzior
2010-10-22 14:21 ` Mika.Liljeberg
2010-10-22 14:55 ` Denis Kenzior
2010-10-25 6:59 ` Mika.Liljeberg
2010-10-07 13:37 ` [PATCH 2/4] radio settings: add FastDormancy property Mika Liljeberg
2010-10-20 23:07 ` Denis Kenzior
2010-10-07 13:37 ` [PATCH 3/4] radio settings: document " Mika Liljeberg
2010-10-07 15:34 ` Marcel Holtmann
2010-10-08 6:56 ` Mika.Liljeberg
2010-10-08 8:55 ` Marcel Holtmann
2010-10-20 23:21 ` Denis Kenzior
2010-10-07 13:37 ` [PATCH 4/4] test: add scripts to enable and disable fast dormancy Mika Liljeberg
2010-10-20 23:09 ` Denis Kenzior [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-10-07 13:21 [PATCH 0/4] Support for fast formancy Mika Liljeberg
2010-10-07 13:21 ` [PATCH 4/4] test: add scripts to enable and disable fast dormancy Mika Liljeberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CBF76C3.1040807@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.