yashsingh1/xdaforums huggingface dataset:
[Hero CDMA General] pfer10:
Ok I think I got it. I was able to listen to music via my Jabra 620s for over an hour with no skips. I even answered a call during that time through the headset. I kept the music going on the drive home from work (20 minutes interstate and 10 minute surface). On the interstate I was able to do a couple searches on google with no drops. When I got on the surface streets I fired up google maps and got my location via GPS - no skips. I then opened exchange email - one slight delay and opened a new email that I just got. I then downloaded a 876kb pdf attachment and opened it to check it out. Scrolled all around the pdf with no skips!

The problem is I stayed up until 2:30 last night messing with a couple different things and did the dumbass move of changing multiple things all at once. I don't think it is 100% because I did my changes last night and still had some skips at work but once it seems to run for a while it runs and runs with no skips. Might have something to do with unpairing and pairing it again as I tried a guys droid in between using mine. Just to be sure I changed the audio.conf file back to how it comes in DC 2.07 (I am running DC 2.07.2). The music wouldn't go more than 30 seconds without a skip. Open maps and it would drop clear out. Turn the phone off and on and I get multiple skips.

The good thing is I changed one item back and it seemed to work like how it had been working at work. I have one other change that I did that I haven't changed back but I don't think it matters but we will see.

Here is what I did (you can do it different as long as you edit what I show below in the audio.conf)

adb pull /system/etc/bluez/audio.conf audio.conf

look for

[General]

Enable=Sink,Control

Disable=Headset,Gateway,Source

change to

[General]

Enable=Sink,Control,Source

Disable=Headset,Gateway

save the change

adb push audio.conf /system/etc/bluez/audio.conf

adb reboot

See if that works for you guys. As I said I still had some skipping at different times but if it starts to work it works damn good. If this doesn't work for you I will give you my other change. I modded the init.rc file but I don't think that did anything. Please test and let me know.
[Hero CDMA General] Roman G:
I appreciate ya helping us out with this!

I have changed many things in those 3 files that are in bluez, and did not notice any change! Pissed

I went as far as deleting all 3 of those files with no change!

