Failed to set bluetooth power, The error reported is: Connection timed out

Bug #496733 reported by Jun Geng on 2009-12-14
This bug report is a duplicate of:  Bug #411481: Can't turn Bluetooth back on. Edit Remove
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Blueman
Undecided
Unassigned

Bug Description

I'm using a usb adapter. And gnome-bluetooth (2.28.1-0ubuntu2) can find it and use it to connect to my headset or cell phone. But when I use blueman (1.21-1~ppa1k) to turn on the bluetooth, I always got: "Failed to set bluetooth power The error reported is: Connection timed out" message. The default version in ubuntu 9.10 works for once (can find the adapter and connect to my device) but suddenly died before I can test anything.

blueman (1.21-1~ppa1k)
ubuntu 9.10
Linux version 2.6.31-16-generic-pae (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #53-Ubuntu SMP Tue Dec 8 05:20:21 UTC 2009
bluez (4.57-0ubuntu1)
I'm using blueman ppa channel for ubuntu

hciconfig -a output
hci0: Type: USB
 BD Address: 00:1F:81:00:02:50 ACL MTU: 1021:4 SCO MTU: 180:1
 DOWN
 RX bytes:342 acl:0 sco:0 events:10 errors:0
 TX bytes:33 acl:0 sco:0 commands:22 errors:12
 Features: 0xff 0x3e 0x0d 0x76 0x80 0x01 0x00 0x80
 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
 Link policy:
 Link mode: SLAVE ACCEPT

killall blueman-applet&&blueman-applet
Loading configuration plugins
Using gconf config backend
Using gconf config backend
_________
Load (/usr/bin/blueman-applet:117)
['NMDUNSupport', 'DhcpClient', 'NetUsage', 'DBusService', 'AuthAgent', 'PPPSupport', 'PowerManager', 'PulseAudio', 'Headset', 'TransferService', 'StatusIcon', 'NMPANSupport', 'Networking', 'StandardItems', 'Indicator', 'Menu', 'SerialManager', 'KillSwitch', 'DiscvManager', 'RecentConns']
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.DBusService.DBusService'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.Headset.Headset'>
Using gconf config backend
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.Menu.Menu'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.PowerManager.PowerManager'>
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off False
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state None
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.Indicator.Indicator'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.NMDUNSupport.NMDUNSupport'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.DiscvManager.DiscvManager'>
Using gconf config backend
_________
update_menuitems (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/DiscvManager.py:132)
warning: Adapter is None
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.PulseAudio.PulseAudio'>
Using gconf config backend
_________
pa_context_event (/usr/lib/python2.6/dist-packages/blueman/main/PulseAudioUtils.py:115)
1
_________
on_load (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PulseAudio.py:96)
PulseAudio version: 0.9.19
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.KillSwitch.KillSwitch'>
Using gconf config backend
_________
on_load (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:40)
Using the new killswitch system
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.TransferService.TransferService'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.AuthAgent.AuthAgent'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
Not loading DhcpClient because it's conflict has higher priority
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.SerialManager.SerialManager'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.RecentConns.RecentConns'>
Using gconf config backend
_________
__load_plugin (/usr/bin/blueman-applet:182)
Not loading PPPSupport because it's conflict has higher priority
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.StandardItems.StandardItems'>
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/StandardItems.py:90)
False True
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.Networking.Networking'>
Using gconf config backend
_________
load_nap_settings (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/Networking.py:47)
Loading NAP settings
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.NMPANSupport.NMPANSupport'>
_________
pa_context_event (/usr/lib/python2.6/dist-packages/blueman/main/PulseAudioUtils.py:115)
2
_________
on_switch_added (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:61)
killswitch registered 2
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
False
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off True
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state None
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
False
_________
on_dbus_name_owner_change (/usr/bin/blueman-applet:341)
org.bluez owner changed to :1.104
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
False
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off True
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state <blueman.bluez.Manager.Manager object at 0x98da04c>
_________
set_global_state (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:118)
off True True
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
False
_________
on_bluetooth_power_state_changed (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:93)
False
_________
SetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:133)
set False
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/RecentConns.py:107)
bt_status False
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/StandardItems.py:90)
False False
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off True
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state <blueman.bluez.Manager.Manager object at 0x98da04c>
_________
enumerate_connections (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/Indicator.py:59)
Found 0 existing connections
_________
update_menuitems (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/DiscvManager.py:132)
warning: Adapter is None
_________
register_agent (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/AuthAgent.py:68)
Registering agent
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/StandardItems.py:90)
True False
_________
set_nap (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/Networking.py:80)
set nap False
_________
set_gn (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/Networking.py:91)
set gn False
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
False
_________
on_switch_changed (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:72)
Global state: False switch.soft: 1
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off True
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state <blueman.bluez.Manager.Manager object at 0x98da04c>
_________
on_obex_owner_changed (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/TransferService.py:81)
obex owner changed: :1.48
Using gconf config backend
_________
pa_context_event (/usr/lib/python2.6/dist-packages/blueman/main/PulseAudioUtils.py:115)
3
_________
pa_context_event (/usr/lib/python2.6/dist-packages/blueman/main/PulseAudioUtils.py:115)
4
******************************************************
------------->if I click Turn Bluetooth On:
******************************************************
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off False
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state <blueman.bluez.Manager.Manager object at 0x908206c>
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
False
_________
on_bluetooth_power_state_changed (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:93)
True
_________
SetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:133)
set True
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/RecentConns.py:107)
bt_status True
_________
initialize (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/RecentConns.py:132)
rebuilding menu
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/RecentConns.py:107)
bt_status True
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/RecentConns.py:107)
bt_status True
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/StandardItems.py:90)
True True
_________
set_global_state (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:118)
off False False
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
True
_________
on_switch_changed (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:72)
Global state: True switch.soft: 0
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off False
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state <blueman.bluez.Manager.Manager object at 0x908206c>

*****************************************************
And after I click "OK" on the error message:
*****************************************************
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off True
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state <blueman.bluez.Manager.Manager object at 0x908206c>
_________
set_global_state (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:118)
off True True
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
True
_________
on_bluetooth_power_state_changed (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:93)
False
_________
SetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:133)
set False
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/RecentConns.py:107)
bt_status False
_________
change_sensitivity (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/StandardItems.py:90)
False False
_________
GetGlobalState (/usr/lib/python2.6/dist-packages/blueman/main/KillSwitchNG.py:145)
False
_________
on_switch_changed (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/KillSwitch.py:72)
Global state: False switch.soft: 1
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
bt_off True
_________
__setattr__ (/usr/lib/python2.6/dist-packages/blueman/plugins/applet/PowerManager.py:113)
manager state <blueman.bluez.Manager.Manager object at 0x908206c>

Wiktor Stasiak (wiktor-stasiak) wrote :

I am also affected by this bug, same message box with error.
I reverted to package from official repo

Try this, it worked for me:

- Open terminal
- Type in "sudo gedit /etc/bluetooth/main.conf" without the quotes
- Change the value of RememberPowered from true to false
- Save the document and reboot

one love (djh999gc) wrote :

[quote]skyhard wrote on 2010-01-09: #2
Try this, it worked for me:

- Open terminal
- Type in "sudo gedit /etc/bluetooth/main.conf" without the quotes
- Change the value of RememberPowered from true to false
- Save the document and reboot[/quote]

excellent. this worked on karmic 9.10. thanks skyhard

Roland (roland-breedveld) wrote :

"RememberPowered from true to false"

is not working on a Lenovo Thinkpad T61 with Ubuntu 10.04

andrew (andytof47) wrote :

I also have this problem, with Ubuntu 10.04 and 10.10 latest kernels from normal repos

Bus 002 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

The funny thing is it worked once and only once when I changed rememberpowered from true to false.....

after that same old error........ Is this getting close to being fixed?

I also have the latest Blueman and the latest Bluez

I tried the workaround form here
https://bugs.launchpad.net/ubuntu/+source/blueman/+bug/411481

but nothing

and I don't think this is a duplicate bug

Pavlo Kundirenko (farfurkis) wrote :

I have the same problem as the andrew describes.
With Ubuntu 10.04 it works fine but when I upgrade my system to 10.10 my device is recognized very hardly.

Bus 002 Device 004: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

The device works normally when I plug and unplug it a few times and restart bluetooth daemon using the follow commands:
/etc/init.d/bluetooth restart
/etc/init.d/bluetooth stop
/etc/init.d/bluetooth start

Latest succesful combination was: plug - restart - stop - start - restart - unplug - plug - restart

Song Zhao (zhaosong414) wrote :

[quote]
I have the same problem as the andrew describes.
With Ubuntu 10.04 it works fine but when I upgrade my system to 10.10 my device is recognized very hardly.

Bus 002 Device 004: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

The device works normally when I plug and unplug it a few times and restart bluetooth daemon using the follow commands:
/etc/init.d/bluetooth restart
/etc/init.d/bluetooth stop
/etc/init.d/bluetooth start

Latest succesful combination was: plug - restart - stop - start - restart - unplug - plug - restart
[/quote]

I am using Ubuntu 10.10, this method works. Thanks

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers