17

I have a Lenovo Thinkpad p14s (AMD), and I just freshly installed Ubuntu 20.04 on it. If I go into suspend and then wake my computer up, the screen with the clock appears, but I can't use the keyboard or mouse to get to the login screen to enter my password. FYI the thinkpad is also hooked up to an external monitor. Not sure if this is a bug so I decided to post here first. How can I prevent freezing on wake up from suspension?

Jorge Castro
  • 73,717
kjakeb
  • 283

5 Answers5

26

Have you changed the sleep setting in the BIOS? That worked for me (Ubuntu 20.04.02 LTS).

  1. Reboot.
  2. Press Enter at the "Lenovo" screen.
  3. Press F1 to enter the BIOS.
  4. Change "Config -> Power -> Sleep State" to "Linux".
  5. Press F10 to save and reboot.

Prior to this, the LED on the laptop lid stayed solid red when I suspended. Now it pulses slowly (which is what I'd expect from owning previous Thinkpads).

AEM
  • 1,156
  • 2
  • 14
  • 19
0

I have the same issue with a P14s I managed once to wake it up buy plugging in and out a HDMI adapter. I'm looking into the issue to

the syslog shows that the display topology failed

    Apr  9 22:02:35 mgs-p14 kernel: [ 3303.836035] thermal thermal_zone0: failed to read out thermal zone (-61)
Apr  9 22:02:35 mgs-p14 kernel: [ 3303.837703] PM: suspend exit
Apr  9 22:02:35 mgs-p14 systemd-sleep[11784]: System resumed.
Apr  9 22:02:35 mgs-p14 systemd[1]: systemd-suspend.service: Succeeded.
Apr  9 22:02:35 mgs-p14 systemd[1]: Finished Suspend.
Apr  9 22:02:35 mgs-p14 systemd[1]: Stopped target Sleep.
Apr  9 22:02:35 mgs-p14 systemd[1]: Reached target Suspend.
Apr  9 22:02:35 mgs-p14 systemd[1]: Stopped target Suspend.
Apr  9 22:02:35 mgs-p14 NetworkManager[812]: <info>  [1617998555.9717] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Apr  9 22:02:35 mgs-p14 NetworkManager[812]: <info>  [1617998555.9721] device (enp2s0f0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Apr  9 22:02:35 mgs-p14 kernel: [ 3303.876150] Generic FE-GE Realtek PHY r8169-200:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
Apr  9 22:02:35 mgs-p14 /usr/lib/gdm3/gdm-x-session[1958]: (II) AMDGPU(0): EDID vendor "LGD", prod id 1544

...

Apr  9 22:02:39 mgs-p14 wpa_supplicant[845]: wlp3s0: SME: Trying to authenticate with e4:ca:12:e3:3e:5f (SSID='MIWIFI_5G_dVgS' freq=5260 MHz)
Apr  9 22:02:39 mgs-p14 kernel: [ 3305.890829] [drm:mod_hdcp_add_display_topology [amdgpu]] *ERROR* Failed to add display topology, DTM TA is not initialized.
Apr  9 22:02:39 mgs-p14 kernel: [ 3306.964851] wlp3s0: authenticate with e4:ca:12:e3:3e:5f
Apr  9 22:02:39 mgs-p14 NetworkManager[812]: <info>  [1617998559.0741] device (wlp3s0): supplicant interface state: ready -> authenticating
Apr  9 22:02:39 mgs-p14 NetworkManager[812]: <info>  [1617998559.0742] device (p2p-dev-wlp3s0): supplicant management interface state: ready -> authenticating
Apr  9 22:02:39 mgs-p14 kernel: [ 3306.975649] wlp3s0: send auth to e4:ca:12:e3:3e:5f (try 1/3)
Apr  9 22:02:39 mgs-p14 kernel: [ 3307.002302] wlp3s0: authenticated

...

Apr  9 22:02:47 mgs-p14 dbus-daemon[1879]: [session uid=1000 pid=1879] Activating service name='org.gnome.Nautilus' requested by ':1.38' (uid=1000 pid=2162 comm="/usr/bin/gnome-shell " label="unconfined")
Apr  9 22:02:47 mgs-p14 dbus-daemon[1879]: [session uid=1000 pid=1879] Successfully activated service 'org.gnome.Nautilus'
Apr  9 22:02:48 mgs-p14 org.gnome.Nautilus[11968]: Failed to register: Unable to acquire bus name 'org.gnome.Nautilus'
Apr  9 22:02:48 mgs-p14 dbus-daemon[1879]: [session uid=1000 pid=1879] Successfully activated service 'org.freedesktop.FileManag
0

suspend from the command line seems to be OK.

sudo pm-suspend

I have a Lenovo T430 and it runs great except for suspend. Closing the lid or clicking "Suspend" from menu severely slows it down or completely locks it up when I try to wake it up. But the above command works perfectly.

Doug O
  • 1
0

for me, the opposite of the solution suggested by @richard-salsbury worked- my machine didn't wake from sleep in Ubuntu when the "Sleep State" state was in the "Linux S3" mode (which for some reason was the default for me), so I switched it to "Windows and Linux", and it worked! for reference, my system is:

  • Ubuntu 24.04
  • Lenovo ThinkPad X1 Carbon Gen 10
  • kernel version: 6.8.0-39-generic
0

While other recommendations (incl. disabling bluetooth, downgrading/upgrading kernels, intel-microcode, linux-firmware, disabling "Security chip", sleep state=Linux) didn't work for ThinkPad P14s (Intel) which suddenly started having resume problem after some recent updates, this fixed the problem for me:

sudo nano /etc/default/grub
# Possibly add to other pre-existing options
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=off"

Then reboot and try to suspend. Works like a charm for me.