Re: Bluetooth headset GUI configuration
You can try to run the command passkey-agent --default pin in another ssh console before the dbus-send command. I managed to create a bonding but no sound on my Jawbone 2 with either the Btcpu or gsm_headset.txt files found in the wiki. It shows me that it's playing in the logs. On Sat, Dec 20, 2008 at 3:45 PM, Simon Kagstrom simon.kagst...@gmail.com wrote: On Fri, 19 Dec 2008 20:54:36 + Al Johnson openm...@mazikeen.demon.co.uk wrote: r...@om-gta02:~# dbus-send --system --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ActivateService string:audio Error org.bluez.Error.NoSuchService: No such service it seems like bluez-utils have been compiled without --enable-audio. Could this be the problem? Do you have bluez-audio or bluez-utils-alsa installed? They aren't in FSO by default. Right, that's it. I did opkg install bluez-audio opkg install bluez-utils /etc/init.d/bluetooth stop /etc/init.d/bluetooth start and now the audio service is there. However, I still can't get the connection to actually work. I've tried to pair with my computer: dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.CreateBonding string:mac but all I get is Error org.bluez.Error.AuthenticationRejected: Authentication Rejected With FSO I also get some kernel problems (2.6.24) when releasing the reset: usb 1-1: new full speed USB device using s3c2410-ohci and address 3 usb 1-1: configuration #1 chosen from 1 choice sysfs: duplicate filename 'hci_usb' can not be created WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() [c002ebec] (dump_stack+0x0/0x14) from [c00d7abc] (sysfs_add_one+0x50/0xfc) [c00d7a6c] (sysfs_add_one+0x0/0xfc) from [c00d81b8] (create_dir+0x58/0xa8) r6:fff4 r5:c7085e48 r4:c7f1cab4 [c00d8160] (create_dir+0x0/0xa8) from [c00d8248] (sysfs_create_dir+0x40/0x60) r8:0008 r7:bf001e6c r6:bf003568 r5:bf003520 r4:bf003568 [c00d8208] (sysfs_create_dir+0x0/0x60) from [c0165aec] (kobject_add+0xf4/0x1d0) r4:bf003568 [c01659f8] (kobject_add+0x0/0x1d0) from [c00697e4] (mod_sysfs_setup+0x28/0xb4) [c00697bc] (mod_sysfs_setup+0x0/0xb4) from [c006aa04] (sys_init_module+0xf90/0x14bc) r8:c886ca04 r7:c886cbbc r6:bf003520 r5: r4:bf001e6c [c0069a74] (sys_init_module+0x0/0x14bc) from [c0029f40] (ret_fast_syscall+0x0/0x2c) kobject_add failed for hci_usb with -EEXIST, don't try to register things with the same name in the same directory. [c002ebec] (dump_stack+0x0/0x14) from [c0165b7c] (kobject_add+0x184/0x1d0) [c01659f8] (kobject_add+0x0/0x1d0) from [c00697e4] (mod_sysfs_setup+0x28/0xb4) [c00697bc] (mod_sysfs_setup+0x0/0xb4) from [c006aa04] (sys_init_module+0xf90/0x14bc) r8:c886ca04 r7:c886cbbc r6:bf003520 r5: r4:bf001e6c [c0069a74] (sys_init_module+0x0/0x14bc) from [c0029f40] (ret_fast_syscall+0x0/0x2c) sysfs: duplicate filename 'hci_usb' can not be created WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() [c002ebec] (dump_stack+0x0/0x14) from [c00d7abc] (sysfs_add_one+0x50/0xfc) [c00d7a6c] (sysfs_add_one+0x0/0xfc) from [c00d81b8] (create_dir+0x58/0xa8) r6:fff4 r5:c7e9fe48 r4:c7f1cab4 [c00d8160] so no luck so far. // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Sun, 21 Dec 2008 17:29:07 +0530 Carl Lobo carll...@gmail.com wrote: dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.CreateBonding string:mac but all I get is Error org.bluez.Error.AuthenticationRejected: Authentication Rejected You can try to run the command passkey-agent --default pin in another ssh console before the dbus-send command. I managed to create a bonding but no sound on my Jawbone 2 with either the Btcpu or gsm_headset.txt files found in the wiki. It shows me that it's playing in the logs. Sounds promising! What distribution are you running? What steps did you take after the bonding? // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
Basically simply followed the steps on the Bluez Wiki for bonding. The rest of Angus' scripts seem to work. You don't even need the device in discoverable mode etc if you know it's bluetooth address simply passkey-agent --default pin (in one console - sometimes it stops on tty output if i do an ) dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.CreateBonding string:address then in ~/.asoundrc pcm.headset_raw { type bluetooth device address profile voice } ctl.headset { type bluetooth; device address } pcm.headset { type plug slave.pcm = headset_raw } BtHeadset.py should work after that. Now here's the strange thing - if I try mplayer -ao alsa:device=headset it connects and shows me that its playing - there are several card resets and hcid seg-faults every once in a while, but I see SDP packets using hcidump. I tried all the Btcpu state files as well as fiddling around with alsamixer (from whatever little I could guess wildly at from the wolfson diagrams on wiki, past emails etc) but no sound. There may be data coming in in a codec my headset doesn't understand because if I press the volume key the acknowledgement sound comes really distorted. Maybe my ScoRouting=HCI then, I tried this quite some time back, I could have tried with both... however when I try a call - the Angus' BtHeadset script shows me now playing, same with hcid -n -d. However no sdp packets before or after I restore the state. Also ScoRouting=PCM (otherwise it refuses the headset play). And absolutely no sound on the call on either end (the mic or speakers of the freerunner, headset or cordless phone). I can hear both ends properly from the expected devices before I restore the state file. I tried building bluez 4.22 a couple of weeks back. It better identifies the features of my headset (the full handsfree profile) but doesn't look like it's implemented... (there's no telephony-*.c for openmoko in the bluez source either). But no sound here as well and on occasion a blinking red AUX led and a kernel crash :). The headset does work with my laptop though - using bluez 3.30 I think. I could hcidump on both devices if anyone can understand it and help... At least the output of hcid -n -d seems very similar for both the laptop (on FC9) and the FR (on the newest SHR). The bluetooth headset is something I badly miss, I can't take any calls while driving. But at least I can take calls pretty reliably now though :) ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Fri, 19 Dec 2008 21:46:48 -0700 Angus Ainslie angus.ains...@gmail.com wrote: On Fri, Dec 19, 2008 at 12:52 PM, Denis Shulyaka shuly...@gmail.com wrote: 2008/12/19 Simon Kagstrom simon.kagst...@gmail.com: I've tried these instructions on both FSO and SHR now, and it works on neither of them. BtConfigure.py never finishes after having entered the PIN. Same here on FDOM. I get DBus error in console, I didn't dig any further. Which DBus error ? It hangs for a long time and then the last messages are Name : Nokia BH-604 Address : 00:0D:3C:B0:38:8D Not Bonded Signal: RemoteDeviceFound(00:0E:9B:DE:7E:F2, 0x8010C, -55) Signal: RemoteDeviceFound(00:0E:9B:DE:7E:F2, 0x8010C, -52) Signal: RemoteDeviceFound(00:0E:9B:DE:7E:F2, 0x8010C, -50) Signal: RemoteDeviceFound(00:0E:9B:DE:7E:F2, 0x8010C, -51) Signal: RemoteNameUpdated(00:0E:9B:DE:7E:F2, lska2-0) Signal: DiscoveryCompleted() Restart Discover : False Signal: DiscoveryStarted() Traceback (most recent call last): File ./BtConfigure.py, line 229, in connect sec.RegisterPasskeyAgent( self.PATH, address ) File /usr/lib/python2.5/site-packages/dbus/proxies.py, line 140, in __call__ **keywords) File /usr/lib/python2.5/site-packages/dbus/connection.py, line 622, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. (again this is FSO) // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Fri, 19 Dec 2008 20:54:36 + Al Johnson openm...@mazikeen.demon.co.uk wrote: r...@om-gta02:~# dbus-send --system --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ActivateService string:audio Error org.bluez.Error.NoSuchService: No such service it seems like bluez-utils have been compiled without --enable-audio. Could this be the problem? Do you have bluez-audio or bluez-utils-alsa installed? They aren't in FSO by default. Right, that's it. I did opkg install bluez-audio opkg install bluez-utils /etc/init.d/bluetooth stop /etc/init.d/bluetooth start and now the audio service is there. However, I still can't get the connection to actually work. I've tried to pair with my computer: dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.CreateBonding string:mac but all I get is Error org.bluez.Error.AuthenticationRejected: Authentication Rejected With FSO I also get some kernel problems (2.6.24) when releasing the reset: usb 1-1: new full speed USB device using s3c2410-ohci and address 3 usb 1-1: configuration #1 chosen from 1 choice sysfs: duplicate filename 'hci_usb' can not be created WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() [c002ebec] (dump_stack+0x0/0x14) from [c00d7abc] (sysfs_add_one+0x50/0xfc) [c00d7a6c] (sysfs_add_one+0x0/0xfc) from [c00d81b8] (create_dir+0x58/0xa8) r6:fff4 r5:c7085e48 r4:c7f1cab4 [c00d8160] (create_dir+0x0/0xa8) from [c00d8248] (sysfs_create_dir+0x40/0x60) r8:0008 r7:bf001e6c r6:bf003568 r5:bf003520 r4:bf003568 [c00d8208] (sysfs_create_dir+0x0/0x60) from [c0165aec] (kobject_add+0xf4/0x1d0) r4:bf003568 [c01659f8] (kobject_add+0x0/0x1d0) from [c00697e4] (mod_sysfs_setup+0x28/0xb4) [c00697bc] (mod_sysfs_setup+0x0/0xb4) from [c006aa04] (sys_init_module+0xf90/0x14bc) r8:c886ca04 r7:c886cbbc r6:bf003520 r5: r4:bf001e6c [c0069a74] (sys_init_module+0x0/0x14bc) from [c0029f40] (ret_fast_syscall+0x0/0x2c) kobject_add failed for hci_usb with -EEXIST, don't try to register things with the same name in the same directory. [c002ebec] (dump_stack+0x0/0x14) from [c0165b7c] (kobject_add+0x184/0x1d0) [c01659f8] (kobject_add+0x0/0x1d0) from [c00697e4] (mod_sysfs_setup+0x28/0xb4) [c00697bc] (mod_sysfs_setup+0x0/0xb4) from [c006aa04] (sys_init_module+0xf90/0x14bc) r8:c886ca04 r7:c886cbbc r6:bf003520 r5: r4:bf001e6c [c0069a74] (sys_init_module+0x0/0x14bc) from [c0029f40] (ret_fast_syscall+0x0/0x2c) sysfs: duplicate filename 'hci_usb' can not be created WARNING: at fs/sysfs/dir.c:424 sysfs_add_one() [c002ebec] (dump_stack+0x0/0x14) from [c00d7abc] (sysfs_add_one+0x50/0xfc) [c00d7a6c] (sysfs_add_one+0x0/0xfc) from [c00d81b8] (create_dir+0x58/0xa8) r6:fff4 r5:c7e9fe48 r4:c7f1cab4 [c00d8160] so no luck so far. // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Thu, 18 Dec 2008 13:52:20 -0700 Angus Ainslie angus.ains...@gmail.com wrote: So: Do any of the distributions allow easy use of bluetooth headsets? A search of the wiki brings up this http://wiki.openmoko.org/wiki/Manually_using_Bluetooth#Bluetooth_Headset_on_Freerunner I've tried these instructions on both FSO and SHR now, and it works on neither of them. BtConfigure.py never finishes after having entered the PIN. I also tried the A2DP instructions, with similar results. After having installed bluez-utils-alsa I get r...@om-gta02 ~ $ aplay bark.wav bt_audio_service_open: connect() failed: Connection refused (111) aplay: main:546: audio open error: Connection refused If anyone has this working, how did you do it? What distribution are you running? // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
2008/12/19 Simon Kagstrom simon.kagst...@gmail.com: I've tried these instructions on both FSO and SHR now, and it works on neither of them. BtConfigure.py never finishes after having entered the PIN. Same here on FDOM. I get DBus error in console, I didn't dig any further. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Fri, 19 Dec 2008 22:52:08 +0300 Denis Shulyaka shuly...@gmail.com wrote: 2008/12/19 Simon Kagstrom simon.kagst...@gmail.com: I've tried these instructions on both FSO and SHR now, and it works on neither of them. BtConfigure.py never finishes after having entered the PIN. Same here on FDOM. I get DBus error in console, I didn't dig any further. I'm reading the bluez howto: http://wiki.bluez.org/wiki/HOWTO/AudioDevices to get some further hints. The dbus stuff there also doesn't seem to work: r...@om-gta02:~# dbus-send --system --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ActivateService string:audio Error org.bluez.Error.NoSuchService: No such service (SHR this time). Reading this: http://article.gmane.org/gmane.linux.bluez.user/13108 it seems like bluez-utils have been compiled without --enable-audio. Could this be the problem? // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Friday 19 December 2008, Simon Kagstrom wrote: On Fri, 19 Dec 2008 22:52:08 +0300 Denis Shulyaka shuly...@gmail.com wrote: 2008/12/19 Simon Kagstrom simon.kagst...@gmail.com: I've tried these instructions on both FSO and SHR now, and it works on neither of them. BtConfigure.py never finishes after having entered the PIN. Same here on FDOM. I get DBus error in console, I didn't dig any further. I'm reading the bluez howto: http://wiki.bluez.org/wiki/HOWTO/AudioDevices to get some further hints. The dbus stuff there also doesn't seem to work: r...@om-gta02:~# dbus-send --system --print-reply --dest=org.bluez /org/bluez org.bluez.Manager.ActivateService string:audio Error org.bluez.Error.NoSuchService: No such service (SHR this time). Reading this: http://article.gmane.org/gmane.linux.bluez.user/13108 it seems like bluez-utils have been compiled without --enable-audio. Could this be the problem? Do you have bluez-audio or bluez-utils-alsa installed? They aren't in FSO by default. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Fri, Dec 19, 2008 at 12:52 PM, Denis Shulyaka shuly...@gmail.com wrote: 2008/12/19 Simon Kagstrom simon.kagst...@gmail.com: I've tried these instructions on both FSO and SHR now, and it works on neither of them. BtConfigure.py never finishes after having entered the PIN. Same here on FDOM. I get DBus error in console, I didn't dig any further. Which DBus error ? Angus ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Bluetooth headset GUI configuration
Hi! Everybody has their own reasons for using or not using the Freerunner as their daily phone. I've so far used it mostly as a toy (fun one at that) because I miss one feature: An easy GUI setup method for bluetooth headsets (A2DP would be quite nice too). I've simply grown used to being able to walk around and do things like cleaning the apartment while talking. I realise this is probably possible in Qt Extended, but I'd really like to have it in FSO, SHR, 2008.x or perhaps Debian. So: Do any of the distributions allow easy use of bluetooth headsets? Are there active projects working on this? // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Thu, Dec 18, 2008 at 1:42 PM, Simon Kagstrom simon.kagst...@gmail.com wrote: Hi! Everybody has their own reasons for using or not using the Freerunner as their daily phone. I've so far used it mostly as a toy (fun one at that) because I miss one feature: An easy GUI setup method for bluetooth headsets (A2DP would be quite nice too). I've simply grown used to being able to walk around and do things like cleaning the apartment while talking. I realise this is probably possible in Qt Extended, but I'd really like to have it in FSO, SHR, 2008.x or perhaps Debian. So: Do any of the distributions allow easy use of bluetooth headsets? Are there active projects working on this? // Simon A search of the wiki brings up this http://wiki.openmoko.org/wiki/Manually_using_Bluetooth#Bluetooth_Headset_on_Freerunner ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bluetooth headset GUI configuration
On Thu, Dec 18, 2008 at 1:42 PM, Simon Kagstrom simon.kagst...@gmail.com wrote: [...] So: Do any of the distributions allow easy use of bluetooth headsets? Are there active projects working on this? I'd be really interested in hearing reports about how well the Freerunner works in real life with Bluetooth headsets with the various distributions. I was just thinking that it might be a way to circumvent the buzz low outgoing volume problems that's preventing me from using my Freerunner. /Erland ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community