LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-07-2014, 02:05 PM   #1
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Is there a guide how to connect a bluetooth headset to slackware?


Basically, subj.

My sone headset is successfully connected using blueman, and audio services seem to activate successfully.

However, no new device appears in aplay -L and I cannot find any reasonable howto on how to make it appear there.

hcitool con:

Code:
bash-4.2# hcitool con
Connections:
        < ACL 00:1F:82:2A:07:D9 handle 9 state 1 lm MASTER AUTH ENCRYPT
 
Old 01-07-2014, 03:17 PM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
I doubt if bluetooth pcm devices should be listed by "aplay -L".

However, "aplay -D bluetooth" should work if you activate the bluetooth config file in "alsa.conf" following the instructions at the beginning of "/etc/alsa/bluetooth.conf".

Last edited by guanx; 01-08-2014 at 12:53 AM.
 
Old 01-07-2014, 03:21 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If you can get this to work, please consider writing a short HOWTO on Slackware Documentation Wiki: http://docs.slackware.com/howtos:start
Lots of people think that USB and especially bluetooth headsets are impossible to setup in Slackware. I do not own those myself so I can not speak from experience.

Eric
 
Old 01-07-2014, 04:08 PM   #4
epimenidecretese
LQ Newbie
 
Registered: Dec 2013
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
I've owned a pair of Microsoft USB headseats and worked out of the box.
 
Old 01-08-2014, 11:25 AM   #5
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by epimenidecretese View Post
I've owned a pair of Microsoft USB headseats and worked out of the box.
USB is NOT the same as Bluetooth !
 
Old 01-08-2014, 12:59 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Alien Bob's comment included USB headsets.
 
Old 01-08-2014, 05:21 PM   #7
albatar
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
I have bluetooth headset sennheiser M500X and sony vaio pro laptop

It works nearly out of the box with slackware 14.1 (kernel 3.12) but i was unable to listen multiple sounds from differents software with dmix :/

my /etc/alsa/bluetooth.conf :

Code:
pcm.rawbluetooth {
        @args [ ADDRESS ]
        @args.ADDRESS {
                type string
        }
        type bluetooth
        device $ADDRESS
}

pcm.bluetooth {
        @args [ ADDRESS ]
        @args.ADDRESS {
                type string
        }
        type plug
        slave {
                pcm {
                        type bluetooth
                        device $ADDRESS
                }
        }
}
and /etc/asound.conf
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1
#pcm.!default {
#    type bluetooth
#    device 00:1B:66:02:46:06
#    profile "auto"
#}
pcm.btheadset {
    type plug
    slave {
        pcm {
            type bluetooth
            device 00:1B:66:02:46:06
            profile "auto"
        }
    }

    hint {
        show on
        description "BT Headset"
    }
}

ctl.btheadset {
  type bluetooth
}
@hooks [
        {
                func load
                files [
                        "/etc/alsa/bluetooth.conf"
                ]
                errors false
        }
]
pcm.btheadsetDmixed {
   type dmix
   ipc_key 1024
   ipc_key_add_uid false
   ipc_perm 0666
   slave {
       pcm "btheadset"
       period_time 0
       period_size 2048
       channels 4
    }
    bindings {
       0 0
       1 1
       2 2
       3 3
    }
}

Last edited by albatar; 01-08-2014 at 05:39 PM.
 
Old 01-10-2014, 05:22 PM   #8
4Strings
Member
 
Registered: Aug 2010
Distribution: slackware-14.1
Posts: 45

Rep: Reputation: 8
I can hear music by my Nokia a2dp bluetooth headset, quite "out of the box" in Slackware 14.1. It's really simple but it does the trick and I hope it helps!

1.
We need an .asoundrc in $HOME:
Code:
 pcm.!default {
   type bluetooth
   device XX:XX:XX:XX:XX:XX  		 
profile hifi}
The XX:XX:XX:XX:XX:XX device is retrieved from:
Code:
hcitool scan
2.
Turning on the bluetooth headset, "Blueman applet" asks for pairing: we've to insert the right pin number in order to associate the new device.

3.
...and then:
Code:
mplayer -ao alsa myfile.mp3
The alsa output will be routed to the Bluetooth haedset.



..alternatively we could create a virtual device; here's the .asoundrc:
Code:
pcm.bluetooth {
   type bluetooth
   device XX:XX:XX:XX:XX:XX
profile hifi
}
...then mplayer routes the audio output to the new virtual device:
Code:
mplayer -ao alsa:device=bluetooth myfile.mp3
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOTO connect to a Bluetooth headset alfredo10 Linux - Laptop and Netbook 1 08-05-2012 10:15 AM
Unable to connect Bluetooth Headset princemunjal Linux - Newbie 2 10-08-2011 12:17 PM
unable connect Bluetooth Headset princemunjal Linux - Hardware 0 10-08-2011 05:24 AM
Connect Bluetooth headset with RHEL scbops Red Hat 1 01-12-2009 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration