Randomly no keyboard input at Grub LUKS password prompt

Seemingly at random, I have no keyboard input at the LUKS password entry prompt. This is a laptop keyboard btw. The LEDs light up but key input doesn't work. To "Fix," I have to hold down the power button and cold reboot many times until I get lucky and the keyboard works. Sometimes, I have to bounce upwards of 20 times before it works again.

I tried other distro installs' LUKS prompts and they worked fine. I've had this same issue on a different machine in the past but I don't remember how I fixed it. Upon searching, there are several related threads (Mostly old Ubuntu versions I think) out there. I'll just link a few:

Possibly Related: I created this thread a while ago for a message I always get during boot: [boot] setfont: KDFONTOP: Function not implemented

I just rediscovered this thread:

https://bbs.archlinux.org/viewtopic.php?id=243254

Which made me just take notice to the bbs.arch link reply of:

If you edited /etc/vconsole.conf try to add consolefont in your HOOK-line.

so gonna try that real quick. I have also tried rearranging my hooks in /etc/mkinitcpio.conf 999 (Facetious) different ways. Currently, it looks like:

# it was recommended in a thread to add atkbd here, which did nothing.
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm atkbd)

# Another thread said put 'keyboard' before 'autodetect' but that didn't work either.
HOOKS="base udev keyboard autodetect modconf block keymap consolefont plymouth encrypt filesystems"

and of course here's grub:

System:    Kernel: 5.12.12-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0 
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=2c2a0577-3956-4ebb-b426-28ce40d1175e rw 
           [email protected] quiet nomodeset 
           cryptdevice=UUID=REDACTED-THE-UUID 
           root=/dev/mapper/luks-REDACTED-THE-UUID rd.udev.log_priority=3 vt.global_cursor_default=0 
           systemd.unified_cgroup_hierarchy=1 loglevel=3 sysrq_always_enabled=1 nosplash acpi_mask_gpe=0x6F 
           Desktop: GNOME 40.2 tk: GTK 3.24.29 wm: gnome-shell dm: GDM 40.0 Distro: Garuda Linux base: Arch Linux 
Machine:   Type: Laptop System: Notebook product: REDACTED,RD,RC v: N/A serial: N/A Chassis: type: 10 serial: N/A 
           Mobo: Notebook model: (REQUEST FROM ME DIRECTLY),RD,RC serial: N/A UEFI: INSYDE v: 1.07.11 date: 02/01/2019 
Battery:   ID-1: BAT0 charge: 57.1 Wh (100.0%) condition: 57.1/62.1 Wh (91.9%) volts: 12.6 min: 10.9 model: Notebook BAT 
           type: Li-ion serial: <filter> status: Full 
CPU:       Info: 6-Core model: Intel Core i7-REDACTED socket: BGA1440 (U3E1) note: check bits: 64 type: MT MCP arch: REDACTED
           note: check family: REDACTED model-id: REDACTED stepping: A (10) microcode: EA cache: L2: 12 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399 
           Speed: REDACTED
           Vulnerabilities:
           
           REDACTED THEM ALL
           

Graphics:  Device-1: NVIDIA TU106BM [GeForce RTX *** Mobile / ***] vendor: REDACTED driver: nvidia v: 465.31 
           alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1f50 class-ID: 0300 
           Device-2: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 1-9:4 chip-ID: REDACTED class-ID: REDACTED 
           Display: server: X.Org 1.20.11 compositor: gnome-shell driver: loaded: nvidia display-ID: :1 screens: 1 
           Screen-1: 0 s-res: 1920x1080 REDACTED
           Monitor-1: DP-4 res: 1920x1080 REDACTED
           OpenGL: renderer: NVIDIA GeForce RTX ***/PCIe/SSE2 v: 4.6.0 NVIDIA 465.31 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: CLEVO/KAPOK driver: snd_hda_intel v: kernel 
           alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: REDACTED class-ID: REDACTED
           Device-2: NVIDIA TU106 High Definition Audio vendor: REDACTED driver: snd_hda_intel v: kernel bus-ID: 01:00.1 
           chip-ID: REDACTED
           Sound Server-1: ALSA v: k5.12.12-zen1-1-zen running: yes 
           Sound Server-2: JACK v: 0.125.0 running: no 
           Sound Server-3: PulseAudio v: 14.2 running: no 
           Sound Server-4: PipeWire v: 0.3.30 running: yes 
