[Solved] Bluetooth A2DP source to pulseaudio OR ALSA

Edit
So, I'm happy to say that I have it working to some degree!
I wasn't happy with the default bluez tools, but I managed to find a useful set of tools which seemed to work better: http://gitorious.org/bluez-tools/bluez-tools/
I compiled and make'd them, then created the following startup script to set up everything in the order it is needed for the next part to work: https://gist.github.com/c990e397388bd4399a15
I made a file called bluetoothPin in the home directory with the following in it:
<My phone's MAC (without the angle brackets)> <A Pin Number>
The bt-agent command in the startup.sh script uses that file to authorise connections. I aim to modify it to allow any connection to connect with the same pin, I'll get into that later.
For the actual streaming, I installed qt so I could get the qdbus binary, then I followed the instructions here: http://ubuntuforums.org/showthread.php? … st10492742
That code worked, so I modified it a little so that it would wait for a connection, then make the connection, then wait for a new connection on disconnect: https://gist.github.com/8e32a9cf786995c00f2f
It's not perfect; things get a bit iffy when you try to pair and then connect a device without rebooting the pi: It disconnects gracefully, and it pairs correctly, but pulse doesn't seem to re-add it to its list, so it's no longer identified by my script. Also I haven't figured out how to pair any device against the same pin code yet. Any help with that would be awesome!
Hi there,
I'm trying to build a bluetooth audio receiver server for my car! I have a raspberry pi with arch installed on it, bluez set up and configured (I can pair my phone with it through the bluez-simple-agent, although I think I'll have to write my own pairing daemon to auto-pair anything that attempts to connect).
Baby steps though: I've got bluez all set up as I mentioned earlier, but pulse doesn't seem to "see" the bluetooth connection. I'm not sure exactly what information you guys need to help me, but I've tried to add everything I could think of:
[root@alarmpi ~]# tail /var/log/messages.log
Oct 20 18:25:22 alarmpi bluetoothd[112]: bluetoothd[112]: Endpoint registered: sender=:1.4 path=/MediaEndpoint/A2DPSource
Oct 20 18:25:22 alarmpi bluetoothd[112]: bluetoothd[112]: Endpoint registered: sender=:1.4 path=/MediaEndpoint/A2DPSink
Oct 20 18:25:22 alarmpi bluetoothd[112]: Endpoint registered: sender=:1.4 path=/MediaEndpoint/HFPAG
Oct 20 18:25:22 alarmpi bluetoothd[112]: Endpoint registered: sender=:1.4 path=/MediaEndpoint/HFPHS
Oct 20 18:25:22 alarmpi bluetoothd[112]: Endpoint registered: sender=:1.4 path=/MediaEndpoint/A2DPSource
Oct 20 18:25:22 alarmpi bluetoothd[112]: Endpoint registered: sender=:1.4 path=/MediaEndpoint/A2DPSink
Oct 20 18:25:22 alarmpi pulseaudio[165]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Oct 20 18:25:22 alarmpi pulseaudio[165]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Oct 20 18:39:57 alarmpi systemd[1]: Starting Cleanup of Temporary Directories...
Oct 20 18:39:57 alarmpi systemd[1]: Started Cleanup of Temporary Directories.
[root@alarmpi ~]#
This is interesting... to me it looks like bluetoothd is registering with pulse here.
[root@alarmpi ~]# pactl list
Module #0
Name: module-device-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of devices"
module.version = "2.1"
Module #1
Name: module-stream-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute/device state of streams"
module.version = "2.1"
Module #2
Name: module-card-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore profile of cards"
module.version = "2.1"
Module #3
Name: module-augment-properties
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Augment the property sets of streams with additional static information"
module.version = "2.1"
Module #4
Name: module-alsa-card
Argument: device_id="0" name="platform-bcm2835_AUD0.0" card_name="alsa_card.platform-bcm2835_AUD0.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes card_properties="module-udev-detect.discovered=1"
Usage counter: 0
Properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "2.1"
Module #5
Name: module-udev-detect
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Detect available audio hardware and load matching drivers"
module.version = "2.1"
Module #6
Name: module-bluetooth-discover
Argument:
Usage counter: n/a
Properties:
module.author = "Joao Paulo Rechi Vita"
module.description = "Detect available bluetooth audio devices and load bluetooth audio drivers"
module.version = "2.1"
Module #7
Name: module-esound-protocol-unix
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "ESOUND protocol (UNIX sockets)"
module.version = "2.1"
Module #8
Name: module-native-protocol-unix
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (UNIX sockets)"
module.version = "2.1"
Module #9
Name: module-default-device-restore
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the default sink and source"
module.version = "2.1"
Module #10
Name: module-rescue-streams
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is removed, try to move their streams to the default sink/source"
module.version = "2.1"
Module #11
Name: module-always-sink
Argument:
Usage counter: n/a
Properties:
module.author = "Colin Guthrie"
module.description = "Always keeps at least one sink loaded even if it's a null one"
module.version = "2.1"
Module #12
Name: module-intended-roles
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Automatically set device of streams based of intended roles of devices"
module.version = "2.1"
Module #13
Name: module-suspend-on-idle
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is idle for too long, suspend it"
module.version = "2.1"
Module #14
Name: module-console-kit
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each ConsoleKit session of this user"
module.version = "2.1"
Module #15
Name: module-systemd-login
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each login session of this user"
module.version = "2.1"
Module #16
Name: module-position-event-sounds
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
module.version = "2.1"
Module #17
Name: module-role-cork
Argument:
Usage counter: n/a
Properties:
module.author = "Lennart Poettering"
module.description = "Mute & cork streams with certain roles while others exist"
module.version = "2.1"
Module #18
Name: module-filter-heuristics
Argument:
Usage counter: n/a
Properties:
module.author = "Colin Guthrie"
module.description = "Detect when various filters are desirable"
module.version = "2.1"
Module #19
Name: module-filter-apply
Argument:
Usage counter: n/a
Properties:
module.author = "Colin Guthrie"
module.description = "Load filter sinks automatically when needed"
module.version = "2.1"
Module #20
Name: module-dbus-protocol
Argument:
Usage counter: n/a
Properties:
module.author = "Tanu Kaskinen"
module.description = "D-Bus interface"
module.version = "2.1"
Module #21
Name: module-switch-on-port-available
Argument:
Usage counter: n/a
Properties:
Sink #0
State: SUSPENDED
Name: alsa_output.platform-bcm2835_AUD0.0.analog-stereo
Description: bcm2835 ALSA Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 4
Mute: no
Volume: 0: 86% 1: 86%
0: -4.00 dB 1: -4.00 dB
balance 0.00
Base Volume: 86%
-4.00 dB
Monitor Source: alsa_output.platform-bcm2835_AUD0.0.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "bcm2835 ALSA"
alsa.id = "bcm2835 ALSA"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "bcm2835 ALSA"
alsa.long_card_name = "bcm2835 ALSA"
alsa.driver_name = "snd_bcm2835"
device.bus_path = "platform-bcm2835_AUD0.0"
sysfs.path = "/devices/platform/bcm2835_AUD0.0/sound/card0"
device.string = "hw:0"
device.buffering.buffer_size = "17632"
device.buffering.fragment_size = "4416"
device.access_mode = "serial"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "bcm2835 ALSA Analog Stereo"
alsa.mixer_name = "Broadcom Mixer"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
Ports:
analog-output: Analog Output (priority: 9900)
Active Port: analog-output
Formats:
pcm
Source #0
State: SUSPENDED
Name: alsa_output.platform-bcm2835_AUD0.0.analog-stereo.monitor
Description: Monitor of bcm2835 ALSA Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 4
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
Base Volume: 100%
0.00 dB
Monitor of Sink: alsa_output.platform-bcm2835_AUD0.0.analog-stereo
Latency: 0 usec, configured 0 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Monitor of bcm2835 ALSA Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "bcm2835 ALSA"
alsa.long_card_name = "bcm2835 ALSA"
alsa.driver_name = "snd_bcm2835"
device.bus_path = "platform-bcm2835_AUD0.0"
sysfs.path = "/devices/platform/bcm2835_AUD0.0/sound/card0"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
Formats:
pcm
Client #0
Driver: module-systemd-login.c
Owner Module: 15
Properties:
application.name = "Login Session c1"
systemd-login.session = "c1"
Client #2
Driver: protocol-native.c
Owner Module: 8
Properties:
application.name = "pactl"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "26"
application.process.id = "253"
application.process.user = "root"
application.process.host = "alarmpi"
application.process.binary = "pactl"
application.language = "C"
application.process.machine_id = "5c49cb5bf08724338eb09a6900092bb0"
Card #0
Name: alsa_card.platform-bcm2835_AUD0.0
Driver: module-alsa-card.c
Owner Module: 4
Properties:
alsa.card = "0"
alsa.card_name = "bcm2835 ALSA"
alsa.long_card_name = "bcm2835 ALSA"
alsa.driver_name = "snd_bcm2835"
device.bus_path = "platform-bcm2835_AUD0.0"
sysfs.path = "/devices/platform/bcm2835_AUD0.0/sound/card0"
device.string = "0"
device.description = "bcm2835 ALSA"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
Profiles:
output:analog-mono: Analog Mono Output (sinks: 1, sources: 0, priority. 100)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority. 6000)
off: Off (sinks: 0, sources: 0, priority. 0)
Active Profile: output:analog-stereo
Ports:
analog-output: Analog Output (priority: 9900)
Part of profile(s): output:analog-mono, output:analog-stereo
[root@alarmpi ~]# cat /etc/bluetooth/audio.conf
# Configuration file for the audio service
# This section contains options which are not specific to any
# particular interface
[General]
Enable=Source
# Switch to master role for incoming connections (defaults to true)
#Master=true
# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Gateway,Source,Socket
# 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, false means only HSP is supported
# Defaults to true
HFP=true
# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1
# Set to true to enable use of fast connectable mode (faster page scanning)
# for HFP when incoming call starts. Default settings are restored after
# call is answered or rejected. Page scan interval is much shorter and page
# scan type changed to interlaced. Such allows faster connection initiated
# by a headset.
FastConnectable=false
# Just an example of potential config options for the other interfaces
#[A2DP]
SBCSources=1
MPEG12Sources=0
[root@alarmpi ~]# cat /etc/asound.conf
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
ctl.!default {
type pulse
fallback "sysdefault"
# vim:set ft=alsaconf:
About my project in general:
I want to be able to do the following:
- Give pulseaudio access to the bluetooth device, and use the A2DP protocol to receive the audio. From my research, it is possible, but I'm not sure how.
- Open up bluez so that I can pair any device by connecting with "1234" for the auth, then it will automatically check for A2DP and give that information to pulse
The idea being that any bluetooth device can pair without any interaction from the raspberry pi, and then pulse will have access to all of the devices which are playing music.
1] Is this even possible?
2] Can I use alsa instead as it seems it'd be easier/lighter to manage?
3] Are there any documents other than arch's bluetooth and pulse wikis that I can read to help me figure this out?
Last edited by s0l1dsnak3123 (2012-10-20 23:53:01)

