Active Topics

 



Notices


Reply
Thread Tools
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#61
Could soneone test this.
- phone rangs
-- disconnect headphones and answer
- end call
- music plays from speakers?

Maybe this just user error but happened me once.
 
Posts: 38 | Thanked: 8 times | Joined on Jan 2008
#62
Originally Posted by slender View Post
Could soneone test this.
- phone rangs
-- disconnect headphones and answer
- end call
- music plays from speakers?

Maybe this just user error but happened me once.
This has happened to me since the first firmware update, while at work too I didnt even have this app at all either.
 
Posts: 38 | Thanked: 8 times | Joined on Jan 2008
#63
Originally Posted by thp View Post
You can check out the code from https://garage.maemo.org/projects/headphoned and add the code

If you send me some a2dp hardware, I can try to implement it
I can't seem to figure out how to determine when a bluetooth headset is disconnected. It seems to work different from the way headphones are unplugged since they use a "state" file. When I disconnect my car stereo's bluetooth, the following line shows up in dbus-monitor:

Code:
signal sender=:1.3 -> dest=(null destination) serial=220 path=/org/maemo/Playback/Manager; interface=org.maemo.Playback.Manager; member=BluetoothOverride
int32 -1
I do not know if this will help. If not, is there a way to see if the bluetooth headset is currently enabled in the status-menu?
 
andrei1089's Avatar
Posts: 81 | Thanked: 109 times | Joined on Apr 2009 @ Brasov/Cluj, Romania
#64
Originally Posted by slender View Post
Could soneone test this.
- phone rangs
-- disconnect headphones and answer
- end call
- music plays from speakers?

Maybe this just user error but happened me once.
exactly the same happened to me today
 
Posts: 247 | Thanked: 91 times | Joined on Jan 2008 @ London/M4 Corridor
#65
Originally Posted by mike2k4 View Post

I do not know if this will help. If not, is there a way to see if the bluetooth headset is currently enabled in the status-menu?
I am guessing by analogy here: is there something like /proc/usb called /proc/bluetooth that you could inspect once you've seen one of those events?
 

The Following User Says Thank You to Alan_Peery For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#66
Yes, you can listen for D-Bus signals saying that the headphones have been removed (mike2k4, sniff the system bus, instead), but there's an easier way: Don't use GIOChannels to monitor the state file, but use libhal to listen for computer_logicaldev_input_1 being removed. This way, you kill two birds with one stone: Removing a wired or a bluetooth headset causes the same event to be broadcast by HAL - "computer_logicaldev_input_1 removed".
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 97 | Thanked: 103 times | Joined on Sep 2009 @ switzerland
#67
Originally Posted by slender View Post
Could soneone test this.
- phone rangs
-- disconnect headphones and answer
- end call
- music plays from speakers?

Maybe this just user error but happened me once.
Happened a couple of times here too, but I've so far not been able to replicate it under "controlled" conditions. But I seem to be having the same behaviour with disconnected skype calls only. Though still not every time.

headphoned would really need a bugtracker....
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#68
Originally Posted by ziller View Post
Happened a couple of times here too, but I've so far not been able to replicate it under "controlled" conditions. But I seem to be having the same behaviour with disconnected skype calls only. Though still not every time.
I've experienced this too at times. Feels like some audio (ring)buffer being played once more - probably an issue with some ,,lower layer`` (PA, GStreamer, ALSA?).

Originally Posted by ziller View Post
headphoned would really need a bugtracker....
https://garage.maemo.org/tracker/?group_id=1092
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#69
Originally Posted by qwerty12 View Post
Yes, you can listen for D-Bus signals saying that the headphones have been removed (mike2k4, sniff the system bus, instead), but there's an easier way: Don't use GIOChannels to monitor the state file, but use libhal to listen for computer_logicaldev_input_1 being removed. This way, you kill two birds with one stone: Removing a wired or a bluetooth headset causes the same event to be broadcast by HAL - "computer_logicaldev_input_1 removed".
OK, decided to give this a go and came up with http://slexy.org/view/s2HFCPBXm5 - this is unofficial, of course.

I'm incompetent, tired, and working with a 15" monitor so I ended up removing the parts of the code that make no sense under Fremantle just so that I could read the code without giving myself a headache (not in the sense that thp's code is awful but, rather, in the sense that I couldn't be arsed to keep scrolling up). Not to mention that I much prefer using the GLib bindings to D-Bus (I was sorely tempted to do so until I saw thp was already using libdbus and that I could get a DBusConnection from the osso_context_t)...

This works for me using the wired headset that came with my N810 and with an el-cheapo, £11 iTech Bluetooth headset I got from eBay. A compiled binary is attached. I'd be curious to know if it works for anyone else. "It" being having the Media Player paused when a Bluetooth headset is disconnected.
Attached Files
File Type: gz headphoned.gz (2.9 KB, 114 views)

Last edited by qwerty12; 2010-01-28 at 17:28.
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
unkno's Avatar
Posts: 266 | Thanked: 157 times | Joined on Oct 2009
#70
Originally Posted by slender View Post
Could soneone test this.
- phone rangs
-- disconnect headphones and answer
- end call
- music plays from speakers?

Maybe this just user error but happened me once.
This has to do with the way Maemo works. Normally, when a call comes in, the media player is paused and will automatically resume when the call is ended. Since the phone rings with the headphone plugged, unplugging the headphones will pause the already paused music; but when the call is over, maemo will signal the media player to resume playing. I don't think it's possible to fix this given the way it is designed.

Edit: one more vote and it'll be in extras

Last edited by unkno; 2010-01-30 at 09:04.
 

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


 
Forum Jump


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