#635910 bluez: bluetooth mouse fails to reconnect

Package:
bluez
Source:
bluez
Description:
Bluetooth tools and daemons
Submitter:
Herbert Thielen
Date:
2011-07-29 15:27:16 UTC
Severity:
normal
#635910#5
Date:
2011-07-29 14:31:59 UTC
From:
To:
After configuring a bluetooth mouse for the first time, all is fine and the
mouse is working.

But after turning the mouse off and on again, or after reboot, or after long
idle time (mouse sleeping?), the bluetooth mouse cannot reconnect to the system
again. It needs to be removed and configured again, so the coniguration is
working for one session only.

This is quite nasty, as the configuration (using the GUI, e.g. bluetooth-
wizard) is possible only with a working mouse ... so another (USB-)mouse is
required, which makes the bluetooth mouse quite useless.

The system here is an old powerpc minimac; tried this with a logitech bluetooth
mouse and an IBM/lenovo bluetooth mouse.

#635910#10
Date:
2011-07-29 15:21:53 UTC
From:
To:
Upgrading bluez to 4.94-3 (from unstable) didn't help; the mouse still cannot
reconnect.

To reproduce the problem I did:

 1. /etc/init.d/bluetooth stop
 2. rm -rf /var/lib/bluetooth/*      # to start with clean files
 3. /etc/init.d/bluetooth start
 4. # push reset button on bluetooth mouse, makes it visible
 5. hcitool scan
 6. BTADDR=00:..... # bluetooth address as seen by hcitool
 7. bluez-simple-agent hci0 $BTADDR  # asks for PIN, 0000 works for me
 8. bluez-test-device trusted $BTADDR yes
 9. bluez-test-input connect $BTADDR

After step 9, the mouse is working until restart of bluetoothd
(e.g. "/etc/init.d/bluetooth restart") or power off/on of the mouse.

After powering off and on the mouse (or reboot etc.), I need to press the
mouse reset button again and execute the command in step 9 above; then the
mouse is working again.


The same mouse is working fine with an Kubuntu 11.04 system on x86_64
(bluez 4.91-0ubuntu1).


Which additional information can I provide to help fixing this problem?


Best regards
  Herbert.