Notices


Reply
Thread Tools
Posts: 49 | Thanked: 15 times | Joined on Jan 2010
#71
hello all

What's the command to pause the mediaplayer not the Gstreamer renderer?it is linked to the playback library
I think this is the solution to this

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: 82 | Thanked: 18 times | Joined on Dec 2009
#72
Does the headphone daemon affect power or memory use? Just installed it, and it works great
 
andrei1089's Avatar
Posts: 81 | Thanked: 109 times | Joined on Apr 2009 @ Brasov/Cluj, Romania
#73
Originally Posted by Kevven View Post
Does the headphone daemon affect power or memory use? Just installed it, and it works great
Headphone daemon is sleeping almost all the time ( wakes up only when you unplug the headphone) so it shouldn't affect the battery life.
 

The Following 2 Users Say Thank You to andrei1089 For This Useful Post:
Posts: 82 | Thanked: 18 times | Joined on Dec 2009
#74
Thank you for the quick reply! =)
 
neboja's Avatar
Posts: 277 | Thanked: 93 times | Joined on Jan 2010 @ Belgrade
#75
i was wondering..... is it posible to have a "switch" to enable/disable a Headphone deamon???? it would be good thing.... for example... say you are in some form of activitty, and your phone slips somevhere... you can't find him... it would be a god thing if you can hear him where is it...
or you are in a public transportation... someone slips a hand into your pocket... and a way he go!!! :P
i say... when you are in some siituations when is good thing to hear your phone when the earphones are not jacked, the deamon is disabled... but also there is a situations that is good to just unplug earphones to pouse a MP...
what do you think about that??? O_o
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#76
Originally Posted by neboja View Post
i was wondering..... is it posible to have a "switch" to enable/disable a Headphone deamon???? it would be good thing.... for example... say you are in some form of activitty, and your phone slips somevhere... you can't find him... it would be a god thing if you can hear him where is it...
or you are in a public transportation... someone slips a hand into your pocket... and a way he go!!! :P
The initial reason for creating headphoned in the first place is for "public transportation situations", so if you are afraid of someone stealing your device in public transportation, simply don't install headphoned

The same goes for losing your phone - simply let someone else call you, that's what you would do when you lose a "normal" phone, too. I personally simply SSH into my phone if I don't know where it is in my apartment and use:

Code:
panucci /path/to/some/mp3file.mp3
After that, simply follow the noise.

Originally Posted by neboja View Post
i say... when you are in some siituations when is good thing to hear your phone when the earphones are not jacked
To disable:

Code:
killall headphoned
To enable:

Code:
/usr/sbin/headphoned &
It also only stops the media player - everything else is not touched (e.g. ring tones, alarms, reminders, ...).
 

The Following 2 Users Say Thank You to thp For This Useful Post:
Posts: 38 | Thanked: 8 times | Joined on Jan 2008
#77
Originally Posted by qwerty12 View Post
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.
Thank you!!! I will give it a shot to see if it works with my car stereo. I was unaware of libhal.
 
neboja's Avatar
Posts: 277 | Thanked: 93 times | Joined on Jan 2010 @ Belgrade
#78
ok... so these are just scripts that i put in xterm.... and that's it??? wright?
thnks!
anyway.... all i want is to controll thigs on my phone... i am not a programer, and not an advanced user,... so it would allways be halpfull to developers make there apps more controlable...
i know i ask to much... but hey!
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#79
I've received my Bluetooth headset today (thanks to Alan Peery!), and thanks to the work done by Faheem, it was easy to integrate support for Bluetooth headset disconnects to headphoned and also test it thoroughly. It also seems that for headphones *without* microphone, Hal does not detect a device disconnect, so I had to leave the state file-based code in there. I did some clean-ups, re-added support for Diablo, but removed the volume control code (which didn't really work on Diablo and is unnecessary on Fremantle).

In short: headphoned 1.6 with Bluetooth support is currently going through the autobuilder, and should be landing in Extras-Devel soon. Again, credits for this release go to Alan and Faheem - thanks guys!

(A side effect is that disconnecting a wired headset with microphone now causes two signals - one from the state file and one from Hal - to be emitted, but for Media Player and Panucci, this does not matter, as they don't unpause when the second "pause" signal is sent.)
 

The Following 3 Users Say Thank You to thp For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#80
I had a strange issue a few days ago but I don't know if it is related to headphoned: I unplugged my headset while playing music, the music stopped as expected. After a few days and a few restarts I plugged in my headset again and it began to play from the last active source in the default media player which was not what I wanted (maybe this behaviour could be useful for a short time after unplugging but not after a few days + restarts).
Can it be related to headphoned?
 
Reply


 
Forum Jump


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