Keyboard unresponsive after resume from suspend (lid close)

Ubuntu Version:
24.04.2 LTS

Desktop Environment (if applicable):
GNOME

Problem Description:
After locking and closing the lid of my laptop, or even just closing the lid without locking, the laptop suspends as expected. However, after reopening the lid, the login screen appears but I cannot use the keyboard at all. It’s completely unresponsive.

Relevant System Information:

  • CPU: AMD Ryzen 5 7430U with Radeon Graphics
  • Fresh install of Ubuntu 24.04.2 LTS
  • All packages are up-to-date

Temporary Solution:
The only way to use the keyboard again is to force a shutdown by holding the power button and rebooting the system. This causes me to lose all unsaved work and any open applications, so it’s not ideal.

What I’ve Tried So Far:
Ran sudo apt update && sudo apt upgrade to ensure that the system is fully updated

Additional notes:

  • Touchpad/mouse still works
  • This is my first time using Linux with a Desktop Environment (I’ve only used Ubuntu via WSL before)

Any ideas or help would be appreciated!

1 Like

The above action can cause filesystem damage and you may need to run fsck from a live session. Therefore, temporarily, I would suggest that you avoid suspend.

A bit of guesswork follows:-

  • Can you have a look at your UEFI settings to check that suspend is enabled?
    ACPI Sleep State [S3 Suspend to RAM] or similar text

  • Perhaps try the terminal command
    sudo systemctl suspend

  • It’s worth mentioning the make and model of your laptop, other users with similar PCs may have more solid info.

I checked my UEFI settings, but I couldn’t find any option related to ACPI sleep states or anything similar related to suspend behavior. It seems like there’s no configurable setting for this on my system.

I also tried running sudo systemctl suspend and unfortunately, the result is the same.
After waking the laptop, I still can’t use the keyboard, it remains unresponsive until I (again) do a forced shutdown and reboot.

For reference, here’s the make and model of my laptop:

  • Make: Lenovo
  • Model: Ideapad Slim 3 16ABR8

Yes, it’s often the case when vendors supply stripped down UEFI firmware.
I have a Lenovo Ideapad 2021 Intel model with Xubuntu 24.04 and the keyboard is available after suspend.

Have a look at Lenovo forums to see if the problem is discussed.
If this is a recent purchase, perhaps, contact your supplier or Lenovo direct?

I must be missing something here but if those are working why the hard shutdown after waking from an unlocked suspend?Can’t you just use the mouse to save your work and then click on the power button icon and do a normal shutdown/restart?

And if locking and suspending upon waking have you tried using an onscreen keyboard to unlock?I believe Onboard is preinstalled,at least is in Mate.

Granted these don’t solve the physical keyboard issue but it’ll save you from having to do a hard shutdown/restart and possibly corrupting your system.Again unless I’m missing something in your wording this is an acceptable workaround until you can figure out your keyboard issue.

Does the system have a make and model?
Do you have the latest BIOS?

Thanks again! I checked a few threads on the Lenovo forums and found some useful info:

  • In this thread, users with similar models report the same issue, keyboard not working after suspend. One workaround mentioned is adding the kernel parameter i8042.nopnp, which seems to partially restore keyboard functionality (though FN keys may still be broken after wake).
  • On other threads and Yoga models, people have had success after BIOS updates, sometimes even using beta firmware to fix suspend or ACPI related issues.

My system is a Lenovo Ideapad Slim 3 16ABR8.
I’ll have a look into contacting Lenovo directly about this issue as well. Appreciate your help!

Thanks for the suggestions, but I think there’s some confusion about the exact situation I’m encountering. Let me clarify:

I’m already logged into my account and working inside a session. When I lock the screen using SUPER + L and then close the laptop lid, or even just close the lid without locking, the laptop goes into suspend mode.

I can tell it’s suspended because:

  • The mouse (connected via USB) loses power, the LED turns off
  • The laptop fans stop spinning
  • The screen turns off completely

When I reopen the lid:

  • Power comes back, the mouse LED lights up again
  • Fans start spinning
  • The display wakes and brings me to the default Ubuntu login screen

At this point, I’m able to see the time and the login prompt, but my keyboard is completely unresponsive, and I can’t type anything. I’ve also noticed that:

  • No accessibility settings or icons are shown in the top-right corner
  • On-screen keyboard (even if I pre-configure a shortcut in Settings) does not show up (even after running the set shortcut)
  • Both mouse and touchpad both still work, but I can’t do much with it at the login screen

It feels like this login screen is a fallback/default version, similar to what you’d see after a fresh Ubuntu install or booting into a Live USB environment, where things like display layout, mouse sensitivity, and accessibility features haven’t applied yet. (My external monitors are also arranged incorrectly when in this login screen, stacked vertically, but now shown sideways again.)

Additional notes:

  • Desktop: GNOME
  • Window manager: Wayland
  • I do have a few GNOME User-Installed Shell Extensions enabled:
    • Blur My Shell
    • Burn My Windows
    • Caffeine
    • Dash To Dock
  • As well as System Extensions (these were enabled by default):
    • Desktop Icons NG (DING)
    • Ubuntu AppIndicators
    • Ubuntu Dock
    • Ubuntu Tiling Assistant

That definitely clarifies a few things!

Hopefully you get all this worked out sooner than later.

Thanks for your reply!
My system is a Lenovo Ideapad Slim 3 16ABR8 (Ryzen 5 7430U).

I’m not sure how to update, or check the current version of, the BIOS from within Linux, I used to get BIOS update notifications through Lenovo software pre-installed like “Lenovo Vantage” on Windows, but I no longer have Windows installed.

Additional note:
An external keyboard does work after resuming from suspend, so the system itself is responsive, only the internal keyboard stops working.

usually
sudo dmidecode -t 1
shows the version. You can check manufacturers website if it’s the latest

Apologies for the late response. I checked using sudo dmidecode -t 1, and it seems my BIOS version is slightly behind the one listed on Lenovo’s support page, only by about a month or so

I doubt a BIOS update will fix this issue though, as it still persists. For now, I’ve been avoiding suspend entirely by shutting down the system if I know I won’t be using it for a while. Thanks again for your help

This topic was automatically closed after 30 days. New replies are no longer allowed.