You are not logged in.

#1 2021-12-01 03:37:28

BombshellBilly
Member
Registered: 2021-12-01
Posts: 3

[Sway] Secondary monitor will not wake up after suspend

I have a laptop+monitor setup; currently, when I suspend my machine via swayidle, the secondary monitor will not wake up, and will remain a black screen even when I unplug and plug in the HDMI cable connecting it.

For context, my laptop has Ryzen/NVIDIA hybrid GPUs. I suspect the HDMI port is on the NVIDIA GPU and suspending is causing some problem with the NVIDIA card, but I'm not certain.

What's going wrong?

Cheers!

Offline

#2 2021-12-01 19:09:35

MaxW7
Member
Registered: 2020-09-25
Posts: 7

Re: [Sway] Secondary monitor will not wake up after suspend

Only recently installed wayland & sway on my laptop, so I don't have a lot of experience with the dual monitor setup. But my guess would first start looking into what the swaymanager outputs when you run:

swaymsg -t get_outputs

Furthermore, are there any messages in the sway output / logfiles?

Offline

#3 2021-12-01 22:56:26

BombshellBilly
Member
Registered: 2021-12-01
Posts: 3

Re: [Sway] Secondary monitor will not wake up after suspend

00:00:00.000 [common/ipc-client.c:67] Unable to connect to /run/user/1000/sway-ipc.1000.563.sock

This is what I get from swaymsg get_outputs, after the secondary monitor has died.

As for the sway logs, I'm not sure where to find them. The error when sway crashes (it crashes a few seconds after waking from suspend) seems to be related to Nouveau, so I'm wondering if it has to do with the NVIDIA GPU being turned off when the machine suspends and not switching back on again (I think this might be likely). Do you know of a way to prevent the discrete GPU from shutting down upon suspending?

Offline

#4 2021-12-01 23:09:00

BombshellBilly
Member
Registered: 2021-12-01
Posts: 3

Re: [Sway] Secondary monitor will not wake up after suspend

btw, the Nouveau error says:

../libdrm-2.4.108/nouveau/pushbuf.c:730: nouveau_pushbuf_data: Assertion 'kref'failed.000 i2_create_image_khr_texture'ESKTOP=Unityd '72'b.com/wmww/gtk-layer-shell/blob/master/compatibility.md

Offline

Board footer

Powered by FluxBB