ArchLinuxでLUKS + LVMで暗号化したディスクをBluetooth接続のキーボードで解除する

このパッケージを入れる https://aur.archlinux.org/packages/mkinitcpio-bluetooth/

説明に従って /etc/bluetooth/main.conf でペアリングしたキーボードと自動でつなぐ設定をする

vi /etc/bluetooth/main.conf

#AutoEnable=falseAutoEnable=true に書き換えて保存

/etc/mkinitcpio.conf を書き換え

# こうから
HOOKS=(base udev autodetect modconf block keyboard keymap lvm2 encrypt filesystems fsck)
# こう
HOOKS=(base udev autodetect modconf block keyboard keymap bluetooth lvm2 encrypt filesystems fsck)

そのあと mkinitcpio -P

これで1回はうまくいったものの、なんかうまく起動できない

dmesg みてみるとこんなのが出てる

Direct firmware load for intel/ibt-18-16-1.sfi failed with error -2

1回HOOKSから外してもっかい mkinitcpio -P して再起動

どのファイルが必要なのかよくわからない、dmesgみてみると今度はこの辺が出てる

[   56.444814] Bluetooth: hci0: Waiting for firmware download to complete
[   56.445875] Bluetooth: hci0: Firmware loaded in 2411134 usecs
[   56.445903] Bluetooth: hci0: Waiting for device to boot
[   56.461884] Bluetooth: hci0: Device booted in 15618 usecs
[   56.461920] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-18-16-1.ddc
[   56.475727] Bluetooth: hci0: Applying Intel DDC parameters completed
[   56.691986] NET: Registered protocol family 38
[   56.707912] Bluetooth: RFCOMM TTY layer initialized
[   56.707919] Bluetooth: RFCOMM socket layer initialized
[   56.707923] Bluetooth: RFCOMM ver 1.11

lsusbしてみる

# pacman -S usbutils
$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0025 Intel Corp.
Bus 001 Device 002: ID 248a:8514 Maxxter Wireless Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
% lsusb -v -d 8087:0025

どのファームウェアが必要かってどこでわかるんだろう。。

とりあえずさっきエラーが出てたibt-18-16-1まわりのファイルをFILESに突っ込んでおく

FILES=(/lib/firmware/intel/ibt-18-16-1.ddc /lib/firmware/intel/ibt-18-16-1.sfi)

mkinitcpio -P して再起動

どうやら動いたよう

いいなと思ったらKyashでお金を下さい
20191128011151
GitHubスポンサーも受け付けています
https://github.com/sponsors/hanachin/