Re: intone a2dp (bluetooth) support

2009-06-13 Thread GNUtoo
On Wed, 2009-06-10 at 10:08 -0500, The Digital Pioneer wrote:
 I play oggs with intone/a2dp, but I have to renice mplayer to -19 to
 keep it smooth. It still cuts occasionally, but that could just be
 connectivity.
don't forget to edit mplayer's configuration in order to tell him to use
tremor(fixed point ogg decider)
Denis.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-13 Thread Lothar Behrens

Am 13.06.2009 um 09:16 schrieb GNUtoo:

 On Wed, 2009-06-10 at 10:08 -0500, The Digital Pioneer wrote:
 I play oggs with intone/a2dp, but I have to renice mplayer to -19 to
 keep it smooth. It still cuts occasionally, but that could just be
 connectivity.
 don't forget to edit mplayer's configuration in order to tell him to  
 use
 tremor(fixed point ogg decider)
 Denis.

I have discovered the same cuts and using mplayer using a2dp without  
any other frontend (reniced to -19).
While trying to figure out the reason of the cuts I have these thougt's:

The cuts come when I drive the car in sunny weather (hot) after a while.
The cuts come when I charge the bettery (car/wall charger). The cuts  
goes away after a while holding the phone
into the air con stream.

It seems a temperature problem. So first I thought the SD card or the  
path from there is a problem.
But that isn't as I have tested mplayer in ssh to see console output.  
No error messages.
Also I got no bandwidth problems downloading planet.bin for navit  
while playing music.

Now I have tried to renice some other processes while testing it with  
the omnewrotate while rotating. There are also
these cuts and after renicing kmmcd to -19 these cuts dissapeared.

But I ran navit while these tests and when calculating a route the  
cuts appeared. But this may also solved by playing
with the other related processes.

But what I think is a problem when a phone call comes into the phone  
while all this. If mplayer' is running the ring event
or the like should pause any mp3 or ogg players :-)

It's because I have figured out much response problems while this  
happens and a phone call may get unanswered.

Beside of renicing kmmcd, SDIO Helper and mplayer I then got a problem  
with my WLAN connection. So it is a bit more
work to get all working well.

I'll now test navigarion in a car, but it is not that hot today.

Lothar


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen









___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-12 Thread c_c

Hi,
  I've just got back from a trip - hence the delay. 
  Intone is in the process of a minor re-write. I'm looking at improving the
music manager, writing a small desktop sync client to manage music and tags
and use ecore routines to handle mplayer.
  I still can't seem to get much clarity on A2DP usage. I don't think intone
should really go around pairing bluetooth headsets behind FSO's back. I
think that the pairing should be handled by FSO/some other utility/manually
- if need be. 
  Assuming that the pairing has been set up - I am looking at restarting
mplayer with the flags to get it to stream over bluetooth. I'll add that as
an option.
  Any other ideas/suggestions are welcome. Also, is there a way to get
