View previous topic :: View next topic |
Author |
Message |
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Fri Oct 29, 2004 8:49 pm Post subject: |
|
|
linuxdude88 wrote: | @masterbrain
have you got your headset working? i have exactly the same problem, i installed everything correctly, the output from above is the same. This is what i get when i start btsco:
Code: | Device is 0:0
Voice setting: 0x0060
RFCOMM channel connected
recieved AT+CKPD=200
opened hwdep
connected SCO channel
Setting sco fd
Done setting sco fd
recieved AT+VGS=12
Sending up speaker change 12 |
when i try to play a sound file, nothing happens, the program just hangs. |
Hey, I have that same problem - aplay just hangs there.
Also, in dmesg, every time I run aplay:
Code: |
snd-bt-sco: playback_open
snd-bt-sco: prepare ok bps: 16000 size: 32768 count: 8192
snd-bt-sco: prepare ok bps: 16000 size: 23808 count: 1488
snd-bt-sco: playback_trigger 1
snd-bt-sco: setting playback to bspcm
snd-bt-sco: playback_trigger 0
snd-bt-sco: setting playback to NULL
|
_________________ Non fa male! Non fa male! |
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Sat Oct 30, 2004 12:46 pm Post subject: |
|
|
I guess you didn't manage to fix it?
Here's my btsco output (seems correct...):
Code: |
Device is 1:0
Voice setting: 0x0060
RFCOMM channel connected
recieved AT+CKPD=200
opened hwdep
connected SCO channel
Setting sco fd
Done setting sco fd
recieved AT+VGS=11
Sending up speaker change 11
|
Also, aplay spits out this after a little while:
Code: |
ALSA lib pcm_hw.c:578:(snd_pcm_hw_drain) SNDRV_PCM_IOCTL_DRAIN failed: Input/output error
|
_________________ Non fa male! Non fa male! |
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Mon Nov 01, 2004 2:20 pm Post subject: |
|
|
I know I'm annoying people by bumping this up, so I'll stop now.. _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Tue Nov 09, 2004 4:34 pm Post subject: |
|
|
Thanks a lot for this howto
I've got my headset working. Well, almost:
1. The volume control doesn't work at all.
2. The headset microphone doesn't work. It also shows as an output device in alsamixer ??!
My headset is Nokia HDW-2 (http://www.nokia.com/nokia/0,,2383,00.html). Did anybody have better success with this one?
Hope anyone can help.
Thanks
Last edited by veezi on Tue Nov 09, 2004 5:41 pm; edited 1 time in total |
|
Back to top |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Tue Nov 09, 2004 5:23 pm Post subject: |
|
|
veezi wrote: | Thanks a lot for this howto
I've got my headset working. Well, almost:
1. The volume control doesn't work at all.
2. The headset microphone doesn't work. It also shows as an output device in alsamixer ??!
My headset is Nokia HDW-2 (http://www.nokia.com/nokia/0,,2383,00.html). Did anybody have better success with this one?
Hope anyone can help.
Thanks |
This is funny. I've connected vmware workstation (running on my linux box) to headset sound device (/dev/sound/dsp1). Running Windows I can:
1. Control volume (through the wave control)
2. Record through the microphone.
So, I guess I must be doing something wrong with Alsa+arts |
|
Back to top |
|
|
veezi Apprentice
Joined: 10 Nov 2003 Posts: 226
|
Posted: Tue Nov 09, 2004 5:45 pm Post subject: |
|
|
One more 'irrelevant' question:
Under kde, how do you override the default output device when using pure alsa (no oss compatibility). That is, which of the following can be supplied as a device name:
Code: |
mypc# ls /dev/snd
controlC0 hwC1D0 pcmC0D0p pcmC0D2c pcmC0D4p pcmC1D0p timer
controlC1 pcmC0D0c pcmC0D1c pcmC0D3c pcmC1D0c seq
|
|
|
Back to top |
|
|
hothead Apprentice
Joined: 02 Jul 2004 Posts: 277 Location: /dev/core
|
|
Back to top |
|
|
nirax Guru
Joined: 06 Jul 2004 Posts: 319 Location: Germany, old Europe
|
Posted: Sat Nov 13, 2004 12:30 pm Post subject: |
|
|
hi,
i tryed used the readme and found it very helpful but for me it needed several small changes in the process:
before i could use
hcitool scan
i had to
perform the "bluetooth start"
also the bluepin was not working at all under gnome.
it required the modifications sugested in this thread:
https://forums.gentoo.org/viewtopic.php?t=232495&highlight=gnomebluetooth
after having added this and the modifications to hcid.conf
i could connect to my nokia 6600 (i included all bt modules sugested in the other thread as i wanted to use also my nokia 6600 over bluetooth) and to my logitech headset.
for teamspeak i could change than to /dev/dsp1 and it was working flawless.
beside my lsmod looks a little different, this surely cause i precompiled some stuff i kernel:
Code: |
dinu linux # lsmod
Module Size Used by
snd_bt_sco 10656 3
snd_hwdep 7492 2 snd_bt_sco
fglrx 228508 7
nvidia_agp 5852 1
agpgart 28140 2 nvidia_agp
ohci_hcd 18372 0
|
thanks
nirax[/code] _________________ quot licet iovi non licet bovi |
|
Back to top |
|
|
nirax Guru
Joined: 06 Jul 2004 Posts: 319 Location: Germany, old Europe
|
Posted: Sat Nov 13, 2004 9:52 pm Post subject: |
|
|
One question regarding the ebuild:
Code: |
btsco-cvs-0.1.ebuild
|
can i emerge -uDv world after sync without danger, or do i have to mark that package specially to avoid having it replaced by updates ? _________________ quot licet iovi non licet bovi |
|
Back to top |
|
|
hothead Apprentice
Joined: 02 Jul 2004 Posts: 277 Location: /dev/core
|
Posted: Sat Nov 13, 2004 11:34 pm Post subject: |
|
|
I think it dont will do any harm emerge -uDv, because there is no other ebuild named btsco-cvs.
But since I have never emerged with -uDv I don't know it for shure.
If you have placed the ebuild in a local overlay that does not get synced via rsync, the ebuild will not be removed.
But it will get unmerged if you emerged it with ACCEPT_KEYWORDS - you have to use the package.keywords - see the howto.
Ruben _________________ Got a question? - http://justfuckinggoogleit.com/ |
|
Back to top |
|
|
buzzin Apprentice
Joined: 17 Oct 2003 Posts: 264 Location: St. Albans, UK.
|
Posted: Thu Nov 25, 2004 1:41 am Post subject: |
|
|
I keep running into a problem with btsco..
SDP tool says;
Code: |
sdptool search --bdaddr 00:06:C5:0C:7B:38 0x1108
Class 0x1108
Searching for 0x1108 on 00:06:C5:0C:7B:38 ...
Service Name: Headset
Service RecHandle: 0x10000
Service Class ID List:
"Headset" (0x1108)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Headset" (0x1108)
Version: 0x0100
|
They pair fine, but when i run btsco i get the following ...
Code: |
btsco 00:06:C5:0C:7B:38 1
Error: control open (hw:2): No such file or directory
Error: Can't find device. Bail
|
lsmod says
Code: |
Module Size Used by
rfcomm 39192 0
l2cap 26496 5 rfcomm
snd_bt_sco 14496 0
hci_usb 14720 2
snd_seq_midi 9376 0
snd_emu10k1_synth 8832 0
snd_emux_synth 38272 1 snd_emu10k1_synth
snd_seq_virmidi 8960 1 snd_emux_synth
snd_seq_midi_emul 8832 1 snd_emux_synth
snd_emu10k1 97928 1 snd_emu10k1_synth
snd_rawmidi 26148 3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_ac97_codec 71120 1 snd_emu10k1
snd_util_mem 5632 2 snd_emux_synth,snd_emu10k1
snd_hwdep 10756 3 snd_bt_sco,snd_emux_synth,snd_emu10k1
snd_seq_oss 35328 0
snd_seq_midi_event 8704 3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq 55568 8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_seq_device 8968 7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_emu10k1,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss 53672 0
snd_pcm 97156 3 snd_bt_sco,snd_emu10k1,snd_pcm_oss
snd_timer 26628 2 snd_seq,snd_pcm
snd_page_alloc 10888 3 snd_bt_sco,snd_emu10k1,snd_pcm
snd_mixer_oss 21120 1 snd_pcm_oss
snd 57828 14 snd_bt_sco,snd_emux_synth,snd_seq_virmidi,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 11232 1 snd
|
I notice i dont have a bluetooth section in lsmod but the device seems to pair correctly. Any ideas would be most welcome.
Many thanks,
LSD |
|
Back to top |
|
|
hothead Apprentice
Joined: 02 Jul 2004 Posts: 277 Location: /dev/core
|
Posted: Fri Nov 26, 2004 3:45 pm Post subject: |
|
|
It seems that you don't have sco (sound) suppport enabled for the HCI USB Driver.
Networking support -> [M/Y] Bluetooth subsystem support -> Bluetooth device drivers -> [M/Y] HCI USB driver -> [Y] SCO (voice) support
Have you used my ebuilds? - the current version is broken because the configure method changed.
I will write a new ebuild for btsco this weekend containing the btsco userspace tool and the driver . The ebuild will look for the appropriate settings in your kernel configuration.
Ruben _________________ Got a question? - http://justfuckinggoogleit.com/ |
|
Back to top |
|
|
buzzin Apprentice
Joined: 17 Oct 2003 Posts: 264 Location: St. Albans, UK.
|
Posted: Fri Nov 26, 2004 3:57 pm Post subject: |
|
|
Thanks for the reply.
Those options are enabled in the kernel... Ive also done modprobe sco, which loaded the module ok, but didnt help the issue.
Code: |
CONFIG_BT_SCO=m
CONFIG_BT_HCIUSB_SCO=y
CONFIG_SND_BT_SCO=m
|
I noticed ur ebuild didnt work, so i used the cvs instructions provided on the btsco site.
If you get a new ebuild working.. id love to give it a go...
Cheers. |
|
Back to top |
|
|
elduderino n00b
Joined: 27 Nov 2004 Posts: 6
|
Posted: Sat Nov 27, 2004 8:40 pm Post subject: hwdep |
|
|
hmm, same here.
Code: |
(0:1)root@dudikov:/$ btsco
Error: control open (hw:2): No such file or directory
Error: Can't find device. Bail
|
what is really strange, is that 4 days ago it worked, an now the hotheads serverssection is down and reemrerging btsco-cvs broke it.
i just had the problem that apart from playing music over the device everything (changing volume, connecting, diconnecting with the multifunction button) worked.
now my selfpatched 269-r4 and the prepatched bluealsa-source-268 don´t work with btsco. so btsco seems to be the problem.
any suggestions? |
|
Back to top |
|
|
elduderino n00b
Joined: 27 Nov 2004 Posts: 6
|
Posted: Sun Nov 28, 2004 3:59 pm Post subject: strace |
|
|
ok an strace on btsco gives me:
Code: |
...uninterresting
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=8365, ...}) = 0
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=8365, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(3, "#\n# ALSA library configuration "..., 131072) = 8365
read(3, "", 131072) = 0
read(3, "", 131072) = 0
close(3) = 0
munmap(0x40017000, 131072) = 0
access("/etc/asound.conf", R_OK) = -1 ENOENT (No such file or directory)
access("/home/nick/.asoundrc", R_OK) = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDONLY) = 3
close(3) = 0
open("/dev/snd/controlC0", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0xbfffe25c) = 0
ioctl(3, UI_DEV_CREATE, 0xbfffe590) = 0
ioctl(3, 0xc0045520, 0xbfffe728) = 0
close(3) = 0
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=8365, ...}) = 0
open("/dev/snd/controlC1", O_RDONLY) = 3
close(3) = 0
open("/dev/snd/controlC1", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0xbfffe25c) = 0
ioctl(3, UI_DEV_CREATE, 0xbfffe590) = 0
ioctl(3, 0xc0045520, 0xbfffe728) = 0
ioctl(3, 0x80dc5521, 0xbfffe4a0) = 0
ioctl(3, 0xc0045520, 0xbfffe728) = 0
close(3) = 0
stat64("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=8365, ...}) = 0
open("/dev/snd/controlC2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/aloadC2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC2", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/aloadC2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC2", O_RDWR) = -1 ENOENT (No such file or directory)
write(2, "Error: ", 7Error: ) = 7
write(2, "control open (hw:2): No such fil"..., 46control open (hw:2): No such file or directory) = 46
write(2, "\n", 1
) = 1
write(2, "Error: ", 7Error: ) = 7
write(2, "Can\'t find device. Bail", 23Can't find device. Bail) = 23
write(2, "\n", 1
) = 1
|
so, maybe theres a problem with the alsaversions?
,nick |
|
Back to top |
|
|
elduderino n00b
Joined: 27 Nov 2004 Posts: 6
|
Posted: Sun Nov 28, 2004 8:04 pm Post subject: btsco-cvs-0.2 |
|
|
works again with the 0.2 release.
but, still no sound coming through to my logitech hs01.
dmesg gives me this while playing xmms:
Code: |
snd-bt-sco: playback_open
snd-bt-sco: prepare ok bps: 16000 size: 8000 count: 800
snd-bt-sco: prepare ok bps: 16000 size: 8000 count: 800
snd-bt-sco: playback_trigger 1
snd-bt-sco: setting playback to bspcm
snd-bt-sco: playback_trigger 0
snd-bt-sco: setting playback to NULL
snd-bt-sco: Disposing of previous socket count 2
|
also the user permissions seem strange:
Code: |
(0:1)root@Muramasa:/dev/sound$ l
total 0
drwxr-xr-x 1 root root 0 Jan 1 1970 ./
drwxr-xr-x 1 root root 0 Jan 1 1970 ../
crw------- 1 nick audio 14, 12 Jan 1 1970 adsp
crw------- 1 nick audio 14, 4 Jan 1 1970 audio
crw-rw---- 1 root audio 14, 20 Jan 1 1970 audio1
crw------- 1 nick audio 14, 3 Jan 1 1970 dsp
crw-rw---- 1 root audio 14, 19 Jan 1 1970 dsp1
crw------- 1 nick audio 14, 0 Jan 1 1970 mixer
crw-rw---- 1 root audio 14, 16 Jan 1 1970 mixer1
crw------- 1 nick audio 14, 1 Jan 1 1970 sequencer
crw------- 1 nick audio 14, 8 Jan 1 1970 sequencer2
(0:1)root@Muramasa:/dev/sound$
|
see, what i mean.
btsco seems to do everything right thou:
Code: |
0:1)root@Muramasa:~$ btsco 00:0D:44:0A:87:C5 1
Device is 1:0
Voice setting: 0x0060
RFCOMM channel 1 connected
recieved AT+CKPD=200
opened hwdep
connected SCO channel
Setting sco fd
Done setting sco fd
recieved AT+VGS=12
Sending up speaker change 12
recieved AT+VGS=13
Sending up speaker change 13
recieved AT+VGS=14
Sending up speaker change 14
|
pairing works, kdebluetooth shows connect, i can open the device with konqueror, got no artsd or something running.
also the usb-device (acer dongle) should do the trick:
lsusb gives me:
Code: |
(0:1)root@Muramasa:/dev/sound$ lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 054c:014d Sony Corp.
Bus 001 Device 001: ID 0000:0000
|
HELP. |
|
Back to top |
|
|
hothead Apprentice
Joined: 02 Jul 2004 Posts: 277 Location: /dev/core
|
Posted: Sun Nov 28, 2004 9:04 pm Post subject: |
|
|
Have you chosen the headset as audio device in the xmms alsa configuration?
Code: | BT Headset: BT SCO PCM (hw:1,0) |
Have you started alsasound? - Read the README at the project homepage.
Maybe someone from the developers at the bluez-devel mailinglist can help you:
http://lists.sourceforge.net/lists/listinfo/bluez-devel
Ruben _________________ Got a question? - http://justfuckinggoogleit.com/ |
|
Back to top |
|
|
elduderino n00b
Joined: 27 Nov 2004 Posts: 6
|
Posted: Sun Nov 28, 2004 9:53 pm Post subject: hmmm,... |
|
|
jupp, everythings on. in xmms i can switch between hw:0 and hw:1 (intelXXX and BT Headset) hw:0 plays my music hw:1 doesn´t start playing.
alsasound and bluetooth running. otherwise btsco wouldn´t connect to my headset. |
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Mon Nov 29, 2004 1:08 pm Post subject: |
|
|
Well, yeah, that's exactly my problem... with a Jabra 250 headset _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
elduderino n00b
Joined: 27 Nov 2004 Posts: 6
|
Posted: Mon Nov 29, 2004 1:45 pm Post subject: good news everyone. |
|
|
hmm, ok joining the bluez-devel was a really god idea.
for everyone having my problems. (see post up there)
here´s what did the trick for me:
first check your SCO Routing:
Code: |
(0:1)root@Muramasa:~$ hciconfig hci0 revision
hci0: Type: USB
BD Address: 00:60:57:02:95:FE ACL MTU: 192:8 SCO MTU: 64:8
HCI 12.7
Chip version: BlueCore01b
SCO mapping: HCI
|
if you have PCM standing there were SCO mapping says HCI here, hopes not lost.
so if we want to change it, we can take a tool that kind of emulates some sort of power-cycling to unlock the device. so this sounds pretty unsafe, and the author warns that it could seriously break something. but it works.
http://www.soft.uni-linz.ac.at/_wiki/tiki-index.php?page=ProjectBluezHandsfree
have a look at the "CSR reset utility" section, and download the tool.
,nick |
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Mon Nov 29, 2004 3:15 pm Post subject: |
|
|
Ahhh, too bad...:
Code: |
mirko3 mirko_3 # hciconfig hci0 revision
hci0: Type: USB
BD Address: 00:0B:0D:31:5B:71 ACL MTU: 120:20 SCO MTU: 64:0
Unsupported manufacturer
|
If I read your post correctly, this means that hope is lost...
EDIT:
I tried the reset utility, and it returns Success, but I doubt it actually did anything, as there is no delay whatsoever... also, it seems to do exactly nothing.... _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
elduderino n00b
Joined: 27 Nov 2004 Posts: 6
|
Posted: Mon Nov 29, 2004 5:33 pm Post subject: try a different usb-dongle |
|
|
you should try a different usb-dongle. your SCO Mtu is 64:0 it must be 64:<0 like 64:8 or something to work. |
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Mon Nov 29, 2004 6:21 pm Post subject: |
|
|
I'll see if I can find another cheap one...
Anyway, SCO MTU can be changed with hciconfig, and I tried setting it to 64:8 but it didn't seem to matter... do you suppose I need to change ACL MTU as well? I will try it anyway maybe tomorrow..
Thanks for the answers. _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
herrzattacke n00b
Joined: 26 Oct 2003 Posts: 49
|
Posted: Tue Nov 30, 2004 6:55 am Post subject: |
|
|
thanks ruben,
ur howto works fine with my Acer BT-600 Bluetooth dongle and a Logitech bluetooth headset.
thanks again, great work.
herrzattacke |
|
Back to top |
|
|
dreadhead Guru
Joined: 09 Jul 2004 Posts: 470 Location: Ulm - Germany
|
Posted: Fri Dec 03, 2004 3:36 pm Post subject: |
|
|
I tried the new ebuild. It works fine! Thanks!
But I still got one problem... My Mic produces a noise that makes phonecalls nearly impossible. Does anyone have an idea how to fix that? Are there any configuration files? _________________ Kopete OTR Plugin |
|
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
|
|