Active Topics

 


Reply
Thread Tools
christye's Avatar
Posts: 60 | Thanked: 9 times | Joined on Apr 2010 @ Swindon, UK
#1
Hey guys,

Having a bit of a problem with DBUS.

What I'm trying to do is when my bluetooth headset is connected, I want the phone to start playing music. Once the phone is disconnected from the headset, I want it to stop. Sounded pretty simple, I had already played a little bit with dbus (underclocking when locked).

Anyway. I have the command to play music in a file (/usr/local/bin/connect) which contains this command:
Code:
dbus-send --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.renderer.play
The line in the "dbus-scripts-settings" file looks like this:
Code:
/usr/local/bin/connect * * org.bluez.Adapter RemoteDeviceConnected 0C:6E:00:00:17:8F
I did try the GUI application as it would save me typing some. However, it didn't work with that, and it didn't work with me doing it manually either.

I can connect the headset, and start playing music by using my phone, so it doesn't seem to be that at fault.

Been trying this for hours now! Any help would be much appreciated.

Regards,
Chris
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:12.