mplayer to stream mp3 data directly over BT - like gstreamer does? Or would
it be better if I used gstreamer to send mp3 data over BT from intone -
leaving mplayer paused?

   
-- 
View this message in context: 
http://n2.nabble.com/intone-a2dp-%28bluetooth%29-support-tp3038819p3071056.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-11 Thread William Kenworthy
Just another data point - if your using streaming audio across wifi (I
am using mplayer streaming from my ISP's radio offerings), a2dp can
suffer badly if using wmiconfig -i eth0 --power maxperf - it seriously
interferes with bluetooth

BillK

On Wed, 2009-06-10 at 15:55 +0100, Michael Sheldon wrote:
 Yorick Moko wrote:
  One thing I don't understand:
  intone with a2dp: mplayer usage around 40% and sometimes spikes to
  everything available (80-85%) == no fluent playback
  intone without a2dp: 12% cpu == fluent playback
  
  how come?
 
  Well the a2dp stuff seems to be fairly cpu intensive, presumably
 because it's having to performing sbc encoding before sending the audio
 to the device (most devices support direct streaming of mp3 data but I
 don't think this is possible with mplayer, it is with gstreamer though).
 You should still be able to get reasonable mp3 playback, you won't get
 acceptable ogg playback though, as the combination of a2dp and ogg
 decoding appears to be too much for the cpu to handle.
 
  If you're getting very choppy playback with mp3s and you're using
 bluez4 then try running hciconfig hci0 lm master; hciconfig hci0 lp
 hold,sniff,park after starting the bluetooth daemon.
 
 Cheers,
  Mike.
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
-- 
William Kenworthy bi...@iinet.net.au
Home in Perth!


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-10 Thread Yorick Moko
One thing I don't understand:
intone with a2dp: mplayer usage around 40% and sometimes spikes to
everything available (80-85%) == no fluent playback
intone without a2dp: 12% cpu == fluent playback

how come?

On Tue, Jun 9, 2009 at 5:17 AM, The Digital
Pioneerdigitalpion...@gmail.com wrote:
 If you do implement this in Intone (I see the merits of having it as a
 system-wide option, but then, how many apps are playing sound at one time?),
 beware that if the bluetooth headset refuses to pair, or if the bluetooth
 chip is turned off, mplayer freezes and Intone does too. I have to kill them
 both manually. So be sure to power on the BT chip before playing music with
 it. Also, you have to beware that the headset may not pair with the phone
 automatically, it may require authentication. mplayer won't handle that, and
 will lock up. Of course, it's not Intone's job to do this either, but I
 would like to see Intone run (and close) even when mplayer locks, and
 preferably Intone could kill mplayer when it exits if mplayer is locked.

 I hope that all made sense, I'm a bit tired right now. :P

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-10 Thread The Digital Pioneer
I play oggs with intone/a2dp, but I have to renice mplayer to -19 to keep it
smooth. It still cuts occasionally, but that could just be connectivity.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-08 Thread DJDAS
c_c ha scritto:
 Hi,

 The Digital Pioneer wrote:
   
 AFAIK, the only way to do it is to run mplayer with -ao
 alsa:device=bluetooth
   
   Ok. But what would be the best of doing so from intone :-

  1. I stop the current process from Intone
  2. Start new process with the -ao flag

   Or

  I can have 2 configurations in a file (normal / bluetooth) - I 
 think .asoundrc and change output from intone somehow using
 that.

  I'm not all that clued up on alsa - so can someone with more knowledge
 than I throw some light?   
   
It's very simple: you have to pair to the device and create a .asoundrc 
file in $HOME.
You can see a sample of it in the bluethooth.py module of BlueMoko[1] 
(look at the function connect_A2DP() )
After this the bluetooth headset will become the default alsa device so 
you won't need to change any configuration in mplayer but just start a 
new mplayer process which will play through the headset.
To reset the alsa output simply remove the .asoundrc and disconnect from 
the headset.
Bye!


[1] http://bluemoko.projects.openmoko.org/

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-08 Thread OpenMitko
Hi to all,

Sorry if this is out of topic.

I want to ask those of you who already use a2dp, how is the sound quality? I
tried to use my Neo as media player wit wired headsets, but it was almost a
disaster, intone is great but the sound quality is bad. Not only the lack of
bass …

I was looking for solution but still can’t find something suitable. I was
wondering if Bluetooth headsets offer better quality.
Regards,
Mitko
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-08 Thread DJDAS
OpenMitko ha scritto:

 Hi to all,

 Sorry if this is out of topic.

 I want to ask those of you who already use a2dp, how is the sound 
 quality? I tried to use my Neo as media player wit wired headsets, but 
 it was almost a disaster, intone is great but the sound quality is 
 bad. Not only the lack of bass …

 I was looking for solution but still can’t find something suitable. I 
 was wondering if Bluetooth headsets offer better quality.  

 Regards,
 Mitko

   

Hi,
to me it's very good, I use a Calypso headset and sound quality is 
great, I definitely recommend using a BT headset with A2DP for media 
playing.
Bye


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-08 Thread Michael Sheldon
DJDAS wrote:
 It's very simple: you have to pair to the device and create a .asoundrc 
 file in $HOME.
 You can see a sample of it in the bluethooth.py module of BlueMoko[1] 
 (look at the function connect_A2DP() )
 After this the bluetooth headset will become the default alsa device so 
 you won't need to change any configuration in mplayer but just start a 
 new mplayer process which will play through the headset.
 To reset the alsa output simply remove the .asoundrc and disconnect from 
 the headset.
 Bye!

 Personally I don't think this should be implemented in intone, this
sort of system-wide activity should be handled by FSO (and I believe
there is work on-going towards this) and intone should just offer the
option to make use of an already configured bluetooth device if it exists.

 Also, IIRC, BlueMoko still uses bluez 3.3, while most images now use
bluez 4 by default. So if you went down that path you'd probably end up
having to support two different methods of pairing.

 Cheers,
  Mike.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-08 Thread DJDAS
Michael Sheldon ha scritto:
 DJDAS wrote:
   
 It's very simple: you have to pair to the device and create a .asoundrc 
 file in $HOME.
 

  Personally I don't think this should be implemented in intone, this
 sort of system-wide activity should be handled by FSO (and I believe
 there is work on-going towards this) and intone should just offer the
 option to make use of an already configured bluetooth device if it exists.
   
I agree but as I hadn't the time to update BlueMoko to bluez4 and FSO, 
that was a suggestion to achieve A2DP output after pairing with other 
means (if FSO does the pairing with headset profiles you should have 
only to create the .asoundrc file waiting for a GUI ;) )

  Also, IIRC, BlueMoko still uses bluez 3.3, while most images now use
 bluez 4 by default. So if you went down that path you'd probably end up
 having to support two different methods of pairing.

   
A2DP is easier to use (didn't see bluez4 yet) than headset, because you 
just need to pair and configure the default main alsa device as the 
headset, while headset profiles need routing and configuring the 
secondary alsa device and I didn't find yet a clean way to do this, but 
as I mentioned I hadn't the time to look at bluez4 and newer kernels so 
maybe the situation became better in the meantime (I hope :P )
Bye!



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-08 Thread The Digital Pioneer
If you do implement this in Intone (I see the merits of having it as a
system-wide option, but then, how many apps are playing sound at one time?),
beware that if the bluetooth headset refuses to pair, or if the bluetooth
chip is turned off, mplayer freezes and Intone does too. I have to kill them
both manually. So be sure to power on the BT chip before playing music with
it. Also, you have to beware that the headset may not pair with the phone
automatically, it may require authentication. mplayer won't handle that, and
will lock up. Of course, it's not Intone's job to do this either, but I
would like to see Intone run (and close) even when mplayer locks, and
preferably Intone could kill mplayer when it exits if mplayer is locked.

I hope that all made sense, I'm a bit tired right now. :P
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread Adam Jimerson
On Sunday 07 June 2009 10:50:48 am Yorick Moko wrote:
 I find intone by far the best music app (low cpu usage); but I can't
 find a way to route the audio through
 Currently I use mplayer -ao alsa:device=bluetooth /mp3/
 I would love it if this would be possible with intone.

 Does anybody know a way, or is there some work begin done?

 btw: some info from joerg:
 general rule: no audio app shall have a hardcoded audio device. A
 setup option is mandatory
 the only valid botch would be to have a unique dedicated device like
 e.g. 'alsa-intone', then set up .asound to associate a physical device
 to this symbolic name
 nevertheless a lot of audio apps are borked and use a hardcoded
 'default' device. This is absolutely deprecated


I don't know if work on this is being done on this but if you don't get a 
reply on this list then I would suggest leaving a comment on opkg.org, 
http://www.opkg.org/package_190.html, and suggest it there I'm sure it can be 
done with intone.
-- 
We must plan for freedom, and not only for security, if for no other reason 
than only freedom can make security more secure.  Karl Popper


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread c_c

Hi,

Yorick Moko wrote:
 
Currently I use mplayer -ao alsa:device=bluetooth /mp3/
I would love it if this would be possible with intone.
 
 Well, I'm running mplayer from intone without any audio output driver. I
did
think of having an option for bluetooth - but was not clear if I would then
have
to set up the device too (pairing etc). Hence, the current status. 

  What would be the best way to do this? I could pick up the audio output
driver
from a configuration file. Or does anyone have any other ideas? 

  Especially, if users need to switch from the FR speaker / headphone to
bluetooth
device and vice versa - is intone expected to handle this?


Yorick Moko wrote:
 
general rule: no audio app shall have a hardcoded audio device. A
setup option is mandatory
the only valid botch would be to have a unique dedicated device like
e.g. 'alsa-intone', then set up .asound to associate a physical device
to this symbolic name
 
 I'm note very clear on this. Can someone throw some light on how to do
this?
-- 
View this message in context: 
http://n2.nabble.com/intone-a2dp-%28bluetooth%29-support-tp3038819p3039249.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread c_c

Hi,
  BTW, I prefer this list because okpg.org doesn't always send me a message
on a new post.

-- 
View this message in context: 
http://n2.nabble.com/intone-a2dp-%28bluetooth%29-support-tp3038819p3039260.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread Michael Sheldon
Hi Yorick,

Yorick Moko wrote:
 I find intone by far the best music app (low cpu usage); but I can't
 find a way to route the audio through
 Currently I use mplayer -ao alsa:device=bluetooth /mp3/
 I would love it if this would be possible with intone.
 
 Does anybody know a way, or is there some work begin done?

I'm using intone with a2dp, all you need to do is edit ~/.mplayer/config
and add the line:

ao=alsa:device=bluetooth

Cheers,
 Mike.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread Yorick Moko
see below

On Sun, Jun 7, 2009 at 7:22 PM, c_ccchan...@yahoo.com wrote:

 Hi,

 Yorick Moko wrote:

Currently I use mplayer -ao alsa:device=bluetooth /mp3/
I would love it if this would be possible with intone.

  Well, I'm running mplayer from intone without any audio output driver. I
 did
 think of having an option for bluetooth - but was not clear if I would then
 have
 to set up the device too (pairing etc). Hence, the current status.

  What would be the best way to do this? I could pick up the audio output
 driver
 from a configuration file. Or does anyone have any other ideas?

  Especially, if users need to switch from the FR speaker / headphone to
 bluetooth
 device and vice versa - is intone expected to handle this?
I don't know..
but I do know it would be VERY convenient for me (and probably
everyone who likes to listen to music with BT)

I will test the solution of Michael Sheldon, but this is not a real
solution, it should be configurable, everbody wants to use the
speakers or headphones now and then

a button in intone would be very useful



 Yorick Moko wrote:

general rule: no audio app shall have a hardcoded audio device. A
setup option is mandatory
the only valid botch would be to have a unique dedicated device like
e.g. 'alsa-intone', then set up .asound to associate a physical device
to this symbolic name

  I'm note very clear on this. Can someone throw some light on how to do
 this?
 --
 View this message in context: 
 http://n2.nabble.com/intone-a2dp-%28bluetooth%29-support-tp3038819p3039249.html
 Sent from the Openmoko Community mailing list archive at Nabble.com.


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread The Digital Pioneer
I've been using the configfile hack for a while too now, and I don't like
having to do that, but it works.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread c_c

Hi,

The Digital Pioneer wrote:
 
I've been using the configfile hack for a while too now, and I don't like
having to do that, but it works.
 
 Guys, I need a little help here. I could modify the config file from intone
itself and restart mplayer - but I don't think that's the best way to do it.

  Can someone with more knowledge about alsa linux system point me to
the recommended way of doing something like this? 

 Thanks.
-- 
View this message in context: 
http://n2.nabble.com/intone-a2dp-%28bluetooth%29-support-tp3038819p3040845.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread The Digital Pioneer

  Can someone with more knowledge about alsa linux system point me to
 the recommended way of doing something like this?

  Thanks.


AFAIK, the only way to do it is to run mplayer with -ao
alsa:device=bluetooth

-- 
Thanks,

The Digital Pioneer

--

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread c_c

Hi,

The Digital Pioneer wrote:
 
AFAIK, the only way to do it is to run mplayer with -ao
alsa:device=bluetooth
 
  Ok. But what would be the best of doing so from intone :-

 1. I stop the current process from Intone
 2. Start new process with the -ao flag

  Or

 I can have 2 configurations in a file (normal / bluetooth) - I 
think .asoundrc and change output from intone somehow using
that.

 I'm not all that clued up on alsa - so can someone with more knowledge
than I throw some light?   
-- 
View this message in context: 
http://n2.nabble.com/intone-a2dp-%28bluetooth%29-support-tp3038819p3040934.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: intone a2dp (bluetooth) support

2009-06-07 Thread The Digital Pioneer
I think your best bet is to respawn mplayer with the flag.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community