ofono/test/set-mic-volume

18 lines
355 B
Plaintext
Raw Normal View History

#!/usr/bin/python3
2009-12-09 18:52:29 +00:00
import sys
import dbus
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
2010-09-09 19:37:37 +00:00
modems = manager.GetModems()
path = modems[0][0]
2009-12-09 18:52:29 +00:00
cv = dbus.Interface(bus.get_object('org.ofono', path),
'org.ofono.CallVolume')
cv.SetProperty("MicrophoneVolume", dbus.Byte(int(sys.argv[1])))