You are not logged in.

#1 2024-07-16 23:13:28

bun6502
Member
Registered: 2024-07-16
Posts: 6

External displays not waking up after suspend (Hyprland, NVIDIA)

Good day everyone,

I'm new to Arch Linux forums but have been using the operating system for a year or two now. I'm setting a fresh install on my laptop and encountered an issue where after waking up from suspend, the external displays don't wake up (internal one works fine) and even after I power cycle the displays they say "no signal."

My specs are as follows:

                  -`                     bun6502@ExtraterrestrialEntity
                 .o+`                    ------------------------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: Alienware m16 R1
              `+oooooo:                  Kernel: Linux 6.9.9-arch1-1
              -+oooooo+:                 Uptime: 1 min
            `/:-:++oooo+:                Packages: 616 (pacman)
           `/++++/+++++++:               Shell: zsh 5.9
          `/++++++++++++++:              Display (HP 24mh): 1920x1080 @ 75Hz [External]
         `/+++ooooooooooooo/`            Display (VG27AQA1A): 2560x1440 @ 165Hz
        ./ooosssso++osssssso+`           Display (CMN161D): 2560x1600 @ 165Hz (as 1602x1001) [Built-in]
       .oossssso-````/ossssss+`          WM: Hyprland (Wayland)
      -osssssso.      :ssssssso.         Theme: Vimix-dark-beryl [GTK2/3]
     :osssssss/        osssso+++.        Icons: Vimix-Beryl-dark [GTK2/3]
    /ossssssss/        +ssssooo/-        Font: Inter (11pt) [GTK2/3]
  `/ossssso+/:-        -:/+osssso+-      Cursor: Bibata-Modern-Classic (24px)
 `+sso+:-`                 `.-/+oso:     Terminal: kitty 0.35.2
`++:.                           `-/+/    Terminal Font: CaskaydiaCoveNF-Regular (12pt)
.`                                 `/    CPU: 13th Gen Intel(R) Core(TM) i7-13700HX (24) @ 5.00 GHz
                                         GPU 1: Intel UHD Graphics 770 @ 1.55 GHz [Integrated]
                                         GPU 2: NVIDIA GeForce RTX 4070 Max-Q / Mobile [Discrete]
                                         Memory: 1.60 GiB / 31.03 GiB (5%)
                                         Swap: 0 B / 4.00 GiB (0%)
                                         Disk (/): 13.93 GiB / 48.91 GiB (28%) - ext4
                                         Disk (/home): 8.30 GiB / 453.58 GiB (2%) - ext4
                                         Local IP (wlan0): 192.168.86.217/24
                                         Battery: 100% [AC Connected]
                                         Locale: en_US.UTF-8

I was trying to get Reverse PRIME working so I could use my iGPU as main but I haven't done that as when I enabled nvidia-kms to get multi-monitor support it switched my dGPU to main which worked so I didn't touch it. As such, my dGPU is my main GPU and it runs the desktop:

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02              Driver Version: 555.58.02      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4070 ...    Off |   00000000:01:00.0  On |                  N/A |
| N/A   50C    P8              5W /   90W |      87MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A       883      G   /usr/lib/Xorg                                   4MiB |
|    0   N/A  N/A      1021      G   Hyprland                                        2MiB |
+-----------------------------------------------------------------------------------------+

Upon fresh boot, all displays are working fine, as shown by xrandr:

eDP-1 connected 1600x1000+0+0 (normal left inverted right x axis y axis) 340mm x 220mm
   1600x1000    164.85*+
   1280x960     164.80  
   1152x864     164.77  
   1024x768     164.78  
   800x600      164.72  
   640x480      164.26  
   320x240      163.69  
   1440x900     164.74  
   1280x800     164.81  
   1152x720     164.77  
   960x600      164.72  
   928x580      164.51  
   800x500      164.66  
   768x480      164.47  
   720x480      164.67  
   640x400      164.67  
   320x200      161.83  
   1600x900     164.77  
   1368x768     164.98  
   1280x720     164.71  
   1024x576     164.94  
   864x486      164.71  
   720x400      164.23  
   640x350      164.46  
