--- 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 25c18bd..cd2cf78 100644 --- a/Makefile.am +++ b/Makefile.am @@ -410,7 +410,9 @@ test_scripts = test/backtrace \ test/unlock-pin \ test/enable-gprs \ test/disable-gprs \ - test/get-icon + test/get-icon \ + 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..a9d7286 --- /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 +rs = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.RadioSettings') + +rs.SetProperty("FastDormancy", dbus.Boolean(0)) diff --git a/test/enable-fast-dormancy b/test/enable-fast-dormancy new file mode 100755 index 0000000..518a662 --- /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 +rs = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.RadioSettings') + +rs.SetProperty("FastDormancy", dbus.Boolean(1)) -- 1.7.0.4 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono