I finally took some time and tested bluetooth under GNU/Linux (Debian Testing) on my Sony Vaio VGN-S5VP/B. I had to say that everything went quite smooth, and everything seems to work fine (although I only tested file sending).
This post should be considered complementary to this page, where I described the installation of Debian GNU/Linux on this laptop.
First of all I installed all the necessary software:
apt-get install bluez-utils libbluetooth1 bluez-hcidump bluez-pin
and then I configured and recompiled the kernel (in this case a 2.6.18 installed from the Debian repository, i.e., it's not a vanilla kernel): under Networking enable Bluetooth Subsystem Support, and then, from there enable the options:
CONFIG_BT=mand then enable all the options in the bluetooth device drivers.
CONFIG_BT_L2CAP=m
CONFIG_BT_SCO=m
CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=m
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=m
Once you boot with the new kernel you can check from dmesg the Bluetooth information:
dmesg | grep Bland you should see the above information.
Bluetooth: Core ver 2.10
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI USB driver ver 2.9
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: BNEP (Ethernet Emulation) ver 1.2
Bluetooth: BNEP filters: protocol multicast
Now you can use the command hciconfig (which is basically the command that corresponds to ifconfig, but for bluetooth), and you should see something like:
hci0: Type: USBwhere mac address should report the mac address of your bluetooth device.
BD Address: mac addressACL MTU: 384:8 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:602 acl:0 sco:0 events:60 errors:0
TX bytes:486 acl:0 sco:0 commands:40 errors:0
Moreover, you can scan for bluetooth devices with the following command:
hcitool scanfor instance, you should see your mobile phone mac address (if bluetooth is enabled on the mobile phone).
Now you can go on using your own software for accessing your bluetooth devices (probably described on a next post :-)