9 votes

PC Wakes Up Immediately After Suspend

I just purchased a new computer, and suspend worked fine when I had it in my office connected to my monitor, but when I moved it to my front room and connected it to my TV, it started exhibiting this ...
randyman99's user avatar
3 votes

Ubuntu 23.04 suspention or sleep doesn't wake up after power again the system or can not login(and still not working)

The output of journalctl --grep='sleep|suspend|resume' --no-pager --since='-1day' tells you that your system power saving mode is in S0: kernel: Low-power S0 idle used by default for system suspend ...
Raffa's user avatar
  • 32.4k
3 votes
Accepted

How to change /sys/power/mem_sleep? Nothing is able to change it and all advice so far seems to be wrong?

(OP addition): First make sure your BIOS->config->power-sleep state is correct (or whatever it is called). It should be set to Linux. Default is probably windows. Not having this set properly ...
Doug Smythies's user avatar
2 votes

Suspend problem with Ubuntu 22.04

Here from googling for the fix after a reinstall and finding this ask live this round. This is likely the "Gigabyte B550 family boards do not come out of suspend on linux" GPP0/GPP8 bug that ...
NireBryce's user avatar
2 votes

"failed to enable link training" when resuming from suspend

When resuming from suspend, I frequently receive a black screen which only contains this error: i915 0000:00:02.0: [drm] *ERROR* failed to enable link training This issue is a bit odd because most of ...
Gabriel Staples's user avatar
2 votes

How do I prevent mouse movement from waking up a suspended computer?

It is possible to use udev rules to set the wakeup setting automatically. For example, I create a new udev rule in /etc/udev/rules.d/99-nowakeup.rules: ACTION=="add", SUBSYSTEM=="pci|...
EBADBEEF's user avatar
2 votes

Ubuntu server 22.04 suspend issues

How to investigate? You need to see what's going on behind the scenes in your system while it's suspending/sleeping ... You can start by inspecting related system messages using journalctl like so: ...
Raffa's user avatar
  • 32.4k
2 votes

How to check, if HDD is in sleep mode?

sudo hdparm -C DEVICE will do it e.g. sudo hdparm -C /dev/sdd1 dev/sdd1: drive state is: active/idle or for a sleeping device it will return: drive state is: standby Also see the smartctl command ...
codlord's user avatar
  • 2,516
2 votes
Accepted

Ubuntu 22.04 : Laptop don't wake up after suspend

In your output of journalctl --grep='sleep|suspend|resume' --no-pager --since='-1day': kernel: BIOS may not properly restore RDRAND after suspend, hiding RDRAND via CPUID. Use rdrand=force to ...
Raffa's user avatar
  • 32.4k
2 votes

Ubuntu 23.10, return from sleep/suspend problems

Find out what's going on by looking at the system's log messages. First step is to put a pin in the timestream with date '+%y-%m-%d %H:%M:%S' >pin.tmp Then, do your suspend thing. When your system ...
waltinator's user avatar
  • 36.5k
1 vote

Ubuntu 23.04 logs me out arbitrarily while going to sleep mode

Open Settings -> Privacy -> Screen and disable Automatic Screen Lock. Read more at https://help.ubuntu.com/stable/ubuntu-help/privacy-screen-lock.html
sotirov's user avatar
  • 3,199
1 vote

Why does sleep mode revert to s2idle when I set it to deep?

You can make the change permanent as per these instructions: Edit your grub configuration: sudo nano /etc/default/grub Replace GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" with ...
Roald's user avatar
  • 291
1 vote

Non-boot CPUs are not disabled( seems there is a bug in "6.2.0-26-generic" kernel)

I made my life easier by deleting the last kernel using following commands: sudo apt-get purge linux-image-6.2.0-26-generic sudo apt-get purge linux-headers-6.2.0-26-generic Now I am using my ...
best_of_man's user avatar
1 vote

Ubuntu 23.04 suspention or sleep doesn't wake up after power again the system or can not login(and still not working)

Just an idea: Maybe the OP should try disabling the GPU's ULPS (Ultra-low power state) feature also marketed as "AMD ZeroCore Power" technology*. The screen staying black after some sort of ...
Fragmentraumer's user avatar
1 vote
Accepted

Thinkpad on Ubuntu 22.04 doesn't wake up from suspend

