You are not logged in.

#1 2022-09-21 21:51:44

HaCk3Dq
Member
Registered: 2022-09-21
Posts: 2
Website

Using bluetooth keyboard to unlock LUKS

I have almost a similar setup on both my laptop and PC with luks+lvm, /boot unencrypted, refind bootloader.
Want to unlock LUKS with a wireless keyboard. I am using a USB Bluetooth dongle

CSR8510 A10

on my PC and

Intel Wireless-AC 8265

on my laptop.

Installed mkinitcpio-bluetooth, added bluetooth hook as well as default modules from hint (usbhid xhci_hcd), rebuilt ramdisk and it doesn't work.

(if needed) Add any file, binary, or module that your keyboard or bt adapter might need
Example:

FILES=(/usr/lib/firmware/intel/ibt-20-1-3.sfi) 
MODULES=(usbhid xhci_hcd)

How can I trace what modules do I need to add?
Any firmware files needed?



Logs from pc:

sudo dmesg | grep -i bluetooth
[    0.828316] Bluetooth: Core ver 2.22
[    0.828323] NET: Registered PF_BLUETOOTH protocol family
[    0.828324] Bluetooth: HCI device and connection manager initialized
[    0.828326] Bluetooth: HCI socket layer initialized
[    0.828327] Bluetooth: L2CAP socket layer initialized
[    0.828328] Bluetooth: SCO socket layer initialized
[    0.830738] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    0.830740] Bluetooth: HIDP socket layer initialized
[    1.058497] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.058501] Bluetooth: BNEP filters: protocol multicast
[    1.058506] Bluetooth: BNEP socket layer initialized
[    1.866154] Bluetooth: hci0: Bad flag given (0x2) vs supported (0x1)

Logs from laptop:

sudo dmesg | grep -i bluetooth
[    1.329313] Bluetooth: Core ver 2.22
[    1.329326] NET: Registered PF_BLUETOOTH protocol family
[    1.329328] Bluetooth: HCI device and connection manager initialized
[    1.329332] Bluetooth: HCI socket layer initialized
[    1.329333] Bluetooth: L2CAP socket layer initialized
[    1.329336] Bluetooth: SCO socket layer initialized
[    1.335103] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.335105] Bluetooth: BNEP filters: protocol multicast
[    1.335107] Bluetooth: BNEP socket layer initialized
[    1.556432] Bluetooth: hci0: Firmware revision 0.1 build 19 week 44 2021
[    1.671777] Bluetooth: hci0: Cannot set wakeable for RPA
[    1.671819] Bluetooth: hci0: Bad flag given (0x2) vs supported (0x1)

Offline

#2 2022-10-01 07:46:37

ua4000
Member
Registered: 2015-10-14
Posts: 417

Re: Using bluetooth keyboard to unlock LUKS

Does it not work on both machines, or is it working only on one, which one ?
Does the bluetooth keyboard work in the console after startup without any additional intervention, (if you bypass the luks prompt with a normal keyboard) ?
Do you use the same bluetooth keyboard for for both machines ?

Offline

#3 2022-10-01 09:19:31

HaCk3Dq
Member
Registered: 2022-09-21
Posts: 2
Website

Re: Using bluetooth keyboard to unlock LUKS

ua4000 wrote:

Does it not work on both machines, or is it working only on one, which one ?
Does the bluetooth keyboard work in the console after startup without any additional intervention, (if you bypass the luks prompt with a normal keyboard) ?
Do you use the same bluetooth keyboard for for both machines ?

Yeah, it doesn't work on both machines. Right after unlocking LUKS it works flawless.
I am using the same Anne Pro 2 keyboard for both of my machines

Offline

#4 2022-10-01 09:28:58

ua4000
Member
Registered: 2015-10-14
Posts: 417

Re: Using bluetooth keyboard to unlock LUKS

The linked source also proposes to look into journactl | grep bluetooth
Can you post this too ? Or was it empty ?

Offline

Board footer

Powered by FluxBB