Bluetooth not enabled for boot: keyboard doesn’t work
Bluetooth is not enabled during the boot sequence early enough, such that it cannot be used to login to the omarchy system password prompt .
This is a bad user experience and can result in lockout. Bluetooth keyboards work fine in the desktop, but when you reboot or power up from off there is no way to proceed without plugging in a wired keyboard.
I believe that this is due to the Bluetooth drivers only being invoked after the drive encryption routine has run following password entry. It is probably an enhanced security feature but is a massive UX issue at minimum, could be catastrophic if no wired keyboard available.
As far as I understand LUKS encryption, which is what we use, you're not going to be able to load the bluetooth stack before the drive is decrypted. So I unfortunately don't think this is possible. But I'll add a note to the install manual noting this limitation. You can of course always do without encryption, but I think you're probably better off getting either a 2.4ghz compatible keyboard or using a cable.
I've added the following paragraph to the Getting Started page in the manual:
Just note that this encryption setup won't allow you to enter the password from a Bluetooth keyboard at startup. Just like you can't use a Bluetooth keyboard to enter the BIOS on a PC. You'll need a keyboard that either uses a 2.4ghz dongle or a cable (which is much nicer for latency anyway!). I personally love the Lofree Flow84!
@dhh Please tell me how to make Bluetooth connect in advance so that I can enter my login password. I have a custom split keyboard that only works via Bluetooth. I don't need encryption; I just installed your build using a USB flash drive. Perhaps encryption was selected by default.
It's always selected by default. If you need something else, you'll need to do a manual install: https://learn.omacom.io/2/the-omarchy-manual/96/manual-installation
I had the same issue, and some googling around lead me here. Just want to add what my agent did to fix this for me. The "workaround" is to just remove the password required at boot. So it is not something I would use on any computer that is unattended. But this was sufficient for me for my stationary workstation at home.
He did so by doing the following: (In his words, so a pinch of salt, but maybe your agent can deduce the fix from this text.)
By enrolling the LUKS2 root volume with the TPM2 and letting the systemd-based initramfs unlock it during early boot.
The original LUKS passphrase remains enrolled as a recovery fallback. The TPM token is an additional LUKS keyslot, not a replacement for the password.
On my Omarchy system:
sudo systemd-cryptenroll \
--tpm2-device=auto \
--tpm2-pcrs=0+2+7 \
/dev/<luks-root-partition>
Then configure the initramfs crypttab:
# /etc/crypttab.initramfs
root UUID=<LUKS-UUID> none tpm2-device=auto
Switch mkinitcpio to the systemd encryption hook:
HOOKS=(base systemd ... block sd-encrypt filesystems fsck ...)
Then rebuild the initramfs:
sudo mkinitcpio -P
After rebooting, the TPM unlocks the root volume automatically, so no keyboard is needed at the LUKS prompt.
I bound the token to PCRs 0+2+7, which ties automatic unlock to the expected firmware and boot state. Firmware, Secure Boot, or boot-chain changes can cause TPM unlock to fail; the original LUKS passphrase should still unlock the system. Do not remove the password keyslot until recovery has been tested.
The TPM token is stored in the LUKS2 metadata, and tpm2-device=auto lets systemd discover the TPM automatically. systemd crypttab documentation (https://www.freedesktop.org/software/systemd/man/250/crypttab.html) · mkinitcpio documentation (https://man.archlinux.org/man/mkinitcpio.8)
This is not a universal copy-paste recipe. It assumes a LUKS2 root volume and a systemd-based initramfs. If the system still uses the legacy mkinitcpio encrypt hook, migrate it to systemd + sd-encrypt first, ensure the root mapping is correct, retain a tested passphrase fallback, then rebuild the initramfs before rebooting.