Difference between revisions of "Bluetooth keyboard"

From ArchWiki
Jump to: navigation, search
(This article describes how to set up a Bluetooth keyboard with Arch Linux. I used an Apple Wireless Keyboard)
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
This article describes how to set up a Bluetooth keyboard with Arch Linux. I used an Apple Wireless Keyboard (aluminium) but it should work for other models.
+
[[Category:Bluetooth]]
 +
[[Category:Keyboards]]
 +
[[ru:Bluetooth Keyboard]]
 +
This article describes how to set up a Bluetooth HID keyboard with Arch Linux, bluez version 5.
  
The setup is similar than the one of a [Bluetooth Mouse]. Follow this guide first to add kernel modules, bluetooth libraries.
+
Start bluetooth service and do
 +
  $ bluetoothctl -a
 +
  # pair <XX:XX:XX:XX:XX:XX>
 +
  # trust <XX:XX:XX:XX:XX:XX>
 +
  # connect <XX:XX:XX:XX:XX:XX>
  
The tricky part for the Apple Wireless Keyboard is to have the correct settings in ''/etc/bluetooth/hcid.conf''. Obviously you need to replace the mac address with yours:
+
device should be added as /dev/input/event* and your Xorg should add it automatically if you did not disable such feature.
 
+
device 00:01:02:03:04:05 {
+
  name "Apple Wireless Keyboard";
+
  auth disable;
+
  encrypt disable;
+
}
+
 
+
And then to have ''/etc/conf.d/bluetooth'' with the following options to connect automatically when starting the bluetooth daemon:
+
 
+
HCID_ENABLE="true"
+
HIDD_ENABLE="true"
+
HIDD_OPTIONS="--timeout 8 --master --server --connect 00:01:02:03:04:05"
+
  
 
== Bluetooth Keyboard at Startup ==
 
== Bluetooth Keyboard at Startup ==
  
in ''/etc/rc.conf'' add the following modules:
+
TBD
 
+
MODULES=(... hci_usb bluetooth hidp ...)
+
 
+
and add the bluetooth daemon:
+
DAEMONS=(... @bluetooth ...)
+
 
+
Then it should work on reboot automatically !
+

Revision as of 13:03, 18 June 2013

This article describes how to set up a Bluetooth HID keyboard with Arch Linux, bluez version 5.

Start bluetooth service and do

 $ bluetoothctl -a
 # pair <XX:XX:XX:XX:XX:XX>
 # trust <XX:XX:XX:XX:XX:XX>
 # connect <XX:XX:XX:XX:XX:XX>

device should be added as /dev/input/event* and your Xorg should add it automatically if you did not disable such feature.

Bluetooth Keyboard at Startup

TBD