omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Cannot login with Bluetooth keyboard

Open folken718 opened this issue 3 months ago • 5 comments

System details

Intel Core i7 Gen 4, DDR3 24gb, Logitech Ergo K860 Bluetooth keyboard

What's wrong?

When booting up when the password screen is shown i cannot login using my Bluetooth keyboard, Logitech ergo k860 , it looks like it does not connect.

After using a wired keyboard to input my password the Bluetooth keyboard is working.

folken718 avatar Sep 05 '26 16:09 folken718

This is the LUKS passphrase prompt rather than a login screen, the bad news is that Bluetooth can't work there.

The initramfs is a minimal environment, just enough to find and unlock the disk before handing off to the real system. It has no Bluetooth stack: no bluetoothd, no pairing keys, no D-Bus. There's nothing available to connect your K860 with, which is why it starts working the moment the real system takes over.

Omarchy autologins after that, so the LUKS prompt is the only password at boot.

You will need a keyboard with a 2.4GHz USB dongle rather than Bluetooth. The dongle presents as a plain USB HID device, so the kernel picks it up in early boot with no Bluetooth stack needed, it just works at the LUKS prompt. Downside is the K860 is Bluetooth-only, so this means a different keyboard. Logitech's Unifying-receiver models are the obvious candidates. Or a wired keyboard like you are doing now, worth saying this isn't an Omarchy bug, any distro with LUKS behaves the same way.

onelegdave avatar Sep 06 '26 09:09 onelegdave

I ended up commenting the workaround my agent found for me on an older issue. But have a look here and see if your agent(s) can not work out a similar workaround for you, if this solution would suit you (not for everyone, since it basically disables the password prompt) https://github.com/omacom/omarchy/issues/197#issuecomment-5664462516

ETroll avatar Sep 14 '26 17:09 ETroll

+1, same here with a Bluetooth-only keyboard: the LUKS prompt on boot is unusable until I plug in a wired one.

For anyone landing here, the mkinitcpio-bluetooth + uhid workaround in #1744 / discussion #6240 has been confirmed by several people, and dhh said he'd welcome it as a PR. Would love to see it land as an opt-in option so a second keyboard isn't required.

Bryan-Legend avatar Sep 16 '26 15:09 Bryan-Legend

I checked this against the boot configuration on quattro, and Codex Medium reviewed it as a second opinion. Codex reached the same conclusion, though it isn't guaranteed to have reasoned independently of me. I couldn't reproduce it because the test VMs have no Bluetooth controller, but the cause is clear from the source.

On an encrypted install, the only password at boot is the LUKS disk prompt. After it, the desktop logs in automatically. The boot image that shows that prompt is built from etc/mkinitcpio.conf.d/00-omarchy-hooks.conf:34: base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs. Nothing in it brings up Bluetooth: there's no bluetoothd, no D-Bus, no uhid, no adapter firmware and no pairing keys. So the K860 can't connect until the disk is unlocked and the full system starts Bluetooth. That's why it works once you've typed the password on a wired keyboard. This isn't a regression. No Omarchy release has put Bluetooth in the boot image, and the manual lists it as a known limitation under "Use a wired or 2.4ghz keyboard!" in Getting Started.

This needs more than a small fix. The workaround in #1744 (the AUR mkinitcpio-bluetooth hook, uhid, and the adapter's firmware) works for several people. Shipping it in Omarchy would mean packaging that hook, deciding which firmware to include, and storing the keyboard's Bluetooth pairing keys in the boot image on the unencrypted EFI partition. #8816 tried an opt-in version and was closed by its author without merging. Whether Omarchy should support this is the maintainer's call, so this issue now waits on them.

If the screen you see also asks for a username, it's the login greeter on an unencrypted install, not the disk prompt. In that case the cause is different and #8261 tracks it.

omarchybot avatar Oct 11 '26 06:10 omarchybot

Whether Omarchy should support this is the maintainer's call, so this issue now waits on them.

@dhh please?! 🥺

juliobetta avatar Oct 12 '26 13:10 juliobetta