Blank screen at resume after sustend to RAM

Hello there,
After update 3 days ago, I get a blank screen at resume after suspend to RAM.
I can ssh the box tried top when working fine and when there is the issue. At first both output are same.

 PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                        
 1147 root      20   0  611204 151556  64088 S 1.993 0.943   7:10.80 X                                                              
 1565 chris     20   0  685256  48744  37508 S 0.332 0.303   0:03.24 clock-applet                                                   
 1579 chris     20   0  622208  36256  27588 S 0.332 0.226   0:07.89 mate-netspeed-a                                                
11735 chris     20   0   25532   4520   3704 R 0.332 0.028   0:00.03 top                                                            
    1 root      20   0  206316  13128   9476 S 0.000 0.082   0:01.87 systemd                                                        
    2 root      20   0       0      0      0 S 0.000 0.000   0:00.00 kthreadd                                                       
    3 root       0 -20       0      0      0 I 0.000 0.000   0:00.00 rcu_gp                                                         
    4 root       0 -20       0      0      0 I 0.000 0.000   0:00.00 rcu_par_gp                                                     
    6 root       0 -20       0      0      0 I 0.000 0.000   0:00.00 kworker/0:0H-events_highpri                                    
    9 root       0 -20       0      0      0 I 0.000 0.000   0:00.00 mm_percpu_wq                                                   
   10 root      20   0       0      0      0 S 0.000 0.000   0:00.00 rcu_tasks_kthre                                                
   11 root      20   0       0      0      0 S 0.000 0.000   0:00.00 rcu_tasks_rude_                                                
   12 root      20   0       0      0      0 S 0.000 0.000   0:00.00 rcu_tasks_trace                                                
   13 root      20   0       0      0      0 S 0.000 0.000   0:00.13 ksoftirqd/0                                                    
   14 root      20   0       0      0      0 I 0.000 0.000   0:00.85 rcu_preempt                                                    
   15 root      rt   0       0      0      0 S 0.000 0.000   0:00.04 migration/0                                                    
   16 root     -51   0       0      0      0 S 0.000 0.000   0:00.00 idle_inject/0                                                  
   17 root      20   0       0      0      0 S 0.000 0.000   0:00.00 cpuhp/0                                                        
   18 root      20   0       0      0      0 S 0.000 0.000   0:00.00 cpuhp/1                                                        
   19 root     -51   0       0      0      0 S 0.000 0.000   0:00.00 idle_inject/1                                                  
   20 root      rt   0       0      0      0 S 0.000 0.000   0:00.22 migration/1                                                    
   21 root      20   0       0      0      0 S 0.000 0.000   0:00.07 ksoftirqd/1                                                    
   23 root       0 -20       0      0      0 I 0.000 0.000   0:00.00 kworker/1:0H-events_highpri             

Any help is welcome, let me know what output you need
Many thanks

More info

~> cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.4"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.4"
PRETTY_NAME="openSUSE Leap 15.4"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.4"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

~> inxi -SGa
System:    Host: mx1.locdom.org Kernel: 5.14.21-150400.24.60-default x86_64 bits: 64 compiler: gcc v: 7.5.0
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.14.21-150400.24.60-default root=UUID=494c08cd-9aaa-4dec-acc2-13814fcae5b3
           splash=silent resume=/dev/disk/by-uuid/9ebf81e0-1f57-4d3d-8434-3da6e898daa6 preempt=full quiet security=apparmor
           nomodeset mitigations=auto
           Console: pty pts/0 DM: LightDM 1.30.0 Distro: openSUSE Leap 15.4
Graphics:  Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] driver: N/A alternate: amdgpu
           bus-ID: 04:00.0 chip-ID: 1002:15dd class-ID: 0300
           Display: server: X.org 1.20.3 compositor: marco v: 1.26.0 driver: loaded: ati
           unloaded: fbdev,modesetting,radeon,vesa tty: 132x24
           Message: Advanced graphics data unavailable in console. Try -G --display

~> xrandr
Can't open display 

Do you have a screen saver enabled? If so could you try disabling it an try again?

Yes I had screensaver on.
I switched it OFF and tried few times, unfortunately same issue, black screen.
The OS is working, I have to key Ctrl-AltGr-Delete and press twice left arrow to restart the box.
Any other idea?

I very infrequently run into something like that myself but without suspend to RAM , just the monitor goes to sleep and does not wake up.

I have tried switching off/on the monitor with the button on the monitor but that does typically not help, what helps is disconnecting the cable and reconnecting it. Not really a nice solution but can you give these two methods a try?

I tried different cases but nothing better.
While the issue, monitor connected, screen black, I switch OFF the monitor then ON, it says “No signal”.

Assuming you tried also unplugging the monitor cable and replugging it and that that also did not work I am not sure I can further help.

If the problem is only now and then it would make sense to study the difference in the journal for a successful resume versus on where the screen keeps blank.

As you have ssh access it would also make sense to use the ssh session to suspend the session once more an see if the next resume results in a working monitor.

Searching “monitor does not come up after resume” on the Internet gives also all kind of suggestions but most of them seem to be specific for certain hardware.

Thanks marel for your help.
I tried the previous kernel in the boot; Nothing better.
Then I tried the current kernel but in recovery mode; Resume is good, screen working.
In the /var/log/Xorg.0.log file when normal boot there is no EDID message nether after resume but in the recovery boot there are a lot of EDID messages and after resume one EDID message.

Unfortunately I have no knowledge to go further.
Any help
Thanks

I did a bit further searching, this time on “amdgpu driver wake up” and the tells me your are not the only only with these kind of problems. Not sure if they are the same but what is suggested on this page might be worth a try: AMD GPU Wake from sleep intermittent issue (unresponsive, related to vblank) - Graphics & Display - Manjaro Linux Forum

I also found there is a amdgpu_top tool, no OpenSuse package but you can build it yourself. Would be good to give that a try when the monitor does not come up and using ssh to get into the machine.

I just upgraded the box to Leap 15.5
I had an issue, long time, ~25s between background image and icon.
Now issue is gone.
However, the issue in this thread is still present.
From here, I tried

~> sudo /bin/bash -c 'lspci -nn | grep VGA'
[sudo] password for root: 
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15dd] (rev c3)
04:00.7 Non-VGA unclassified device [0000]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver [1022:15e6]

~> export DISPLAY=:0
~> xrandr --listproviders
xrandr: Failed to get size of gamma for output default
Providers: number : 0
~> xrandr --listmonitors
xrandr: Failed to get size of gamma for output default
Monitors: 1
 0: +*default 1680/444x1050/278+0+0  default

I don’t know how to install amdgpu_top. Could you help?

On that you should do really some searching, my search gives among others:

I am not surprised you can not install amdgpu_top, see my previous reply, “you can build it yourself”.

1 Like

From the link you provided
https://davidtsadler.com/posts/linux/2021-06-05/xrandr-failed-to-get-size-of-gamma-for-output-default/
I removed “nomodeset” from grub

sudo vim /etc/default/grub

Now I have

GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-uuid/9ebf81e0-1f57-4d3d-8434-3da6e898daa6 preempt=full quiet security=apparmor mitigations=auto"

After reboot everything work fine.

Thanks a lot marel for your help.

1 Like