LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Has anyone got Bluetooth headset to work under Slackware 14 (http://www.linuxquestions.org/questions/slackware-14/has-anyone-got-bluetooth-headset-to-work-under-slackware-14-a-4175434696/)

bimboleum 10-30-2012 12:39 AM

Has anyone got Bluetooth headset to work under Slackware 14
 
Hey,
I am trying to get my bluetooth (Motorola H375) headset to work under Slackware 14 (64 bit) on my thinkpad w530.

I run xfce and the bluetooth device manager that comes with xfce.

I can pair the headset with the adapter.
hcitool ouput shows:-

Code:

root=>hcitool con
Connections:
        > ACL 00:0B:2E:57:C9:EC handle 12 state 1 lm MASTER AUTH ENCRYPT

aplay -L shows

Code:

root=>aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
btheadset
    BT Headset
default:CARD=PCH
    HDA Intel PCH, ALC269VC Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC269VC Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC269VC Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

and my /etc/asound.conf is:-
Code:

pcm.btheadset {
    type plug
    slave {
        pcm {
            type bluetooth
            device 00:0B:2E:57:C9:EC
            profile "auto"
        }
    }

    hint {
        show on
        description "BT Headset"
    }
}

ctl.btheadset {
  type bluetooth
}

If I try to play a tune e.g

aplay -D btheadset <some random mp3 file>

all I get is a high-pitched hum through the headset.

if I try to switch the headset to slave role using hcitool I get:-

Code:

root=>hcitool sr 00:0B:2E:57:C9:EC s
Switch role request failed: Input/output error

So can anyone give me a hint as to what is wrong .. I am obviously part way there in that I can successfuly connect to my headset but I cannot work out what else needs to happen to get a successful connection.

I must add that this headset used to work fine under 13.37 (32 bit) on my old t61.

It exhibits the same (broken) behaviour under Slackware 14 (64 bit)on the t61.

cheers
pete

pete hilton
saruman@ruvolo-hilton.org

guanx 10-30-2012 03:59 AM

My "/etc/asound.conf" is
Code:

@hooks [
        {
                func load
                files [
                        "/etc/alsa/bluetooth.conf"
                ]
                errors false
        }
]


ml4711 10-30-2012 04:40 AM

Quote:

If I try to play a tune e.g

aplay -D btheadset <some random mp3 file>

all I get is a high-pitched hum through the headset.

aplay on my system (slackware 12.2.0) does not play mp3
try with some .wav file

thegato 11-04-2012 01:44 AM

Does anyone have any more in depth info on this?

Did you have to do anything else to get it to work?

I'm getting the same trouble with only a horrid noise coming out of my headset. Using both methods listed above.

EDIT:

I believe I've found the issue. The headset is meant for voice only so it can only send/recieve at 8000 Hz. Anything higher results in that awful noise spewing through the headset. Try this:

For reference all I needed to do was add the commented section from /etc/alsa/bluetooth.conf into /etc/asound.conf , I did not need to edit bluetooth.conf
I use blueman-manager to pair and connect to my headset.

Make sure Enable=Socket is set in /etc/bluetooth/audio.conf

in a console do

arecord -D bluetooth test.wav and sing into the headset mic. It should default to 8000Hz but you can set -r 8000 if you want.

aplay -D bluetooth test.wav and you should hear your wonderful singing.

I hope that solves it for you, however disappointing. To get better quality audio you'd need a non-phone headset.

caiquo 01-27-2015 12:31 PM

I am using slackware-current. I am sure it will work for slackware 14.1 as well

First of all this is how my asound.conf looks like

pcm.!default {
type bluetooth
device "00:1E:7C:23:BA:49"
}

Then I use /usr/bin/blueman-manager

I hope this help. Bluetooth becomes the default sound for your whole system. With the above set up, you can hear sound online as well
with any browser.

caiquo 01-27-2015 10:19 PM

I am using Slackware-current. I am sure it will work for Slackware 14.1 as well

First of all this is how my asound.conf looks like in /etc/asound.conf

Code:
pcm.!default {
type bluetooth
device "00:1E:7C:23:BA:49"
}
Code:

As a user, I have created .asoundrc in my /home/user that looks like this:

code:

pcm.btheadset {
type plug
slave {
pcm {
type bluetooth
device "00:1E:7C:23:BA:49"
profile "auto"
}
}

hint {
show on
description "BT Headset"
}
}

ctl.btheadset {
type bluetooth
}

code:

I did restart the computer for the settings to configure properly.

Then I use /usr/bin/blueman-manager as a user to find my bluetooth headset after I have set my bluetooth headset in discovery mode

The /usr/bin/blueman-manager helps you discover the right device input. In my case my headset was identified as device "00:1E:7C:23:BA:49"

Note that bluetooth becomes the default sound for your whole system due to /etc/asound.conf With the above set up, you can hear sound online as well with any browser or when using your favourite media to play videos or songs.

I hope this helps.


All times are GMT -5. The time now is 11:23 PM.