Suspend/wake with HDMI external monitor causing shell crashing/reboot

Hi folks,

I have noticed that when I am at my desk with an external monitor plugged in via HDMI, if the machine suspends (either manually or auto after a period of inactivity), when I resume, it loads up my laptop display and the external monitor, then freezes/crashes back to the login just seconds after.

The external monitor is an LG 34GN850-B and this is my system:

[joel@jfed ~]$ inxi -v 3
System:    Host: jfed Kernel: 5.15.4-201.fc35.x86_64 x86_64 bits: 64 compiler: gcc v: 2.37-10.fc35 Desktop: GNOME 41.1
           Distro: Fedora release 35 (Thirty Five)
Machine:   Type: Laptop System: Razer product: Blade 15 Base Model (Early 2020) - RZ09-0328 v: 5.04
           serial: <superuser required>
           Mobo: Razer model: DA550 v: 4 serial: <superuser required> UEFI: Razer v: 01.06 date: 09/16/2020
Battery:   ID-1: BAT0 charge: 67.3 Wh (100.0%) condition: 67.3/65.0 Wh (103.6%) volts: 17.5 min: 15.4 model: Razer Blade
           status: Full
CPU:       Info: 6-Core model: Intel Core i7-10750H bits: 64 type: MT MCP arch: Comet Lake rev: 2 cache: L2: 1.5 MiB
           flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399
           Speed: 2098 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 900 2: 1306 3: 1987 4: 966 5: 1542 6: 900 7: 902
           8: 1674 9: 905 10: 922 11: 900 12: 900
Graphics:  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Razer USA driver: i915 v: kernel bus-ID: 00:02.0
           Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Razer USA driver: nouveau v: kernel bus-ID: 01:00.0
           Device-3: IMC Networks USB Camera type: USB driver: uvcvideo bus-ID: 1-7:5
           Display: wayland server: X.Org 1.21.1.3 compositor: gnome-shell driver: loaded: modesetting resolution:
           1: 3440x1440~85Hz 2: 1920x1080~144Hz
           OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.2.5 direct render: Yes

You can see under Graphics it shows my external device is recognised (1: 3440x1440~85Hz). Display settings also shows them at joined at the built-in display as the primary. I’m wondering if X11/Wayland might have something to do with it?

I believe the dGPU (RTX 2060) is hardwired to the HDMI port, so suspect this may also be an NVIDIA issue, but the monitor works fine on the nouveau driver until I suspend/wake.

I assume I will need to provide some more specific information, so let me know what I need to gather to give a clearer picture.

Please check the monitor settings on the monitor it selves >> Menu > General > OSD Lock is on or off?

Can confirm OSD lock is off.

You might have to play around with the values in “Menu > General” . There are also power saving values who might omit the correct working with your monitor.

All “Menu > General” settings are as follows:

Language - English
Smart Energy Savings - Off
Power LED - Off
Automatic Standby - Off
HDMI Compatibility Mode - greyed out
DisplayPort version - greyed out
Variable Backlight - greyed out
Buzzer - Off (not sure what this is?!)
OSD Lock - Off
Information - uptime/resolution info

I thought I’d just add here that I moved from running the nouveau GPU drivers, todriver: nvidia v: 470.86 drivers and this issue has been resolved.

I can manually or auto suspend my laptop and when I wake it does not freeze/restart.