| 1   2   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Help with Canola/general A2DP (https://talk.maemo.org/showthread.php?t=29348)

Canadian144 2009-06-04 00:33

Help with Canola/general A2DP
 
Hey,

I bought a pair of Nokia BH-604's today, and they work fine on my N95 8GB. I did the A2DP bluetooth hack on my N810, but can't get it working in Canola. It just sounds crappy.

I tried to go to home/user/.atabake, edit config and change from oms to mplayer like I'm supposed to, but whenever I try to go to home/user/.atabake it just says Permission Denied.

What am I supposed to do?

sachin007 2009-06-04 01:28

Re: Help with Canola/general A2DP
 
Quote:

Originally Posted by Canadian144 (Post 293538)
Hey,

I bought a pair of Nokia BH-604's today, and they work fine on my N95 8GB. I did the A2DP bluetooth hack on my N810, but can't get it working in Canola. It just sounds crappy.

I tried to go to home/user/.atabake, edit config and change from oms to mplayer like I'm supposed to, but whenever I try to go to home/user/.atabake it just says Permission Denied.

What am I supposed to do?

It has been a while since i used a2dp... but u should check the a2dp works thread. There is a program in the extras called a2dp support. The instructions for that u can find in the a2dp works thread. Kaju media player is a better bet for a2dp.

Canadian144 2009-06-04 02:00

Re: Help with Canola/general A2DP
 
Alright, I downloaded Kagu.... but I haven't had a chance to install it yet.

Are these the proper instructions for using Kagu and A2DP? Do I have to do all of this?

kagu can use mplayer to play. mplayer works correct with a2dp.
1.Edit /etc/bluetooth/audio.conf
...
#Disable=Sink
....
[A2DP]
SourceCount=2
SBCSources=1
MPEG12Sources=0

2. Install 4 scripts:
a2dp
switchOnBT.sh
speedup
speeddown

3. create device using python script (http://wiki.bluez.org/wiki/HOWTO/AudioDevices)

import dbus
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
bus_id = manager.ActivateService('audio')
audio = dbus.Interface(bus.get_object(bus_id, '/org/bluez/audio'), 'org.bluez.audio.Manager')

path = audio.CreateDevice('00:11:22:33:44:55')
#audio.ChangeDefaultDevice(path) #change the device to be used by default
sink = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.audio.Sink')
sink.Connect()

4. start under user
a2dp firstrun

5. set kagu player - mplayer

sachin007 2009-06-04 02:10

Re: Help with Canola/general A2DP
 
Quote:

Originally Posted by Canadian144 (Post 293563)
Alright, I downloaded Kagu.... but I haven't had a chance to install it yet.

Are these the proper instructions for using Kagu and A2DP? Do I have to do all of this?

kagu can use mplayer to play. mplayer works correct with a2dp.
1.Edit /etc/bluetooth/audio.conf
...
#Disable=Sink
....
[A2DP]
SourceCount=2
SBCSources=1
MPEG12Sources=0

2. Install 4 scripts:
a2dp
switchOnBT.sh
speedup
speeddown

3. create device using python script (http://wiki.bluez.org/wiki/HOWTO/AudioDevices)

import dbus
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
bus_id = manager.ActivateService('audio')
audio = dbus.Interface(bus.get_object(bus_id, '/org/bluez/audio'), 'org.bluez.audio.Manager')

path = audio.CreateDevice('00:11:22:33:44:55')
#audio.ChangeDefaultDevice(path) #change the device to be used by default
sink = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.audio.Sink')
sink.Connect()

4. start under user
a2dp firstrun

5. set kagu player - mplayer

Well its been quite a while but as far as i remember the instructions where;

1 install a2dp-support
2 pair headset.
3. Write down bluetooth address of headset
4. a2dp first run in xterm and enter the bluetooth address
5. then a2dp enable in xterm
6. run kaju- settings- player -mplayer
7. play.

But these are right off the head... u may want to check the a2dp thread.Those instructions u gave are very old.

And remember switch off the bluetooth on ur phone. I it doesnt worj the first time... follow the cycle again.

Hope it helps. Sorry i cant re read the thread because i have exams.

Canadian144 2009-06-04 02:13

Re: Help with Canola/general A2DP
 
Alright sweet, I did the initial stuff mentioned in the first post, so I should be fairly close to listening to my new headphones once I do a few more things!

Thanks again!

I totally understand about exams also, I have mine next week, keep getting distracted though! haha

blowfish23 2009-06-04 02:15

Re: Help with Canola/general A2DP
 
I never really liked kagu, and canola gives you all the media options. When I changed the.atabake file I used emelfm2. I think that's easier than using xterm. A2dp audio can sometimes not be smooth and cut out a little bit. But I found that if you have advanced power monitor installed, it lets you select the cpu policy and if you set it at performance it makes the audio a lot smoother.

sachin007 2009-06-04 02:19

Re: Help with Canola/general A2DP
 
Quote:

Originally Posted by Canadian144 (Post 293566)
Alright sweet, I did the initial stuff mentioned in the first post, so I should be fairly close to listening to my new headphones once I do a few more things!

Thanks again!

I totally understand about exams also, I have mine next week, keep getting distracted though! haha

You know what else matches...

i have

1. n810
2.n95-8gb
3. bh-604.

Same pinch!

Canadian144 2009-06-04 02:21

Re: Help with Canola/general A2DP
 
Well, I will give kagu a try, and I will also attempt to change the file .atabake usin emelfm2.

Just curious, how is it easier to use than xterm (I've never used it, but I am downloading it right now)?

I'll look for advanced power monitor sometime soon also (didn't find it in the download section on this website)

Quote:

Originally Posted by sachin007 (Post 293568)
You know what else matches...

i have

1. n810
2.n95-8gb
3. bh-604.

Same pinch!

Haha that's scary! LOL

sachin007 2009-06-04 02:28

Re: Help with Canola/general A2DP
 
Quote:

Originally Posted by Canadian144 (Post 293569)
Well, I will give kagu a try, and I will also attempt to change the file .atabake usin emelfm2.

Just curious, how is it easier to use than xterm (I've never used it, but I am downloading it right now)?

I'll look for advanced power monitor sometime soon also (didn't find it in the download section on this website)



Haha that's scary! LOL

On a related note... why do u want a2dp when u have the n95. Is it just to see how it works?
I used to use it on my tablet before i had my n95 for listening to internet radio. But since the n95 also has the internet radio app... i stopped using a2dp on my tablet.

The problems being;

1. once u start a2dp u just cant touch the tablet. Browsing is impossible without the stream breaking.
2. Too cumbersome
3. I can do everything on the n95

Canadian144 2009-06-04 03:16

Re: Help with Canola/general A2DP
 
Well, I picked the headphones up for a good deal, so I figured I would try them out on all my devices.

I was mainly hoping to use them with my N810 for JUST listening to music.... I mean like when I'm on public transit or in class or whatever and I just want to listen to music (not browse the internet or anything).

I don't use my N95 for media THAT much... but I guess if the A2DP support on the N810 is really that bad I will!


| 1   2   | Next
All times are GMT. The time now is 12:38.

vBulletin® Version 3.8.8