I tried this on a Sony Vaio VGN-S4HP.
Here are the steps:
- Compile kernel's bluetooth modules (I'm using vanilla-sources-2.6.15_rc4)
NOTE: The device driver for the S4 is the HCI USB driver, yours might be a different one.
Code: Select all
Networking ---> [*] Networking support <M> Bluetooth subsystem support ---> <M> L2CAP protocol support <M> HIDP protocol support Bluetooth device drivers ---> <M> HCI USB driver - Add the modules to the autoload list
Code: Select all
milk linux # echo "hidp" >> /etc/modules.autoload.d/kernel-2.6 milk linux # echo "hci_usb" >> /etc/modules.autoload.d/kernel-2.6 - restart the system or manually load the modules:
Code: Select all
modprobe hidp modprobe hci_usb - emerge the bluez-utils
Code: Select all
milk linux # emerge net-wireless/bluez-utils - configure /etc/conf.d/bluetooth
Code: Select all
#enable hid deamon HIDD_ENABLE=true - start the bluetooth daemon system
Code: Select all
milk linux # /etc/init.d/bluetooth start - connect the mouse
- search the MAC address
Code: Select all
milk linux # hcitool scan - while hcitool is scanning, turn the mouse on and press the connect button on the mouse
- copy the MAC address from hcitool's outputNOTE: this is my mouse's MAC address, yours will be different.
Code: Select all
milk linux # hcitool scan Scanning ... 00:0A:94:C1:2B:FD Trust Bluetooth Mouse - force hidd to connect to the mouseNOTE: use your MAC address instead of mine.
Code: Select all
milk linux # hidd --connect 00:0A:94:C1:2B:FD - rapidly turn off, on and press the connect button on the mouse
- mouse the mouse a bit
NOTE: you should see the mouse movement in a few seconds, if not, maybe your xorg.conf is not capturing the mouses events, check mine below and try to figure out what's wrong.
NOTE: from now on the mouse will connect to your Bluetooth host computer interface (hci) whenever it's switched on. If you connect the mouse to another computer, or change batteries, repeat steps a to f to reconnect it to your computer.
- search the MAC address
- add bluetooth to the default runlevel
Code: Select all
rc-update add bluetooth default
Code: Select all
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mice"
EndSectionHow I connected a Microsoft Bluetooth keyboard/mouse to Linux (and later, a nicer Apple Bluetooth keyboard...)
Logitech MX900 Bluetooth Optical Mouse on Linux
Sorry about my poor english. If you want, post a rewrite and I'll gladly replace this mess.
Any feedback is appreciated.

