Black screen after wake up from sleep/hibernate

Hello Garuda users.
i am facing a problem … whenever my computer wake-up form sleep / add also hibernate it get freeze in sddm login screen.
then i turned on automatic login after sleep. but still i am getting sucked in a black screen with cursor.

i have tried those following … but they doesn’t worked for me…(specially the first one i think might be reliable).

#System gives black screen after going to sleep for 3 times

#No login screen on wake from sleep after recent updates

#Distorted Graphics after waking up from Sleep mode

in arch-wiki i found that … and i thing it might be the reason of happening this… because i have to set the hibernate after installing (not selecting at the time of installing)…
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Troubleshooting

Suspend/hibernate does not work, or does not work consistently

Sometimes the screen goes black due to device initialization from within the initramfs. Removing any modules you might have in Mkinitcpio#MODULES and rebuilding the initramfs, can possibly solve this issue, specially graphics drivers for early KMS. Initializing such devices before resuming can cause inconsistencies that prevents the system resuming from hibernation. This does not affect resuming from RAM. Also, check the blog article best practices to debug suspend issues.

Removing any modules you might have in Mkinitcpio#MODULES an`d rebuilding the initramfs, can possibly solve this issue, specially graphics drivers for early KMS …but which to remove i can’t understand…which causing problem …even i don’t have kms hook enabled…
.

here is my /etc/mkinitcpio.conf hook line…

HOOKS="base udev autodetect modconf block resume keyboard keymap consolefont plymouth filesystems grub-btrfs-overlayfs 

and my garuda inxi…

