Black screen after resuming suspend or hibernate, can't do anything but reboot

Hello everyone,
When I’m entering into suspend or hibernate mode and resume,
a black screen shows up and the computer hangs, the only thing I could do regarding to this situation is to restart from the PC button,
so far I didn’t find any relevant information from journalctl,

Machine information:
Distribution: Fedora31 gnome
Kernel: Linux APC 5.5.6-201.fc31.x86_64 #1 SMP Mon Feb 24 20:24:13 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
GPU: AMD R9 380

dmesg --level=err,warn:

So far those are the things that I tried:
Expanding swap partition size as the physical RAM amount.
Performing: sudo dnf update

I added to the kernel GRUB_CMDLINE_LINUX those parameters:
mem_sleep_default=deep
amdgpu.dc=0
amd_iommu=off

So this how GRUB_CMDLINE_LINUX looks like:
GRUB_CMDLINE_LINUX=“resume=/dev/mapper/fedora_localhost–live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap nomodeset rhgb quiet mem_sleep_default=deep rhgb quiet amdgpu.dc=0 amd_iommu=off”

I applied everything with:
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
reboot

More commands/things that I tried:

modprobe amdgpu
modprobe: ERROR: could not insert ‘amdgpu’: Invalid argument

CTRL + ALT + F2

  • nothing happens

*I do have access to the machine with ssh when black screen happening

2 Likes

  Please post both the first line corresponding to your Graphics card, and the "Kernel driver..." lines too.  Maybe it's a radeon vs amdgpu driver issue.

lspci -v

PS:  dnf upgrade, as update is deprecated.

1 Like

I did dnf upgrade.

lspci -v

00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: hsw_uncore

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 24
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000e000-0000efff [size=4K]
Memory behind bridge: f7e00000-f7efffff [size=1M]
Prefetchable memory behind bridge: 00000000e0000000-00000000f01fffff [size=258M]
Capabilities: [88] Subsystem: ASUSTeK Computer Inc. Device 8534
Capabilities: [80] Power Management version 3
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [a0] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [140] Root Complex Link
Capabilities: [d94] Secondary PCI Express <?>
Kernel driver in use: pcieport

00:14.0 USB controller: Intel Corporation 9 Series Chipset Family USB xHCI Controller (prog-if 30 [XHCI])
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: bus master, medium devsel, latency 0, IRQ 28
Memory at f7f20000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
Kernel driver in use: xhci_hcd

00:16.0 Communication controller: Intel Corporation 9 Series Chipset Family ME Interface #1
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: bus master, fast devsel, latency 0, IRQ 30
Memory at f7f3a000 (64-bit, non-prefetchable) [size=16]
Capabilities: [50] Power Management version 3
Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: mei_me
Kernel modules: mei_me

00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (2) I218-V
DeviceName: Onboard LAN
Subsystem: ASUSTeK Computer Inc. Device 85c4
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at f7f00000 (32-bit, non-prefetchable) [size=128K]
Memory at f7f38000 (32-bit, non-prefetchable) [size=4K]
I/O ports at f040 [disabled] [size=32]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] PCI Advanced Features
Kernel driver in use: e1000e
Kernel modules: e1000e