Network:   Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: REDACTED
           IF: wlp0s20f3 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: REDACTED driver: r8169 v: kernel 
           port: 3000 bus-ID: 72:00.0 REDACTED
           IF: enp114s0 state: down mac: <filter> 
           IF-ID-1: docker0 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-2: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
           IF-ID-3: vethffde306 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-4: virbr0 state: down mac: <filter> 
           IF-ID-5: virbr1 state: up speed: 10 Mbps duplex: unknown mac: <filter> 
           IF-ID-6: virbr2 state: up speed: 10 Mbps duplex: unknown mac: <filter> 
           IF-ID-7: vnet0 state: unknown speed: 10 Mbps duplex: full mac: <filter> 
           IF-ID-8: vnet1 state: unknown speed: 10 Mbps duplex: full mac: <filter> 
           IF-ID-9: vnet2 state: unknown speed: 10 Mbps duplex: full mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth REDACTED type: USB driver: btusb v: 0.8 bus-ID: 1-14:5 
           chip-ID: REDACTED class-ID: REDACTED
           Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter> 
Drives:    Local Storage: total: 1.38 TiB used: 440.38 GiB (31.3%) 
           SMART Message: Required tool smartctl not installed. Check --recommends 
           ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Samsung model: REDACTED size: 476.94 GiB block-size: 
           physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> rev: BXV7000Q temp: 42 C 
           ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Western Digital model: REDACTED size: 465.76 GiB block-size: 
           physical: 512 B logical: 512 B speed: 15.8 Gb/s lanes: 2 rotation: SSD serial: <filter> rev: 201000WD temp: 52 C 
           scheme: GPT 
           ID-3: /dev/sda maj-min: 8:0 vendor: Western Digital model: REDACTED size: 465.76 GiB block-size: 
           physical: 4096 B logical: 512 B speed: 3.0 Gb/s rotation: 7200 rpm serial: <filter> rev: 1A01 
Partition: ID-1: / raw-size: 465.51 GiB size: 465.51 GiB (100.00%) used: 440.38 GiB (94.6%) fs: btrfs block-size: 4096 B 
           dev: /dev/dm-0 maj-min: 254:0 mapped: luks-REDACTED_UUID
           ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 682 KiB (0.3%) fs: vfat block-size: 512 B 
           dev: /dev/nvme1n1p1 maj-min: 259:1 
           ID-3: /home raw-size: 465.51 GiB size: 465.51 GiB (100.00%) used: 440.38 GiB (94.6%) fs: btrfs block-size: 4096 B 
           dev: /dev/dm-0 maj-min: 254:0 mapped: luks-REDACTED_UUID
           ID-4: /var/log raw-size: 465.51 GiB size: 465.51 GiB (100.00%) used: 440.38 GiB (94.6%) fs: btrfs 
           block-size: 4096 B dev: /dev/dm-0 maj-min: 254:0 mapped: luks-REDACTED_UUID
           ID-5: /var/tmp raw-size: 465.51 GiB size: 465.51 GiB (100.00%) used: 440.38 GiB (94.6%) fs: btrfs 
           block-size: 4096 B dev: /dev/dm-0 maj-min: 254:0 mapped: luks-REDACTED_UUID
Swap:      Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100) 
           ID-1: swap-1 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram0 
           ID-2: swap-2 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram1 
           ID-3: swap-3 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram2 
           ID-4: swap-4 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram3 
           ID-5: swap-5 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram4 
           ID-6: swap-6 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram5 
           ID-7: swap-7 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram6 
           ID-8: swap-8 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram7 
           ID-9: swap-9 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram8 
           ID-10: swap-10 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram9 
           ID-11: swap-11 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram10 
           ID-12: swap-12 type: zram size: 5.23 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram11 
Sensors:   System Temperatures: cpu: 82.0 C mobo: N/A gpu: nvidia temp: 51 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 445 Uptime: 1h 33m wakeups: 877 Memory: 62.72 GiB used: 14.84 GiB (23.7%) Init: systemd v: 248 
           tool: systemctl Compilers: gcc: 11.1.0 alt: 6 clang: 12.0.0 Packages: 1864 pacman: 1845 lib: 424 rpm: 0 flatpak: 15 
           snap: 4 Shell: Zsh (sudo) v: 5.8 running-in: guake inxi: 3.3.04

IDK, but wire-(less) keyboard?

1 Like

sry, should have specified: Laptop. edited/added. Note: The first time I ever experienced this (A few years ago), it was a desktop USB keyboard (A nice Ducky). I don't think it's keyboard dependent.

edit: Gonna chill for a few mins to lurk for replies before rebooting to test that line from the Arch thread. Depending on its "Mood," it could be a bit before it lets me boot up again hah.

Yeah, missing inxi -Faz :smiley:

1 Like

Edited/added. I like to redact a ton of it. Oooh gonna make that CLI tool if it doesn't exist / redact with a list of terms and regex to redact from output but I digress.

Try changing your password to strictly numbers to rule out some strange locale problem.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.