Very good problem description from your side. Helped me to fix my problem. I confirmed that I tried all the ideas you mentioned. Then I came across a bug report on launchpad. I also have/had this ...
anamyk's user avatar
  • 26
1 vote

Ubuntu 22.04 jammy run script on resume

It's /lib/systemd/system-sleep/ and not "/lib/systemd/systemd-sleep" ... Your scriptfile's contents can look like this: #!/bin/sh # "/lib/systemd/system-sleep/" template script ...
Raffa's user avatar
  • 32.4k
1 vote

Ubuntu 20.04, 22.04, 23.04 Laptop freezes after suspend

I have the same problem only with Ubuntu 23.04, both on my laptop and PC. Ubuntu, Kubuntu, Tuxedo OS2, and any other Ubuntu-based Linux that is using 23.04. Not only from Suspend but even when turning ...
Bob Mavric's user avatar
1 vote

How do I make changes to /proc/acpi/wakeup permanent?

Based on @Hrishikesh Kadam's answer, but with more details and some improvements. 🤗 Disable the computer from waking up using the keyboard, mouse and others List devices that can wakeup the system ...
Eduardo Lucio's user avatar
1 vote

What is the difference between Hibernate and Suspend

This is a very old thread, and although it is not asking for how to do either suspend or hibernate, I think it is one of the reasons some people land in this question. At the time of writing (August ...
PavoDive's user avatar
  • 191
1 vote

Touchpad stopped working after suspend/sleep

The above didnt work for me (I have a thinkpad l440). If you look in dmesg you will probably see some rmi errors (looks like a kernel bug with IRQ reading). Do this to fix the touchpad after resume: ...
thinkpadlover's user avatar
1 vote

Ubuntu 20.04 doesn't wake up after suspend

nvidia-driver-510(propriertary) worked for me.
Syed Kazmi's user avatar
1 vote

Download aborted when computer went to sleep

Sleeping will interrupt downloads across pretty much all operating systems. You will need to keep the computer awake during downloads. You can do this manually, but I made myself a little script, ...
dogyX3 Fake's user avatar
1 vote
Accepted

How to tell in a shell script whether this script is continued after suspend?

First and foremost, let's note that sleep does not take suspended time into account. For example, if you execute the command sleep 5m, then suspend the computer, then 4 minutes later wake it up, then ...
egmont's user avatar
  • 8,335
1 vote

How to tell in a shell script whether this script is continued after suspend?

One way Last resume time should be available via systemd journal system with something like: journalctl -r | awk '/resume/ {print $0; exit}' Therefore, you can assign the timestamp in short-iso ...
Raffa's user avatar
  • 32.4k
1 vote

AMD Ryzen 4700U Processor and AMD Radeon Graphics Machine Failing to Resume After Suspend on Ubuntu 22.10

Thank you everyone for your comments. This turned out to be a bug with the Linux kernel version I was using, I upgraded to 6.2.0 and I no longer see this issue.
Daniel Garcia Lopez's user avatar
1 vote

Quick Battery Drain in Suspend Mode

sudo vi /sys/power/mem_sleep Open the file with a super user account and edit and save: s2idle [deep] It should sleep in S3 sleep when you exexute systemctl suspend or equivalent to it. Linux system ...
Sadaharu Wakisaka's user avatar
1 vote

Ubuntu 22.04 won't wake up from sleep

Dell XPS 9550 in Ubuntu 22.04 I tried next steps: added mem_sleep_default=deep to GRUB_CMDLINE_LINUX_DEFAULT (/etc/default/grub) - didn't help added WaylandEnable=false in /etc/gdm3/custom.conf (...
beatt's user avatar
  • 11
1 vote

Ubuntu 22.04.1: How to automatically reset USB connections upon wake?

2 years and 3 months after asking, I think I finally got it working! 🎉 Thanks so much to @Raffa, @Oratorium, and @emk2203 for the guidance. mkdir ~/code/ubuntu_tools touch ~/code/ubuntu_tools/...
Ryan's user avatar
  • 399
1 vote

Thinkpad T14 Gen 3 Intel on Ubuntu - sleep mode issue

I solved it by updating the BIOS ! Answer moved here from OP's question.
1 vote

Ubuntu 22.04.1 Rebooting after switch to sleep mode

I had the same problem and tried a lot of things (editing the logind.conf etc.). A complete shutdown (instead of reboot) solved my problem.
gattler's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible