DebianでBluetoothマウスやキーボードを使う

タグ: linux / 公開: 2013-08-22

LinuxでもBluetoothマウスやキーボードが使いたい。

Debianならまずbluetoothパッケージをインストール。 これでbluetoothサービスが使えるようになる。

apt-get install bluetooth

デバイスをペアリングできる状態にして、hcitoolコマンドを使ってデバイスを検索する。hcitoolコマンドはユーザ権限で実行して良い。

hcitool scan

デバイスが見つかると以下のようにアドレスが表示される。

Scanning ...
        12:34:56:78:90:AB       ThinkPad Compact Bluetooth Keyboard with TrackPoint

rootでhiddコマンドを実行して接続する。 引数にはhcitoolで調べたアドレスを指定する。 エラーが出なければ成功。

hidd --connect 12:34:56:78:90:AB

接続中のデバイスは以下のように調べられる。 これもユーザ権限で良い。

hidd --show

12:34:56:78:90:AB Bluetooth Keyboard [17ef:6048] connected

参考:

この記事をSNSでシェアする
タイトルとURLをコピーする
または投稿画面を開く
Author
Icon
ぺけみさお / xmisao
プログラマ。
Subscription
Recent articles
Related to linux