00:1a.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2 (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: bus master, medium devsel, latency 0, IRQ 20
Memory at f7f37000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci-pci

00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller
Subsystem: ASUSTeK Computer Inc. Device 8602
Flags: bus master, fast devsel, latency 0, IRQ 31
Memory at f7f30000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 (rev d0) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 25
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: None
Memory behind bridge: None
Prefetchable memory behind bridge: None
Capabilities: [40] Express Root Port (Slot-), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 8534
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport

00:1c.7 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 8 (rev d0) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 26
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: None
Memory behind bridge: f7d00000-f7dfffff [size=1M]
Prefetchable memory behind bridge: None
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 8534
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #1 (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at f7f36000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci-pci

00:1f.0 ISA bridge: Intel Corporation Z97 Chipset LPC Controller
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich

00:1f.2 SATA controller: Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode] (prog-if 01 [AHCI 1.0])
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 27
I/O ports at f090 [size=8]
I/O ports at f080 [size=4]
I/O ports at f070 [size=8]
I/O ports at f060 [size=4]
I/O ports at f020 [size=32]
Memory at f7f35000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 9 Series Chipset Family SMBus Controller
Subsystem: ASUSTeK Computer Inc. Device 8534
Flags: medium devsel, IRQ 18
Memory at f7f34000 (64-bit, non-prefetchable) [size=256]
I/O ports at f000 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] (rev f1) (prog-if 00 [VGA controller])
Subsystem: PC Partner Limited / Sapphire Technology Radeon R9 380 Nitro 4G D5
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=2M]
I/O ports at e000 [size=256]
Memory at f7e00000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?> Capabilities: [50] Power Management version 3 Capabilities: [58] Express Legacy Endpoint, MSI 00 Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [200] Resizable BAR <?> Capabilities: [270] Secondary PCI Express <?>
Capabilities: [2b0] Address Translation Service (ATS)
Capabilities: [2c0] Page Request Interface (PRI)
Capabilities: [2d0] Process Address Space ID (PASID)
Capabilities: [328] Alternative Routing-ID Interpretation (ARI)
Kernel modules: amdgpu

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Tonga HDMI Audio [Radeon R9 285/380]
Subsystem: PC Partner Limited / Sapphire Technology Radeon R9 285/380 HDMI Audio
Flags: bus master, fast devsel, latency 0, IRQ 32
Memory at f7e60000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [48] Vendor Specific Information: Len=08 <?> Capabilities: [50] Power Management version 3 Capabilities: [58] Express Legacy Endpoint, MSI 00 Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [328] Alternative Routing-ID Interpretation (ARI)
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
Subsystem: Qualcomm Atheros Device 3118
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at f7d00000 (64-bit, non-prefetchable) [size=512K]
Expansion ROM at f7d80000 [disabled] [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
Kernel driver in use: ath9k
Kernel modules: ath9k

1 Like

I see you’re using kernel 5.5.6
Did you have this problem happen right away when you installed Fedora?, before update/upgrade?

I am asking because I have exactly the same thing - no resume after suspend - but only when running a new kernel, after an update/upgrade. If I select the old kernel 5.3.7 in GRUB during boot, things “mostly work”, sometimes I don’t get suspend when closing the lid, system stays ON, but when it does suspend, system resumes normally after opening lid and flicking the power button, no freeze

To avoid having to select the old kernel manually every time, this is what I did, might work for you or not:
rpm -qa \*kernel-core\*
gives me a list of kernels I have, like this:
kernel-core-5.3.7-301.fc31.x86_64
kernel-core-5.5.7-200.fc31.x86_64

Then, to remove the one I don’t want,
sudo dnf remove kernel-core-5.5.7-200.fc31.x86_64

From now on, the system will boot automatically to the old kernel

Of course this is not a solution , just a way to keep going until this problem gets solved.

While this could be graphic-card related, I feel the problem is elsewhere, as the system does behave one way with one kernel, another with another kernel, that “seeming” to be the only difference at least to me do far, and this situation has been reported by @major with and Nvidia, you with an AMD, myself with an Intel graphics card.

I’m curious about your ssh access you mention, that might help test things when they seem frozen, perhaps…

1 Like

Hello, I had the problem when I had a fresh install of fedora 31 (after format) and after upgrading all the system too, So the problem always was there.

rpm -qa *kernel-core*
kernel-core-5.3.7-301.fc31.x86_64
kernel-core-5.5.6-201.fc31.x86_64
kernel-core-5.5.7-200.fc31.x86_64

sudo dnf remove kernel-core-5.5.7-200.fc31.x86_64
Error:
Problem: The operation would result in removing the following protected packages: kernel-core
(try to add ‘–skip-broken’ to skip uninstallable packages)

sudo dnf remove kernel-core-5.5.7-200.fc31.x86_64 --skip-broken
Error:
Problem: The operation would result in removing the following protected packages: kernel-core