Luks passphrase typing speed critical

Hi,
I set up Fedora 44 with Luks encryption and created a 2nd user account for my wife. But Luks won’t accept the correct passphrase when she enters it. She types at a different speed to me. I have recreated this myself by typing at a slower speed and it refuses the passphrase.

I have no idea how to solve this and would be grateful for any pointers. Thank you.
My system:
System:
Kernel: 7.2.9-200.fc44.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 16.2.1 clocksource: tsc
Desktop: Cinnamon v: 6.6.7 tk: GTK v: 3.24.52 wm: Muffin vt: 2 dm: LightDM v: 1.33.1
Distro: Fedora Linux 44 (Forty Four)
Machine:
Type: Mini-pc System: ASUS product: NUCPB64 v: N/A serial:
Chassis: ASUSTeK COMPUTER INC. type: 35 v: 2.0 serial:
Mobo: ASUSTeK model: NUCPB64 serial: uuid:
Firmware: UEFI vendor: American Megatrends v: PB64_ARL.0023.2026.0416.1146 date: 04/16/2026
CPU:
Info: 10-core model: Intel Core Ultra 5 225 bits: 64 type: MCP smt:
arch: Arrow Lake rev: 2 cache: L1: 1 MiB L2: 22 MiB L3: 20 MiB
Speed (MHz): avg: 1817 min/max: 800/5000:4500 cores: 1: 1817 2: 1817 3: 1817 4: 1817 5: 1817
6: 1817 7: 1817 8: 1817 9: 1817 10: 1817 bogomips: 65280
Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel Arrow Lake-S [Intel Graphics] vendor: ASUSTeK driver: i915 v: kernel
arch: Xe2-LPG ports: active: HDMI-A-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-2, HDMI-A-3
bus-ID: 00:02.0 chip-ID: 8086:7d67 class-ID: 0300
Display: wayland server: X.org v: 1.21.1.24 with: Xwayland v: 24.1.14 driver: X:
loaded: modesetting alternate: fbdev,vesa dri: iris gpu: i915 display-ID: 0
Monitor-1: HDMI-A-1 model: AOC 2450W serial: res: 1920x1080 dpi: 94
size: 521x293mm (20.51x11.54") diag: 598mm (23.5") modes: max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 vendor: mesa v: 26.2.4 glx-v: 1.4 es-v: 3.2 direct-render: yes
renderer: llvmpipe (LLVM 22.1.8 256 bits) device-ID: ffffffff:ffffffff display-ID: :0.0
API: EGL Message: EGL data requires eglinfo. Check --recommends.
Info: Tools: api: glxinfo x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
Device-1: Intel 800 Series Family Audio Context Engine vendor: ASUSTeK driver: snd_hda_intel
v: kernel bus-ID: 80:1f.3 chip-ID: 8086:7f50 class-ID: 0403
API: ALSA v: k7.2.9-200.fc44.x86_64 status: kernel-api
Server-1: PipeWire v: 1.6.9 status: active with: 1: pipewire-pulse status: active
2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
Network:
Device-1: Intel Wi-Fi 7 AX1775 /AX1790 /BE20 /BE401/BE1750 2x2 driver: iwlwifi v: kernel pcie:
speed: 16 GT/s lanes: 1 bus-ID: 82:00.0 chip-ID: 8086:272b class-ID: 0280
IF: wlp130s0f0 state: up mac:
Device-2: Intel Ethernet I226-V vendor: ASUSTeK driver: igc v: kernel pcie: speed: 5 GT/s
lanes: 1 port: N/A bus-ID: 83:00.0 chip-ID: 8086:125c class-ID: 0200
IF: enp131s0 state: down mac:
Bluetooth:
Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 3-14:4
chip-ID: 8087:0038 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 0 state: down bt-service: enabled,running rfk-block:
hardware: no software: yes address:
Drives:
Local Storage: total: 476.94 GiB used: 133 GiB (27.9%)
ID-1: /dev/nvme0n1 vendor: TeamGroup model: TM8FPK500G size: 476.94 GiB speed: 63.2 Gb/s
lanes: 4 tech: SSD serial: fw-rev: PM020B34 temp: 29.9 C scheme: GPT
Partition:
ID-1: / size: 474.34 GiB used: 132.5 GiB (27.9%) fs: btrfs dev: /dev/dm-0
mapped: luks-470c9a70-edb7-4799-8dbf-cb1dc5140e07
ID-2: /boot size: 1.9 GiB used: 508.6 MiB (26.1%) fs: ext4 dev: /dev/nvme0n1p2
ID-3: /boot/efi size: 598.8 MiB used: 7.9 MiB (1.3%) fs: vfat dev: /dev/nvme0n1p1
ID-4: /home size: 474.34 GiB used: 132.5 GiB (27.9%) fs: btrfs dev: /dev/dm-0
mapped: luks-470c9a70-edb7-4799-8dbf-cb1dc5140e07
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
USB:
Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0 speed: 480 Mb/s lanes: 1
chip-ID: 1d6b:0002 class-ID: 0900
Hub-2: 2-0:1 info: super-speed hub ports: 2 rev: 3.1 speed: 20 Gb/s lanes: 2 chip-ID: 1d6b:0003
class-ID: 0900
Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 14 rev: 2.0 speed: 480 Mb/s lanes: 1
chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 3-7:2 info: Primax HP USB Multimedia Keyboard type: keyboard,HID
driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s lanes: 1 power: 100mA
chip-ID: 0461:4e24 class-ID: 0300
Device-2: 3-9:5 info: KYE Systems (Mouse Systems) USB Optical Mouse type: mouse
driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s lanes: 1 power: 100mA
chip-ID: 0458:0146 class-ID: 0301
Device-3: 3-14:4 info: Intel type: bluetooth driver: btusb interfaces: 2 rev: 2.0
speed: 12 Mb/s lanes: 1 power: 100mA chip-ID: 8087:0038 class-ID: e001
Hub-4: 4-0:1 info: super-speed hub ports: 10 rev: 3.1 speed: 20 Gb/s lanes: 2
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 38.5 C mobo: N/A
Fan Speeds (rpm): N/A

Info:
Memory: total: 16 GiB note: est. available: 14.93 GiB used: 2.63 GiB (17.6%)
Processes: 369 Power: uptime: 22m states: freeze,mem,disk suspend: s2idle wakeups: 0
hibernate: platform Init: systemd v: 259 default: graphical
Compilers: gcc: 16.2.1 Client: Cinnamon v: 6.6.7 inxi: 3.3.41

The speed of typing is not the cause of the LUKS passphrase rejection; LUKS does not validate input based on timing or keystroke velocity. The issue is almost certainly related to keyboard layout mismatches or input method interference.

Never has this happened to me in my 20 + years on any Linux system.

Have you tried to add a second passphrase?

  1. Add a Second Passphrase: Boot into your working account, unlock the drive, and add a new passphrase using a layout known to be correct for her.

    sudo cryptsetup luksAddKey /dev/mapper/your_device_name
    

    Type the new passphrase twice. If this works, she can use this new passphrase.

Be very sure the keyboard layout in the boot prompt matches the one used to set the original passphrase. You can test this by trying a simple, numeric-only passphrase to rule out layout issues entirely.

And Best of Luck on this. :slight_smile:

Hello Rick,
thanks for responding so quickly. I will report back when I’ve tried your suggestions out.

Hello Rick,
I’ve done a little more digging and yes, as you said, there is a discrepancy: the layout is US for the encryption page but in the System settings it indicates the UK as in attached screenshot.

I tried to change the settings in System Settings but it doesn’t allow me to change anything. Is there a way I can standardise the language / keyboard layout? I would prefer to do this before trying a 2nd passphrase.

I am reluctant to set up a second password because my wife finds too many passwords a bit stressful (and so do I).

I know you said you’ve never ever seen this and I haven’t been able to find any other reports of similar behaviour either but I’m just reporting what I see. Just to clarify: I can log into both user accounts without problem when I type the passphrase at my usual speed. So both user accounts function but when my wife tries or I type slowly the passphrase is rejected.

Thanks again for your help.

You can run

sudo localectl set-keymap us

Then check the contents of the file /etc/vconsole.conf. It should show among other lines

KEYMAP=us

This doesn’t fix it for entering the luks password until you create a new initrd file

sudo dracut --force

Please follow @vekruse suggestion. That should get it done.
If any errors show please paste them back here. :+1:

Hi Villy Kruse & Rick, Thank you for your response. I did as you suggested and the entry KEYMAP=us was there. I then did sudo dracut --force and restarted the computer. The first time I entered the encryption phrase I tried typing slowly and carefully and it took me back to the same window again. The 2nd time I tried typing at my normal speed and it came up with the below.

I shut down and on the restart I was able to log in with my normal typing speed.
Sorry, but I have no idea what to do with those messages. Suggestions for what to do next? Thank you

At this point you type in the root password. Usually the root password is not created at install time, so you can use sudo passwd root to create it for the next time this happens.

Then you can check the journal or even copy the journal to a usb device. You can also save the rdsosreport file to a use device for later analysis.

By the way. If your luks password is letters and numbers only, it shouldn’t matter if the keyboard is UK or US as they are both qwerty style.

Hi Villy Kruse,
Thank you and the password suggestion is a good one too. Unfortunately,it doesn’t seem to have changed anything. Password typed at normal speed is accepted, typed at slow speed is rejected–weird. The System Settings is still showing en_GB.UTF-8 and UK English. Other suggestions? Thanks

P.S I ran journalctl -b but I don’t really know what any of it means but there was this one warning:

fedora kernel: x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks

Is that relevant? I apologise most humbly if my ignorance is making you weep :sob: