Bluetooth is disabled after coming back from sleep
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-bluetooth (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm using Karmic with gnome-bluetooth 2.27.5-1ubuntu1 on a Thinkpad T61 with a builtin broadcom bluetooth adapter:
$ lsusb
Bus 003 Device 008: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
The problem is that after waking from sleep, the hardware bluetooth led is on, but the gnome-bluetooth icon has a red X and I cannot connect to any device: when I open the context menu it shows no devices and all entries are disabled except "preferences" and the top 2 that read "Bluetooth: On" and "Turn off bluetooth".
Choosing "turn off bluetooth" has no effect. When I open the preferences dialog, it has only the text "Bluetooth is disabled" and a large button labeled "Turn on bluetooth" (yes, the opposite of the menu). Clicking the button makes the button disabled but otherwise has no effect - if I close the preferences dialog and open it again, it reverts back to the same status.
Syslog shows nothing interesting when I do this, nor does dmesg. Grepping dmesg though gives me these:
$ dmesg | grep blue
[ 7597.840073] <6>bluetoothd[
[ 8291.984110] <6>bluetoothd[
I think the time stamps are from when I woke the computer.
lastly bluetoothd is not currently running.
I can often workaround the issue by toggling the kill radio switch off and then on again (either through the hardware toggle or using the Thinkpad's Fn+F5 shortcut). When I do that, bluetoothd comes back up and everything goes back to normal.
I opened the ticket on gnome-bluetooth as it is obviously behaving badly (the applet menu and pref dialog disagreeing on the bluetooth state and failing to work), but quite likely the underlying problem is in bluez's bluetoothd or the driver.
Changed in gnome-bluetooth (Ubuntu): | |
status: | Incomplete → Fix Released |
I've encountered identical behavior, but from a cold boot, not sleep mode, on a desktop.
Still running bluez 4.47-0ubuntu1 at the time of this fault; i have just updated to 4.48-0ubuntu1 0 and will report back if problem re-occurs.
kye@whempist:~$ hcitool dev
Devices:
kye@whempist:~$ lsusb
Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 045e:0721 Microsoft Corp. LifeCam NX-3000 (UVC-compliant)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 045e:0053 Microsoft Corp. Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
/var/log/messages:
Aug 18 23:24:00 whempist kernel: [ 16.564078] usbcore: registered new interface driver btusb
kye@whempist:~$ time bluetoothd --nodaemon --debug --udev
real 0m0.017s
user 0m0.004s
sys 0m0.000s
bluetooth works properly again after unplugging and re-plugging usb bluetooth adapter