Notices


Reply
Thread Tools
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#11
Originally Posted by Tintin View Post
I wasn't sure if the code you included was supposed to be run as two entries or as one long sentence.
I tried both but did not seem to do anything.
When executing the first row I don't get any confirmation or error message.
When executing the second row I got 'no permission'.
I tried checking for active processes using an app i got running in tne status barr but it didnt show there - and i also tried pulling out the cord whilst playing a podcast through gpodder/panucci but the player did not pause.
You should place the file in /home/user, as (I think) the SD cards are mounted with noexec (meaning you cannot execute applications on it). If you have the binary in the root of /media/mmc2/ (for example), move them (using the "mv" command) to /home/user, then cd into /home/user, make it executable (just to make sure) and start it:

Code:
mv /media/mmc2/headphoned-armel-diablo /home/user/
cd /home/user/
chmod +x headphoned-armel-diablo
./headphoned-armel-diablo &
The pause setting only works for the built-in Media Player right now, not for Panucci (or any other media player). Adding support for this would not be too difficult, however.
 

The Following User Says Thank You to thp For This Useful Post:
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#12
I have now created a proper package with an init script that takes care of starting headphoned when the system starts (and on installation). The package is called "headphoned" ("Headphone daemon" in the Application Manager) and will be available in Extras-Devel right now. Product page and garage project (for hosting the source) are in the works...
 

The Following 4 Users Say Thank You to thp For This Useful Post:
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#13
I had a "public transit situation" the other day and found myself wishing for just this feature. Awesome.
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful
 
Posts: 45 | Thanked: 54 times | Joined on Oct 2009 @ Uppsala,Sweden
#14
Thanks for this useful app.
Installed it from the rep and it works like a charm.
 
Posts: 418 | Thanked: 174 times | Joined on Oct 2009
#15
Maybe it's me but I don't get this to work.

I downloaded the headphone daemon from the app manager. It says it installed ok.
I start up gpodder and launch a podcast so it starts playing through panucci.
I pull out the headset and the podcast continues to play through the speakers

When I look at 'active processes' I see headphoned running (964kb).

Help

Last edited by Tintin; 2009-10-23 at 07:09.
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#16
Originally Posted by Tintin View Post
I downloaded the headphone daemon from the app manager. It says it installed ok.
I start up gpodder and launch a podcast so it starts playing through panucci.
Right now, the headphone daemon only sends the pause signal to the built-in media player, not Panucci. It works fine with the media player, just tested it some minutes ago.
 

The Following User Says Thank You to thp For This Useful Post:
Posts: 418 | Thanked: 174 times | Joined on Oct 2009
#17
Originally Posted by thp View Post
Right now, the headphone daemon only sends the pause signal to the built-in media player, not Panucci. It works fine with the media player, just tested it some minutes ago.
Ah, that would explain it

Any chance that 1.3 will allow panucci and Mplayer to be paused as well?
 
Posts: 45 | Thanked: 54 times | Joined on Oct 2009 @ Uppsala,Sweden
#18
Once I made a script to pause Panucci. This was the magic line
Maybe this can help in some way

Code:
dbus-send --type="method_call" --dest=org.panucci.panucciInterface /panucciInterface org.panucci.panucciInterface.playPause
 

The Following User Says Thank You to davost For This Useful Post:
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#19
Originally Posted by Tintin View Post
Any chance that 1.3 will allow panucci and Mplayer to be paused as well?
I have some idea how to implement it for MPlayer, and thanks to the previous post, adding support for Panucci does not seem to be too difficult, either. Free time is lacking atm. Give me some days/weeks. The code is open, and the Git repository available on Garage, in case anyone wants to submit a patch
 

The Following User Says Thank You to thp For This Useful Post:
Posts: 418 | Thanked: 174 times | Joined on Oct 2009
#20
I had another 'incident' the other day where panucci started blasting the latest edition of Coverville to all the people on the bus
__________________
I luv Google
 
Reply


 
Forum Jump


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