mirror of git://git.sysmocom.de/ofono
Add Microphone volume test script
This commit is contained in:
parent
62ba3b30d2
commit
7acb4c2a05
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import sys
|
||||
import dbus
|
||||
|
||||
bus = dbus.SystemBus()
|
||||
|
||||
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||
'org.ofono.Manager')
|
||||
|
||||
properties = manager.GetProperties()
|
||||
|
||||
path = properties["Modems"][0]
|
||||
|
||||
cv = dbus.Interface(bus.get_object('org.ofono', path),
|
||||
'org.ofono.CallVolume')
|
||||
|
||||
cv.SetProperty("MicrophoneVolume", dbus.Byte(int(sys.argv[1])))
|
Loading…
Reference in New Issue