View Single Post
Posts: 90 | Thanked: 47 times | Joined on Dec 2009 @ Sydney Australia
#119
jaeezzy,

One suggestion - untill the bluetooth issue is fixed can there be a menu option that auto switching is disabled when either the keyboard is open or prehaps the camera cover is open. This way when I get into the car all I need to do is open the keyboard and I know that I can use my bluetooth without the phone automatically switching to the speakers.


I will try help and see if I can figure out how to detect the bluetooth - I have 12 years writing embedded software for set top boxes (including linux one) so I probably have the skills I just need to get the time together to work out how to install the SDK and get the build environment up and running. Just too busy at the moment with a project that we are working one.

Maybe HAL is not what you should be monitoring - have you looked into dbus?

I ran dbus-monitor from the command line today and saw the following:

Connect to my motorolla headset:
Code:
signal sender=:1.2 -> dest=(null destination) serial=148 path=/org/maemo/Playback/Manager; interface=org.maemo.Playback.Manager; member=BluetoothOverride
   int32 0
signal sender=:1.48 -> dest=(null destination) serial=53 path=/com/nokia/mafw/renderer/gstrenderer; interface=com.nokia.mafw.extension; member=property_changed
   string "volume"
   variant       uint32 50
Disconnect from motorolla headset:
Code:
signal sender=:1.2 -> dest=(null destination) serial=149 path=/org/maemo/Playback/Manager; interface=org.maemo.Playback.Manager; member=BluetoothOverride
   int32 -1
signal sender=:1.48 -> dest=(null destination) serial=54 path=/com/nokia/mafw/renderer/gstrenderer; interface=com.nokia.mafw.extension; member=property_changed
   string "volume"
   variant       uint32 74
Connect to car's bluetooth
Code:
signal sender=:1.2 -> dest=(null destination) serial=146 path=/org/maemo/Playback/Manager; interface=org.maemo.Playback.Manager; member=BluetoothOverride
   int32 0
signal sender=:1.48 -> dest=(null destination) serial=51 path=/com/nokia/mafw/renderer/gstrenderer; interface=com.nokia.mafw.extension; member=property_changed
   string "volume"
   variant       uint32 50
DIsconnect from car's bluetooth:
Code:
signal sender=:1.2 -> dest=(null destination) serial=147 path=/org/maemo/Playback/Manager; interface=org.maemo.Playback.Manager; member=BluetoothOverride
   int32 -1
signal sender=:1.48 -> dest=(null destination) serial=52 path=/com/nokia/mafw/renderer/gstrenderer; interface=com.nokia.mafw.extension; member=property_changed
   string "volume"
   variant       uint32 74
As you can see in both cases the same dbus messages are sent but for disconnect the int32 is -1 and connect it is 0. So if there was some way for you to be notified when Playback.Manager get told to enable bluetooth override you will know that a bluetooth headset has been connected.
 

The Following User Says Thank You to atunguyd For This Useful Post: