| View previous topic :: View next topic |
| Author |
Message |
nickel Apprentice


Joined: 21 Oct 2005 Posts: 192 Location: Germany
|
Posted: Tue Jan 24, 2012 7:48 pm Post subject: problems with pulseaudio |
|
|
Hi Everyone!
It is a strange problem. I looked it uo and found nothing like it. Perhaps i'm just missing something.
The bluetooth is recognized and paired. It worked fine. I just had to switch from a2dp to hpf and back to a2dp.
I updated my system. It was a lot of packages but nothing heavy.
Now, the device does get paired, but doesn't appear in the audio-setup of pulseaudio (gnome-bluetooth) anymore
* net-wireless/bluez
Latest version available: 4.98-r1
Latest version installed: 4.98-r1
* net-wireless/gnome-bluetooth
Latest version available: 2.32.0-r1
Latest version installed: 2.32.0-r1
workaround for using pulseaudio through alsa. /etc/asound.conf:
| Code: | pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
} |
/etc/pulse/default.pa:
| Code: | #!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)
.nofail
### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav
.fail
### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties
### Load audio drivers statically (it's probably better to not load
### these drivers manually, but instead use module-hal-detect --
### see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Alternatively use the static hardware detection module (for systems that
### lack udev support)
load-module module-detect
.endif
### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif
### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish
### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv
### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
#load-module module-rtp-send source=rtp.monitor
### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
### Automatically restore the default sink/source when changed by the user during runtime
load-module module-default-device-restore
### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams
### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink
### Honour intended role device property
load-module module-intended-roles
### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle
### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
load-module module-console-kit
### Enable positioned event sounds
load-module module-position-event-sounds
### Cork music streams when a phone stream is active
load-module module-cork-music-on-phone
# X11 modules should not be started from default.pa so that one daemon
# can be shared by multiple sessions.
### Load X11 bell module
#load-module module-x11-bell sample=bell-windowing-system
### Register ourselves in the X11 session manager
#load-module module-x11-xsmp
### Publish connection data in the X11 root window
#.ifexists module-x11-publish.so
#.nofail
#load-module module-x11-publish
#.fail
#.endif
### Make some devices default
#set-default-sink output
#set-default-source input
# bluetooth
#load-module module-alsa-sink device=bluetooth
#load-module module-alsa-source device=bluetooth |
/etc/bluetooth/audio.conf
| Code: | # Configuration file for the audio service
# This section contains options which are not specific to any
# particular interface
[General]
# 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=Control,Source
# 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=false
# 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 incomming 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 |
pls, help!
Last edited by nickel on Thu Jan 26, 2012 12:49 am; edited 1 time in total |
|
| Back to top |
|
 |
nickel Apprentice


Joined: 21 Oct 2005 Posts: 192 Location: Germany
|
Posted: Thu Jan 26, 2012 12:46 am Post subject: |
|
|
well, the problem itself is not the device.
I've tested it with ubuntu and it worked perfectly. I even didn't have to do the workaround to use pulse trough alsa. I don't know why.
I bought todaz a wireless headset. No bluetooth.
At the beginning it shows up in the audio-setup for pulse, 2 cards: the intern one and the wireless 2,4 ghz with profile: analog output + analog input.
But, it didn't work. No sound and mplayer just froze.
I channged it the intern one and everything works. I switched back to the wireless, and no sound (mplayer froze).
I decided to try bluetooth. Same as before: It is recognized, a connection is sucessfully stablished, but it doesn't show up under harware tab, so no sound.
So, i went back to the wireless. And now, out of the blue, i don't have output only input.
pulseaudio -v
| Code: | I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) fehlgeschlagen: Die Operation ist nicht erlaubt
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) fehlgeschlagen: Die Operation ist nicht erlaubt
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: Datei oder Verzeichnis nicht gefunden
I: [pulseaudio] main.c: Dies ist PulseAudio 1.1
I: [pulseaudio] main.c: Seitengröße ist 4096 Bytes.
I: [pulseaudio] main.c: System- ID ist 64c730ccb163869f592c266000000013.
I: [pulseaudio] main.c: System- ID ist 64c730ccb163869f592c266000000013-1327540901.289550-356670064.
I: [pulseaudio] main.c: Nutze Laufzeit-Verzeichnis /home/oswaldo/.pulse/64c730ccb163869f592c266000000013-runtime.
I: [pulseaudio] main.c: Nutze Zustands-Verzeichnis /home/oswaldo/.pulse.
I: [pulseaudio] main.c: Modul-Verzeichnis /usr/lib64/pulse-1.1/modules benutzen.
I: [pulseaudio] main.c: Laufe im System-Modus: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() fehlgeschlagen.
|
|
|
| Back to top |
|
 |
Frostwarrior Apprentice


Joined: 02 Mar 2007 Posts: 165
|
Posted: Fri Jan 27, 2012 7:01 am Post subject: |
|
|
The sentence "problems with pulseaudio" feels pretty the same as "im falling after jumping a cliff".
However, I don't want to make this thread a flame war. So, in my humble opinion I don't recommend you to use pulseaudio.
Is a inmense ball of issues, problems and inefficiency with its own gravity field.
Regards. |
|
| Back to top |
|
 |
hedmo Veteran


Joined: 29 Aug 2009 Posts: 1275 Location: sweden
|
Posted: Fri Jan 27, 2012 8:17 am Post subject: |
|
|
nickel
rename your /home/YOUR USER/.pulse to some thing ells and reboot |
|
| Back to top |
|
 |
nickel Apprentice


