Raspbian JessieでもWiiコントローラを設定してみた

JessieでもWiiコントローラを設定してみる

以前のエントリーでWheezyでWiiコントローラを使う設定をしてみたのですが、そろそろOSもバージョンしたくなったのでJessieインストールして、こちらでも設定をしてみました。 基本的には、まったく同じ設定で大丈夫そうなのですが、Bluetoothサービスのチェックをすると以下のようなエラーが発生します。 Sap driverでなぜか失敗するのですが、Wiiのコントローラの動作は問題ないようです。(そもそもSapがなにかわかってませんが)

~/Wiimote $ sudo service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since 月 2016-04-11 22:03:16 JST; 24min ago
     Docs: man:bluetoothd(8)
 Main PID: 391 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           mq391 /usr/lib/bluetooth/bluetoothd

 411 22:03:13 raspberrypi bluetoothd[391]: Bluetooth daemon 5.23
 411 22:03:16 raspberrypi bluetoothd[391]: Starting SDP server
 411 22:03:16 raspberrypi systemd[1]: Started Bluetooth service.
 411 22:03:16 raspberrypi bluetoothd[391]: Bluetooth management interfac...d
 411 22:03:16 raspberrypi bluetoothd[391]: Sap driver initialization failed.
 411 22:03:16 raspberrypi bluetoothd[391]: sap-server: Operation not per...)
Hint: Some lines were ellipsized, use -l to show in full.

Failed 表示を解消したい…

そもそもSapがわからないので必要なのかどうかもわからないのですが 検索したところ以下のサイトで該当するissueがありました。

【参考】 https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=131999

Raspberry Pi • View topic - bluetoothd sap driver issue

この中に

I am new to the ble api so will do some more testing and reading. The SAP error doesn't seem to be a problem but I would like to get rid of that since I have no need for sap-server.

とのことだったので、今のところはSap関係は使用しないようにしてしまいます。

$ sudo vi /lib/systemd/system/bluetooth.service

変更前

ExecStart=/usr/lib/bluetooth/bluetoothd

↓変更後

ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap

念のため再起動ステータスのチェックをすると

~ $ sudo service bluetooth status
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
   Active: active (running) since 火 2016-04-12 07:43:05 JST; 42s ago
     Docs: man:bluetoothd(8)
 Main PID: 349 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           mq349 /usr/lib/bluetooth/bluetoothd --noplugin=sap

 412 07:43:04 raspberrypi bluetoothd[349]: Bluetooth daemon 5.23
 412 07:43:05 raspberrypi bluetoothd[349]: Starting SDP server
 412 07:43:05 raspberrypi bluetoothd[349]: Excluding (cli) sap
 412 07:43:05 raspberrypi systemd[1]: Started Bluetooth service.
 412 07:43:05 raspberrypi bluetoothd[349]: Bluetooth management interfac...d
Hint: Some lines were ellipsized, use -l to show in full.

確かに"Sap driver initialization failed."の表記はなくなっているので今はこのままとします。

Sapがわかる方教えてください。 Facebookのお友達から情報を教えていただきました。この内容なら無効にしても問題なさそうです。

developer.bluetooth.org

/* -----codeの行番号----- */