Thread (6 messages) flat view 6 messages, 4 authors, 2009-09-25

Re: Volume control for headset

From: Johan Hedberg <hidden>
Date: 2009-09-25 10:54:41

Hi,

On Fri, Sep 25, 2009, Nick Davies wrote:
  OK, but I don't know where the RFCOMM socket is created,
audio/headset.c
  how can I connect to existing socket?
You can't really but you also shouldn't need to. You can request
bluetoothd to change the volume using the SetProperty("SpeakerGain", 0-15)
method on the org.bluez.Headset interface on the D-Bus object that
represents your headset. There's a python script in the bluez source that
lets you do it too, e.g:

test/test-telephony <remote address> speakergain 10
test/test-telephony <remote address> microphonegain 5

Johan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help