5

I really love Linux and I'm trying to make the switch to Linux-only, however there is one problem that's driving me nuts. If I try to wake my PC after suspending it, 9/10 times it will just restart. This always happens when the computer is sleeping for more than 2 hours. I tried a ton of stuff I found on the internet (increasing swap file size, setting grub settings, doing stuff with gnome), to no avail. The hardware supports suspend according to pm-suspend check output. I've typed in so many random commands I kinda lost track of what I'm doing, so if someone could help, much appreciated!

Ubuntu is installed as dual boot with windows on a separate 500GB ssd drive. PC specs:

  • Ryzen 1600
  • 32 GB ram
  • Radeon RX580
  • Ubuntu version 20.04.2 LTS
  • Kernel version: 5.8.0-50

Edit: forgot to mention my swap partition (according to free) is 39 GB.

1 Answer 1

4

I seem to have figured it out on my own. After browsing trough tons of bug reports, I found out it is probably caused by a crashing XORG-server. It does not restart the pc, it just logs out. The bug fix posted in this bug report solved it: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1760450

Fix that solved it for me:

Change the line in /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet scsi_mod.scan=sync"

and then re-run update-grub.

I left my pc suspended over the night and it didn't close all my programs in the morning, so it seems to be fixed.

1
  • 2
    If you figured out this fix and you're new to linux, stick with it, you clearly have the right attitude and ability to run linux well. Commented May 10, 2021 at 7:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.