> I'm closing bug #435643. It seems that you didn't configure yout BT headset.
I did follow the instructions from the docs, but I might have missed something. > All you need is to append > /usr/share/doc/bluetooth-alsa/sample.asoundrc to your ~/.asoundrc and > set default address to point to HW address of your device. Did that the first time, confusion with the naming of the audio device came from sample.a2dpd: "Address of your alsa output (default : plughw:0,0)" I was looking for the wrong one ;^) > E.g.: > @args.BDADDR { > type string > default "00:12:34:56:78:90" # Put your HS address here > } I did all that before, but I admit that was looking for an extra card to show up in the system rather than play with the settings. Only thing I gained so far is the ability to change the volume of the headset, but nothing else. Before I was able to change it both in the system and on the headset and changing one affected the other, now changing it on the headset doesn't have any effect on the system (can't hear anything but the volume bar simply doesn't move). I can choose it as mixer in xmms or beep but that prevents the software from playing at all. I tried to record something and that's what I got: ; rec -t alsa headset file.wav rec stio: Failed reading `headset': cannot open audio device ; headsetd -n headsetd[6063]: Bluetooth headset daemon version 0.5 headsetd[6063]: Configuration phase ended: target bdaddr is 00:0D:44:02:F1:1F, timeout is 6000 ms headsetd[6063]: Changing state: Idle-->Paging headsetd[6063]: unable to connect L2CAP socket to headset: Permission denied headsetd[6063]: Changing state: Paging-->Idle I've attached the output of strace. > Than fire up headsetd (with -n to see it's messages). > > Finally set your application input/output device to "headset". It is > bi-directional. > This is easiest way to get it work. Obviously you have to pair your HS > with Bluetooth HCI ("Bluetooth dongle") before. Hardware address of > device can be obtained using hcitool or sdptool. As I've written before, I had done it over half a year ago and it worked which meant that I DO know all that. > It it does not work for you do not hesitate to reopen this bug. I don't think I'll do it only because "it doesn't work for me" or "after spending couple of hour I still can't get my bluetooth headset to work". Cheers, -- Raf
execve("/usr/bin/headsetd", ["headsetd", "-n"], [/* 26 vars */]) = 0 brk(0) = 0x10017000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3001f000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=210345, ...}) = 0 mmap(NULL, 210345, PROT_READ, MAP_PRIVATE, 3, 0) = 0x30030000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libbluetooth.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0b@"..., 512) = 512 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30020000 fstat64(3, {st_mode=S_IFREG|0644, st_size=95816, ...}) = 0 mmap(0xffc8000, 160184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xffc8000 mprotect(0xffde000, 65536, PROT_NONE) = 0 mmap(0xffee000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0xffee000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\1\346"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1413584, ...}) = 0 mmap(0xfe4d000, 1483224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfe4d000 mprotect(0xffa0000, 65536, PROT_NONE) = 0 mmap(0xffb0000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x153000) = 0xffb0000 mmap(0xffb5000, 8664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffb5000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30021000 mprotect(0xffb0000, 4096, PROT_READ) = 0 mprotect(0x3002e000, 4096, PROT_READ) = 0 munmap(0x30030000, 210345) = 0 umask(077) = 022 socket(PF_FILE, SOCK_DGRAM, 0) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = -1 EPROTOTYPE (Protocol wrong type for socket) close(3) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0 brk(0) = 0x10017000 brk(0x10038000) = 0x10038000 time(NULL) = 1186097189 open("/etc/localtime", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 fstat64(4, {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30022000 read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0"..., 4096) = 1323 close(4) = 0 munmap(0x30022000, 4096) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 getpid() = 5612 writev(2, [{"headsetd[5612]: Bluetooth headse"..., 52}, {"\n", 1}], 2) = 53 send(3, "<30>Aug 3 00:26:29 headsetd[561"..., 73, MSG_NOSIGNAL) = 73 socket(PF_FILE, SOCK_STREAM, 0) = 4 bind(4, {sa_family=AF_FILE, [EMAIL PROTECTED], 110) = 0 fcntl64(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 listen(4, 1) = 0 socket(PF_FILE, SOCK_DGRAM, 0) = 5 bind(5, {sa_family=AF_FILE, [EMAIL PROTECTED], 110) = 0 fcntl64(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 listen(5, 1) = -1 EOPNOTSUPP (Operation not supported) socket(PF_BLUETOOTH, SOCK_STREAM, 3) = 6 bind(6, {sa_family=AF_BLUETOOTH, sa_data="\0\0\0\0\0\0\1\352\0\1\0blu"}, 10) = 0 fcntl64(6, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 listen(6, 1) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 7 connect(7, {sa_family=AF_FILE, path="/var/run/sdp"}, 110) = 0 send(7, "u\0\0\0F\0005C\t\0\0015\6\31\21\22\31\22\3\t\0\0045\f5"..., 75, 0) = 75 select(8, [7], NULL, NULL, {20, 0}) = 1 (in [7], left {20, 0}) recv(7, "v\0\0\0\4\0\1\0\4", 65535, 0) = 9 rt_sigaction(SIGTERM, {0x100026f0, [], SA_NOCLDSTOP}, NULL, 8) = 0 rt_sigaction(SIGINT, {0x100026f0, [], SA_NOCLDSTOP}, NULL, 8) = 0 poll([{fd=6, events=POLLIN}, {fd=4, events=POLLIN, revents=POLLIN}, {fd=5, events=POLLIN}], 3, -1) = 1 accept(4, {sa_family=AF_FILE, [EMAIL PROTECTED], [2]) = 8 fcntl64(8, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 1000) = 1 recv(8, "\0\0\0\0\37\361\2D\r\0\0\0", 12, 0) = 12 send(8, "\2\0\0\0\37\361\2D\r\0\0\0", 12, MSG_NOSIGNAL) = 12 poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 1000) = 1 recv(8, "\1\0\0\0\0\0\27p\r\0\0\0", 12, 0) = 12 send(8, "\2\0\0\0\0\0\27p\r\0\0\0", 12, MSG_NOSIGNAL) = 12 time(NULL) = 1186097192 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 writev(2, [{"headsetd[5612]: Configuration ph"..., 97}, {"\n", 1}], 2) = 98 send(3, "<30>Aug 3 00:26:32 headsetd[561"..., 118, MSG_NOSIGNAL) = 118 socket(PF_BLUETOOTH, SOCK_SEQPACKET, 0) = 9 fcntl64(9, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(9, {sa_family=AF_BLUETOOTH, sa_data="\1\0\37\361\2D\r\0\0\0\20\1n\224"}, 10) = -1 EINPROGRESS (Operation now in progress) time(NULL) = 1186097192 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 writev(2, [{"headsetd[5612]: Changing state: "..., 45}, {"\n", 1}], 2) = 46 send(3, "<30>Aug 3 00:26:32 headsetd[561"..., 66, MSG_NOSIGNAL) = 66 poll([{fd=5, events=POLLIN}, {fd=9, events=POLLOUT, revents=POLLOUT|POLLERR|POLLHUP}], 2, 6000) = 1 getsockopt(9, SOL_SOCKET, SO_ERROR, [13], [4]) = 0 send(8, "\4\0\0\0\0\0\0\r\0\0\0\0", 12, MSG_NOSIGNAL) = 12 time(NULL) = 1186097193 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 writev(2, [{"headsetd[5612]: unable to connec"..., 76}, {"\n", 1}], 2) = 77 send(3, "<29>Aug 3 00:26:33 headsetd[561"..., 97, MSG_NOSIGNAL) = 97 time(NULL) = 1186097193 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 writev(2, [{"headsetd[5612]: Changing state: "..., 45}, {"\n", 1}], 2) = 46 send(3, "<30>Aug 3 00:26:33 headsetd[561"..., 66, MSG_NOSIGNAL) = 66 close(8) = 0 close(9) = 0 poll([{fd=6, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, -1) = -1 EINTR (Interrupted system call) --- SIGINT (Interrupt) @ 0 (0) --- sigreturn() = ? (mask now [QUIT TRAP ABRT BUS FPE KILL USR1 SEGV USR2 ALRM TERM STKFLT CONT IO PWR]) time(NULL) = 1186097198 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1323, ...}) = 0 writev(2, [{"headsetd[5612]: exiting cleanly", 31}, {"\n", 1}], 2) = 32 send(3, "<30>Aug 3 00:26:38 headsetd[561"..., 52, MSG_NOSIGNAL) = 52 close(4) = 0 close(5) = 0 close(6) = 0 close(7) = 0 exit_group(0) = ?