DP-3 connected 2560x1440+2560+0 (normal left inverted right x axis y axis) 600mm x 340mm
   2560x1440    164.90*+
   1920x1440    164.87  
   1600x1200    164.88  
   1440x1080    164.85  
   1400x1050    164.77  
   1280x1024    164.81  
   1280x960     164.80  
   1152x864     164.77  
   1024x768     164.99  
   800x600      164.72  
   640x480      164.26  
   320x240      163.69  
   1920x1200    164.87  
   1680x1050    164.82  
   1440x900     164.74  
   1280x800     164.81  
   1152x720     164.77  
   960x600      164.72  
   928x580      164.51  
   800x500      164.66  
   768x480      164.47  
   720x480      164.67  
   640x400      164.67  
   320x200      161.83  
   2048x1152    164.90  
   1920x1080    164.83  
   1600x900     164.77  
   1368x768     164.98  
   1280x720     164.71  
   1024x576     164.94  
   864x486      164.71  
   720x400      164.23  
   640x350      164.46  
HDMI-A-1 connected 1920x1080+5120+0 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     74.91*+
   1440x1080     74.92  
   1400x1050     74.87  
   1280x1024     74.90  
   1280x960      74.86  
   1152x864      74.82  
   1024x768      74.67  
   800x600       74.91  
   640x480       74.77  
   320x240       73.82  
   1680x1050     74.89  
   1440x900      74.85  
   1280x800      74.76  
   1152x720      74.72  
   960x600       74.84  
   928x580       74.58  
   800x500       74.87  
   768x480       74.71  
   720x480       74.51  
   640x400       74.23  
   320x200       73.70  
   1600x900      74.89  
   1368x768      74.73  
   1280x720      74.78  
   1024x576      74.80  
   864x486       74.45  
   720x400       74.23  
   640x350       74.53

My laptop appears to only support hibernate according to dmesg:

...
[    0.326084] ACPI: PM: (supports S0 S4 S5)
...

But cat /sys/power/mem_sleep shows:

[s2idle]

... which seems contradictory. I believe s2idle is supported due to my laptop being quite new and wakeup time after systemctl suspend to be quite fast (only a few seconds).

<QuickTangent>
I haven't been able to get hibernate working:

Call to Hibernate failed: Not enough suitable swap space for hibernation available on compatible block devices and file systems

</QuickTangent>

When I put my laptop to sleep either by systemctl suspend or closing the lid, it behaves normally, turning off lights and all displays. However, upon waking back up my external displays stay off as described above.
Interestingly, xrandr outputs the same thing as before. Even hyprctl monitors lists everything normally:

Monitor eDP-1 (ID 0):
	2560x1600@165.00000 at 0x0
	description: Chimei Innolux Corporation 0x161D
	make: Chimei Innolux Corporation
	model: 0x161D
	serial: 
	active workspace: 1 (1)
	special workspace: -98 (special:magic)
	reserved: 0 0 0 0
	scale: 1.60
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: 0
	activelyTearing: false
	disabled: false
	currentFormat: XRGB8888
	availableModes: 2560x1600@165.00Hz 2560x1600@60.00Hz

Monitor DP-3 (ID 1):
	2560x1440@165.00301 at -2560x-439
	description: ASUSTek COMPUTER INC VG27AQA1A RALMQS140818
	make: ASUSTek COMPUTER INC
	model: VG27AQA1A
	serial: RALMQS140818
	active workspace: 2 (2)
	special workspace: 0 ()
	reserved: 0 0 0 0
	scale: 1.00
	transform: 0
	focused: no
	dpmsStatus: 1
	vrr: 0
	activelyTearing: false
	disabled: false
	currentFormat: XRGB8888
	availableModes: 2560x1440@59.95Hz 2560x1440@165.00Hz 2560x1440@160.00Hz 2560x1440@155.01Hz 2560x1440@144.00Hz 2560x1440@120.00Hz 2560x1440@99.95Hz 1920x1080@119.93Hz 1920x1080@119.88Hz 1920x1080@99.90Hz 1920x1080@60.00Hz 1920x1080@59.94Hz 1280x1024@75.03Hz 1280x1024@60.02Hz 1440x900@59.89Hz 1152x864@75.00Hz 1280x720@59.94Hz 1024x768@75.03Hz 1024x768@70.07Hz 1024x768@60.00Hz 1440x480@59.94Hz 800x600@75.00Hz 800x600@72.19Hz 800x600@60.32Hz 800x600@56.25Hz 640x480@75.00Hz 640x480@72.81Hz 640x480@59.94Hz

