Can't use keyboard or mouse on grub

Hello everyone,

I’m experiencing an issue where my keyboard and mouse don’t work until I reach the login screen. Once I get there, they work perfectly, allowing me to access my account. I’m using a 2.4GHz wireless connection for my keyboard, but even when I switch modes, it doesn’t solve the problem.

edit: my keyboard has different modes like wired, wireless (2.4 gHz) and bluetooth. I tried wireless and wired.

Additionally, when I try to increase the timeout in the GRUB menu, the changes don’t seem to apply. I receive the error message: sudo: unable to allocate pty: No space left on device, even though I still have plenty of storage available.

I also tried a different keyboard also wired and wireless, but it didn’t work.

Any insights on how to fix this would be greatly appreciated. Thanks!

EDIT: I used a wired keyboard (only wired) and I can’t navigate the GRUB menu.
inxi

System:
  Kernel: 6.6.47-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=8e0e212d-3399-41b6-9b0f-83f4032ed28f rw quiet splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 6.0.5 tk: Qt v: N/A info: frameworks v: 6.5.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: B450M DS3H v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: B450M DS3H-CF serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends LLC. v: F64
    date: 06/08/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech G304 Lightspeed Wireless Gaming
    Mouse serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  System RAM: total: 20 GiB available: 19.45 GiB used: 3.81 GiB (19.6%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 128 GiB slots: 4 modules: 3 EC: None
    max-module-size: 32 GiB note: est.
  Device-1: Channel-A DIMM 0 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 4 GiB speed: 3000 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: G.Skill
    part-no: F4-3600C17-4GTZ serial: N/A
  Device-2: Channel-A DIMM 1 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 8 GiB speed: 3000 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: Corsair
    part-no: CMW16GX4M2D3600C18 serial: N/A
  Device-3: Channel-B DIMM 0 type: no module installed
  Device-4: Channel-B DIMM 1 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 8 GiB speed: 3000 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: Corsair
    part-no: CMW16GX4M2D3600C18 serial: N/A
CPU:
  Info: model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen+ gen: 1+
    level: v3 note: check built: 2018-21 process: GF 12nm family: 0x17 (23)
    model-id: 8 stepping: 2 microcode: 0x800820D
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 6 threads: 12 tpc: 2
    smt: enabled cache: L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB
    desc: 6x512 KiB L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 2800 min/max: 1550/3200 boost: enabled scaling:
    driver: acpi-cpufreq governor: schedutil cores: 1: 2800 2: 2800 3: 2800
    4: 2800 5: 2800 6: 2800 7: 2800 8: 2800 9: 2800 10: 2800 11: 2800 12: 2800
    bogomips: 76688
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb
    cpuid cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c
    flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf
    lahf_lm lbrv lm mca mce misalignsse mmx mmxext monitor movbe msr mtrr
    mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat
    pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdrand rdseed rdtscp rep_good
    sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2
    sse4a ssse3 succor svm svm_lock syscall tce topoext tsc tsc_scale
    v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt xgetbv1 xsave xsavec
    xsaveerptr xsaveopt
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT vulnerable
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; STIBP:
    disabled; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA106 [GeForce RTX 3060] vendor: Gigabyte driver: nvidia
    v: 550.107.02 alternate: nouveau,nvidia_drm non-free: 550.xx+ status: current
    (as of 2024-09; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 2 speed: 5 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 07:00.0
    chip-ID: 10de:2503 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.2
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 108 s-size: 602x342mm (23.70x13.46")
    s-diag: 692mm (27.26")
  Monitor-1: Unknown-1 mapped: DP-0 res: 2560x1440 dpi: 109
    size: 597x336mm (23.5x13.23") modes: 1024x768
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: swrast gbm: drv: kms_swrast surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.107.02
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
    memory: 11.72 GiB
  API: Vulkan v: 1.3.279 layers: 11 device: 0 type: discrete-gpu
    name: NVIDIA GeForce RTX 3060 driver: nvidia v: 550.107.02
    device-ID: 10de:2503 surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA GA106 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 07:00.1 chip-ID: 10de:228e
    class-ID: 0403
  Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 09:00.3 chip-ID: 1022:1457 class-ID: 0403
  API: ALSA v: k6.6.47-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.2.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 05:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: NetworkManager
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.26 TiB used: 437.67 GiB (18.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 2B4QFXO7 temp: 39.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37480G
    size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 0102 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT1000BX500SSD1
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 061 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 931.51 GiB size: 915.82 GiB (98.32%)
    used: 437.67 GiB (47.8%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:1
    label: N/A uuid: 8e0e212d-3399-41b6-9b0f-83f4032ed28f
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 447.13 GiB fs: ntfs label: N/A
    uuid: 0A1836E558CB39BF
  ID-2: /dev/sdb1 maj-min: 8:17 size: 100 MiB fs: vfat label: N/A
    uuid: 0002-DBC1
  ID-3: /dev/sdb2 maj-min: 8:18 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-4: /dev/sdb3 maj-min: 8:19 size: 930.74 GiB fs: ntfs label: N/A
    uuid: 820A0B7A0A0B6A8D
  ID-5: /dev/sdb4 maj-min: 8:20 size: 674 MiB fs: ntfs label: N/A
    uuid: 38228E8F228E51B4
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 10 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-3:2 info: Apple Aluminium Keyboard (ANSI) type: keyboard,HID
    driver: apple,usbhid interfaces: 3 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 05ac:024f class-ID: 0300
  Device-2: 1-4:3 info: Logitech USB Receiver type: keyboard,mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
    chip-ID: 046d:c53f class-ID: 0300
  Device-3: 1-8:10 info: 8BitDo Ultimate Wireless Controller type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 500mA chip-ID: 2dc8:3109 class-ID: 0300
    serial: <filter>
  Hub-2: 2-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: super-speed hub ports: 4 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 50.2 C mobo: 37.0 C gpu: nvidia temp: 50 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Processes: 300 Power: uptime: 56m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 7.77 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
    tool: systemctl
  Packages: 1639 pm: pacman pkgs: 1612 libs: 447 tools: pamac,yay pm: flatpak
    pkgs: 24 pm: snap pkgs: 3 Compilers: gcc: 14.2.1 Shell: Zsh v: 5.9
    default: Bash v: 5.2.32 running-in: konsole inxi: 3.3.36

So you mean all of your input devices are wireless?

If none of these are more standard components then it could be up to your BIOS whether something like radio devices are enabled.

Even for a usb keyboard you might need the keyboard HOOK in mkinitcpio.conf or the MODULES usbhid xhci_hcd for using a USB3 hub.

https://wiki.archlinux.org/title/Mkinitcpio

1 Like

Make sure you didn’t enable Fast Boot in BIOS as it will skip enumerating/initializing most devices on boot to go faster, and your Keyboard might (will) not work.

2 Likes

but how should I change it? because I can’t access the bios anymore.
I should add that prior to this (like 2 or 3 months ago it worked fine)

Part of the mkinitcpio.conf file :

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(usbhid xhci_hcd)
MODULES=(usbhid xhci_hcd)

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No RAID, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect modconf block filesystems fsck)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev modconf block filesystems fsck)
#
##   This setup assembles a mdadm array with an encrypted root file system.
##   Note: See 'mkinitcpio -H mdadm_udev' for more information on RAID devices.
#    HOOKS=(base udev modconf keyboard keymap consolefont block mdadm_udev encrypt filesystems fsck)
#
##   This setup loads an lvm2 volume group.
#    HOOKS=(base udev modconf block lvm2 filesystems fsck)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr and fsck hooks.
HOOKS=(base udev autodetect modconf kms block keyboard keymap consolefont plymouth filesystems fsck)

so the keyboard hook and the usbhid xhci_hcd MODULE are in there , but it still wouldn’t allow me to use my wireless OR wired keyboard for it.
I also tried to change the timeout for the grub to 15 seconds, but when saving ctrl + o and exiting ctrl + x I try to update the grub with sudo update-grub it does not work I have no idea why.

Meaning it worked before? You could access the BIOS before? I can’t know how to access your BIOS. Refer to the manual. Basically flood the DELETE key on boot on most motherboards.

Again, prior to what? What did you do between when your keyboard worked before boot, and now it doesn’t work before boot? Did you change settings in the BIOS and now you can’t have a working keyboard before reaching the Desktop?

In KDE System Settings go to Session, Desktop Session, and check the box, and apply/reboot:

You should reboot into BIOS, after that. Disable Fast Boot if it is enabled, save, and reboot.

On a side note, one of the DIMM is missing, disconnected, or fried. Or maybe you built it like that, with one 4GB RAM stick, and two 8GB RAM sticks. Also you have no SWAP, this leads to system freezing once you fill up your RAM, follow the WIKI and create a SWAP file if you want to fix that mistake.

thanks for your reply and help.

I will clarify the things you mention.
I never changed something in my bios except the ram speed and, if i remember correctly, change to uefi (not sure about that). So fast boot could be on or off I don’t know, but I know I never touched this setting.

Sometimes I switch to windows for school purposes. So before this problem occurred I was switching without a problem between windows and manjaro in the grub menu (earlier I did that from the bios). I don’t know why it stopped working or what I did. I am not the guy that tinkers things if they work.

I changed nothing in my bios since I installed manjaro on it.

For the DIMM issue my ram stick died a while ago never knew about swapfiles. I will try and work it out. Thanks!

Thanks it works never knew that I could access BIOS like this.

So? Did you check if Fast Boot is enabled?

//EDIT: I guess it was, as you selected the Solution

So this is why I have to NEVER trust people when they say something. You were sure you did nothing, but you obviously did :slight_smile:

yep you were right fast boot was on, but this does not explain why it worked for a year without an issue (I had issues, but not related to my keyboard not working in grub).

I still maintain that I NEVER touched fast boot, I didn’t even know this thing existed (I assume it was on by default). You seem to make your own conclusions without having the full picture (I do it too so it’s all good). I downloaded manjaro way after I build my pc. I changed the ram speed and the uefi thing when I only had windows.

But hey, thanks for your help and have a nice day omano.

The most logical explanation is you do not remember changing this setting. Enabling it disables USB enumeration/initialization on boot. If it was enabled before, your keyboard should not have worked, and I do not see how a BIOS settings enables itself magically. I have basically the same motherboard I know how it behaves with or without Fast Boot.

1 Like

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