Actually I've solved it myself by looking at the wiki page I posted.
I am not sure about what you said but PulseAudio doesn't require ALSA (alsa-lib, alsa-utils, sort of) to play sound except when with those applications that do not have direct support (now even Flash have that). But maybe the drivers for sound cards in Linux kernel could be said as a part of ALSA, then I am not sure about those stuff.
Last edited by tom.yan (2011-08-11 06:47:35)

Similar Messages

  • Apt-x Support for Bluetooth A2DP?

    Hi,
    are there any plans to support the apt-X codec for the Bluetooth A2DP Profile? Maybe that could solve some of the bad A2DP audio qualitiy issues, that are still expierienced by some users (including me) on all the available phones (tested Pre- with 1.4.5, Pre+ with 1.4.5 and 2.1, Pixi Plus with 1.4.5, Pre2 with 2.0 and 2.1, all gave the same issues with different headsets and receivers!).
    apt-X seems to be coming quite fast, not only because apple has built in support for it in it's latest products, but also because it offers CD level quality on low encoding cost, which is MUCH more than the poor SBC codec can deliver.
    I hope HP with it's Beat audio line of products will consider adding such enhanced A2DP codecs to the mobile devices... wireless headsets are so much more convinient than anything wired can be. But at the momen A2DP sound quality is unbearable with my Palm handsets and I still have no clue where that issue arises from (my last guess is, that it's connected to me being an european costumer and we are few compared to the majority of the us costumers. As far as I understood there are differences in the radio part of the handsets between EU and US devices, so maybe those differences break A2DP Bluetooth quality).
    Post relates to: Pre Plus p100ueu (Vodafone)

    Thanks for all of the replies. I also saw in the Z white paper that the apt-X codec is not listed, so the question becomes "can apt-X be pushed via a software update?"
    For those interested in streaming to your home stereo or powered speaker, here's what I ended up doing.
    Purchased a Rocketfish Bluetooth Music Receiver from Best Buy (in the US). It is a pretty slick lttle device, about the same size as the power plug adaptor and it supports A2DP and apt-X. There are two audio outputs: analog via a headphone jack and optical. And it ships with a 6' 3.5mm stereo audio cable and a  RCA adaptor.
    Setup was easy. Connect the audio to the stereo's AUX inputs, set the stereo's source to AUX, plug in the BT receiver power, turn on the tablet Bluetooth on the tablet and play music.
    At first the sound was pretty compressed from MP3's, Pandora and the Google Play service.The fix was to go into the Google Play app > settings > equalizer. Click on "surround sound" and change the setting from "headphone" to "studio".Then play with the equalizer settings to tweak.Results in much improved audio.
    Happy camper now... music streaming through the house and no wires!

  • About Bluetooth A2DP

    Is there this option (Bluetooth A2DP) in N95-1?
    Solved!
    Go to Solution.

    what exactly are you asking? if you asking "if it can be turned on or off?" then the answer is "no." a2dp is already installed on the n95. for it to work all you need to do is pair the headset with the phone, and when you start playing music it will begin streaming to the headset immediately. there is no "on" or "off" option.
    everything happens for a reason
    check out my blog @ http://mycellife.blogspot.com/

  • Bluetooth a2dp/avrcp

    Ever since a week after the first Iphones were released (when I bought my first one), I've been waiting for Iphone to support bluetooth a2dp/avrcp.
    I bought a 3G-S yesterday. I have 3 different a2dp/avrcp products I've paired it with: my Sony car stereo, a Motorola MOTOROKR S9 and a 3rd device (I forget the make/model). All three seem to play the music via a2dp fine. But I cannot get skip-to-next-track and skip-to-beginning-of-track ( |<< and >>| )to work on any of them. Play/pause works on the 2nd and 3rd device, but not on the car stereo. On the car stereo when I hit pause I hear a split-second pause and then it continues playing.
    So my question is, does the Iphone 3G-S not support the avrcp protocol or is it buggy?

    The iPhone 3GS' Bluetooth profile does not support forward and back, only pause and play via stereo Bluetooth. I had this issue as well, and had to dig around the apple site to find out the supported profiles. My car stereo has the capability to transfer the phonebook contacts to the stereo so you can see a name rather than a phone number; however since the iphone's profile does not support file transfer or sharing I cannot use this feature on my stereo. I hope Apple updates this soon as well as the forward/rewind Bluetooth functionality so I can keep my phone secured in my purse without having to take it out to change the song or see who is calling me while driving.
    Go to this page: http://support.apple.com/kb/HT3647
    it lists the supported profiles. Pay close attention to the * toward the bottom. It states only pause and play are supported.

  • Create Midlet for Bluetooth A2DP profile

    Hello,
    I'm a newbie. I would like to know if it's possible to create a midlet for bluetooth A2DP profile. If it is, please let me know where i can get information on this.
    Thank you so much,
    Ken

    Now I'm facing the same problem with A2DP on my Nokia 6230 (original player doesn't support it) so I'm about to create my own player supporting this bluetooth protocol. I just wanted to ask you how far you've got with this.
    Thx.

  • Song playback rate is improper over Bluetooth a2dp

    I recently purchased a Bluetooth a2dp dongle to stream music wirelessly from my MacBook and iPhone. My bed is about 2.5 meters from the dongle. The playback is fine with the MacBook but with my iPhone 3G it tends to be inconsistent. I can sense a rush in the playback and then sudden chops. Simply speaking it's not smooth. It's a 3G with ios4.1 and so background apps is not an issue. There is a direct line of sight with the dongle. The MacBook plays it fine over the same distance.
    This problem is present even when my iPhone is placed next to the dongle (which actually kills the very meaning of having the dongle).
    Any help?

    the problem is only with the iPhone 3g and not with my MacBook pro.

  • [SOLVED] mpd - no sound after Pulseaudio update

    After update of Pulseaudio (1.04) I mpd doesn't work - there's no problem with other applications, only with mpd. I can't set volume and mpc says that there are problems with opening audio device:
    eregus@arch ~ $ mpc
    Black River - Street Games
    [paused] #769/775 0:00/3:45 (0%)
    volume: n/a repeat: off random: off single: off consume: off
    ERROR: problems opening audio device
    There's my /etc/mpd.conf:
    music_directory "/mnt/sda3/music"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/mpd.db"
    log_file "syslog"
    pid_file "/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    auto_update "yes"
    input {
    plugin "curl"
    audio_output {
    type "pulse"
    name "pulse audio"
    I use ALSA + Pulseaudio. My /etc/pulse/default.pa:
    .nofail
    .fail
    load-module module-device-restore
    load-module module-stream-restore
    load-module module-card-restore
    load-module module-augment-properties
    load-module module-alsa-sink device=dmix
    load-module module-alsa-source device=dsnoop
    .ifexists module-udev-detect.so
    .else
    .endif
    .ifexists module-jackdbus-detect.so
    .nofail
    load-module module-jackdbus-detect
    .fail
    .endif
    .ifexists module-bluetooth-policy.so
    load-module module-bluetooth-policy
    .endif
    .ifexists module-bluetooth-discover.so
    load-module module-bluetooth-discover
    .endif
    .ifexists module-esound-protocol-unix.so
    load-module module-esound-protocol-unix
    .endif
    load-module module-native-protocol-unix
    load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
    .ifexists module-gconf.so
    .nofail
    load-module module-gconf
    .fail
    .endif
    load-module module-default-device-restore
    load-module module-rescue-streams
    load-module module-always-sink
    load-module module-intended-roles
    load-module module-suspend-on-idle
    .ifexists module-console-kit.so
    .nofail
    load-module module-console-kit
    .fail
    .endif
    .ifexists module-systemd-login.so
    load-module module-systemd-login
    .endif
    load-module module-position-event-sounds
    load-module module-role-cork
    load-module module-filter-heuristics
    load-module module-filter-apply
    .ifexists module-dbus-protocol.so
    load-module module-dbus-protocol
    .endif
    load-module module-switch-on-port-available
    That's all. I would post /etc/asound.conf, but it seems that from last update it doesn't exist.
    Thank you for any help
    Last edited by Eregus (2013-04-03 19:22:29)

    Eregus wrote:
    Yes, I use X.
    And yes, I know what's the problem with Pulseaudio - the tip in Arch Wiki didn't help.
    Edit: Oh, I only tried that workaround, I didn't try to change user. I'll edit mpd.conf when I come back home.
    according to your config, you used that workaround wrongly. it will only work, if you point to the pulse server IP in mpd.conf. So add the server line in your pulse output. (its most likely 127.0.0.1)
    Last edited by Rasi (2013-04-03 15:36:03)

  • [Solved] Bluetooth + Jaybird Bluebuds X - Stream setup failed

    Using blueman-applet to control bluetooth devides via Bluez4, i get the following:
    Connection Failed: Stream setup failed
    I've paired the device, that was successful.
    I've added it as a trusted device.
    Also made some minor config changes here and there, for instance:
    # /etc/bluetooth/audio.conf
    Enable=Socket
    I've installed pulseaudio and ran the following:
    $ pulseaudio --start
    $ pactl load-module module-bluetooth-discover
    Still doesn't work even thoe the device can be found:
    Most guides/issues are reported under Ubuntu, and they solve it by installing pulseaudio-module-bluetooth, however this module comes default with pulseaudio in Arch from what i can tell.
    Last edited by Torxed (2014-06-14 15:59:40)

    Also for anyone finding this on google and wonders how to switch to the bluetooth?
    # nano /etc/asound.conf
    defaults.ctl.card 1
    defaults.pcm.card 1
    pcm.btheadset {
    type plug
    slave {
    pcm {
    type bluetooth
    device 44:5E:F3:A6:E7:43
    profile "auto"
    hint {
    show on
    description "BT Headset"
    ctl.btheadset {
    type bluetooth
    (Where everything except the two first lines are added in my case)
    And then we enable this sink in pulseaudio.
    $ pactl load-module module-alsa-sink device=btheadset
    Then we simply use pavucontrol and enable this output either "globally" or for a particular audio-stream.
    Using pulseaudio+alsa

  • [Solved] Bluetooth headset. Anyone know how to set up?

    Hi.
    I have a Kinivo BTH220 Bluetooth headset, and I have no idea how to set it up in Linux.
    It appears that the wiki article is outdated and incomplete. Does anyone have Bluetooth working for them on the up to date packages?
    Last edited by *nixer (2013-11-21 00:54:43)

    blueman-git seems to have been dropped from the aur, and the blueman-bzr uses bluez4. I tried bluez4 with blueman-bzr but had several errors.
    I ended up downgrading the blueman package from the repo you posted, and blocked it from being upgraded. It didn't give the errors blueman-bzr did right off the bat. (ie - an error window when loading X)
    I added 'Enable=Source,Sink,Media,Socket' to my '/etc/bluetooth/audio.conf', and created the '/etc/asound.conf' with the required setting both per the wiki article. Obviously, I replaced the XXs with my headset address. (Note: the asound.conf file is installed by pulseaudio-alsa, so I had to manually create it.)
    After pairing, and connecting to the 'headset service' & 'audio sync' in blueman, I was able to receive output from both aplay and mpv (mplayer) successfully as per the wiki article.
    This will work for now as I really wanted it working for media playback, but I noticed all system sounds still played through the default speakers.
    Out of curiosity, I also tried connecting to it manually via hcitool, and bluez-simple-agent.
    # hcitool scan
    Scanning ...
    XX:XX:XX:XX:XX:XX Kinivo BTH220
    # bluez-simple-agent XX:XX:XX:XX:XX:XX
    Traceback (most recent call last):
    File "/usr/bin/bluez-simple-agent", line 115, in <module>
    path = manager.FindAdapter(args[0])
    File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
    File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
    File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
    dbus.exceptions.DBusException: org.bluez.Error.NoSuchAdapter: No such adapter
    Any ideas on how to get sound from the main system for things like web browsing and the like?
    Last edited by *nixer (2013-11-17 00:22:33)

  • [SOLVED] Setting default audio device pulseaudio

    Now i finally get almost all sounds working, but i need to select somehow default output sound device, because i can't change it manually with 'pavucontrol'. When i run Windows applications with Wine i don't get sounds either and 'pavucontrol' is not giving any output of Windows game. Is these problem solved with changing default device if yes, how do i do it?
    Using Logitech G930 sound card.
    lsof /dev/snd/* output:
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    knotify4 3078 arska134 mem CHR 116,3 1568 /dev/snd/pcmC0D0p
    knotify4 3078 arska134 20u CHR 116,33 0t0 3463 /dev/snd/timer
    knotify4 3078 arska134 21r CHR 116,3 0t0 1568 /dev/snd/pcmC0D0p
    pulseaudi 3218 arska134 mem CHR 116,7 6421 /dev/snd/pcmC1D0p
    pulseaudi 3218 arska134 mem CHR 116,8 6422 /dev/snd/pcmC1D0c
    pulseaudi 3218 arska134 20u CHR 116,9 0t0 6423 /dev/snd/controlC1
    pulseaudi 3218 arska134 26u CHR 116,9 0t0 6423 /dev/snd/controlC1
    pulseaudi 3218 arska134 27u CHR 116,8 0t0 6422 /dev/snd/pcmC1D0c
    pulseaudi 3218 arska134 34u CHR 116,7 0t0 6421 /dev/snd/pcmC1D0p
    pacmd list-sinks output:
    Welcome to PulseAudio! Use "help" for usage information.
    >>> 1 sink(s) available.
    * index: 0
    name: <alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
    state: RUNNING
    suspend cause:
    priority: 9049
    volume: 0: 35% 1: 35%
    0: -27.42 dB 1: -27.42 dB
    balance 0.00
    base volume: 100%
    0.00 dB
    volume steps: 65537
    muted: no
    current latency: 30.13 ms
    max request: 3 KiB
    max rewind: 344 KiB
    monitor source: 0
    sample spec: s16le 2ch 44100Hz
    channel map: front-left,front-right
    Stereo
    used by: 1
    linked by: 1
    configured latency: 20.00 ms; range is 0.50 .. 2000.00 ms
    card: 0 <alsa_card.usb-Logitech_Logitech_G930_Headset-00-Headset>
    module: 4
    properties:
    alsa.resolution_bits = "16"
    device.api = "alsa"
    device.class = "sound"
    alsa.class = "generic"
    alsa.subclass = "generic-mix"
    alsa.name = "USB Audio"
    alsa.id = "USB Audio"
    alsa.subdevice = "0"
    alsa.subdevice_name = "subdevice #0"
    alsa.device = "0"
    alsa.card = "1"
    alsa.card_name = "Logitech G930 Headset"
    alsa.long_card_name = "Logitech Logitech G930 Headset at usb-0000:00:13.1-2, full speed"
    alsa.driver_name = "snd_usb_audio"
    device.bus_path = "pci-0000:00:13.1-usb-0:2:1.0"
    sysfs.path = "/devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.0/sound/card1"
    udev.id = "usb-Logitech_Logitech_G930_Headset-00-Headset"
    device.bus = "usb"
    device.vendor.id = "046d"
    device.vendor.name = "Logitech, Inc."
    device.product.id = "0a1f"
    device.product.name = "Logitech G930 Headset"
    device.serial = "Logitech_Logitech_G930_Headset"
    device.form_factor = "headset"
    device.string = "front:1"
    device.buffering.buffer_size = "352800"
    device.buffering.fragment_size = "176400"
    device.access_mode = "mmap+timer"
    device.profile.name = "analog-stereo"
    device.profile.description = "Analog Stereo"
    device.description = "Logitech G930 Headset Analog Stereo"
    alsa.mixer_name = "USB Mixer"
    alsa.components = "USB046d:0a1f"
    module-udev-detect.discovered = "1"
    device.icon_name = "audio-headset-usb"
    device.intended_roles = "phone"
    Solution:
    gulafaran wrote:get the wine-pulse package from AUR and add "mmdevapi" to winecfg libraries and set it to disabled and set Audio to Pulseaudio
    Last edited by Arska134 (2011-05-15 16:52:53)

    and here is some console log when i tried to play Enemy-territory. Sounds not working.
    http://paste.servut.us/plain/uyit
    I found this:
    ------- sound initialization -------
    SDL audio driver initializing...
    SDL_AudioDriverName() = NULL
    Why NULL?
    Edit:
    Sounds not working currently: System sounds, Enemy-territory, Call of duty 4 (with wine)
    but works in Wings 2. O_o
    Edit 2:
    litemotiv wrote:Arska14, please update your topic title so that it reflects that it's a pulseaudio / wine question.
    i removed Wine from topic title because it's not affecting wine only.
    Last edited by Arska134 (2011-05-15 11:52:25)

  • Bluetooth A2DP on T60 with XP

    I have an IBM T60 with Windows XP and all of the updates installed.
    I purchased a Motorola S9 Bluetooth Stereo headset which works great with my cell phone, but I cannot get Windows to see that it exists.
    I have installed the latest Bluetooth drivers from the IBM Support web site, from the IBM support site
    Microsoft Bluetooth Support file for Bluetooth with Enhanced Data Rate -> http://www-307.ibm.com/pc/support/site.wss/MIGR-62928.html.  After the install, I still can't see the S9 headset.
    I tried to download and install the Widecom Bluetooth drivers and each time I try to install it, the install fails.
    Anyone know how to get A2DP support on the T60?
    Thank you
    Solved!
    Go to Solution.

    Ok. Of course it always works this way....I spend hours, days, and weeks trying to get this to work...then within minutes after I post the question I figure it out...sigh....
    the problem was, the S9 wasn't staying in pairing/discovery mode because my phone was on and it was connecting to the phone.  So by the time Windows would try to find it, the S9 was out of Pairing mode.
    The solution
    1. The download from the Lenovo site worked to update to the Enhanced data Rate
    2. You need to have all other devices that the S9 would pair with turned off so the S9 stays in pairing mode while Windows is looking for it.
    Hope this helps others....

  • Bluetooth A2DP audio playback hangs every 5 seconds (Portege R500 VistaSP1)

    Hi,
    I've completely reinstalled on my new Portege R500 Vista SP1and the newest Bluetooth 6.10.10. When playing with Mediaplayer some music on a A2DP Bluetooth audio output device the music is always hanging every 5 seconds. With my mobile phone this A2DP audio device is working perfectly without problems.
    I'm thinking already throwing away Vista and installing XP ...
    Best regards,
    Stefan

    Update:
    I could solve my problem. I found the solution there: [http://www.djkaty.com/vista/bluetootha2dp]
    Disabling the Microsoft Bluetooth Stack was the solution. The 2 Stacks disturbed each other. Now its working fine.
    Go to Start -&gt; Control Panel -&gt; Administrative Tools -&gt; Services and scroll down to the service called Bluetooth Support. Right-click the service, choose Properties and change the startup type from Automatic to Manual. Click OK.
    Cheers,
    Stefan

  • [SOLVED] check pacman source sign failed on sh4 CPU

    I've build 'base' packages on sh4 CPU. (Some base library still use the original linux distributions. eg. gcc,glibc,...)
    I followed Pacman-key to setup key rings.
    pacman-key --init
    pacman-key --populate archlinux
    pacman-key --refresh-keys
    I run previous commands through ssh.  I tried to build haveged, but it occurs following messages, I guess it is caused by old kernel and my hardware haven't realtime clock. So I forgive it.
    gcc -Wall -I.. -O2 -pipe -o haveged haveged.o havege.o havegetune.o havegecollect.o havegetest.o
    havegecollect.o: In function `havege_gather':
    havegecollect.c:(.text+0x264): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x6a0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x9d0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0xd8c): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x1208): undefined reference to `HARDCLOCK'
    havegecollect.o:havegecollect.c:(.text+0x1684): more undefined references to `HARDCLOCK' follow
    collect2: ld returned 1 exit status
    And rerun makepkg on pacman.
    ==> Validating source files with md5sums...
    pacman-4.0.3.tar.gz ... Passed
    pacman-4.0.3.tar.gz.sig ... Passed
    0001-Add-conflict-for-replacing-owned-empty-directory.patch ... Passed
    0002-Check-empty-subdirectory-ownership.patch ... Passed
    0003-Ensure-pre_upgrade-scriptlet-gets-old-package-version.patch ... Passed
    pacman.conf ... Passed
    pacman.conf.x86_64 ... Passed
    pacman.conf.sh4 ... Passed
    makepkg.conf ... Passed
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    ==> WARNING: Warnings have occurred while verifying the signatures.
    Please make sure you really trust them.
    Even I manual add the key on message, it is still failed.
    $ sudo pacman-key -r 5C2E46A0F53A76ED
    gpg: requesting key F53A76ED from hkp server pool.sks-keyservers.net
    gpg: key F53A76ED: "Dan McGee <[email protected]>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    ==> Updating trust database...
    gpg: next trustdb check due at 2014-01-22
    $ makepkg
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    BTW, in the process of building gpgme, I can not build pinentry successful, so I pass and use fedora's.
    fedora9 pinentry 0.7.4-5.fc9.sh4
    Solved, I guess wrong direction, that's cause I forgot to read Makepkg again.
    gpg --list-keys
    echo 'keyring /etc/pacman.d/gnupg/pubring.gpg' >> ~/.gnupg/gpg.conf
    Last edited by dlin (2013-02-07 01:42:56)

    I've build 'base' packages on sh4 CPU. (Some base library still use the original linux distributions. eg. gcc,glibc,...)
    I followed Pacman-key to setup key rings.
    pacman-key --init
    pacman-key --populate archlinux
    pacman-key --refresh-keys
    I run previous commands through ssh.  I tried to build haveged, but it occurs following messages, I guess it is caused by old kernel and my hardware haven't realtime clock. So I forgive it.
    gcc -Wall -I.. -O2 -pipe -o haveged haveged.o havege.o havegetune.o havegecollect.o havegetest.o
    havegecollect.o: In function `havege_gather':
    havegecollect.c:(.text+0x264): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x6a0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x9d0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0xd8c): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x1208): undefined reference to `HARDCLOCK'
    havegecollect.o:havegecollect.c:(.text+0x1684): more undefined references to `HARDCLOCK' follow
    collect2: ld returned 1 exit status
    And rerun makepkg on pacman.
    ==> Validating source files with md5sums...
    pacman-4.0.3.tar.gz ... Passed
    pacman-4.0.3.tar.gz.sig ... Passed
    0001-Add-conflict-for-replacing-owned-empty-directory.patch ... Passed
    0002-Check-empty-subdirectory-ownership.patch ... Passed
    0003-Ensure-pre_upgrade-scriptlet-gets-old-package-version.patch ... Passed
    pacman.conf ... Passed
    pacman.conf.x86_64 ... Passed
    pacman.conf.sh4 ... Passed
    makepkg.conf ... Passed
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    ==> WARNING: Warnings have occurred while verifying the signatures.
    Please make sure you really trust them.
    Even I manual add the key on message, it is still failed.
    $ sudo pacman-key -r 5C2E46A0F53A76ED
    gpg: requesting key F53A76ED from hkp server pool.sks-keyservers.net
    gpg: key F53A76ED: "Dan McGee <[email protected]>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    ==> Updating trust database...
    gpg: next trustdb check due at 2014-01-22
    $ makepkg
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    BTW, in the process of building gpgme, I can not build pinentry successful, so I pass and use fedora's.
    fedora9 pinentry 0.7.4-5.fc9.sh4
    Solved, I guess wrong direction, that's cause I forgot to read Makepkg again.
    gpg --list-keys
    echo 'keyring /etc/pacman.d/gnupg/pubring.gpg' >> ~/.gnupg/gpg.conf
    Last edited by dlin (2013-02-07 01:42:56)

  • [SOLVED] No sound after installing pulseaudio

    Hi,
    I recently installed pulseaudio to be able to use skype since their update to version 4.3.
    I installed with additional stuff using the command:
    $ sudo pacman -S pulseaudio pulseaudio-alsa pavucontrol lib32-libpulse
    After installing I ran the commands:
    $ pulseaudio -k
    $ pulseaudio --start
    At this point, skype and sound were working properly again.
    After rebooting my computer, I completely lost the sound. I tried killing and restarting pulseaudio and reinstalled twice, but I never managed to have to sound back since...
    Any suggestions?
    Thank you for your help
    Last edited by nocarch (2014-08-08 00:29:48)

    What troubleshooting have you done?
    Moving to NC...

  • Bluetooth A2DP profile for Tiger?

    I am looking to get a wireless headset to game with for my MacBook Pro - with Bluetooth built in, I figure this is the way to go.
    My research so far has shown that bluetooth stereo headsets with microphones are available, but they require the A2DP Bluetooth protocol. Most sites mention OS X doens't support it, but they are also backdated several months.
    Can anyone confirm if the latest version of Tiger supports A2DP, and / or if support for it will be included in future releases or updates of OS X?
    Thank you!
    MacBook Pro   Mac OS X (10.4.7)  

    Joseph, thanks for the post. I'm a Joseph too, must have been fate I found your post. I was very stoked about the iTouch being able to use for Skype. Skype has a section at their site about how it's doable. I have the 3.0 ver on my Touch. I just tried to pair my jawbone to the touch, but no luck. yet, I was at the Apple store yesterday and in a group, including staff, discussing using Skype on the Touch. The staff was telling us the Jawbone & their $79 Platronics would work. I already have a jawbone for my cell phone, but the Touch, when Bluetooth is on, doesn't even find the jawbone device. So, I'm not sure what's next. I'll try the headset you noted.
    Thanks for your post.

Maybe you are looking for

  • Certificate based authentication with sender SOAP adapter. Please help!

    Hi Experts,    I have a scenario where first a .Net application makes a webservice call to XI via SOAP Adapter. Then the input from the .Net application is sent to the R/3 system via RFC adapter. .Net --->SOAP - >XI - >RFC - R/3 System Now as per cli

  • Applet with adittional jar files / mp3 with Jlayer

    In order to support multiple MP3 encodings, I created a class that extends MediaPlayer called [MediaPlayerMP3|http://svn.vacavitoria.com/cabecudinhos_1/mp3AsMediaPlayer/src/mp3asmediaplayer/MediaPlayerMP3.fx] , that uses Jlayer to play mp3 files in a

  • Can't add a printer in Print & Fax preference

    I was having trouble with my printer resource for my HP Laserjet 6MP, which had been working fine until this week.  In print preferences, I deleted the printer, and another one for good measure.  When I went to add new printer, there were no printers

  • Message updater quit unexpectedly

    Restarted my Yosemite iMac and a "Problem Report for updater" appears. Says "updater quit unexpectedly. Each time say ok message reappears? What do I need to do?

  • My Final cut pro x is not letting me share my files

    I keep trying to export my files and the only that i ave figured out how to do it is to share on my default file so that i can have a accessable file so i can upload it to youtube , or directly share to youtube . it wont convert i always get an error