Re: [Bluez-users] Using AVRCP with current BlueZ

Johan Hedberg
2007-11-22T17:13:55Z

Hi Kristof,

On Nov 22, 2007 6:26 PM, Csillag Krist=F3f <csillag.kristof@gmail.com> wrot=
e:
> My question is, how can I use AVRCP now? bluetooth-alsa used to contain
> some support for it, but now I guess it's gone. Browsing the source
> code of bluez-utils, I see some dbus interface, but I can not find
> any example demonstrating how to use this.
>
> Could you please point me to the right documentation (if it exists)?

I don't think there is any proper documentation yet. bluez-utils-3.22
has some preliminary AVRCP support but by default it's disabled. You
need to add a line "Enable=3DControl" to the General section in
/etc/bluetooth/audio.conf to enable it. Currently no D-Bus signals or
or methods are supported. Instead, the audio service uses the kernel
uinput interface (you need to have the uinput module loaded) to inject
keypress events to the kernel input subsystem. You can see what kind
of AVRCP->keycode mappings are used by looking in the audio/control.c
file from bluez-utils.

Johan