Hello everybody, I was trying to do some debugging for the bluez project on my fully updated Debian sid machine. I downloaded the latest git and build my packages: Sat Feb 21 10:53:14 CET 2009 http://filebin.ca/yxzmq/bluez-utils_4.31git_i386.deb http://filebin.ca/uxmaco/bluez-gnome_1.9git_i386.deb When running the bluetoothd daemon it segfaults when a devices tries to connect, please see the debug attachments, what is going wrong here? and how can I provide more useful debug info. I compiled with debug flags please see the attachment for how I compiled and made the Debian packages for testing. Thanks in advance for any info, I am really trying to help out with the bluez project by doing testing and actually using lots of bluetooth devices in real-live, its really really frustrating that almost all of my emails about not working devices and bugs are completely ignored. I spent lots of time and money testing the devices, at least an email of some developers would not hurt when posting an issue/question. It would help keeping my motivation up. Thanks in advance, Jelle de Jong -- Tester of the following bluetooth devices (I got even more not listed) hcitool scan Scanning ... 00:1A:80:AB:0A:B1 SRS-BT100 00:07:61:8A:1A:AA Dell BT Keyboard 00:1E:A3:1D:9E:C5 Nokia 6300 Imre 00:0B:0D:89:5B:77 HOLUX GPSlim236 20:07:09:15:A9:5A Samsung WEP210 11:11:11:11:17:95 Trust Mouse 15606 00:07:61:0F:4A:60 Logitech Cordless Presenter 00:53:53:FB:7E:9C Nokia BH-801 00:0C:55:D1:C9:78 Motorola S805 00:0D:FD:18:6E:3C Motorola S9 00:18:83:10:00:92 Bluetooth Presenter 00:1E:3D:15:0A:4F BD Remote Control 00:12:A1:01:04:16 Bluetooth Mouse
sudo su - gdb /usr/sbin/bluetoothd (gdb) set pagination 0 (gdb) thread apply all bt full (gdb) run --nodaemon --debug (gdb) backtrace full (gdb) info registers (gdb) thread apply all backtrace (gdb) quit ------------------------------------------------------------------------ # gdb /usr/sbin/bluetoothd GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) set pagination 0 (gdb) thread apply all bt full No registers. (gdb) run --nodaemon --debug Starting program: /usr/sbin/bluetoothd --nodaemon --debug bluetoothd[2512]: Bluetooth daemon bluetoothd[2512]: Enabling debug information bluetoothd[2512]: parsing main.conf bluetoothd[2512]: discovto=0 bluetoothd[2512]: pairto=0 bluetoothd[2512]: pageto=8192 bluetoothd[2512]: name=%h-%d bluetoothd[2512]: class=0x000100 bluetoothd[2512]: inqmode=0 bluetoothd[2512]: Key file does not have key 'DeviceID' bluetoothd[2512]: Starting SDP server bluetoothd[2512]: Loading plugins /usr/lib/bluetooth/plugins bluetoothd[2512]: register_interface: path /org/bluez/2512/any bluetoothd[2512]: Registered interface org.bluez.Service on path /org/bluez/2512/any bluetoothd[2512]: Parsing /etc/bluetooth/input.conf failed: No such file or directory bluetoothd[2512]: Parsing /etc/bluetooth/audio.conf failed: No such file or directory bluetoothd[2512]: Unix socket created: 12 bluetoothd[2512]: Telephony plugin initialized bluetoothd[2512]: HFP AG features: "Ability to reject a call" "Enhanced call status" "Extended Error Result Codes" bluetoothd[2512]: HCI dev 0 registered bluetoothd[2512]: child 2515 forked bluetoothd[2512]: HCI dev 0 already up bluetoothd[2512]: Starting security manager 0 bluetoothd[2512]: register_interface: path /org/bluez/2512/hci0 bluetoothd[2512]: Registered interface org.bluez.Service on path /org/bluez/2512/hci0 bluetoothd[2512]: proxy_probe: path /org/bluez/2512/hci0 bluetoothd[2512]: Registered interface org.bluez.SerialProxyManager on path /org/bluez/2512/hci0 bluetoothd[2512]: headset_server_probe: path /org/bluez/2512/hci0 bluetoothd[2512]: Adding record with handle 0x10000 bluetoothd[2512]: Record pattern UUID 00000003-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001108-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001112-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001203-0000-1000-8000-00805f9 bluetoothd[2512]: Adding record with handle 0x10001 bluetoothd[2512]: Record pattern UUID 00000003-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000111e-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000111f-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001203-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x400100 bluetoothd[2512]: a2dp_server_probe: path /org/bluez/2512/hci0 bluetoothd[2512]: SEP 0xb9d445a8 registered: type:0 codec:0 seid:1 bluetoothd[2512]: Adding record with handle 0x10002 bluetoothd[2512]: Record pattern UUID 00000019-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110a-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110d-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: avrcp_server_probe: path /org/bluez/2512/hci0 bluetoothd[2512]: Adding record with handle 0x10003 bluetoothd[2512]: Record pattern UUID 00000017-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110c-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110e-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: Adding record with handle 0x10004 bluetoothd[2512]: Record pattern UUID 00000017-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110e-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: Creating device /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: serial_probe: path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78: 00001108-0000-1000-8000-00805f9b34fb bluetoothd[2512]: Registered interface org.bluez.Serial on path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: serial_probe: path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78: 0000111e-0000-1000-8000-00805f9b34fb bluetoothd[2512]: headset_probe: path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: adapter_get_device(00:0C:55:D1:C9:78) bluetoothd[2512]: Found Headset record bluetoothd[2512]: Discovered Headset service on RFCOMM channel 2 bluetoothd[2512]: Registered interface org.bluez.Headset on path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: Found Handsfree record bluetoothd[2512]: Discovered Handsfree service on RFCOMM channel 1 bluetoothd[2512]: Found Audio Sink bluetoothd[2512]: Registered interface org.bluez.AudioSink on path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: Found AV Remote bluetoothd[2512]: Registered interface org.bluez.Control on path /org/bluez/2512/hci0/dev_00_0C_55_D1_C9_78 bluetoothd[2512]: Adapter /org/bluez/2512/hci0 has been enabled bluetoothd[2512]: HCI dev 1 registered bluetoothd[2512]: child 2516 forked bluetoothd[2512]: HCI dev 1 already up bluetoothd[2512]: Starting security manager 1 bluetoothd[2512]: register_interface: path /org/bluez/2512/hci1 bluetoothd[2512]: Registered interface org.bluez.Service on path /org/bluez/2512/hci1 bluetoothd[2512]: proxy_probe: path /org/bluez/2512/hci1 bluetoothd[2512]: Registered interface org.bluez.SerialProxyManager on path /org/bluez/2512/hci1 bluetoothd[2512]: headset_server_probe: path /org/bluez/2512/hci1 bluetoothd[2512]: Adding record with handle 0x10005 bluetoothd[2512]: Record pattern UUID 00000003-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001108-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001112-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001203-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: Adding record with handle 0x10006 bluetoothd[2512]: Record pattern UUID 00000003-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000111e-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000111f-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001203-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: a2dp_server_probe: path /org/bluez/2512/hci1 bluetoothd[2512]: SEP 0xb9d47340 registered: type:0 codec:0 seid:1 bluetoothd[2512]: Adding record with handle 0x10007 bluetoothd[2512]: Record pattern UUID 00000019-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110a-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110d-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: avrcp_server_probe: path /org/bluez/2512/hci1 bluetoothd[2512]: Adding record with handle 0x10008 bluetoothd[2512]: Record pattern UUID 00000017-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110c-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110e-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: Adding record with handle 0x10009 bluetoothd[2512]: Record pattern UUID 00000017-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00000100-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 00001002-0000-1000-8000-00805f9 bluetoothd[2512]: Record pattern UUID 0000110e-0000-1000-8000-00805f9 bluetoothd[2512]: Changing service classes to 0x480100 bluetoothd[2512]: Creating device /org/bluez/2512/hci1/dev_00_07_61_8A_1A_AA bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci1/dev_00_07_61_8A_1A_AA bluetoothd[2512]: hid_device_probe: path /org/bluez/2512/hci1/dev_00_07_61_8A_1A_AA bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci1/dev_00_07_61_8A_1A_AA bluetoothd[2512]: Creating device /org/bluez/2512/hci1/dev_11_11_11_11_17_95 bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci1/dev_11_11_11_11_17_95 bluetoothd[2512]: hid_device_probe: path /org/bluez/2512/hci1/dev_11_11_11_11_17_95 bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci1/dev_11_11_11_11_17_95 bluetoothd[2512]: Creating device /org/bluez/2512/hci1/dev_00_07_61_8A_42_DF bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci1/dev_00_07_61_8A_42_DF bluetoothd[2512]: hid_device_probe: path /org/bluez/2512/hci1/dev_00_07_61_8A_42_DF bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci1/dev_00_07_61_8A_42_DF bluetoothd[2512]: Creating device /org/bluez/2512/hci1/dev_00_07_61_0F_4A_60 bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci1/dev_00_07_61_0F_4A_60 bluetoothd[2512]: hid_device_probe: path /org/bluez/2512/hci1/dev_00_07_61_0F_4A_60 bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci1/dev_00_07_61_0F_4A_60 bluetoothd[2512]: Creating device /org/bluez/2512/hci1/dev_00_1E_3D_15_0A_4F bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci1/dev_00_1E_3D_15_0A_4F bluetoothd[2512]: hid_device_probe: path /org/bluez/2512/hci1/dev_00_1E_3D_15_0A_4F bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci1/dev_00_1E_3D_15_0A_4F bluetoothd[2512]: Creating device /org/bluez/2512/hci1/dev_B0_13_08_08_06_A8 bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci1/dev_B0_13_08_08_06_A8 bluetoothd[2512]: hid_device_probe: path /org/bluez/2512/hci1/dev_B0_13_08_08_06_A8 bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci1/dev_B0_13_08_08_06_A8 bluetoothd[2512]: Creating device /org/bluez/2512/hci1/dev_00_12_A1_01_04_16 bluetoothd[2512]: Probe drivers for /org/bluez/2512/hci1/dev_00_12_A1_01_04_16 bluetoothd[2512]: hid_device_probe: path /org/bluez/2512/hci1/dev_00_12_A1_01_04_16 bluetoothd[2512]: Registered interface org.bluez.Input on path /org/bluez/2512/hci1/dev_00_12_A1_01_04_16 bluetoothd[2512]: Adapter /org/bluez/2512/hci1 has been enabled bluetoothd[2512]: child 2515 exited bluetoothd[2512]: child 2516 exited bluetoothd[2512]: Computer is classified as laptop bluetoothd[2512]: Current device class is 0x480100 bluetoothd[2512]: Setting 0x00010c for major/minor device class bluetoothd[2512]: Changing major/minor class to 0x48010c bluetoothd[2512]: Computer is classified as laptop bluetoothd[2512]: Current device class is 0x480100 bluetoothd[2512]: Setting 0x00010c for major/minor device class bluetoothd[2512]: Changing major/minor class to 0x48010c bluetoothd[2512]: adapter_get_device(11:11:11:11:17:95) Program received signal SIGSEGV, Segmentation fault. 0xb7ce8d7d in ?? () (gdb) backtrace full #0 0xb7ce8d7d in ?? () No symbol table info available. #1 0xbfa3db76 in ?? () No symbol table info available. #2 0xb7cdb04d in ?? () No symbol table info available. #3 0xbfa3dad8 in ?? () No symbol table info available. #4 0xb7db089c in ?? () No symbol table info available. #5 0x00000000 in ?? () No symbol table info available. (gdb) info registers eax 0x30 48 ecx 0x0 0 edx 0x0 0 ebx 0xb7dd1ff4 -1210245132 esp 0xbfa3d398 0xbfa3d398 ebp 0xbfa3d3c4 0xbfa3d3c4 esi 0xffffffff -1 edi 0xbfa3da84 -1079780732 eip 0xb7ce8d7d 0xb7ce8d7d eflags 0x210246 [ PF ZF IF RF ID ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) thread apply all backtrace (gdb) quit The program is running. Exit anyway? (y or n) y root@debian-eeepc:~# ------------------------------------------------------------------------ sudo su - /usr/sbin/bluetoothd pidof bluetoothd 2531 gdb 2>&1 | tee gdb-bluez.txt (gdb) handle SIG33 pass nostop noprint (gdb) set pagination 0 (gdb) attach 2531 (gdb) continue (gdb) backtrace full (gdb) info registers (gdb) thread apply all backtrace (gdb) quit ------------------------------------------------------------------------ /usr/sbin/bluetoothd root@debian-eeepc:~# pidof bluetoothd 2531 root@debian-eeepc:~# gdb 2>&1 | tee gdb-bluez.txt GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". (gdb) handle SIG33 pass nostop noprint Signal Stop Print Pass to program Description SIG33 No No Yes Real-time event 33 (gdb) set pagination 0 (gdb) attach 2531 Attaching to process 2531 Reading symbols from /usr/sbin/bluetoothd...done. 0xb7f7e424 in __kernel_vsyscall () (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault. 0xb7d76d7d in ?? () (gdb) backtrace full #0 0xb7d76d7d in ?? () No symbol table info available. #1 0xbfaca436 in ?? () No symbol table info available. #2 0xb7d6904d in ?? () No symbol table info available. #3 0xbfaca398 in ?? () No symbol table info available. #4 0xb7e3e89c in ?? () No symbol table info available. #5 0x00000000 in ?? () No symbol table info available. (gdb) info registers eax 0x30 48 ecx 0x0 0 edx 0x0 0 ebx 0xb7e5fff4 -1209663500 esp 0xbfac9c58 0xbfac9c58 ebp 0xbfac9c84 0xbfac9c84 esi 0xffffffff -1 edi 0xbfaca344 -1079205052 eip 0xb7d76d7d 0xb7d76d7d eflags 0x210246 [ PF ZF IF RF ID ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) thread apply all backtrace (gdb) quit The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /usr/sbin/bluetoothd, process 2531 ------------------------------------------------------------------------ # cat gdb-bluez.txt GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". (gdb) handle SIG33 pass nostop noprint Signal Stop Print Pass to program Description SIG33 No No Yes Real-time event 33 (gdb) set pagination 0 (gdb) attach 2531 Attaching to process 2531 Reading symbols from /usr/sbin/bluetoothd...done. 0xb7f7e424 in __kernel_vsyscall () (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault. 0xb7d76d7d in ?? () (gdb) backtrace full #0 0xb7d76d7d in ?? () No symbol table info available. #1 0xbfaca436 in ?? () No symbol table info available. #2 0xb7d6904d in ?? () No symbol table info available. #3 0xbfaca398 in ?? () No symbol table info available. #4 0xb7e3e89c in ?? () No symbol table info available. #5 0x00000000 in ?? () No symbol table info available. (gdb) info registers eax 0x30 48 ecx 0x0 0 edx 0x0 0 ebx 0xb7e5fff4 -1209663500 esp 0xbfac9c58 0xbfac9c58 ebp 0xbfac9c84 0xbfac9c84 esi 0xffffffff -1 edi 0xbfaca344 -1079205052 eip 0xb7d76d7d 0xb7d76d7d eflags 0x210246 [ PF ZF IF RF ID ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) thread apply all backtrace (gdb) quit The program is running. Quit anyway (and detach it)? (y or n) Detaching from program: /usr/sbin/bluetoothd, process 2531
#!/bin/bash # just for highlighting # author: Jelle de Jong <jelledejong at powercraft dot com> # version 0.1.3j # date: 2008-11-04 / 2009-01-15 # http://www.bluez.org/download/ Sat Feb 21 10:53:14 CET 2009 http://filebin.ca/yxzmq/bluez-utils_4.31git_i386.deb http://filebin.ca/uxmaco/bluez-gnome_1.9git_i386.deb cat /proc/version Linux version 2.6.26-1-686 (Debian 2.6.26-13) (waldi@xxxxxxxxxx) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-24)) #1 SMP Sat Jan 10 18:29:31 UTC 2009 sudo apt-get remove --purge bluetooth-alsa bluez-audio bluez-gnome bluez-hcidump bluez-utils sudo apt-get remove --purge libbluetooth2 sudo aptitude install dpkg-dev \ bison flex cdbs \ autotools-dev libdbus-1-dev libdbus-glib-1-dev libusb-dev libglib2.0-dev libasound2-dev \ git-core automake autoconf libtool intltool \ libxml-libxml-perl libgtk2.0-dev libglib2.0-dev libnotify-dev-gtk2.10 libgconf2-dev libhal-dev \ libgstreamer0.10-dev libgstreamermm-0.10-dev libgstreamer-plugins-base0.10-dev ------------------------------------------------------------------------ cd $HOME sudo rm --recursive bluez git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git cd $HOME cd bluez aclocal autoheader libtoolize automake --add-missing autoconf # ./configure --help ./configure --enable-debug --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --libexecdir=/lib --disable-network --enable-gstreamer --enable-alsa --enable-usb --enable-tools --enable-hid2hci make rm --recursive $HOME/bluez-utils-git/ mkdir $HOME/bluez-utils-git/ make install DESTDIR=$HOME/bluez-utils-git/ cd $HOME/bluez-utils-git/ mkdir DEBIAN chmod 0755 DEBIAN echo 'Package: bluez-utils Version: 4.31git Priority: optional Architecture: i386 Maintainer: Jelle de Jong <jelledejong@xxxxxxxxxxxxxx> Depends: module-init-tools, makedev (<< 3.3.8.2-0) | udev, lsb-base (>= 3.0-3), dbus Description: Bluez bluetooth userspace modules This package contains userspace modules for using Bluetooth devices. . BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source project distributed under GNU General Public License (GPL).' > DEBIAN/control cd $HOME rm $HOME/bluez-utils_4.31git_i386.deb dpkg -b $HOME/bluez-utils-git/ $HOME/bluez-utils_4.31git_i386.deb sudo dpkg -i $HOME/bluez-utils_4.31git_i386.deb sudo ldconfig -v ------------------------------------------------------------------------ cd $HOME sudo rm --recursive bluez-gnome git clone git://git.kernel.org/pub/scm/bluetooth/bluez-gnome.git cd $HOME cd bluez-gnome aclocal autoheader libtoolize intltoolize automake --add-missing autoconf ./configure ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --enable-maintainer-mode --disable-mime-update --disable-desktop-update make rm --recursive $HOME/bluez-gnome-git/ mkdir $HOME/bluez-gnome-git/ make install DESTDIR=$HOME/bluez-gnome-git/ # note: # ./configure --help cd $HOME/bluez-gnome-git/ mkdir DEBIAN chmod 0755 DEBIAN echo 'Package: bluez-gnome Priority: optional Section: admin Installed-Size: 45 Maintainer: Jelle de Jong <jelledejong@xxxxxxxxxxxxxx> Version: 1.9git Architecture: i386 Depends: lsb-base, module-init-tools, dbus, udev Description: Bluetooth tools and daemons This package contains tools and system daemons for using Bluetooth devices. . BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source project distributed under GNU General Public License (GPL).' > DEBIAN/control cd $HOME rm $HOME/bluez-gnome_1.9git_i386.deb dpkg -b $HOME/bluez-gnome-git/ $HOME/bluez-gnome_1.9git_i386.deb sudo dpkg -i $HOME/bluez-gnome_1.9git_i386.deb sudo ldconfig -v ------------------------------------------------------------------------ sudo dpkg --remove bluez-utils sudo dpkg --remove bluez-gnome sudo rm -r /var/lib/bluetooth/* sudo hciconfig hci0 up hcitool scan Scanning ... 00:0B:0D:89:5B:77 HOLUX GPSlim236 20:07:09:15:A9:5A Samsung WEP210 11:11:11:11:17:95 Trust Mouse 15606 00:07:61:0F:4A:60 Logitech Cordless Presenter 00:53:53:FB:7E:9C Nokia BH-801 00:0C:55:D1:C9:78 Motorola S805 00:0D:FD:18:6E:3C Motorola S9 00:18:83:10:00:92 Bluetooth Presenter 00:1E:3D:15:0A:4F BD Remote Control 00:12:A1:01:04:16 Bluetooth Mouse 00:1A:80:AB:0A:B1 SRS-BT100 00:07:61:8A:1A:AA Dell BT Keyboard 00:1E:A3:1D:9E:C5 Nokia 6300 Imre