╰─λ garuda-inxi
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_ADDRESS = "en_IN",
LC_NAME = "en_IN",
LC_MONETARY = "en_IN",
LC_PAPER = "en_IN",
LC_IDENTIFICATION = "en_IN",
LC_TELEPHONE = "en_IN",
LC_MEASUREMENT = "en_IN",
LC_TIME = "en_IN",
LC_NUMERIC = "en_IN",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
System:
Kernel: 6.2.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=c19fafa2-a09f-4395-9c2d-19b3ee84c467 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 resume=/dev/sda2 ibt=off
Desktop: KDE Plasma v: 5.27.2 tk: Qt v: 5.15.8 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Gigabyte product: H110M-S2 v: N/A
serial: <superuser required>
Mobo: Gigabyte model: H110M-S2-CF v: x.x serial: <superuser required>
UEFI: American Megatrends v: F21 date: 06/09/2017
CPU:
Info: model: Intel Core i3-6100 bits: 64 type: MT MCP arch: Skylake-S
gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
model-id: 0x5E (94) stepping: 3 microcode: 0xF0
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
L3: 3 MiB desc: 1x3 MiB
Speed (MHz): avg: 800 min/max: 800/3700 scaling: driver: intel_pstate
governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 bogomips: 29598
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GT218 [GeForce G210] driver: nouveau v: kernel non-free:
series: 340.xx status: legacy (EOL) last: release: 340.108 kernel: 5.4
xorg: 1.20 arch: Tesla process: 40-80nm built: 2006-13 pcie: gen: 1
speed: 2.5 GT/s lanes: 16 ports: active: VGA-1 empty: DVI-I-1,HDMI-A-1
bus-ID: 01:00.0 chip-ID: 10de:0a60 class-ID: 0300 temp: 47.0 C
Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
compositor: kwin_x11 driver: X: loaded: nouveau unloaded: modesetting
alternate: fbdev,nv,vesa dri: nouveau gpu: nouveau display-ID: :0
screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: VGA-1 model: LG (GoldStar) HD serial: <filter> built: 2017
res: 1366x768 hz: 60 dpi: 85 gamma: 1.2 size: 410x230mm (16.14x9.06")
diag: 470mm (18.5") ratio: 16:9 modes: max: 1366x768 min: 720x400
API: OpenGL v: 3.3 Mesa 22.3.6 renderer: NVA8 direct-render: Yes
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
chip-ID: 8086:a170 class-ID: 0403
Device-2: NVIDIA High Definition Audio driver: snd_hda_intel v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0be3
class-ID: 0403
Sound API: ALSA v: k6.2.2-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.66 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: d000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 1.13 TiB used: 36.26 GiB (3.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT240BX500SSD1
size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 056 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD10EZEX-60WN4A0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
rev: 1A01 scheme: MBR
Partition:
ID-1: / raw-size: 64.52 GiB size: 64.52 GiB (100.00%)
used: 16.48 GiB (25.5%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
ID-2: /boot/efi raw-size: 600 MiB size: 598.8 MiB (99.80%)
used: 608 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 125.51 GiB size: 125.51 GiB (100.00%)
used: 19.77 GiB (15.8%) fs: btrfs dev: /dev/sda4 maj-min: 8:4
ID-4: /var/log raw-size: 64.52 GiB size: 64.52 GiB (100.00%)
used: 16.48 GiB (25.5%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
ID-5: /var/tmp raw-size: 64.52 GiB size: 64.52 GiB (100.00%)
used: 16.48 GiB (25.5%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.71 GiB used: 734.5 MiB (9.3%)
priority: 100 dev: /dev/zram0
ID-2: swap-2 type: partition size: 8.79 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sda2 maj-min: 8:2
Sensors:
System Temperatures: cpu: 41.0 C mobo: N/A gpu: nouveau temp: 48.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 217 Uptime: 36m wakeups: 0 Memory: 7.71 GiB
used: 3.51 GiB (45.5%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1414
libs: 366 tools: octopi,pamac,paru Shell: fish v: 3.6.0 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.25
Garuda (2.6.15-1):
System install date:     2023-03-04
Last full system update: 2023-03-05
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:

Your BIOS is dated 2017. Is there a more recent one available?

4 Likes

no .. my pc is old enough

If you turn your computer to sleep after 30min or more it will be some like glitch or distortion graphics and then get blank screen and then mouse were show this phenomenon is called Nvidia graphics break down, when you use open source driver like AMD or integrated graphics, this problem will not come.

SOLUTION:

  1. Press ctrl + alt + f2 or f3 (whatever you want but not f1)

  2. Log in your user account and password

3.type: $ loginctl unlock-sessions

  1. Type your password and then press ctrl + alt +f1

I can login .... Because I disable the login screen after wake up form sleep..... But still display is black with cursor ...

One thing to say,. This is only happening in case of ZEN kernel .... When I switch to LTS kernel everything works fine

What to do?:slightly_smiling_face:

Looks like some issue with the kernel graphics driver then, use the LTS kernel and wait a few updates of the mainline kernel and then try to switch again.

2 Likes

ok :slightly_smiling_face:

It is not uncommon for Arch & Arch-based Linux users to have more than one kernel installed. I typically have three:

  1. linux
  2. linux-lts
  3. linux-zen

And their headers. Just FYI two months ago the Zen kernel was problemmatic on my desktop machine. Today it works just fine. Who knows? :man_shrugging:

5 Likes

this occurs on my pc recent weeks. have to reboot and all my tasks are being terminated.

hate this!!! could not find any solution for days.

garuda-inxi :

System:
Kernel: 6.1.19-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
root=UUID=b9a63755-06cc-46d3-a3a0-84752c0237dd rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.3 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Acer product: Nitro AN515-44 v: V1.04
serial: <superuser required>
Mobo: RO model: Stonic_RNS v: V1.04 serial: <superuser required>
UEFI: Insyde v: 1.04 date: 02/04/2021
Battery:
ID-1: BAT1 charge: 41.7 Wh (77.7%) condition: 53.7/58.8 Wh (91.4%)
volts: 16.3 min: 15.4 model: SMP AP18E7M type: Li-ion serial: <filter>
status: not charging
CPU:
Info: model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22
process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x60 (96) stepping: 1
microcode: 0x8600103
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
desc: 2x4 MiB
Speed (MHz): avg: 2299 high: 2900 min/max: 1400/2900 boost: disabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 2018 2: 2894
3: 2513 4: 2895 5: 2092 6: 2900 7: 1294 8: 2900 9: 2900 10: 2900 11: 1456
12: 2900 13: 1340 14: 2900 15: 1472 16: 1413 bogomips: 92686
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 525.89.02
alternate: nouveau,nvidia_drm non-free: 525.xx+
status: current (as of 2023-02) arch: Turing code: TUxxx
process: TSMC 12nm FF built: 2018-22 pcie: gen: 1 speed: 2.5 GT/s lanes: 8
link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:1f95 class-ID: 0300
Device-2: AMD Renoir vendor: Acer Incorporated ALI driver: amdgpu
v: kernel arch: GCN-5 code: Vega process: GF 14nm built: 2017-20 pcie:
gen: 4 speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: none
bus-ID: 05:00.0 chip-ID: 1002:1636 class-ID: 0300 temp: 35.0 C
Device-3: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 3-3:3
chip-ID: 0408:a061 class-ID: 0e02
Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
compositor: kwin_x11 driver: X: loaded: amdgpu,nvidia
unloaded: modesetting,nouveau alternate: fbdev,nv,vesa dri: radeonsi
gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 mapped: eDP model: Najing CEC Panda 0x004d built: 2019
res: 1920x1080 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64")
diag: 395mm (15.5") ratio: 16:9 modes: max: 1920x1080 min: 640x480
API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Graphics (renoir LLVM
15.0.7 DRM 3.49 6.1.19-1-lts) direct-render: Yes
Audio:
Device-1: NVIDIA vendor: Acer Incorporated ALI driver: snd_hda_intel
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 3
speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor
vendor: Acer Incorporated ALI driver: N/A alternate: snd_pci_acp3x,
snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci,
snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt
pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2
class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
Sound API: ALSA v: k6.1.19-1-lts running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.67 running: yes
Network:
Device-1: Realtek vendor: Acer Incorporated ALI driver: r8169 v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 03:00.0
chip-ID: 10ec:2600 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp4s0 state: up mac: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-4:2
chip-ID: 8087:0029 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 5 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 476.94 GiB used: 84.71 GiB (17.8%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN530
SDBPNPZ-512G-1014 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 21103900 temp: 33.9 C scheme: GPT
Partition:
ID-1: / raw-size: 165.26 GiB size: 165.26 GiB (100.00%)
used: 84.66 GiB (51.2%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
ID-2: /boot/efi raw-size: 1024 MiB size: 1020 MiB (99.61%)
used: 50.4 MiB (4.9%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 165.26 GiB size: 165.26 GiB (100.00%)
used: 84.66 GiB (51.2%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
ID-4: /var/log raw-size: 165.26 GiB size: 165.26 GiB (100.00%)
used: 84.66 GiB (51.2%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
ID-5: /var/tmp raw-size: 165.26 GiB size: 165.26 GiB (100.00%)
used: 84.66 GiB (51.2%) fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 44.8 C mobo: N/A gpu: amdgpu temp: 34.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 365 Uptime: 7m wakeups: 3 Memory: 15 GiB used: 5.17 GiB (34.5%)
Init: systemd v: 253 default: graphical tool: systemctl Compilers:
gcc: 12.2.1 Packages: 1704 pm: pacman pkgs: 1688 libs: 377
tools: octopi,paru pm: flatpak pkgs: 16 Shell: fish v: 3.6.0 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.25
Garuda (2.6.15-1):
System install date:     2022-11-19
Last full system update: 2023-03-16
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:

cat /sys/power/mem_sleep

at /sys/power/mem_sleep
File: /sys/power/mem_sleep
s2idle [deep]

$cat /sys/power/mem_sleep
at /sys/power/mem_sleep
File: /sys/power/mem_sleep
s2idle [deep]

this is same for me also… :slightly_smiling_face:…you have also nvidia drivers…then
this is caused by nvidia :melting_face:

Switched to LTS … in that case the problem will be solved.

My Kernel version: 6.1.20-1-lts
zen kernel version: 6.2.5 //causing the problem

Yeap NVDIA, I'm on LTS kernel :smiley: so not sure, if that will help you.

Coz does not help me.

A workaround that may be helpful would be to switch to s2idle suspend mode. This can be managed by adding the mem_sleep_default=s2idle kernel parameter to /etc/default/grub, or just add it on the kernel parameters line in Garuda Boot Options and click Apply:

@appu in your case this is a perfectly reasonable intervention.

@istanbul this is less suitable for your machine if you run your laptop on the battery. If you do, just bear in mind the battery will continue to drain even while in suspend, because s2idle holds your session in RAM. Additionally, if your battery dies you will lose your session. It is best to shut off your laptop when you are not using it if you use the s2idle suspend mode, unless you keep your laptop plugged in.

4 Likes
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 resume=/dev/sda2 ibt=off # Modified by garuda-migrations: ibt=off

this configuration is for LTS ...in this configuration everythings works fine.....

but the comfig you provided ... it was as same as me in ZEN config..... but still zen kernel causing problem...

Devs should find a solution for this ridiculous issue. I have to reset my laptop every time and lose my works on it.

Damn!

Changing the suspend type like I described seems like it would be preferable to that, but suit yourself.

Kernel devs do not go scouring the posts in the Garuda Linux forum looking for work to do. If you want devs to fix your issue, make an effort to collect some meaningful information about it and contribute to a relevant bug report. This one looks like your issue:

3 Likes

I have to reset my laptop every time and lose my works on it.

But i would never lost my data when i need to reset (already did recently :slightly_smiling_face: to solve this :point_up_2: issue__but not succeeded)

the trick you need to do at first,

separate the home directory in a partition… during installation.
Don’t format the /home partition…re-flag it as /home
During user creation give the same name & password of previous one… and boom

surprisingly i works (for me __)…and may be works for you…

hi, I recently moved from Manjaro to Garuda Linux. What a big improvement.

With regards to your black screen after suspend wake. I had a similar issue on one of the 2 amd laptops I had. I've read many ideas for a solution like revert to older kernel.

In my situation I had to do the following:

  1. add kernel flags "amd_iommu=on iommu=pt" in order to get rid of the amdgpu errors after wake up, but this did not resolve my issue
  2. move from xorg display manager to wayland. Check this forum how to do it. And my issue was resolved.

Good luck!
Hope your issue is similar to mine

4 Likes

i 'm on NVIDIA ...thats the problem.. :slightly_smiling_face: :melting_face:

and 99.90% sure that it happens for zen kernel 6.2....
not happening for LTS 6.1.... in my case

1 Like

LOL why for me occurs on LTS kernel :confused:

wait wait how you get 6.1 LTS?

hmmm I thought that was using 5.15 due to kernel manager but it seems that's wrong

it shows running kernel as 5.15. puff...

Hey I noticed you have linked my issue thread here I am here to just give you a quick update regarding that. The fix didn’t work for a long time for me. Long story short I found out that KDE powerdevil was the issue. It’s an old KDE bug that has supposedly been resolved by KDE devs a while ago but I guess I am an exception. Anyway, the fix to that was

go to settings → Power Management → Energy Saving and there you will find three tabs namely

  1. On AC Power
  2. On Battery
  3. On Low battery

In each of these sections you find this checkbox While asleep, hibernate after a period of inactivity make sure to uncheck it in all three tabs. click apply and you are done.

The only downside to this is you won’t be able to automatically hibernate your system but on the plus side you get to have a working system that doesn’t black screens on you.
Believe me I tried all possible methods on earth to get this option to work and not black screen on me but in the end I just decided to compromise.

1 Like