Monitor HDMI-A-1 (ID 2):
	1920x1080@74.97300 at -4480x-79
	description: HP Inc. HP 24mh 3CM0290CYK
	make: HP Inc.
	model: HP 24mh
	serial: 3CM0290CYK   
	active workspace: 3 (3)
	special workspace: 0 ()
	reserved: 0 0 0 0
	scale: 1.00
	transform: 0
	focused: no
	dpmsStatus: 1
	vrr: 0
	activelyTearing: false
	disabled: false
	currentFormat: XRGB8888
	availableModes: 1920x1080@60.00Hz 1920x1080@74.97Hz 1920x1080@59.94Hz 1920x1080@50.00Hz 1680x1050@59.95Hz 1600x900@60.00Hz 1280x1024@60.02Hz 1440x900@59.89Hz 1280x800@59.81Hz 1280x720@60.00Hz 1280x720@59.94Hz 1280x720@50.00Hz 1024x768@60.00Hz 800x600@60.32Hz 720x576@50.00Hz 720x480@59.94Hz 640x480@59.94Hz 640x480@59.93Hz

Hyprland seems to think that everything is okay - if I move my mouse to an external display then focused: changes to yes for that display. I can open apps on and move apps to/from external displays just fine. But they stay black.

hyprctl dispatch dpms on returns ok and powers on the external displays but they don't display anything besides indicating that there is a signal. The backlight turns on but the display stays black.
xrandr --output HDMI-A-1 --auto and xrandr --output DP-3 --auto have no effect.

It's worth noting that (as far as I know) my external displays are hardwired to the dGPU. I suspected that the dGPU wasn't waking up somehow but nvidia-smi still shows P8 and I can even do a prime-run glxgears and it works fine.

Following various forum posts, I tried unplugging and replugging the displays to no avail. In fact it's worse now as xrandr says this:

...
HDMI-A-1 connected 0x0+5120+0 (normal left inverted right x axis y axis) 530mm x 300mm
   0x0            0.00*+
DP-3 connected 0x0+2560+0 (normal left inverted right x axis y axis) 600mm x 340mm
   0x0            0.00*+

hyprctl monitors appears to be unchanged.

hyprctl dispatch dpms on returns ok but has no effect now.
xrandr --output DP-3 --auto does nothing but ... HDMI-A-1 ... outputs this:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  21 (RRSetCrtcConfig)
  Value in failed request:  0x1400
  Serial number of failed request:  36
  Current serial number in output stream:  36

Also, I can't move my mouse cursor off the internal display now. Interestingly, using keyboard navigation I can still use apps on external displays as before.

I hope I've provided enough information. I can always provide more, too. Much appreciate any help for this problem -

Thanks,
bun6502

$ # More debug info

$ cat /etc/modprobe.d/nvidia.conf
options nvidia_drm modeset=1 fbdev=1

$ cat /etc/mkinitcpio.conf             
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck)

Offline

#2 2024-07-17 01:47:07

bun6502
Member
Registered: 2024-07-16
Posts: 6

Re: External displays not waking up after suspend (Hyprland, NVIDIA)

Update:

After even more browsing I came across this post:

seth wrote:

Is this S3 ("deep") or s2idle?
https://wiki.archlinux.org/title/Power_ … end_method

Do the systems still respond to an ICMP request (ping) and/or can you ssh into them?
Is this also an issue when only booting the multi-user.target (in doubt along "nomodeset")?
Can you reboot the system from the "black screen" using the https://wiki.archlinux.org/title/Keyboa … el_(SysRq) (nb. that you've to explicitly enable that first!)

Since it's both nvidia, do you https://wiki.archlinux.org/title/NVIDIA … er_suspend ?

I have a ping LA.PT.OP.IP running on another computer and it stops while the laptop is suspended (both after lid close and after systemctl suspend).

Also, I should have tested this earlier but restarting Hyprland fixes the issue. Might anyone know a way to resume sleep without restarting Hyprland? Thanks.

Offline

#3 2024-07-17 02:02:59

bun6502
Member
Registered: 2024-07-16
Posts: 6

Re: External displays not waking up after suspend (Hyprland, NVIDIA)

More info! I learned about journalctl -b:

Jul 16 21:49:00 ExtraterrestrialEntity systemd-logind[705]: Lid closed.
Jul 16 21:49:00 ExtraterrestrialEntity systemd-logind[705]: Suspending...
Jul 16 21:49:00 ExtraterrestrialEntity systemd[1]: Reached target Sleep.
Jul 16 21:49:00 ExtraterrestrialEntity systemd[1]: Starting System Suspend...
Jul 16 21:49:00 ExtraterrestrialEntity systemd-sleep[2075]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
Jul 16 21:49:00 ExtraterrestrialEntity systemd-sleep[2075]: This is not recommended, and might result in unexpected behavior, particularly
Jul 16 21:49:00 ExtraterrestrialEntity systemd-sleep[2075]: in suspend-then-hibernate operations or setups with encrypted home directories.
Jul 16 21:49:00 ExtraterrestrialEntity systemd-sleep[2075]: Performing sleep operation 'suspend'...
Jul 16 21:49:00 ExtraterrestrialEntity kernel: PM: suspend entry (s2idle)
Jul 16 21:49:00 ExtraterrestrialEntity kernel: Filesystems sync: 0.038 seconds
Jul 16 21:49:06 ExtraterrestrialEntity kernel: Freezing user space processes
Jul 16 21:49:06 ExtraterrestrialEntity kernel: Freezing user space processes completed (elapsed 0.001 seconds)
Jul 16 21:49:06 ExtraterrestrialEntity kernel: OOM killer disabled.
Jul 16 21:49:06 ExtraterrestrialEntity kernel: Freezing remaining freezable tasks
Jul 16 21:49:06 ExtraterrestrialEntity kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
Jul 16 21:49:06 ExtraterrestrialEntity kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jul 16 21:49:06 ExtraterrestrialEntity kernel: wlan0: deauthenticating from e4:5e:1b:ff:0c:f0 by local choice (Reason: 3=DEAUTH_LEAVING)
Jul 16 21:49:06 ExtraterrestrialEntity kernel: ACPI: EC: interrupt blocked
Jul 16 21:49:06 ExtraterrestrialEntity kernel: ACPI: EC: interrupt unblocked
Jul 16 21:49:06 ExtraterrestrialEntity kernel: i2c_hid_acpi i2c-VEN_04F3:00: i2c_hid_get_input: incomplete report (31/65280)
Jul 16 21:49:06 ExtraterrestrialEntity kernel: i915 0000:00:02.0: [drm] GT0: GuC firmware i915/tgl_guc_70.bin version 70.20.0
Jul 16 21:49:06 ExtraterrestrialEntity kernel: i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
Jul 16 21:49:06 ExtraterrestrialEntity kernel: nvme nvme1: D3 entry latency set to 10 seconds
Jul 16 21:49:06 ExtraterrestrialEntity kernel: iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
Jul 16 21:49:06 ExtraterrestrialEntity kernel: i915 0000:00:02.0: [drm] GT0: HuC: authenticated for all workloads
Jul 16 21:49:06 ExtraterrestrialEntity kernel: i915 0000:00:02.0: [drm] GT0: GUC: submission disabled
Jul 16 21:49:06 ExtraterrestrialEntity kernel: i915 0000:00:02.0: [drm] GT0: GUC: SLPC disabled
Jul 16 21:49:06 ExtraterrestrialEntity kernel: nvme nvme1: 24/0/0 default/read/poll queues
Jul 16 21:49:06 ExtraterrestrialEntity kernel: nvme nvme0: D3 entry latency set to 10 seconds
Jul 16 21:49:06 ExtraterrestrialEntity kernel: nvme nvme0: 16/0/0 default/read/poll queues
Jul 16 21:49:06 ExtraterrestrialEntity kernel: iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
Jul 16 21:49:06 ExtraterrestrialEntity kernel: iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
Jul 16 21:49:06 ExtraterrestrialEntity kernel: iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
Jul 16 21:49:06 ExtraterrestrialEntity kernel: iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0
Jul 16 21:49:06 ExtraterrestrialEntity kernel: iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 5
Jul 16 21:49:06 ExtraterrestrialEntity kernel: r8169 0000:6e:00.0 enp110s0: Link is Down
Jul 16 21:49:06 ExtraterrestrialEntity kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
Jul 16 21:49:06 ExtraterrestrialEntity kernel: mei_pxp 0000:00:16.0-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:00:02.0 (ops i915_pxp_tee_component_ops [i915])
Jul 16 21:49:06 ExtraterrestrialEntity kernel: OOM killer enabled.
Jul 16 21:49:06 ExtraterrestrialEntity kernel: Restarting tasks ... done.
Jul 16 21:49:06 ExtraterrestrialEntity kernel: random: crng reseeded on system resumption
Jul 16 21:49:06 ExtraterrestrialEntity systemd-logind[705]: Lid opened.
Jul 16 21:49:06 ExtraterrestrialEntity iwd[704]: Received Deauthentication event, reason: 3, from_ap: false
Jul 16 21:49:06 ExtraterrestrialEntity iwd[704]: event: disconnect-info, reason: 3
Jul 16 21:49:06 ExtraterrestrialEntity iwd[704]: event: state, old: connected, new: disconnected
Jul 16 21:49:06 ExtraterrestrialEntity iwd[704]: event: state, old: disconnected, new: autoconnect_quick
Jul 16 21:49:06 ExtraterrestrialEntity systemd-networkd[652]: wlan0: Lost carrier
Jul 16 21:49:06 ExtraterrestrialEntity systemd-networkd[652]: wlan0: DHCP lease lost
Jul 16 21:49:06 ExtraterrestrialEntity systemd-resolved[696]: Clock change detected. Flushing caches.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-timesyncd[697]: No network connectivity, watching for changes.
Jul 16 21:49:06 ExtraterrestrialEntity systemd[1]: Starting Hostname Service...
Jul 16 21:49:06 ExtraterrestrialEntity wireplumber[1289]: wplua: [string "alsa.lua"]:182: attempt to concatenate a nil value (local 'node_name')
                                                          stack traceback:
                                                                  [string "alsa.lua"]:182: in function <[string "alsa.lua"]:175>
Jul 16 21:49:06 ExtraterrestrialEntity systemd-sleep[2075]: System returned from sleep operation 'suspend'.
Jul 16 21:49:06 ExtraterrestrialEntity kernel: PM: suspend exit
Jul 16 21:49:06 ExtraterrestrialEntity bluetoothd[703]: Controller resume with wake event 0x0
Jul 16 21:49:06 ExtraterrestrialEntity systemd[1]: systemd-suspend.service: Deactivated successfully.
Jul 16 21:49:06 ExtraterrestrialEntity systemd[1]: Finished System Suspend.
Jul 16 21:49:06 ExtraterrestrialEntity systemd[1]: Stopped target Sleep.
Jul 16 21:49:06 ExtraterrestrialEntity systemd[1]: Reached target Suspend.
Jul 16 21:49:06 ExtraterrestrialEntity systemd[1]: Stopped target Suspend.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-logind[705]: Operation 'suspend' finished.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-resolved[696]: Closing all remaining TCP connections.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-resolved[696]: Resetting learnt feature levels on all servers.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-networkd[652]: lo: Unmanaging interface.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-networkd[652]: wlan0: Reconfiguring with /etc/systemd/network/20-wlan.network.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-networkd[652]: enp110s0: Reconfiguring with /etc/systemd/network/20-ethernet.network.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-resolved[696]: Switching to fallback DNS server 1.1.1.1#cloudflare-dns.com.
Jul 16 21:49:06 ExtraterrestrialEntity systemd[1]: Started Hostname Service.
Jul 16 21:49:06 ExtraterrestrialEntity systemd-hostnamed[2190]: Hostname set to <ExtraterrestrialEntity> (static)
Jul 16 21:49:06 ExtraterrestrialEntity iwd[704]: event: connect-info, ssid: [REDACTED], bss: e4:5e:1b:ff:0c:f0, signal: -21, load: 0/255
Jul 16 21:49:06 ExtraterrestrialEntity iwd[704]: event: state, old: autoconnect_quick, new: connecting (auto)
Jul 16 21:49:07 ExtraterrestrialEntity kernel: wlan0: authenticate with e4:5e:1b:ff:0c:f0 (local address=8c:17:59:a5:28:6e)
Jul 16 21:49:07 ExtraterrestrialEntity kernel: wlan0: send auth to e4:5e:1b:ff:0c:f0 (try 1/3)
Jul 16 21:49:07 ExtraterrestrialEntity kernel: wlan0: authenticated
Jul 16 21:49:07 ExtraterrestrialEntity kernel: wlan0: associate with e4:5e:1b:ff:0c:f0 (try 1/3)
Jul 16 21:49:07 ExtraterrestrialEntity kernel: wlan0: RX AssocResp from e4:5e:1b:ff:0c:f0 (capab=0x1011 status=0 aid=2)
Jul 16 21:49:07 ExtraterrestrialEntity systemd-networkd[652]: wlan0: Connected WiFi access point: [REDACTED] (e4:5e:1b:ff:0c:f0)
Jul 16 21:49:07 ExtraterrestrialEntity kernel: wlan0: associated
Jul 16 21:49:07 ExtraterrestrialEntity kernel: wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by e4:5e:1b:ff:0c:f0
Jul 16 21:49:07 ExtraterrestrialEntity iwd[704]: event: state, old: connecting (auto), new: connected
Jul 16 21:49:07 ExtraterrestrialEntity systemd-networkd[652]: wlan0: Gained carrier
Jul 16 21:49:07 ExtraterrestrialEntity systemd-networkd[652]: wlan0: DHCPv4 address 192.168.86.217/24, gateway 192.168.86.1 acquired from 192.168.86.1
Jul 16 21:49:07 ExtraterrestrialEntity systemd-timesyncd[697]: Network configuration changed, trying to establish connection.
Jul 16 21:49:07 ExtraterrestrialEntity systemd-timesyncd[697]: Contacted time server 208.113.130.146:123 (0.arch.pool.ntp.org).
Jul 16 21:49:07 ExtraterrestrialEntity systemd-resolved[696]: Clock change detected. Flushing caches.
Jul 16 21:49:08 ExtraterrestrialEntity systemd-resolved[696]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.86.1.
Jul 16 21:49:13 ExtraterrestrialEntity kernel: NVRM: GPU at PCI:0000:01:00: GPU-98df849c-de8e-86b0-4e78-876aaec83724
Jul 16 21:49:13 ExtraterrestrialEntity kernel: NVRM: Xid (PCI:0000:01:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
Jul 16 21:49:13 ExtraterrestrialEntity kernel: NVRM: Xid (PCI:0000:01:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0x82040000
Jul 16 21:49:13 ExtraterrestrialEntity kernel: NVRM: Xid (PCI:0000:01:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
Jul 16 21:49:13 ExtraterrestrialEntity kernel: NVRM: Xid (PCI:0000:01:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ChID 0006, Class 0000c997, Offset 00000000, Data 00000000

So it looks to be s2idle as suspected, and there is an issue with graphics. I can't say my knowledge is quite enough to understand what all of it means though. :sweat_face:

Also, my fans seem to sometimes spin up when I do a suspend, although not always.

Offline

#4 2024-07-17 08:16:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: External displays not waking up after suspend (Hyprland, NVIDIA)

Did you setup the suspension hooks as detailed in https://wiki.archlinux.org/title/NVIDIA … er_suspend ? These are somewhat of a requirement for proper wakeup from suspend on nvidia.

Offline

#5 2024-07-17 09:24:39

bun6502
Member
Registered: 2024-07-16
Posts: 6

Re: External displays not waking up after suspend (Hyprland, NVIDIA)

Hello,

Thanks for the reply. That was actually something I had just seen late yesterday night and was planning to try in the morning tongue I will look into that and report back.

Offline

#6 2024-07-17 09:47:00

bun6502
Member
Registered: 2024-07-16
Posts: 6

Re: External displays not waking up after suspend (Hyprland, NVIDIA)

Hello,

It works! Thank you so much :sweat_face:

For documentation purposes, I did:

$ sudo vim /etc/modprobe.d/nvidia.conf
  # add: options nvidia NVreg_PreserveVideoMemoryAllocations=1
$ sudo mkinitcpio -P
$ sudo systemctl enable nvidia-suspend.service nvidia-hibernate.service
$ reboot

Offline

Board footer

Powered by FluxBB