Joined: 21 Oct 2005 Posts: 192 Location: Germany
|
Posted: Fri Jan 27, 2012 5:11 pm Post subject: |
|
|
| Frostwarrior wrote: | The sentence "problems with pulseaudio" feels pretty the same as "im falling after jumping a cliff".
|
That's pretty much, how i feel...
You're right. PulseAudio sucks! Even when its working, i've to change the output in sounds-settings.
In Ubuntu i've got the same output: e.g. daemon startup failed. But it works!
I'm returnig my headset and buying a digital head phone.
hedmo:
i tried that, same sh...
I give up. |
|
| Back to top |
|
 |
DMoL Tux's lil' helper

Joined: 07 May 2006 Posts: 100 Location: Minsk, Belarus
|
Posted: Wed Feb 01, 2012 8:16 pm Post subject: bluez (a2dp profile) & pulseaudio |
|
|
I'm not sure, but I've got similar problems after upgrading bluez... the device seems to be connected in blueman, but PA doesn't understand it... here's the logs:
| Code: | Feb 1 23:12:31 localhost pulseaudio[3203]: module-bluetooth-device.c: Couldn't connect to bluetooth audio service
Feb 1 23:12:31 localhost pulseaudio[3203]: module.c: Failed to load module "module-bluetooth-device" (argument: "address=00:1E:7C:01:BC:95 profile=hsp sink_properties=device.icon_name=blueman card_properties=device.icon_name=blueman"): initialization failed.
Feb 1 23:12:31 localhost bluetoothd[3065]: Badly formated or unrecognized command: AT+CSRSF=1,1,1,1,1,7
Feb 1 23:12:33 localhost bluetoothd[3065]: Can't open input device: No such file or directory (2)
Feb 1 23:12:33 localhost bluetoothd[3065]: AVRCP: failed to init uinput for 00:1E:7C:01:BC:95
Feb 1 23:12:33 localhost pulseaudio[3203]: module-bluetooth-device.c: Couldn't connect to bluetooth audio service
Feb 1 23:12:33 localhost pulseaudio[3203]: module.c: Failed to load module "module-bluetooth-device" (argument: "address=00:1E:7C:01:BC:95 profile=a2dp sink_properties=device.icon_name=blueman card_properties=device.icon_name=blueman"): initialization failed. |
How to debug that? Where to post a bug? As I can see the bluez was recently updated, while PA does not... |
|
| Back to top |
|
 |
AchilleTalon Guru


Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Thu Feb 02, 2012 7:44 pm Post subject: |
|
|
Check the uinput module has been build in your kernel. _________________ Achille Talon Hop! |
|
| Back to top |
|
 |
AchilleTalon Guru


Joined: 11 Apr 2004 Posts: 368 Location: Montreal, Quebec, Canada
|
Posted: Fri Feb 03, 2012 12:01 am Post subject: |
|
|
| hedmo wrote: | nickel
rename your /home/YOUR USER/.pulse to some thing ells and reboot |
Didn't work for me.
Here is what I have in syslog while connecting the BT headset:
| Quote: |
Feb 2 18:32:57 feynman kernel: [ 132.366608] input: 00:0F:59:10:90:2A as /devices/virtual/input/input7
Feb 2 18:32:57 feynman pulseaudio[3423]: module-bluetooth-device.c: Couldn't connect to bluetooth audio service
Feb 2 18:32:57 feynman pulseaudio[3423]: module.c: Failed to load module "module-bluetooth-device" (argument: "address="00:0F:59:10:90:2A" path="/org/bluez/3281/hci0/dev_00_0F_59_10_90_2A""): initialization failed.
|
Any hints? How am I supposed to configure pulseaudio and/or bluetooth to make the connection happen? Why the module module-bluetooth-device doesn't load itself? How can I debug this? _________________ Achille Talon Hop! |
|
| Back to top |
|
 |
DMoL Tux's lil' helper

Joined: 07 May 2006 Posts: 100 Location: Minsk, Belarus
|
Posted: Fri Feb 03, 2012 8:18 am Post subject: |
|
|
I've loaded uinput and rebooted with renamed ~/.pulse and nothing has changed too...
| Code: | Feb 3 10:40:48 localhost pulseaudio[3238]: module-bluetooth-device.c: Couldn't connect to bluetooth audio service
Feb 3 10:40:48 localhost pulseaudio[3238]: module.c: Failed to load module "module-bluetooth-device" (argument: "address=00:1E:7C:01:BC:95 profile=hsp sink_properties=device.icon_name=blueman card_properties=device.icon_name=blueman"): initialization failed.
Feb 3 10:40:48 localhost bluetoothd[2926]: Badly formated or unrecognized command: AT+CSRSF=1,1,1,1,1,7
Feb 3 10:40:50 localhost kernel: [ 290.656118] input: 00:1E:7C:01:BC:95 as /devices/virtual/input/input12
Feb 3 10:40:50 localhost pulseaudio[3238]: module-bluetooth-device.c: Couldn't connect to bluetooth audio service
Feb 3 10:40:50 localhost pulseaudio[3238]: module.c: Failed to load module "module-bluetooth-device" (argument: "address=00:1E:7C:01:BC:95 profile=a2dp sink_properties=device.icon_name=blueman card_properties=device.icon_name=blueman"): initialization failed.
|
Is there any other suggestions?
Thanks for support!  |
|
| Back to top |
|
 |
Jesterhead Tux's lil' helper


Joined: 16 Jul 2006 Posts: 75
|
|
| Back to top |
|
 |
DMoL Tux's lil' helper

Joined: 07 May 2006 Posts: 100 Location: Minsk, Belarus
|
Posted: Fri Feb 03, 2012 10:02 am Post subject: |
|
|
| Jesterhead wrote: | | http://wiki.gentoo.org/wiki/Bluetooth_Headset |
Solved for me! Thanks a lot! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|