Bluetooth input devices

From Gentoo Wiki
Jump to: navigation, search
This page contains changes which are not marked for translation.

This article describes the setup of Bluetooth input devices, for example a bluetooth mouse, on a Linux system.

Installation

Kernel

Both Bluetooth and evdev support is necessary in the kernel. The following options are also required:

KERNEL
Device Drivers  --->
    [*] HID Devices  --->

          You may need some special driver for your input device:
          Special HID drivers  --->
                <*> ...

[*] Networking support  --->
    <*>   Bluetooth subsystem support  --->
          <*>   L2CAP protocol support
          <*>   HIDP protocol support

BlueZ settings

Change the value of UserspaceHID to true in /etc/bluetooth/input.conf to enable user-space HID support:

FILE /etc/bluetooth/input.conf
# Enable HID protocol handling in userspace input profile
# Defaults to false (HIDP handled in HIDP kernel module)
UserspaceHID=true

User-space HID support also requires the User-space I/O driver for HID input devices (CONFIG_UHID) to be enabled:

KERNEL Enabling user-space-hid support
Device Drivers --->
    HID support --->
        <*>   User-space I/O driver support for HID subsystem

Configuration

To configure the input devices use the specialized desktop management tools:

Some Bluetooth input devices are initially not in HID mode, but in HCI mode. This is handled by udev in /lib/udev/rules.d/97-hid2hci.rules. Additional devices can be added in a custom rule file which needs to be placed in /etc/udev/rules.d. Refer to the udev article for more details.

See also

  • Bluetooth — describes the configuration and usage of Bluetooth controllers and devices.