How to enable bluetooth without restarting OS?

I have a problem with bluetooth in Ubuntu 13.04. The bluetooth won't work until I restart my laptop. I've tried:

hciconfig hci0 reset
hciconfig hci0 up
service bluetooth start

Any help is appreciated.


Solution 1:

Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo /etc/init.d/bluetooth restart

Also you can try BlueZ

BlueZ provides support for the core Bluetooth layers and protocols. It is flexible, efficient and uses a modular implementation.

To install

sudo apt-get install bluez

Solution 2:

So if you really want to "reset" everything this will do it. It requires sudo, or use

sudo su

Then just reset the module.

hciconfig hci0 down
rmmod btusb
modprobe btusb
hciconfig hci0 up

This works for me when my bluetooth crashes and some how still holds on to resources. Simply resetting the service is not enough.