LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-29-2015, 03:11 PM   #1
n4rf
Member
 
Registered: Nov 2013
Location: Córdoba, Argentina
Distribution: Slackware64 14.2
Posts: 36

Rep: Reputation: Disabled
Question Slack Bluetooth Audio Headset


Ive been using Slack since 13.37.. currently 14.1.. im not that into -current..

So here is the "situation"..

I work in a laptop with Bluetooth, wich sending/receiving files is not that much of a problem.

But.. when I want to use my bluetooth headset, i have to do some "tricky" things, like edit a .asoundrc, or /etc/asound.conf file in order to use them, then, reboot/relog (reboot works fine, relog does not work "everytime")

And usually, after that, if I turn them off/disconnect (BTheadset), I have no idea why, probably some misconfiguration [have to say Ive tried quite a few so far] but I have to comment, or rename conf files, and reboot/relog again, otherwise I dont have sound throught the built in speakers..


So..

Is there any way/chance/possibility of making it work more like going to "Phonom" and select Output device such as bluetooth?

Is it already solved for next version (-current maybe??)?


Ive tried many distros, wich I gotta admit, I love not having to struggle with the BTHeadset-thingy.. But I always come back to slack...

So, any suggestions/ideas/solution that is right in front of me but I'm blindfolded and cant see??

Im running Slackware 14.1 x86_64 Multilib

Code:
uname -a
Linux ASUS 3.10.17 x86_64 Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz GenuineIntel GNU/Linux
and my .asound file

Code:
pcm.bluetooth {
   type bluetooth
   device 00:18:09:1E:56:44 
profile hifi
}

and my /etc/asound.conf

Code:
pcm.!default {
    type bluetooth
    device 00:18:09:1E:56:44
    profile "auto"
}
pcm.btheadset {
    type plug
    slave {
        pcm {
            type bluetooth
            device 00:18:09:1E:56:44
            profile "auto"
        }
    }

    hint {
        show on
        description "BT Headset"
    }
}

ctl.btheadset {
  type bluetooth
}

@hooks [
        {
                func load
                files [
                        "/etc/alsa/bluetooth.conf"
                ]
                errors false
        }
]
 
Old 07-29-2015, 03:18 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I believe this is just a limitation of using alsa as the audio backend. I don't think there is any (easy?) way around this without going to pulseaudio (but maybe somebody can correct me if I'm wrong). I do know pulseaudio is available on http://slackbuilds.org
 
Old 07-29-2015, 03:30 PM   #3
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
/etc/asound.conf is the system-wide conf
.asoundrc in your home directory is the user conf

try just doing
Code:
pcm.!default {
    type bluetooth
    device 00:18:09:1E:56:44
    profile "auto"
}
it should work with bluez
make sure /etc/rc.d/rc.bluetooth is executable

aplay -l (or -L) will show you all the outputs


Quote:
Originally Posted by bassmadrigal View Post
I believe this is just a limitation of using alsa as the audio backend. I don't think there is any (easy?) way around this without going to pulseaudio (but maybe somebody can correct me if I'm wrong). I do know pulseaudio is available on http://slackbuilds.org
1 minute of googling would tell you that this is very much possible

Last edited by genss; 07-29-2015 at 03:32 PM.
 
Old 07-29-2015, 04:38 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by genss View Post
1 minute of googling would tell you that this is very much possible
I just know I've seen a lot of posts on here about trying to get headsets (usb or bluetooth) to work in addition to main speakers, and almost all the posts have suggested using pulseaudio due to difficulties in getting it to work with alsa.

Luckily, I have no need for either, so I haven't had to tackle this particular problem, so my post was only based on feedback on the forum.
 
Old 07-29-2015, 06:42 PM   #5
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by bassmadrigal View Post
I just know I've seen a lot of posts on here about trying to get headsets (usb or bluetooth) to work in addition to main speakers, and almost all the posts have suggested using pulseaudio due to difficulties in getting it to work with alsa.

Luckily, I have no need for either, so I haven't had to tackle this particular problem, so my post was only based on feedback on the forum.
I usually set up my phone to act as a speaker over A2DP bluetooth for when I am out of the room away from my laptop. Sometimes I even switch the mic on my phone to relay as an input to my laptop as well. Great for voice chat where I don't want to use a head set.

I haven't tried to set up A2DP Bluetooth connections in Slackware yet. It's definitely possible to use Alsa to do so. Pulseaudio is more of a point and click configuration though, so I think that is why people recommend it.

Alsa just requires that you are very specific with your settings, whereas Pulseaudio will do a lot of the work for you.
 
  


Reply

Tags
bluetooth, headset, slackware



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
[SOLVED] Bluetooth headset - keeps asking for the key slipp3d Linux - Laptop and Netbook 2 04-02-2011 05:48 PM
Bluetooth headset, Alsa - no soundcard in /proc/asound/cards (but headset works) simopal6 Linux - Hardware 1 04-29-2009 09:07 AM
Bluetooth Headset wdowning Linux - Hardware 1 02-23-2009 11:30 AM
bluetooth headset and Skype powadha Linux - Software 15 07-02-2006 12:46 PM
Bluetooth headset patthew Linux - Hardware 1 06-14-2005 07:17 AM

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

All times are GMT -5. The time now is 05:37 PM.

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