missing hcid.conf and pairing problem

Bug #365779 reported by Adem on 2009-04-23
This bug affects 9 people
Affects Status Importance Assigned to Milestone
bluez-utils (Ubuntu)

Bug Description

I installed ubuntu 8.10. And I install bluez. But there is no hcid deamon and hcid.conf. I cannot configure default pass key or any pass key. When I attempt to pairing with bluez-applet, computer is trying to connect phone, and phone ask to me a pin. then computer and phone says opponent device refused pairing. When I enteren 1234 for pin, still refusing.

hcid command and deamon are missing. also hcid.conf is lost. I find no way to pairing phone to computer.

Chris (gentlec) wrote :

This also affects 9.04 (Jaunty). After installation of bluez package there is no hcid daemon and no /etc/bluetooth/hcid.conf file. Unable to pair my phone with the bluetooth adapter because I cannot define a pin number for the adapter without hcid.conf.

Stefano Prenna (stefanoprenna) wrote :

Same happened to me on Jaunty. hcid and hcid.conf disappeared...

Stefano Prenna (stefanoprenna) wrote :

Just discovered on http://www.adamish.com/blog/ that this is normal behavior as the bluez package has been deeply updated. On the same page I've found some good starts on how to reconfigure my system.

Basically I had to restore the original file "bluetooth" under /etc/default/

After that I've deleted my phone, repaired it with my PC and launched the command:
/usr/bin/dund --listen --persist --msdun call dun --nodetach

Changed in bluez-utils (Ubuntu):
assignee: nobody → Bluetooth (bluetooth)
Stefano Prenna (stefanoprenna) wrote :

New information after my update to Lucid. It looks like that with Bluez v4.x there is no way to share my internet connection with my phone. No hcdi.conf, I can't see /etc/default/bluetooth, it seems that without the Bluez 3.x package installed there is no way.

However I'm posting here the changes needed for my Lucid Lynx to share my internet connection with my Palm Centro:

1. pair the phone and the pc using the standard bluetooth interface (on the taskbar)
2. sudo apt-get install bluez-compat
3. gksudo gedit /etc/sysctl.conf
4. Uncomment the line "net.ipv4.conf.default.forwarding=1"
5. sudo sysctl -p
6. gksudo gedit /etc/ppp/peers/dun
7. paste inside the file (and adapt it to your network configuration):




8. sudo /usr/bin/dund --listen --persist --msdun call dun --nodetach
9. launch the connection from your phone, it worked for me.

Benny Bottema (b-bottema) wrote :

This is indeed no bug. Readon the meager release notes from the latest bluez versions included in Ubuntu since Jaunty:

"With this new major version a lot of things have been changed:
   - The main daemon is now called bluetoothd (instead of hcid)
   - The main configuration file is /etc/bluetooth/main.conf and follows INI-style syntax"

And indeed, scanning the sourcefiles reveal that the hcid.conf is no longer used but other configuration files instead. It appears to me that hcid.conf has become main.conf, except if you need specific bluetooth options support you need to defer to one of the specific config files, such as network.conf, input.conf and rfcomm.conf etc.

Too bad there is no documentation whatsoever on bluez 4.0. Also no comments in the source code.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bluez-utils (Ubuntu):
status: New → Confirmed
dino99 (9d9) wrote :

This version has expired

Changed in bluez-utils (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers