Re: [Rhythmbox-devel] Bluetooth, AVRCP and Rhythmbox



> -----Original Message-----
> From: rhythmbox-devel-bounces gnome org [mailto:rhythmbox-devel-
> bounces gnome org] On Behalf Of John Frankish
> Sent: Sunday, 16 May, 2010 16:46
> To: rhythmbox-devel gnome org
> Subject: Re: [Rhythmbox-devel] Bluetooth, AVRCP and Rhythmbox
> 
> 
> > -----Original Message-----
> > From: Bastien Nocera [mailto:hadess hadess net]
> > Sent: Sunday, 16 May, 2010 16:35
> > To: John Frankish
> > Cc: rhythmbox-devel gnome org
> > Subject: Re: [Rhythmbox-devel] Bluetooth, AVRCP and Rhythmbox
> >
> > On Sun, 2010-05-16 at 05:59 +0200, John Frankish wrote:
> > > Hi,
> > >
> > > Does Rhythmbox have the capability to respond to AVRCP commands from
> > > Bluetooth A2DP headphones?
> > >
> > > I can play music from Rhythmbox to the headphones via Bluetooth and,
> > > from running bluetoothd in the foreground, I can see AVRCP commands
> > > from the headphones (play, pause, etc) are being received, but
> > > Rhythmbox does not respond to these commands.
> >
> > Should work.
> >
> > Is the uinput module loaded on your system (check with lsmod) ? Do you
> > use pulseaudio or not?
> >
> > Cheers
> 
> Thanks for the feedback.
> 
> Yes, the uinput module is loaded and I've tried with alsa alone and
> with alsa+pulseaudio
> 
> At the first remote AVRCP key press, I see this in dmesg:
> 
> input: 00:1B:66:00:31:88 as /devices/virtual/input/input11
> 
> ..and if I run bluetoothd in the foreground, I see (for example):
> 
> bluetoothd[4253]: AVRCP: uinput initialized for 00:1B:66:00:31:88
> bluetoothd[4253]: AVCTP Connected
> ...
> bluetoothd[4253]: AVRCP: BACKWARD pressed
> bluetoothd[4253]: Got 8 bytes of data for AVCTP session 0xb79d86e0
> bluetoothd[4253]: AVCTP transaction 8, packet type 0, C/R 0, IPID 0,
> PID 0x110E
> bluetoothd[4253]: AVRCP command 0x0, subunit_type 0x09, subunit_id 0x0,
> opcode 0x7C, 2 operands
> bluetoothd[4253]: AVRCP: BACKWARD released
> bluetoothd[4253]: Got 8 bytes of data for AVCTP session 0xb79d86e0
> bluetoothd[4253]: AVCTP transaction 9, packet type 0, C/R 0, IPID 0,
> PID 0x110E
> bluetoothd[4253]: AVRCP command 0x0, subunit_type 0x09, subunit_id 0x0,
> opcode 0x7C, 2 operands
> bluetoothd[4253]: AVRCP: REWIND pressed
> bluetoothd[4253]: Got 8 bytes of data for AVCTP session 0xb79d86e0
> bluetoothd[4253]: AVCTP transaction 10, packet type 0, C/R 0, IPID 0,
> PID 0x110E
> bluetoothd[4253]: AVRCP command 0x0, subunit_type 0x09, subunit_id 0x0,
> opcode 0x7C, 2 operands
> bluetoothd[4253]: AVRCP: REWIND released
> bluetoothd[4253]: Got 8 bytes of data for AVCTP session 0xb79d86e0
> bluetoothd[4253]: AVCTP transaction 11, packet type 0, C/R 0, IPID 0,
> PID 0x110E
> bluetoothd[4253]: AVRCP command 0x0, subunit_type 0x09, subunit_id 0x0,
> opcode 0x7C, 2 operands
> ...
> 
> But there is no corresponding action in rhythmbox
> 
> John
----------------
I understand the communications chain should be:

AVRCP signal -> bluetoothd -> uinput -> X -> gnome-settings-daemon -> rhythmbox

Is gnome-settings-daemon the only way to do this or is there another way?

The AVRCP signal is getting as far as uinput, but using "dbus-monitor --session", I cannot see any dbus
AVRCP events in X and gnome-settings-daemon seems to have a problem (debug output below)

How does the AVRCP signal get from uinput to X?

John
----------------
DEBUG:         Property: 'bluez.name' = 'Sennheiser PXC310BT'
DEBUG:         Property: 'device.icon_name' = 'audio-headphones-bluetooth'
DEBUG: Starting keyboard manager
[1274118894,000,xklavier.c:xkl_engine_start_listen/]    The backend does not require manual layout management - but it is provided by the application
DEBUG: Starting a11y_keyboard manager
DEBUG: Starting media_keys manager
DEBUG: Unable to parse: 'XF86AudioMute'
DEBUG: Unable to parse: 'XF86AudioLowerVolume'
DEBUG: Unable to parse: 'XF86AudioRaiseVolume'
DEBUG: Unable to parse: 'XF86Eject'
DEBUG: Unable to parse: 'XF86Explorer'
DEBUG: Unable to parse: 'XF86AudioMedia'
DEBUG: Unable to parse: 'XF86Calculator'
DEBUG: Unable to parse: 'XF86Search'
DEBUG: Unable to parse: 'XF86Mail'
DEBUG: Not a valid shortcut: ''
DEBUG: Not a valid shortcut: ''
DEBUG: Unable to parse: 'XF86WWW'
DEBUG: Unable to parse: 'XF86AudioPlay'
DEBUG: Unable to parse: 'XF86AudioPause'
DEBUG: Unable to parse: 'XF86AudioStop'
DEBUG: Unable to parse: 'XF86AudioPrev'
DEBUG: Unable to parse: 'XF86AudioNext'
DEBUG: adding key filter for screen: 0
DEBUG: housekeeping: checking thumbnail cache size and freshness
DEBUG: Updating sink: index=1 name='bluez_sink.00_1B_66_00_31_88' description='Sennheiser PXC310BT' map='front-left,front-right'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]