You are not logged in.

#1 2022-11-01 00:02:31

logothete
Member
Registered: 2022-01-06
Posts: 44

Crippling lag for external monitor on Wayland


The situation:

I have a laptop with two GPU's and an external monitor. The NVIDIA dGPU is wired to the HDMI output, via which I connect to the external monitor. Both screens are HiDPI, but I only use the external monitor when it's plugged in. On X11 everything is fine. On Wayland, however, the combination of dropped frames and input delay renders the monitor unusable.


Specs

Laptop:
iGPU: Intel TigerLake-H GT1 [UHD Graphics]
dGPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q

Kernel: zen 6.0.5
DE: Plasma 5.26.2

Drivers:
nvidia-dkms 520.56.06-2
mesa-22.2.1-1
libva-nvidia-driver 0.0.7-1
libva-mesa-driver 22.2.1-1


My best guess

It seems that the NVIDIA card cannot be used successfully on wayland for some reason. The volatile GPU utilization does not go up from baseline ~ 0% when on wayland, suggesting to me that the iGPU is doing everything -- and having a tough go of it.


Logs

Here's what I get when I plug the monitor in on X11:

Information	[ 43883.491] (II) modeset(0): Modeline "3840x2160"x0.0  545.12  3840 3888 3920 4160  2160 2164 2168 2184 +hsync -vsync (131.0 kHz eP)
	Information	[ 43884.740] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): connected
	Information	[ 43884.740] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): Internal TMDS
	Information	[ 43884.740] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): 600.0 MHz maximum pixel clock
	Information	[ 43884.740] (--) NVIDIA(GPU-0):
	Information	[ 43885.038] (II) modeset(0): EDID vendor "SDC", prod id 16709
	Information	[ 43885.038] (II) modeset(0): Printing DDC gathered Modelines:
	Information	[ 43885.038] (II) modeset(0): Modeline "3840x2160"x0.0  545.12  3840 3888 3920 4160  2160 2164 2168 2184 +hsync -vsync (131.0 kHz eP)
	Information	[ 43885.040] (II) modeset(0): EDID vendor "SDC", prod id 16709
	Information	[ 43885.040] (II) modeset(0): Printing DDC gathered Modelines:
	Information	[ 43885.040] (II) modeset(0): Modeline "3840x2160"x0.0  545.12  3840 3888 3920 4160  2160 2164 2168 2184 +hsync -vsync (131.0 kHz eP)
	Information	[ 43885.086] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): connected
	Information	[ 43885.086] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): Internal TMDS
	Information	[ 43885.086] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): 600.0 MHz maximum pixel clock
	Information	[ 43885.086] (--) NVIDIA(GPU-0):
	Information	[ 43885.922] (II) NVIDIA(G0): Setting mode "HDMI-1-0: nvidia-auto-select @3840x2160 +0+0 {AllowGSYNC=Off, ViewPortIn=3840x2160, ViewPortOut=3840x2160+0+0}"

Here's what I get on Wayland, meanwhile:

	Information	[ 43063.381] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): connected
	Information	[ 43063.381] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): Internal TMDS
	Information	[ 43063.381] (--) NVIDIA(GPU-0): LG Electronics LG HDR 4K (DFP-0): 600.0 MHz maximum pixel clock
	Information	[ 43063.381] (--) NVIDIA(GPU-0):
	Information	[ 43063.416] (II) NVIDIA(G0): Validated MetaModes:
	Information	[ 43063.416] (II) NVIDIA(G0):     "NULL"
	Information	[ 43063.416] (II) NVIDIA(G0): Virtual screen size determined to be 640 x 480
	Information	[ 43063.505] (++) NVIDIA(G0): DPI set to (192, 192); computed from -dpi X commandline option
	Information	[ 43063.524] (==) modeset(0): Backing store enabled
	Information	[ 43063.524] (==) modeset(0): Silken mouse enabled
	Information	[ 43063.597] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
	Information	[ 43063.598] (==) modeset(0): DPMS enabled
	Information	[ 43063.598] (II) modeset(0): [DRI2] Setup complete
	Information	[ 43063.598] (II) modeset(0): [DRI2]   DRI driver: iris
	Information	[ 43063.598] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
	Information	[ 43063.598] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
	Information	[ 43063.598] (II) NVIDIA:     access.
	Information	[ 43063.618] (II) NVIDIA(G0): ACPI: failed to connect to the ACPI event daemon; the daemon
	Information	[ 43063.618] (II) NVIDIA(G0):     may not be running or the "AcpidSocketPath" X
	Information	[ 43063.618] (II) NVIDIA(G0):     configuration option may not be set correctly.  When the
	Information	[ 43063.618] (II) NVIDIA(G0):     ACPI event daemon is available, the NVIDIA X driver will
	Information	[ 43063.618] (II) NVIDIA(G0):     try to use it to receive ACPI event notifications.  For
	Information	[ 43063.618] (II) NVIDIA(G0):     details, please see the "ConnectToAcpid" and
	Information	[ 43063.618] (II) NVIDIA(G0):     "AcpidSocketPath" X configuration options in Appendix B: X
	Information	[ 43063.618] (II) NVIDIA(G0):     Config Options in the README.
	Information	[ 43063.636] (II) NVIDIA(G0): Setting mode "NULL"
...
	Information	[ 43674.413] (WW) NVIDIA(G0): Failed to set the display configuration
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 0 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 1 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 2 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 3 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0): Failed to set the display configuration
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 0 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 1 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 2 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0):  - Setting a mode on head 3 failed: Insufficient permissions
	Information	[ 43674.413] (WW) NVIDIA(G0): Failed to set DPMS to off

So there's something involving an "ACPI event daemon"; I'm not sure how to query this daemon.

As always any help is appreciated; please do let me know what other information may be helpful!

Offline

#2 2022-11-01 02:37:56

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Crippling lag for external monitor on Wayland

Have you seen https://wiki.archlinux.org/title/Wayland#Requirements? What does the suggested check of the journal return?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB