Difference between revisions of "Bluetooth keyboard"

From ArchWiki
Jump to: navigation, search
m (Internationalization - new form)
m (stub)
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{i18n|Bluetooth Keyboard}}
+
[[Category:Bluetooth]]
[[Category:Input devices (English)]]
+
[[Category:Keyboards]]
 +
[[ru:Bluetooth Keyboard]]
 +
{{Stub|Unfinished, missing references.}}
 +
This article describes how to set up a Bluetooth HID keyboard with Arch Linux, bluez version 5.
  
This article describes how to set up a Bluetooth keyboard with Arch Linux, bluez version 3. I used an Apple Wireless Keyboard (aluminium) but it should work for other models.
+
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 setup is similar than the one of a [[Bluetooth Mouse]]. Follow this guide first to add kernel modules, bluetooth libraries.
+
device should be added as /dev/input/event* and your Xorg should add it automatically if you did not disable such feature.
 
+
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 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"
+
 
+
If you loaded the bluetooth modules from the [[Bluetooth Mouse]] guide you can now test by doing a ''/etc/rc.d/bluetooth restart''
+
  
 
== Bluetooth Keyboard at Startup ==
 
== Bluetooth Keyboard at Startup ==
  
in ''/etc/rc.conf'' add the following modules:
+
TBD
 
+
MODULES=(... hci_usb bluetooth hidp l2cap)
+
 
+
and add the bluetooth daemon:
+
DAEMONS=(... @bluetooth ...)
+
 
+
Then it should work on reboot automatically !
+
 
+
== Bluez v4.39 ==
+
In this version of bluez, there is no ''/etc/bluetooth/hcid.conf''
+
To create a trust between your BT adapter and a BT device, add the device's BT address to a file called ''trusts'' inside /var/lib/<MAC address of BT host adapter>/trusts, like so:
+
echo "00:02:76:05:45:E1 [all]" >> /var/lib/bluetooth/00\:1E\:37\:B0\:47\:24/trusts
+
This line appends a new line to that file.
+

Revision as of 13:29, 18 August 2013

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: Unfinished, missing references. (Discuss in Talk:Bluetooth keyboard#)

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