Now what really pisses me off is everything points to those 3 files!:(

Thanks for the help again!
[Hero CDMA General] pfer10:
I only changed one thing in the end. You have to make the change in the system/etc/bluez directory and reboot. Did you do that?
[Hero CDMA General] rgildoss:
you know whats funny , playing with it today and useing the long press on the bt device and disbaled the phone so that only audio worked didnt help, and to make it worse, i got a call through it .. so even though you disbale it it still dont work ...

Im gona try ur suggestion and see it that helps.

This is what the entire problem is , they are push to much stuff through the BT tunnel and i think is bottlenecking it ...

thanks for the info ..gona try it now an see
[Hero CDMA General] rgildoss:
got error when pushing it back

Read-only file system
[Hero CDMA General] pfer10:
did you remount?
[Hero CDMA General] danknee:
did you type

adb remount
adb push audio.conf /system/etc/bluez/audio.conf

?
[Hero CDMA General] rgildoss:
ooops...

did now and rebooting
[Hero CDMA General] Roman G:
I just use root explorer form the market and I can edit and do anything anywhere I am!

I find it easier to do than ADB!
[Hero CDMA General] danknee:
I edited the conf file and pushed it back but haven't had a chance to test it out in my car yet.

I have been swapping conf settings with those from the cyanogen rom and a few other builds that had similar conf files with different settings (all the 2.1 releases we have are identical of course), but I haven't had any luck yet.

Hopefully this works for me. Fingers crossed.
[Hero CDMA General] Roman G:
Delete all 3 of those files and see what happens!

I did that and there was absolutely no change, I was a little confused to say the least!
[Hero CDMA General] danknee:
LOL, maybe I will try that for fun. Did they get rewritten when you rebooted the phone?
[Hero CDMA General] pfer10:
You can try this before you push it back

adb shell mount -o remount,rw /dev/root /
[Hero CDMA General] Roman G:
No, and thats what was really strange!

I even went so far as to delete the BT firmware and I get no change!

I just want my phone to throw me a bone!
[Hero CDMA General] pfer10:
Let me know. I have been listening again for multiple songs with no skips. It skipped one time when it switched from EVDO to 1X.
[Hero CDMA General] pfer10:
When you delete files like that usually the setting just go to default settings. That is why you are not see any change.
[Hero CDMA General] rgildoss:
okay ..it does show some improvemnet ( def better then it was ) ...i put the phone in my pocket and standign still no cut offs, but soon as i start to walk ( downstaris in my home ) with the phone in my pocket , the cutt offs start again .. the signal that weak ?

ooops jsut cut off sitting here writing this ..second time now ..hehehe
[Hero CDMA General] Roman G:
But then where is the file that tells it to go to default!
[Hero CDMA General] rgildoss:
i saw alot of other changes peramiters in that conf file ..

How did you come to the idea of changing this paticular setting and not others?
[Hero CDMA General] pfer10:
I don't think it is signal strength I was over 50 feet away and still going strong. I have noticed I can get skips sometimes when I shake the phone. Probably the accelerometers bogging the system down. Do you want to try the thing I got changed right now?
[Hero CDMA General] rgildoss:
sure ...

10char..
[Hero CDMA General] pfer10:
The problem is 1.5 use to use bluez 3.36. 2.0 and up switched to 4.47. In 3.36 they used an hcid. 4.47 uses bluetoothd and the config files changed some. The major change I saw from 1.5 to 2.1 in the configs was the source.

I have tried this also

Enable (remove the comment #)

Master=true

also set:

SCORouting=PCM

That should give some control to hardware instead of software.
[Hero CDMA General] rgildoss:
I was thinking the samething on the bluetoothHD but i sort of dropped .. i though it was added after i paird my s9 HD ...
[Hero CDMA General] Roman G:
Okay, so i tried it and no change! Which I really did not expect a change since I think that was prolly the only thing in that file I did not change yet!

I still don't understand why I can't get any change, even for the worse!

If I sound like an asshole, I really am not!

I am just SO TIRED OF THIS ISSUE, THAT AND HAVE BEEN PISSING AWAY 3 DAYS BECAUSE OF IT!
[Hero CDMA General] pfer10:
I changed how the bluetoothd service is also brought up but I am not sure what the added variable did. We can try that next.

in audio.conf I would also enable before we go into the init.rc script

Master=true

HFP=true
[Hero CDMA General] rgildoss:
okay rebooting now ...

can we get our hands on the Samsung Momnet audio.conf file ?

i am told it has no issues at all
[Hero CDMA General] pfer10:
It sounds like you changed a bunch of stuff. Why don't you do a fresh flash and only change the things I mention.
[Hero CDMA General] Roman G:
I am not seeing the first setting in the audio.conf

and the second was already set to PCM!

And thanks for the help, it's nice to get someone else on board!
[Hero CDMA General] pfer10:
A lot of times the program itself will initialize the variable to something unless it is configured in a file.
[Hero CDMA General] Roman G:
It was, I flashed right before I went to bed and had not changed anything until now!

And copied back the firmware file!

I am off to church, I expect it to be fixed when I get back:D:D
[Hero CDMA General] rgildoss:
okay just changed that one too ..rebooting again
[Hero CDMA General] pfer10:
This should be the whole audio.conf file. This is how I ran it last night and it seem to really improve it.

# Configuration file for the audio service

# This section contains options which are not specific to any
# particular interface
# NOTE: Enable=Sink means that bluetoothd exposes Sink interface for remote
# devices, and the local device is a Source
[General]
Enable=Sink,Control,Source
Disable=Headset,Gateway

# Switch to master role for incoming connections (defaults to true)
Master=true

# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
SCORouting=PCM

# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
AutoConnect=true

# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
#[Headset]

# Set to true to support HFP (in addition to HSP only which is the default)
# Defaults to false
HFP=true

# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
#MaxConnections=1

# Just an example of potential config options for the other interfaces
[A2DP]
SBCSources=1
MPEG12Sources=0

[AVRCP]
InputDeviceName=AVRCP

Remember if there is a pound (#) in front of the line it is commented out.
[Hero CDMA General] pfer10:
Above in the code section is how I ran it last night. When I got home I went back to how it comes in Damages roms and I had trouble again. The only thing I change was to put the source up in the enable but depending on the headset some of those other features might help. Try them as they didn't hurt my setup.

Next we will try the init.rc file.
[Hero CDMA General] rgildoss:
i see you took the # off the autoconnect=true as well
[Hero CDMA General] pfer10:
Mine is working fine. I am not sure what you are doing wrong! LOL :)
[Hero CDMA General] pfer10:
Yes I ran it that way last night. I am back to just the source up in the enable instead of disable (the way it was back in 1.5). Depending on headset that might help.
[Hero CDMA General] rgildoss:
what do you think the headset is ?

[General]

Enable=Sink,Control,Source

Disable=Headset,Gateway
[Hero CDMA General] pfer10:
If you look there is a headset section below that which is also commented out. I have been looking for documentation but no luck yet. I assume you can config certain items for the actual headset (maybe the bitpool) but I can't really guess at it.

You can try to enable it but unless you have items under the [headset] I bet it doesn't do anything. You can try though.
[Hero CDMA General] rgildoss:
okay i have set as directed ..i do notice an improvement but problem is still there for sure ...

lets try the other file ...

dont you find it wierd that the bitpool isnt in any of these files ? my guess they left it out?? it def is on a winmo phone and changing the settings def creates this problem ...
[Hero CDMA General] pfer10:
Can you try this.

adb devices

adb shell

at shell (#) type

/system/bin/bluetoothd -n -d

paste that back here
[Hero CDMA General] pfer10:
from what I can see they set the bitpool automatically
[Hero CDMA General] rgildoss:
C:\android-sdk-windows\tools>adb devices

List of devices attached

HT9CLHF01368 device

C:\android-sdk-windows\tools>adb shell

# #

#

# /system/bin/bluetoothd -n -d

/system/bin/bluetoothd -n -d

bluetoothd[778]: Bluetooth daemon 4.47

bluetoothd[778]: Enabling debug information

bluetoothd[778]: parsing main.conf

bluetoothd[778]: discovto=120

bluetoothd[778]: pairto=0

bluetoothd[778]: pageto=8192

bluetoothd[778]: name=%m

bluetoothd[778]: class=0x40020C

bluetoothd[778]: discov_interval=0

bluetoothd[778]: deviceid=android:generic:1.5

bluetoothd[778]: Starting SDP server

bluetoothd[778]: opening L2CAP socket: Operation not permitted

bluetoothd[778]: Server initialization failed

bluetoothd[778]: Loading builtin plugins

bluetoothd[778]: Loading hciops plugin

bluetoothd[778]: Loading plugins /system/lib/bluez-plugin

bluetoothd[778]: Loading input plugin

bluetoothd[778]: Loading audio plugin

bluetoothd[778]: Unix socket created: 4

bluetoothd[778]: audio.conf: Key file does not have group 'Headset'

bluetoothd[778]: input.conf: Key file does not have key 'IdleTimeout'

bluetoothd[778]: Can't open HCI socket: Operation not permitted (1)

bluetoothd[778]: adapter_ops_setup failed

#
[Hero CDMA General] rgildoss:
there are some errors in there ...i am playing music and have my s9-HD connected ..thnik that makes a diffrence?

nope disconnected everything and same errors

also

bluetoothd[778]: audio.conf: Key file does not have group 'Headset'

hmmm....
[Hero CDMA General] pfer10:
no big deal on the errors. that service is already running. what rom are you running?
[Hero CDMA General] pfer10:
Also what media player do you run?
[Hero CDMA General] pfer10:
Also for **** and grins remove it from the bluetooth devices and pair it again since you have changed some things.
[Hero CDMA General] rgildoss:
i am runnign the sprint leak RUU.. and runnign default HTC player..
[Hero CDMA General] rgildoss:
just did the unpair , rebooted and paird again ...same ....
[Hero CDMA General] pfer10:
You might try this since you have a S9 taken from here:

http://xdaforums.com/showthread.php?t=649059

-----------------------------

Enable=Source,Control,Sink

Disable=Headset,Gateway

-----------------------------

to

-----------------------------

Enable=

Disable=Headset,Gateway,Source,Control,Sink

-------------------------------------------

This is opposite what worked for me.
[Hero CDMA General] rgildoss:
lets try ...
[Hero CDMA General] pfer10:
Can you do a logcat while you are playing again and see if it is the push_mm_timeout again when the skip happens.
[Hero CDMA General] pfer10:
I figured this wasn't 100% but mine is working like a champ now. I have been listening to music for several hours straight now with only 1 skip when I was looking at a file and a text also came in. Before I changed the source to enable it would skip at least once in 30 seconds.

The only other change I did was to start bluetoothd in debug mode and I filtered the debug to logwrapper. I highly doubt that has anything to do with it.

Try turning your device off and back on several times. Also listen to music for a long period of time. After I made the changes last night mine still skipped some at the beginning but the more I listened the better it got. Not sure if the bit pool is getting adjusted automatically.
[Hero CDMA General] rgildoss:
okay so that did work better for me however when i go to the next room ( about 15 feet away .. i start to get cut offs and tons of timeout erros in logcat .. but with the phone on the table next to me seems to have improved
[Hero CDMA General] rgildoss:
wow if i cover the phone with both my hands it def cuts off and stays off till i remove my hands ... i find it hard to think that the signal is that low for BT that i can kill it with just covering the phone with my hands
[Hero CDMA General] pfer10:
How much cell signal do you have? I saw the same thing when I got home. I can't go more than 20 feet away before it starts to skip. At work I could go an easy 50 ft and beyond walls before it would drop. At work I have a strong cell signal. Home not so great. The only other things is I put all the settings back to stock besides the source. Maybe I need to set it back to how I had it last night.

Try shaking you phone around and see if it skips. What does that say in logcat
[Hero CDMA General] rgildoss:
shaking the phone around seems to be okay now ..no skips ... and no timeout messages ...

try what i did cover your phone with both hands and see if you get some skips ...
[Hero CDMA General] pfer10:
Usually the reception is based on bandwidth. If bandwidth is down then the reception is down. You might try turning off some of those config items one by one and see if it nets you anything. Maybe go back to the stock setting besides disabling source,sink, headset and the likes.
[Hero CDMA General] pfer10:
You are right. If I cover it just right it totally drops. Funny thing is I don't get anything in logcat. I just did it again and I did get the push_mm_date: timeout several in a row :eek:

I will see if I can find any info on that interface.
[Hero CDMA General] rgildoss:
couldnt posibly be that weak ...maybe there is a setting to adjust signal strenth?

wishfull thinking i guess
[Hero CDMA General] rgildoss:
i am sure this is a noobe question but why is Bluez conf files in 2 different locations?

input.conf

audio.conf

main.conf

/etc/bluez

/system/etc/bluez

and what ones are valid to change settings on ?
[Hero CDMA General] pfer10:
When you change the system one and reboot it changes the other. I think you can change the /etc one restart bluetoothd and it will take the changes without reboot. This might be wrong but I believe that is the way it works.

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA General] Roman G:
So I tried all those changes lastnight and I really got no different results:(

Although one of the setting made my bluetooth not work, so that was cool atleast something happened:D

Will contunie to tweek those settings!

Again pfer10 thanks for the help
[Hero CDMA General] pfer10:
Have you tried SCORouting=PCM? Try setting that and then try HCI and see if there is any difference. PCM should be better.

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA General] Roman G:
I tried that lastnight, and I will say that HCI was horrible, and PCM was better but still about the same as before!

Running 2.1 RUU

Stock player removed and running tunewiki!
[Hero CDMA General] Roman G:
Just a quick question, but why is the audio.conf file so much different in 1.5 than in 2.1? Is there a different place in 1.5 where setting are configured, or is it configured more on the fly than in 2.1?
[Hero CDMA General] rgildoss:
its because of the new Bluetooth HD stuff
[Hero CDMA General] pfer10:
They went from bluez 3.36 to 4.47 which uses a totally different dameon.

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA General] danknee:
I am having the exact same result! I only changed the source setting in the conf file. At first my connection was still crapping out (happened 3 times), but after a minute everything was golden. I drove around for an hour and streaming music from droidlive lite didn't skip once.

My experience is tethering a2dp media only (no phone) to a Sony Xplod head unit in a car. My phone is mounted on a swiveling dash mount. This and my phone still mounts perfectly to my laptop, the same way it did before modifying the .conf file.
[Hero CDMA General] rgildoss:
well i have to say that i was out today for about 4hours worked perfectly on my car deck then aboput 15 min ago poof no sound BT was still connect music was still playing but no audio out ..so i went into settings stopped BT and BT just froze , the little message on that displays on the phone "your BT has been disconnected" stayed on till i rebooted the phone..

this is frustrating if it wssnt for the EVO coming out i would have drove right to the sprint store and purchased a samsung moment....

back to the drawing board ...
[Hero CDMA General] rgildoss:
okay i think i found something that works for me really good ....

my audio.conf file ..so far running for 20 min and NO skips at all ....

ROman G give this setting a try and let me know if it improves for you .....

i used ADB remount and pushed the file back and rebooted ...

i have to say BIG BIG improvement for me ..for now anyway ...
[Hero CDMA General] rgildoss:
anyone who is reading and wants to try ..use my file .....

must copy audio.conf to the tools folder first ..(unzip) then copy to tools folder then do above ...TESTED ON SPRINT RUU TEST leak

I WOULD PROBABLY DO A BACKUP OF YOUR AUDIO.CONF file first
[Hero CDMA General] rgildoss:
so i been running this conf for about an hour and working perfect, not even one skip ...

so i figured i would revert back to default and see what happened and sure enough SKIPS ...every 30 seconds or so .. going back to this settings again and run it for couple days to see how it goes ..

so far so good here
[Hero CDMA General] Roman G:
I will give it a try a litlle bit later just walked into the door!

About your freeze problem, I did not get a freeze but my BT would just stop! It would still say I was connected, but it would just playing music!

Sounds like you might of got it!
[Hero CDMA General] CharlyDigital:
dont know if this will help but...I flashed the Hero One theme over fresh 2.0d and this resulted in my phone and pioneer deck pairing for a short period. before i could not make one call in my car it would not pair for calls just media. It does not stay connected long but it's a step in the right direction. I have no clue how a theme could have helped but it did. If i nand back to previous set up all is lost but when i go back with Hero One theme BAM it works for a bit.

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA General] rgildoss:
well i dont know that i found anything ..lol

it could be that it works better with the headset i use ( Moto s9 HD )

but for sure there is a difference...
[Hero CDMA General] rgildoss:
intresting ...

give the audio.conf a try and see if improves for you on paring ..i would love to know if it works or is it just me thats totally spent already ...lol
[Hero CDMA General] Roman G:
Well that did not work out for me, I think it was worse, like you said works for your headphones!

It's funny you mention the moment! My wife gave me her May upgrade and she wants a moment, so I am thinking about trading my hero for a moment and giving it the the wife and taking her PINK sanyo katana until the EVO comes out, this **** sucks, and keeps on sucking, at this point I would eat warm dog **** if someone fixed this!

Piece of ****!
[Hero CDMA General] rgildoss:
new log ... it is different from the other i posted yesterday...

that SCO server socket is a new error ..( but i disabled this on the conf file )

the HFP AG is also a new error ...
[Hero CDMA General] rgildoss:
damn i thought we had it ..sh!t...

well we continue on.....

i have to say i have been listening for couple ours now and its flawless..

i still get skips about 15 feet away and if i cover the phone with both hands .. but i thing that's just a crappy signal thing ...music def improved ..its actually usable right now
[Hero CDMA General] rgildoss:
man i been working on this all morning ...i have done so much sht to it that i might have to re do ruu...lol
[Hero CDMA General] Roman G:
I hear ya on that, I have done the RUU 5 times already!
[Hero CDMA General] galt:
I usually have the audio skipping only when I'm out for a run, but this last run there was zero skipping. Not sure yet why. Fresh 2.0d still. All I'm doing is changing my scene to one with less widgets and shortcuts, and this time I turned off wifi and sync. I wonder if the sync was the issue...?
[Hero CDMA General] rgildoss:
hmmm...

could be ..im gona try this my self and see.
[Hero CDMA General] galt:
Meant to mention that when I'm running I'm using the Motorola Rokr S305 for BT audio and Google's My Tracks app to capture my GPS data as I run. I couldn't believe this last run was so flawless. My Tracks was even speaking my stats to me every 15 mins and the audio never flinched. I didn't even go into a task manager and kill everything else in the background, and after the run when I checked a couple of things were showing as running (google voice and a few other common things). Will report back after my run tomorrow to see if it is still solid.
[Hero CDMA General] Roman G:
Just wanted to let you guys know I have yet to have a skip using

darchstar newest Rom!

http://xdaforums.com/showthread.php?t=666145
[Hero CDMA General] galt:
Regarding my previous post, I had another skip free run this morning. Sync and wifi off.
[Hero CDMA General] Roman G:
Update, just tried flipz newest and damage newest and they both still don't work, but it seems the newest darch does, I think he must have something he is not telling us!